/* coast communication – Stylesheet
   Schriften lokal gehostet, keine externen Ressourcen. */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #f6f5f1;
  --paper-2: #ecebe5;
  --ink: #1d2321;
  --ink-2: #4b5452;
  --muted: #5f6866;
  --line: #d5d4cd;
  --patina: #2f6a5c;       /* Grün aus der Kupferfassade – Text/Links (AA-Kontrast) */
  --patina-soft: #8fb3a6;
  --wood: #9a5b34;
  --white: #ffffff;

  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --maxw: 84rem;
  --section: clamp(5rem, 12vw, 10rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(1.0625rem, 0.98rem + 0.3vw, 1.1875rem);
  line-height: 1.6;
  font-weight: 400;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--patina); }
:focus-visible { outline: 2px solid var(--patina); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-weight: 400; margin: 0; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

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

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 0.75rem 1rem; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--paper); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; height: 4.5rem; }

.brand { display: inline-flex; align-items: baseline; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.brand-logo { display: block; width: 6.25rem; height: auto; filter: brightness(0); opacity: 0.9; }
.brand-sub { font-size: 0.8125rem; letter-spacing: 0.08em; color: var(--muted); }
.brand:hover .brand-logo { opacity: 0.7; }

.nav ul { display: flex; gap: clamp(1rem, 2.5vw, 2.25rem); }
.nav a { text-decoration: none; font-size: 0.9375rem; color: var(--ink-2); padding: 0.5rem 0; }
.nav a:hover { color: var(--patina); }

.nav-back { text-decoration: none; font-size: 0.9375rem; color: var(--ink-2); padding: 0.75rem 0; }
.legal code { font-size: 0.9em; background: var(--paper-2); padding: 0.1em 0.35em; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 0.75rem 0; margin: 0;
  font: inherit; font-size: 0.9375rem; color: var(--ink); cursor: pointer;
}

@media (max-width: 47.99em) {
  .nav-toggle { display: block; }
  .nav ul {
    display: none; position: absolute; left: 0; right: 0; top: 4.5rem;
    flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.5rem;
  }
  .nav.is-open ul { display: flex; }
  .nav a { display: block; font-size: 1.25rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .nav li:last-child a { border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(4rem, 12vw, 9rem); padding-bottom: clamp(3rem, 7vw, 6rem); }
.eyebrow {
  display: block; font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 2rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 1.2rem + 5.6vw, 6.25rem);
  font-weight: 300; letter-spacing: -0.035em; line-height: 1.02;
  max-width: 14ch;
}
.hero h1 em { font-style: italic; font-weight: 300; color: var(--patina); }
.hero-text {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 1.5rem;
  margin-top: clamp(2.5rem, 6vw, 5rem);
}
.hero-text p {
  grid-column: 6 / span 6; font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.5rem);
  line-height: 1.5; color: var(--ink-2); max-width: 36em;
}
@media (max-width: 47.99em) { .hero-text p { grid-column: 1 / -1; } }

.figure-wide { margin: 0; }
.figure-wide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 47.99em) { .figure-wide img { aspect-ratio: 4 / 3; } }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section--tint { background: var(--paper-2); }

.grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 1.5rem; row-gap: 2.5rem; }
.section-head { grid-column: 1 / span 4; }
.section-body { grid-column: 6 / span 7; }
@media (max-width: 63.99em) {
  .section-head { grid-column: 1 / -1; }
  .section-body { grid-column: 1 / -1; }
}

.section-label {
  display: flex; gap: 0.75rem; align-items: baseline;
  font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 1.25rem;
}
.section-label span { color: var(--patina); font-variant-numeric: tabular-nums; }
.section h2 { font-size: clamp(1.875rem, 1.2rem + 2.2vw, 3rem); font-weight: 300; }

.lead { font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem); color: var(--ink-2); max-width: 34em; }

/* Leistungen */
.services { border-top: 1px solid var(--ink); }
.services li {
  padding: 1.25rem 0; border-bottom: 1px solid var(--line);
  font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.375rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1.2;
}
.services-note { margin-top: 2.5rem; }

/* Bildpaar – beide Bilder gleich hoch */
.photo-pair { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 1.5rem; row-gap: 1.5rem; }
.photo-pair figure { margin: 0; }
.photo-pair img { width: 100%; height: clamp(18rem, 38vw, 36rem); object-fit: cover; }
.photo-pair .p1 { grid-column: 1 / span 7; }
.photo-pair .p2 { grid-column: 9 / span 4; }
@media (max-width: 47.99em) {
  .photo-pair .p1, .photo-pair .p2 { grid-column: 1 / -1; }
  .photo-pair img { height: 75vw; }
}

