/* ==========================================================================
   agentur-girten.pro – Stylesheet
   Dunkles Editorial-Design: Schwarz / Gold · Montserrat + Cormorant Garamond
   Keine externen Ressourcen: Schriften und Bilder liegen lokal (DSGVO).
   ========================================================================== */

/* ---------- Schriften (lokal, Latin-Subset inkl. ä ö ü ß „ “ –) ------------ */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Design-Tokens ---------------------------------------------------- */
:root {
  --bg: #050505;
  --surface: #0b0b0b;
  --surface-2: #101010;
  --field: #141414;
  --field-line: #2a2a2a;
  --line: rgba(255, 255, 255, .08);

  --text: #e9e5e0;
  --text-soft: #b3aca4;
  --text-mute: #8f8981;
  --white: #fff;

  --gold: #c9a26f;
  --gold-hi: #e3c291;
  --ink: #111;
  --danger: #e59a8f;

  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;

  --rail: clamp(56px, 6vw, 90px);
  --gutter: clamp(20px, 8vw, 140px);
  --hero-h: clamp(520px, 50vw, 760px);

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html.nav-open { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, figure, blockquote, ul, address { margin: 0; }
ul { padding: 0; list-style: none; }
address { font-style: normal; }
button, input, textarea { font: inherit; color: inherit; }

a {
  color: var(--gold);
  text-decoration: none;
  transition: color .2s ease;
}
a:hover { color: var(--gold-hi); }

:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
}
::selection { background: var(--gold); color: var(--ink); }

.accent { color: var(--gold); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--ink); }

/* ---------- Bausteine ---------------------------------------------------------- */
.section { position: relative; overflow: hidden; }

.section-title {
  text-align: center;
  padding-left: .3em; /* gleicht das Laufweiten-Plus hinter dem letzten Buchstaben aus */
  font-size: clamp(14px, 1.3vw, 18px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--white);
}

.watermark {
  position: absolute;
  z-index: 0;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  color: rgba(255, 255, 255, .06);
  pointer-events: none;
  user-select: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 38px;
  padding: 11px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  font: 600 11px/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn--gold { background: var(--gold); color: var(--ink); font-weight: 700; }
.btn--gold:hover { background: var(--gold-hi); color: var(--ink); }
.btn--ghost { border-color: var(--text); color: var(--text); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn[disabled] { opacity: .55; cursor: progress; }

.diamond {
  width: 14px;
  height: 14px;
  margin-left: 3px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

/* ---------- Marke (Logo + Wortmarke) ----------------------------------------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--text);
}
.brand:hover { color: var(--text); }
.brand__logo { flex: none; width: 38px; height: 38px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.brand__name {
  font-size: clamp(15px, 1.5vw, 21px);
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--text);
}
.brand__tag {
  font: italic 400 clamp(13px, 1.05vw, 15px)/1.2 var(--serif);
  color: #bdb6ad;
}
.brand--sm .brand__logo { width: 32px; height: 32px; }
.brand--sm .brand__name { font-size: 15px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  height: var(--hero-h);
  background: var(--bg);
}

.hero__rail {
  flex: 0 0 var(--rail);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 30px;
  padding-bottom: 40px;
  background: var(--bg);
}
.hero__rail-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  font-size: 10px;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: #bdb6ad;
}
.hero__social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
}
.hero__social a { color: var(--text); }
.hero__social a:hover { color: var(--gold); }

.hero__media {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, #1c1c1c 0 12px, #161616 12px 24px);
}
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Vertikaler Verlauf wie im Design + dezenter Schatten rechts, damit die Headline auf hellen Bildstellen lesbar bleibt */
  background:
    linear-gradient(270deg, rgba(0, 0, 0, .38), rgba(0, 0, 0, 0) 60%),
    linear-gradient(180deg, rgba(0, 0, 0, .5), rgba(0, 0, 0, .1) 35%, rgba(0, 0, 0, .3) 70%, rgba(0, 0, 0, .85));
}

.hero__brand {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  width: clamp(240px, 27vw, 360px);
  height: clamp(80px, 10vw, 130px);
  padding: 0 clamp(16px, 2.4vw, 36px);
  background: var(--surface);
}

.main-nav {
  position: absolute;
  z-index: 3;
  top: 28px;
  right: clamp(20px, 4vw, 60px);
  left: calc(clamp(240px, 27vw, 360px) + 24px);
}
.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px clamp(16px, 2.6vw, 40px);
}
.main-nav a {
  display: block;
  padding: 6px 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--white);
}
.main-nav a:hover,
.main-nav a:focus-visible { color: var(--gold); }

