/* Schriften: ./fonts.css (lokale WOFF2 unter ../fonts/) · Tokens: ./variables.css */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-gray);
  background: var(--color-bg-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-blue);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--color-orange);
}

/* ——— Header ——— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--color-blue);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-md);
  box-shadow: 0 2px 20px rgba(8, 31, 45, 0.35);
}

.site-header__brand {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--color-white);
  transition: color 0.2s var(--ease);
}

.site-header__brand span {
  color: var(--color-orange);
  transition: color 0.2s var(--ease);
}

/* Normal: „Wen“ weiß, „ston“ orange · Hover: „Wen“ orange, „ston“ weiß */
.site-header__brand:hover {
  color: var(--color-orange);
}

.site-header__brand:hover span {
  color: var(--color-white);
}

.site-header__end {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
}

.lang-switch__btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.9);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.lang-switch__btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
}

.lang-switch__btn.is-active {
  background: var(--color-orange);
  border-color: var(--color-orange);
  color: var(--color-blue);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--space-xs);
}

.nav {
  display: flex;
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.nav a:hover {
  color: var(--color-orange);
}

/* ——— Tags / Skills row ——— */
.skills-row {
  background: var(--color-blue);
  color: var(--color-white);
  padding: var(--space-lg) var(--space-md);
}

.skills-row__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  justify-content: center;
  list-style: none;
  padding: 0;
}

.skills-row li {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.95;
}

.skills-row li::before {
  content: "●";
  color: var(--color-orange);
  margin-right: 0.5rem;
  font-size: 0.65em;
  vertical-align: middle;
}

/* ——— Sections ——— */
.section {
  padding: var(--space-2xl) var(--space-md);
}

.section--alt {
  background: rgba(255, 255, 255, 0.45);
}

.section__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

#work .section__inner {
  text-align: center;
}

.section__title {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--color-blue);
  margin: 0 0 var(--space-lg);
  letter-spacing: -0.02em;
}

.section__intro {
  max-width: 42em;
  margin-bottom: var(--space-xl);
}

#work,
#contact {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

/* ——— Aktuelles Projekt ——— */
.project-feature {
  display: flex;
  justify-content: center;
  max-width: 360px;
  margin: 0 auto;
}

.project-feature__anchor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-decoration: none;
}

.project-feature__anchor:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 4px;
  border-radius: var(--radius-md);
}

.project-feature__logo {
  display: block;
  width: min(100%, 280px);
  height: auto;
  border-radius: var(--radius-md);
}

.project-feature__link {
  font-size: 0.875rem;
  text-align: center;
}

/* ——— Letters / Workflow ——— */
.split {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.teaser {
  padding: var(--space-md);
  background: var(--color-white);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-orange);
  margin-bottom: var(--space-md);
}

.teaser h3 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  color: var(--color-blue);
  margin: 0 0 var(--space-xs);
}

.teaser p {
  margin: 0;
  font-size: 0.95rem;
}

.teaser a {
  font-weight: 600;
  color: var(--color-orange);
}

/* ——— Profile ——— */
.profile-block {
  font-size: 1rem;
}

.profile-block h3 {
  font-family: var(--font-sans);
  color: var(--color-blue);
  margin-top: var(--space-md);
}

/* ——— Contact / Footer ——— */
.site-footer {
  background: var(--color-blue);
  color: rgba(255, 255, 255, 0.92);
  padding: var(--space-2xl) var(--space-md);
}

.site-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

.site-footer .section__title {
  color: var(--color-white);
}

.site-footer a {
  color: var(--color-orange);
  font-weight: 600;
  font-size: 1.125rem;
}

.site-footer__legal {
  margin-top: var(--space-xl);
  font-size: 0.8rem;
  opacity: 0.65;
}

.site-footer__legal a {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 400;
  font-size: 0.8rem;
}

.site-footer__imprint-link {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 400;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
}

.site-footer__imprint-link:hover {
  color: var(--color-orange);
}

/* ——— Impressum-Modal (analog zu weaintplastic.com) ——— */
.imprint-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  background: rgba(8, 31, 45, 0.88);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

.imprint-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.imprint-overlay[hidden] {
  display: none !important;
}

.imprint-overlay.is-open:not([hidden]) {
  display: flex !important;
}

.imprint {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: min(85vh, 640px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  color: var(--color-gray);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 64px rgba(8, 31, 45, 0.35);
  transform: translateY(12px);
  transition: transform 0.35s var(--ease);
}

.imprint-overlay.is-open .imprint {
  transform: translateY(0);
}

.imprint__close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--color-blue);
  color: var(--color-white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
  z-index: 1;
}

.imprint__close:hover {
  background: var(--color-orange);
  color: var(--color-blue);
}

.imprint__title {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-blue);
  margin: 0;
  padding: var(--space-lg) var(--space-lg) var(--space-sm);
  padding-right: 3.5rem;
  border-bottom: 3px solid var(--color-orange);
}

.imprint__content {
  overflow-y: auto;
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  -webkit-overflow-scrolling: touch;
}

.imprint__intro {
  margin: 0 0 var(--space-lg);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-gray);
}

.imprint__block {
  margin-bottom: var(--space-lg);
}

.imprint__block:last-child {
  margin-bottom: 0;
}

.imprint__block h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-blue);
  margin: 0 0 var(--space-sm);
}

.imprint__block p {
  margin: 0 0 var(--space-sm);
  font-size: 0.9rem;
  line-height: 1.6;
}

.imprint__block p:last-child {
  margin-bottom: 0;
}

/* ——— Mobile ——— */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-blue);
    flex-direction: column;
    padding: var(--space-md);
    gap: var(--space-sm);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
}