/* Branchen */
.industries { columns: 2; column-gap: 1.5rem; border-top: 1px solid var(--ink); }
.industries li {
  break-inside: avoid; padding: 1rem 0; border-bottom: 1px solid var(--line);
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
}
@media (max-width: 35.99em) { .industries { columns: 1; } }

/* Referenzen */
.clients {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
  margin-top: 3.5rem;
}
.clients li {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: clamp(7rem, 12vw, 10rem); padding: 1.5rem 1rem;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}
.clients img { width: auto; height: auto; max-width: min(78%, 11rem); max-height: 3.25rem; opacity: 0.72; }
.clients img.tall { max-height: 5.25rem; }
.clients img.wide { max-width: min(90%, 15rem); max-height: 2.25rem; }
.clients .pair { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
/* Platzhalter-Wortmarke, solange keine Logo-Dateien vorliegen */
.clients .wordmark { font-size: clamp(0.9375rem, 0.85rem + 0.35vw, 1.1875rem); font-weight: 600; letter-spacing: 0.01em; line-height: 1.25; }
@media (max-width: 47.99em) { .clients { grid-template-columns: repeat(2, 1fr); } }

/* Ansprechpartner */
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: 3.5rem; }
.person { margin: 0; }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper-2); }
.person h3 { font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.875rem); font-weight: 400; margin-top: 1.5rem; }
.person p { margin: 0.25rem 0 0; color: var(--ink-2); }
.person a { color: var(--ink); }
.person a:hover { color: var(--patina); }
@media (max-width: 35.99em) { .people { grid-template-columns: 1fr; } }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 1.5rem; row-gap: 3rem; }
.contact-main { grid-column: 1 / span 6; }
.contact-main h2 { font-size: clamp(2.25rem, 1.2rem + 4vw, 4.5rem); font-weight: 300; letter-spacing: -0.03em; }
.contact-main .big-link { display: inline-block; margin-top: 2rem; font-size: clamp(1.25rem, 1rem + 1vw, 1.875rem); font-weight: 300; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 0.15em; word-break: break-word; }
.contact-details { grid-column: 8 / span 5; font-style: normal; }
.contact-details dl { margin: 0; display: grid; grid-template-columns: 7rem 1fr; row-gap: 0.85rem; }
.contact-details dt { color: var(--muted); font-size: 0.875rem; letter-spacing: 0.06em; text-transform: uppercase; padding-top: 0.2em; }
.contact-details dd { margin: 0; }
@media (max-width: 63.99em) { .contact-main, .contact-details { grid-column: 1 / -1; } }
@media (max-width: 35.99em) {
  .contact-details dl { grid-template-columns: 1fr; row-gap: 0.15rem; }
  .contact-details dd + dt { margin-top: 1rem; }
}
.nw { white-space: nowrap; }

/* Karte (nur nach Einwilligung) */
.map { grid-column: 1 / -1; margin-top: 1rem; }
.map-frame { position: relative; aspect-ratio: 21 / 9; background: var(--paper-2); border: 1px solid var(--line); }
@media (max-width: 47.99em) { .map-frame { aspect-ratio: 4 / 3; } }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(0.85); }
.map-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: clamp(1.5rem, 4vw, 3rem); gap: 1rem; max-width: 40rem;
}
.map-placeholder p { margin: 0; color: var(--ink-2); font-size: 0.9375rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.875rem; padding: 0.7rem 1.4rem;
  font: inherit; font-size: 0.9375rem; font-weight: 500; letter-spacing: 0.01em;
  border: 1px solid var(--ink); border-radius: 0; cursor: pointer;
  background: transparent; color: var(--ink); text-decoration: none;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--patina); border-color: var(--patina); color: var(--white); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