.nav-toggle { display: none; }

.hero__content {
  position: absolute;
  z-index: 3;
  right: clamp(20px, 6vw, 100px);
  top: 30%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  max-width: 620px;
  text-align: right;
  text-shadow: 0 2px 28px rgba(0, 0, 0, .55);
}
.hero__title { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.hero__kicker {
  font-size: clamp(13px, 1.3vw, 19px);
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--white);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .7), 0 2px 26px rgba(0, 0, 0, .75);
}
.hero__headline {
  font-size: clamp(24px, 3vw, 44px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--white);
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: none; /* weiche Trennstellen (&shy;) nur auf sehr schmalen Handys nutzen, siehe unten */
}
.hero__content .btn { text-shadow: none; margin-top: 4px; }

/* ==========================================================================
   Über uns
   ========================================================================== */
.about { padding: clamp(56px, 6vw, 96px) var(--gutter) clamp(40px, 4vw, 60px); }
.about .watermark {
  left: clamp(10px, 5vw, 80px);
  top: clamp(130px, 13vw, 200px);
  font-size: clamp(64px, 8vw, 130px);
}
.about__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
  max-width: 1100px;
  margin: clamp(48px, 5vw, 80px) auto 0;
}
.about__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.about__focus { display: flex; flex-direction: column; gap: 24px; }
.about h3 {
  font-size: clamp(18px, 1.5vw, 21px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--white);
}
.about__text {
  font-size: clamp(14px, 1.05vw, 15px);
  line-height: 1.85;
  color: var(--text-soft);
  text-wrap: pretty;
}

.focus { display: flex; flex-direction: column; gap: 24px; }
.focus__item { display: flex; flex-direction: column; gap: 8px; }
.focus__label {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--text);
}
.focus__text { font-size: 13.5px; line-height: 1.6; color: var(--text-mute); }

.about__photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #161616;
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }

.rating {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
  margin-top: clamp(64px, 7vw, 110px);
}
.rating__score {
  font-size: clamp(90px, 11vw, 170px);
  font-weight: 800;
  line-height: .85;
  letter-spacing: -.04em;
  background: url("/assets/img/bewertung-fill-900.webp") center / cover, var(--gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .rating__score { color: var(--gold); background: none; }
}
.rating__meta {
  padding-bottom: 10px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .06em;
  line-height: 1.7;
  text-transform: uppercase;
  color: var(--white);
}
.rating__stars { display: flex; align-items: center; gap: 10px; color: var(--gold); }
.rating__stars svg { width: 82px; height: 15px; fill: currentColor; }

/* ==========================================================================
   Warum mit uns
   ========================================================================== */
.why {
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: clamp(40px, 4vw, 64px) 20px clamp(48px, 5vw, 72px);
}
.why__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.why__cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(16px, 3vw, 32px);
}
.why-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: clamp(160px, 16vw, 196px);
  min-height: 200px;
  padding: 22px 18px;
  background: rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  text-align: center;
}
.why-card__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--surface);
}
.why-card__icon::before {
  content: "";
  width: 8px;
  height: 8px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}
.why-card p {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .05em;
  line-height: 1.4;
  color: var(--white);
}

/* ==========================================================================
   Projekte
   ========================================================================== */
.projects { padding-top: clamp(48px, 5vw, 72px); }
.projects .section-title { margin-bottom: clamp(20px, 2vw, 28px); }
.projects__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }

.tile {
  position: relative;
  display: block;
  height: clamp(320px, 30vw, 460px);
  overflow: hidden;
  background: #161616;
  color: var(--white);
}
.tile:hover { color: var(--white); }
.tile:focus-visible { outline-offset: -5px; }
.tile__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s cubic-bezier(.2, .6, .2, 1);
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .85));
}
.tile__body {
  position: absolute;
  z-index: 1;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tile__tag { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.tile__title { font-size: 16px; font-weight: 600; line-height: 1.3; }
.tile__domain { font-size: 12px; color: #cfc9c2; }

.tile__img--showroom { object-position: 60% center; }

.tile--logo { background: radial-gradient(circle at 50% 40%, #1d2a24, #0b0f0d 70%); }
.tile--logo .tile__logo {
  position: absolute;
  left: 50%;
  top: 40%;
  width: 38%;
  max-width: 150px;
  height: auto;
  transform: translate(-50%, -50%);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  a.tile:hover .tile__img { transform: scale(1.045); }
}

/* ==========================================================================
   Partner
   ========================================================================== */
.partners {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: clamp(56px, 6vw, 90px) clamp(20px, 6vw, 100px);
}
.partners .watermark {
  right: clamp(10px, 5vw, 80px);
  top: clamp(100px, 9vw, 130px);
  font-size: clamp(56px, 7vw, 110px);
}
.partners__row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px clamp(28px, 5vw, 72px);
  width: 100%;
}
.partner { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.partner--logo { gap: 6px; }
.partner__logo { width: 40px; height: 40px; object-fit: contain; }
.partner__name { font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
.partner__name--light { font-weight: 300; letter-spacing: .25em; }
.partner__name--semi { font-weight: 600; }
.partner__name--brand { font-weight: 700; letter-spacing: .04em; text-transform: none; }
.partner__sub { font: italic 400 14px/1.3 var(--serif); color: var(--gold); }
.partners__claim { font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--white); }
.partners .btn, .voices .btn { position: relative; z-index: 1; }

/* ==========================================================================
   Kundenstimmen
   ========================================================================== */
.voices {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  padding: clamp(48px, 5vw, 72px) var(--gutter);
  background: var(--surface-2);
}
.voices__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 6vw, 90px);
  width: 100%;
  max-width: 1000px;
}
.voice {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  min-height: 200px;
  padding: 30px 32px;
  overflow: hidden;
  text-align: center;
}
.voice__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.voice::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, .8);
}
.voice blockquote p {
  font: italic 400 clamp(19px, 1.6vw, 22px)/1.5 var(--serif);
  color: var(--text);
  text-wrap: pretty;
}
.voice figcaption { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }

/* ==========================================================================
   Kontakt
   ========================================================================== */
.contact {
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 4vw, 56px);
  padding: clamp(64px, 6vw, 100px) var(--gutter) clamp(56px, 5vw, 80px);
}
.contact .watermark {
  right: clamp(10px, 5vw, 80px);
  top: clamp(30px, 3vw, 50px);
  font-size: clamp(56px, 7vw, 110px);
}
.contact .section-title { position: relative; z-index: 1; }
.contact__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 48px;
  align-items: start;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}
.contact__info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
  letter-spacing: .06em;
  line-height: 1.5;
}
.contact__name { font-weight: 600; color: var(--white); }
.contact__info a { color: var(--text); }
.contact__info a:hover { color: var(--gold); }
.contact__web { color: var(--text-mute); }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.form__field { min-width: 0; }
.form__field--wide { grid-column: 1 / -1; }
.form input,
.form textarea {
  display: block;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--field-line);
  border-radius: 0;
  background: var(--field);
  font-size: 14px;
  line-height: 1.4;
  color: var(--text);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form textarea { min-height: 128px; resize: vertical; }
.form ::placeholder { color: var(--text-mute); opacity: 1; }
.form input:focus,
.form textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.form input:user-invalid,
.form textarea:user-invalid { border-color: var(--danger); }
.form__foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin-top: 6px;
}
.form__hint { max-width: 40ch; font-size: 12px; line-height: 1.6; color: var(--text-mute); }
.form__hint a { text-decoration: underline; text-underline-offset: 3px; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-left: auto; }
.form__status { font-size: 13px; line-height: 1.5; color: var(--gold); }
.form__status[data-state="error"] { color: var(--danger); }

/* Honeypot: fuer Menschen unsichtbar, fuer Bots ein normales Feld */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--line); padding: 28px var(--gutter); }
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.site-footer__copy { font-size: 11px; letter-spacing: .08em; color: var(--text-mute); }
.site-footer__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: 11px; letter-spacing: .08em; color: var(--text-mute); }
.site-footer__meta ul { display: flex; gap: 24px; }
.site-footer__meta a { color: var(--text-mute); }
.site-footer__meta a:hover,
.site-footer__meta a[aria-current="page"] { color: var(--gold); }

/* ==========================================================================
   Unterseiten (Impressum, Datenschutz, Danke, 404)
   ========================================================================== */