.link-btn:hover { color: var(--patina); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9ceca; padding: 4rem 0 3rem; font-size: 0.9375rem; }
.site-footer a, .site-footer .link-btn { color: #e8ebe8; }
.site-footer a:hover, .site-footer .link-btn:hover { color: var(--patina-soft); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; align-items: flex-end; }
.footer-brand { color: #e8ebe8; }
.footer-brand .brand-logo { width: 7.5rem; filter: brightness(0) invert(1); opacity: 0.92; }
.footer-brand p { margin: 0.75rem 0 0; color: #a9b0ad; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }

/* ---------- Rechtstexte ---------- */
.legal { padding: clamp(3.5rem, 9vw, 7rem) 0 var(--section); }
.legal .wrap > * { max-width: 46rem; }
.legal h1 { font-size: clamp(2.25rem, 1.4rem + 3.5vw, 4rem); font-weight: 300; letter-spacing: -0.03em; margin-bottom: 1rem; }
.legal .meta { color: var(--muted); margin-bottom: 3.5rem; }
.legal h2 { font-size: clamp(1.375rem, 1.15rem + 0.8vw, 1.75rem); font-weight: 400; margin: 3.5rem 0 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.legal h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: 0; margin: 2rem 0 0.5rem; }
.legal ul { list-style: disc; padding-left: 1.25rem; margin: 0 0 1em; }
.legal li { margin-bottom: 0.4em; }
.legal address { font-style: normal; margin-bottom: 1em; }
.legal a { color: var(--patina); }

/* Deutlich markierte Platzhalter – vor Veröffentlichung ersetzen */
.todo {
  background: #fff1b8; color: #5a4300; padding: 0.05em 0.35em; border-radius: 2px;
  font-weight: 600; font-size: 0.95em; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

/* ---------- Cookie-Consent ---------- */
.consent {
  position: fixed; z-index: 50; left: var(--gutter); right: var(--gutter); bottom: var(--gutter);
  max-width: 34rem; margin-left: auto;
  background: var(--white); color: var(--ink);
  border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(29, 35, 33, 0.14);
  padding: clamp(1.25rem, 3vw, 2rem);
  max-height: calc(100vh - 2 * var(--gutter)); overflow-y: auto;
}
.consent[hidden] { display: none; }
.consent h2 { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 0.75rem; }
.consent p { font-size: 0.9375rem; color: var(--ink-2); line-height: 1.55; }
.consent p a { color: var(--patina); }
.consent-options { margin: 1.25rem 0 0.5rem; border-top: 1px solid var(--line); }
.consent-option { display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.consent-option strong { font-weight: 600; font-size: 0.9375rem; }
.consent-option small { grid-column: 1 / 2; color: var(--muted); font-size: 0.8125rem; line-height: 1.5; }
.consent-option .switch { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 1.25rem; }
.consent-actions .btn { width: 100%; }
.consent-actions .btn--full { grid-column: 1 / -1; }
@media (max-width: 23.99em) { .consent-actions { grid-template-columns: 1fr; } }

/* Schalter */
.switch { position: relative; display: inline-block; width: 2.75rem; height: 1.5rem; }
.switch input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: #b9bdb8; border-radius: 999px; transition: background .2s; }
.switch span::after { content: ""; position: absolute; left: 0.1875rem; top: 0.1875rem; width: 1.125rem; height: 1.125rem; background: var(--white); border-radius: 50%; transition: transform .2s; }
.switch input:checked + span { background: var(--patina); }
.switch input:checked + span::after { transform: translateX(1.25rem); }
.switch input:disabled + span { opacity: 0.55; }
.switch input:focus-visible + span { outline: 2px solid var(--patina); outline-offset: 3px; }

.contact-cta { margin-top: 2.25rem; }
.contact-cta .btn { min-height: 3.25rem; padding: 0.85rem 1.9rem; font-size: 1rem; }

/* ---------- Kontaktformular ---------- */
.form { max-width: 40rem; margin-top: 1rem; }
.field { margin-bottom: 1.5rem; }
.field label { display: block; font-size: 0.875rem; letter-spacing: 0.04em; color: var(--ink-2); margin-bottom: 0.4rem; }
.field .opt { color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1.0625rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: 0;
  padding: 0.8rem 0.9rem; -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 11rem; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--patina); outline-offset: 0; border-color: var(--patina); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
@media (max-width: 35.99em) { .field-row { grid-template-columns: 1fr; } }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.875rem; color: var(--muted); margin: 0 0 1.5rem; }
.form-msg { padding: 1rem 1.25rem; margin: 0 0 2rem; border-left: 3px solid var(--patina); background: var(--white); }
.form-msg--error { border-left-color: #a33a2a; }

.map-link { margin: 0.75rem 0 0; font-size: 0.9375rem; }
.map-link a { color: var(--ink-2); }