.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 20px;
  padding: 24px clamp(20px, 6vw, 100px);
  background: var(--surface);
}
.page-header__back { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.page-header__back:hover { color: var(--gold); }

.legal {
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(56px, 6vw, 96px) 24px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--text-soft);
}
.legal__head { display: flex; flex-direction: column; gap: 10px; }
.legal__kicker { font-size: 11.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.legal h1 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .04em;
  color: var(--white);
}
.legal section { display: flex; flex-direction: column; gap: 8px; }
.legal h2 { font-size: 12.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--white); }
.legal h3 { font-size: 12.5px; font-weight: 600; letter-spacing: .12em; color: var(--gold); }
.legal ul { display: flex; flex-direction: column; gap: 4px; padding-left: 20px; list-style: disc; }
.legal a { text-decoration: underline; text-decoration-color: rgba(201, 162, 111, .45); text-underline-offset: 3px; }
.legal a:hover { text-decoration-color: currentColor; }
.legal .btn { align-self: flex-start; text-decoration: none; }
.legal--center { align-items: flex-start; min-height: 52vh; justify-content: center; }

/* ==========================================================================
   Responsive
   ========================================================================== */

/* --- Tablet / kleine Laptops: Mobil-Menue, 2-spaltige Raster ------------------ */
@media (max-width: 900px) {
  :root { --hero-h: clamp(540px, 88vh, 720px); }
  @supports (height: 1svh) {
    :root { --hero-h: clamp(540px, 88svh, 720px); }
  }

  .hero__rail { display: none; }
  .hero__media { position: absolute; inset: 0; }

  .hero__brand { width: auto; max-width: calc(100% - 76px); height: 72px; padding: 0 20px 0 16px; }

  .nav-toggle {
    position: absolute;
    z-index: 6;
    top: 12px;
    right: 14px;
    display: block;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    background: rgba(11, 11, 11, .7);
    color: var(--white);
    cursor: pointer;
  }
  .nav-toggle__bars,
  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .25s ease, background-color .2s ease;
  }
  .nav-toggle__bars { position: relative; margin: 0 auto; }
  .nav-toggle__bars::before,
  .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -6px; }
  .nav-toggle__bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 5, 5, .985);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility 0s linear .25s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transition: opacity .25s ease; }
  /* Marken-Kasten verschmilzt mit dem geöffneten Menü */
  .hero__brand { transition: background-color .25s ease; }
  html.nav-open .hero__brand { background: transparent; }
  .main-nav ul { flex-direction: column; align-items: center; gap: 4px; }
  .main-nav a { padding: 14px 24px; font-size: 18px; letter-spacing: .24em; text-transform: uppercase; }

  .hero__content {
    left: 20px;
    right: 20px;
    top: auto;
    bottom: clamp(28px, 6vh, 48px);
    max-width: none;
  }
  .hero__headline { font-size: clamp(22px, 5.6vw, 34px); }
  .hero__kicker { font-size: clamp(13px, 3.4vw, 17px); }

  .about__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about__photo { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .about__photo img { object-position: 50% 30%; }

  .projects__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { height: clamp(300px, 46vw, 400px); }

  .contact__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}

/* --- Smartphone -------------------------------------------------------------- */
@media (max-width: 640px) {
  .about__grid { grid-template-columns: minmax(0, 1fr); }
  .about__photo { aspect-ratio: 4 / 5; }
  .about__photo img { object-position: 50% 50%; }

  .projects__grid { grid-template-columns: minmax(0, 1fr); }
  .tile { height: clamp(280px, 78vw, 360px); }

  .voices__grid { grid-template-columns: minmax(0, 1fr); }
  .voice { padding: 28px 22px; }

  .why__cards { flex-direction: column; flex-wrap: nowrap; align-items: stretch; width: 100%; max-width: 440px; gap: 12px; }
  .why-card {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    width: 100%;
    min-height: 0;
    padding: 16px 18px;
    text-align: left;
  }

  .form { grid-template-columns: minmax(0, 1fr); }
  .form__foot { flex-direction: column; align-items: stretch; }
  .form__actions { margin-left: 0; }
  .form__actions .btn { width: 100%; }

  .rating { flex-direction: column; align-items: center; text-align: center; gap: 8px; }
  .rating__meta { padding-bottom: 0; }
  .rating__stars { justify-content: center; }

  .site-footer__inner,
  .site-footer__meta { flex-direction: column; align-items: flex-start; }
}

/* --- Sehr schmale Geraete ------------------------------------------------------ */
@media (max-width: 480px) {
  .hero__headline { hyphens: manual; }
}

/* --- Touch-Ziele --------------------------------------------------------------- */
@media (pointer: coarse) {
  .btn { min-height: 44px; }
  .form input { min-height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
