/* decor Bilderrahmen – Website-Stylesheet
   Werte aus dem decor Design System (projekt/design-system/tokens.json) */

@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/open-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/open-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/open-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  --decor-rot: #e31e24;
  --decor-orange: #ef7f1a;
  --decor-gelb: #ffed00;
  --anthrazit: #2b2a29;
  --surface: #ffffff;
  --surface-alt: #e9e7e8;
  --line: #e2ded8;
  --ink: #333333;
  --ink-muted: #666666;
  --akzent: #c8171d;
  --akzent-hover: #9e1116;
  --akzent-soft: #fde8e8;
  --on-akzent: #ffffff;
  --surface-raised: #ffffff;
  --space-1: 4px; --space-2: 8px; --space-4: 16px; --space-6: 24px; --space-12: 48px; --space-icon: 25px;
  --radius-sm: 4px; --radius-md: 8px; --radius-full: 9999px;
  --border-icon: 2px;
  --gutter: 80px;
  --font: "Open Sans", Arial, Helvetica, sans-serif;
  /* Bewegung */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

*, *::before, *::after { box-sizing: border-box; }
/* Skip-Link */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--akzent); color: var(--on-akzent); padding: 14px 22px; border-radius: 0 0 var(--radius-sm) var(--radius-sm); font: 600 15px/1.2 var(--font); text-decoration: none; }
.skip-link:focus { left: var(--space-4); top: var(--space-2); }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.7; color: var(--ink); background: var(--surface); }
img { max-width: 100%; display: block; }
a { color: var(--akzent); }
a:hover { color: var(--akzent-hover); }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 700; }
p { margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }

/* Rubrik-Label */
.label { font-size: 12px; line-height: 1.8; font-weight: 700; letter-spacing: 5px; text-transform: uppercase; color: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); padding: 14px 26px; border-radius: var(--radius-sm); font: 600 15px/1.2 var(--font); text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 160ms var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--akzent); color: var(--on-akzent); }
.btn-primary:hover { background: var(--akzent-hover); color: var(--on-akzent); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }

/* Kopfzeile */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .container { height: 96px; display: flex; align-items: center; justify-content: space-between; }
.logo img { width: 72px; height: 72px; }
.main-nav { display: flex; align-items: center; gap: 36px; font-size: 15px; font-weight: 600; }
.main-nav a { color: var(--ink); text-decoration: none; transition: color 150ms ease; }
.main-nav a:hover { color: var(--akzent); }
.main-nav a.btn-primary { color: var(--on-akzent); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; color: var(--ink); cursor: pointer; }
.nav-toggle, .call-mobile { transition: transform 160ms var(--ease-out); }
.nav-toggle:active, .call-mobile:active { transform: scale(0.94); }
.call-mobile { display: none; }

/* Hero */
.hero { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-alt) 100%); }
.hero .container { display: flex; align-items: center; gap: 80px; padding-top: 96px; padding-bottom: 96px; }
.hero-text { flex: 1 1 0; display: flex; flex-direction: column; gap: var(--space-6); max-width: 600px; }
.hero h1 { font-size: clamp(44px, 6vw, 72px); line-height: 1.05; }
.hero .sub { font-size: 20px; color: var(--ink-muted); }
.hero .actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-2); }
.hero-bild { flex: 0 1 560px; background: var(--surface-raised); padding: 28px; box-shadow: 0 24px 48px rgba(0,0,0,.12); }
.hero-bild img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

/* Abschnitte */
.section { padding: 112px 0; }
.section-head { display: flex; flex-direction: column; gap: var(--space-4); margin-bottom: 56px; }
.section-head.center { align-items: center; text-align: center; }
.section-head h2 { font-size: clamp(30px, 3.4vw, 44px); }
.section-head .intro { max-width: 720px; font-size: 17px; color: var(--ink-muted); }

/* Leistungen */
.leistungen { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 0; max-width: 980px; margin: 0 auto; padding: 0; list-style: none; font-size: clamp(18px, 2vw, 24px); line-height: 1.5; font-weight: 600; color: var(--ink); text-wrap: balance; }
.leistungen li { white-space: nowrap; }
.leistungen li::before { content: "·"; margin: 0 14px; color: var(--akzent); }
.leistungen li:last-child::after { content: "·"; margin: 0 14px; color: var(--akzent); }
.icon-kreis { width: 64px; height: 64px; flex-shrink: 0; border-radius: var(--radius-full); border: var(--border-icon) solid var(--akzent); color: var(--akzent); display: flex; align-items: center; justify-content: center; }
.icon-kreis.klein { width: 48px; height: 48px; }


/* Einblicke (Fotos) */
.einblicke-section { background: var(--surface-alt); }
.einblicke { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.einblick { margin: 0; background: var(--surface-raised); display: flex; flex-direction: column; }
.einblick img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.einblick figcaption { padding: 20px 24px 28px; display: flex; flex-direction: column; gap: 6px; }
.einblick h3 { font-size: 19px; }
.einblick p { font-size: 15px; line-height: 1.6; color: var(--ink-muted); }
.einblick.breit { grid-column: span 2; }
.einblick.breit img { flex: 1 1 0; min-height: 0; height: 0; aspect-ratio: auto; }
.bildhinweis { margin-top: var(--space-6); font-size: 12px; color: var(--ink-muted); text-align: right; }
@media (max-width: 1200px) {
  .einblicke { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .einblick.breit img { flex: none; height: auto; aspect-ratio: 21 / 9; }
  .einblick.breit-ende { grid-column: auto; }
  .einblick.breit-ende img { aspect-ratio: 3 / 2; }
}
@media (max-width: 900px) { .einblicke { grid-template-columns: 1fr; gap: 16px; } .einblick.breit { grid-column: auto; } .einblick.breit img { aspect-ratio: 3 / 2; } }

/* Rotes Band */
.band { background: var(--decor-rot); color: #fff; }
.band .container { display: flex; align-items: center; justify-content: space-between; gap: 64px; padding-top: 88px; padding-bottom: 88px; }
.band .label { color: #fff; }
.band .claim { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.2; font-weight: 700; max-width: 720px; margin-top: 12px; }
.band .zahl { display: flex; align-items: center; gap: var(--space-6); }
.band .zahl strong { font-size: clamp(72px, 9vw, 120px); line-height: 1; }
.band .zahl span { font-size: 18px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; line-height: 1.5; }

/* Bewertungen */
.bewertung-kopf { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; margin-bottom: 56px; }
.bewertung-kopf .section-head { margin-bottom: 0; }
.note { display: flex; align-items: center; gap: var(--space-6); padding: 24px 32px; background: var(--decor-orange); color: var(--anthrazit); }
.note strong { font-size: 56px; line-height: 1; }
.note small { display: block; font-size: 14px; color: var(--anthrazit); }
.note .sterne { color: var(--anthrazit); }
.sterne { display: flex; gap: 2px; color: var(--akzent); }
.karten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.karte { margin: 0; padding: 32px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); display: flex; flex-direction: column; gap: var(--space-4); }
.karte blockquote { margin: 0; flex-grow: 1; }
.karten.einzeln { grid-template-columns: minmax(0, 860px); }
.karten.einzeln .karte { padding: 40px 48px; }
.karten.einzeln blockquote { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.5; font-weight: 600; color: var(--ink); text-wrap: pretty; }
.karten.zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 860px; margin-top: var(--space-6); }
.karte blockquote { text-wrap: pretty; }
.karte footer { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-muted); border-top: 1px solid var(--line); padding-top: var(--space-4); }
.karte footer strong { color: var(--ink); }
.bewertung-links { display: flex; justify-content: flex-start; flex-wrap: wrap; gap: var(--space-4); margin-top: 56px; }

/* Besuch */
.besuch { background: var(--surface-alt); }
.besuch .container { display: flex; gap: 64px; }
.besuch-info { flex: 0 0 640px; display: flex; flex-direction: column; gap: 40px; }
.besuch-info .section-head { margin-bottom: 0; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
.info { background: var(--surface-raised); padding: 28px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.8; color: var(--ink-muted); }
.info .kopf { display: flex; align-items: center; gap: var(--space-4); }
.info a { color: var(--ink-muted); }
.info.breit { grid-column: span 2; }
.zeiten { display: grid; grid-template-columns: max-content 1fr; column-gap: var(--space-6); margin: 0; }
.zeiten dt, .zeiten dd { margin: 0; }

/* Karte mit Zwei-Klick-Lösung */
.karte-map { flex: 1 1 0; position: relative; min-height: 560px; overflow: hidden; background: #e6e3df; border: 1px solid #d5d1cc; }
.karte-map > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.karte-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.osm-credit { position: absolute; right: 0; bottom: 0; background: rgba(255,255,255,.85); padding: 2px 6px; font-size: 11px; color: var(--ink-muted); }
.consent { position: absolute; inset: 0; background: rgba(255,255,255,.72); display: flex; align-items: center; justify-content: center; padding: 40px; }
.consent-box { width: 440px; max-width: 100%; background: var(--surface-raised); padding: 32px; box-shadow: 0 16px 40px rgba(0,0,0,.14); display: flex; flex-direction: column; gap: 14px; }
.consent-box h3 { font-size: 22px; line-height: 1.3; }
.consent-box p { font-size: 15px; line-height: 1.65; color: var(--ink-muted); }
.consent-box .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

/* Rechtstexte */
.seitenkopf { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-alt) 100%); }
.seitenkopf .container { padding-top: 64px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 12px; }
.seitenkopf h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.1; }
.breadcrumb { font-size: 13px; color: var(--ink-muted); }
.breadcrumb a { color: var(--ink-muted); }
.rechtstext .container { display: flex; gap: 96px; padding-top: 72px; padding-bottom: 96px; }
.toc { flex: 0 0 280px; display: flex; flex-direction: column; gap: 14px; font-size: 14px; position: sticky; top: 120px; align-self: flex-start; }
.toc a { color: var(--ink-muted); text-decoration: none; }
.toc a:hover { color: var(--akzent); text-decoration: underline; }
.toc hr { width: 100%; border: 0; border-top: 1px solid var(--line); margin: 10px 0; }
.rechtstext article { flex: 0 1 760px; display: flex; flex-direction: column; gap: 48px; }
.rechtstext article section { display: flex; flex-direction: column; gap: 12px; }
.rechtstext h2 { font-size: 26px; line-height: 1.3; }
.kasten { background: var(--surface-alt); padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.kasten-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
.rechte { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; margin: 0; padding-left: 20px; }
.hinweis { color: var(--ink-muted); }

/* Fußzeile */
.site-footer { border-top: var(--border-icon) solid var(--ink); font-size: 14px; color: var(--ink-muted); }
.site-footer .container { padding-top: 40px; padding-bottom: 40px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); }
.site-footer .firma { display: flex; align-items: center; gap: 20px; }
.site-footer img { width: 56px; height: 56px; }
.site-footer nav { display: flex; gap: 32px; }
.site-footer a { color: var(--ink-muted); }
.site-footer a[aria-current="page"] { color: var(--ink); font-weight: 700; }

/* Tablet */
@media (max-width: 1200px) {
  :root { --gutter: 40px; }
  .besuch .container { flex-direction: column; }
  .besuch-info { flex-basis: auto; }
  .karte-map { min-height: 420px; }
}

/* Handy */
@media (max-width: 900px) {
  :root { --gutter: 16px; }
  html { scroll-padding-top: 84px; }
  .site-header .container { height: 76px; }
  .logo img { width: 56px; height: 56px; }
  .nav-toggle, .call-mobile { display: inline-flex; align-items: center; justify-content: center; }
  .call-mobile { width: 44px; height: 44px; border-radius: 50%; background: var(--akzent); color: #fff; }
  .header-actions { display: flex; align-items: center; gap: 8px; }
  .main-nav { position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 2px solid var(--ink); font-size: 17px;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 150ms var(--ease-out), transform 150ms var(--ease-out), visibility 0s linear 150ms; }
  .main-nav.offen { visibility: visible; opacity: 1; transform: translateY(0);
    transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s; }
  .main-nav a { padding: 16px; border-bottom: 1px solid var(--line); }
  .main-nav .btn-primary { display: none; }
  .hero .container { flex-direction: column; align-items: stretch; gap: 32px; padding-top: 40px; padding-bottom: 48px; }
  .hero-bild { flex-basis: auto; padding: 16px; }
  .hero .actions { flex-direction: column; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .leistungen { flex-direction: column; align-items: center; gap: 6px; font-size: 18px; }
  .leistungen li::before, .leistungen li:last-child::after { content: none; }
  .band .container { flex-direction: column; align-items: flex-start; gap: 24px; padding-top: 56px; padding-bottom: 56px; }
  .bewertung-kopf { flex-direction: column; align-items: stretch; gap: 24px; margin-bottom: 24px; }
  .note { padding: 20px; }
  .note strong { font-size: 44px; }
  .karten, .karten.zwei { grid-template-columns: 1fr; }
  .karten.einzeln .karte { padding: 28px 24px; }
  .bewertung-links { flex-direction: column; margin-top: 32px; }
  .besuch-info { gap: 16px; }
  .info-grid { grid-template-columns: 1fr; gap: 16px; }
  .info.breit { grid-column: auto; }
  .karte-map { min-height: 380px; }
  .consent { padding: 16px; }
  .consent-box { padding: 24px; }
  .consent-box .actions { flex-direction: column; }
  .rechtstext .container { flex-direction: column; gap: 40px; padding-top: 40px; padding-bottom: 64px; }
  .toc { position: static; flex-basis: auto; }
  .kasten-grid, .rechte { grid-template-columns: 1fr; }
  .site-footer .container { flex-direction: column; text-align: center; }
  .site-footer .firma { flex-direction: column; }
}

/* Werkstatt-Maße: Bemaßung am Einstiegsbild, Abschnittsnummern, Lineal als Trenner */
:root {
  --mass: var(--akzent);
  --mass-text: 11px;
  --lineal: color-mix(in srgb, var(--ink) 28%, transparent);
}

.mass-text { font-size: var(--mass-text); line-height: 1.4; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Einstiegsbild als Werkstattzeichnung */
.hero-zeichnung { flex: 0 1 560px; position: relative; }
.hero-zeichnung .hero-bild { flex: none; }

.hero-zeichnung { padding-top: 56px; }
.hero-bild { border: 8px solid var(--anthrazit); }
.hinweis { position: absolute; top: var(--oben, 0px); }
.hinweis::after { content: ""; position: absolute; top: 20px; width: 1px; height: var(--tiefe); background: var(--mass); }
.hinweis::before { content: ""; position: absolute; top: calc(20px + var(--tiefe) - 3px); width: 7px; height: 7px; margin-left: -3px; border-radius: var(--radius-full); background: var(--mass); z-index: 1; }
.hinweis.links { left: var(--x); }
.hinweis.links::after, .hinweis.links::before { left: 0; }
.hinweis.rechts { right: var(--x); }
.hinweis.rechts::after { right: 0; }
.hinweis.rechts::before { right: -3px; margin-left: 0; }
.hinweis.mitte { left: 50%; transform: translateX(-50%); }
.hinweis.mitte::after, .hinweis.mitte::before { left: 50%; }

/* Maßlinie: Endstriche links/rechts, Linie läuft bis an den Text */
.masslinie { display: flex; align-items: center; gap: 12px; height: 14px; margin-top: 20px; border-left: 1px solid var(--mass); border-right: 1px solid var(--mass); }
.masslinie::before, .masslinie::after { content: ""; flex: 1 1 0; height: 1px; background: var(--mass); }

/* Abschnittsnummern wie Positionen einer Zuschnittliste */
[data-nr]::before { content: attr(data-nr); color: var(--mass); margin-right: 14px; font-variant-numeric: tabular-nums; }
.einblicke { counter-reset: abb; }
.einblick { counter-increment: abb; }
.einblick .label::before { content: "Abb. " counter(abb, decimal-leading-zero) " · "; }

/* Lineal als Abschnittstrenner: kurze Striche alle 8px, lange alle 80px */
.section { position: relative; }
.section::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 12px;
  background:
    repeating-linear-gradient(90deg, var(--lineal) 0 1px, transparent 1px 8px) top left / 100% 5px no-repeat,
    repeating-linear-gradient(90deg, var(--lineal) 0 1px, transparent 1px 80px) top left / 100% 12px no-repeat; }

@media (max-width: 900px) {
  .hero-zeichnung { flex-basis: auto; }
  .hero-bild { border-width: 6px; }
}

/* Zielpunkte der Hinweislinien (Rahmen 8px, Passepartout 28px; mobil 6px / 16px) */
.hinweis.pp { --x: 22px; --tiefe: 58px; }
.hinweis.leiste { --x: 4px; --tiefe: 40px; }
.hinweis.bild { --oben: 28px; --tiefe: 84px; }  /* eine Zeile tiefer, sonst stößt es an „Passepartout“ */
@media (max-width: 900px) {
  .hinweis.pp { --x: 14px; --tiefe: 50px; }
  .hinweis.leiste { --x: 3px; --tiefe: 39px; }
  .hinweis.bild { --tiefe: 60px; }
}

/* Einblenden beim Scrollen – nur aktiv, wenn main.js .reveal-ready setzt (ohne JS bleibt alles sichtbar) */
.reveal-ready [data-reveal="fade"] { opacity: 0; transform: translateY(8px); transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); }
.reveal-ready [data-reveal="fade"][data-visible] { opacity: 1; transform: translateY(0); }
.reveal-ready [data-reveal="bild"] { clip-path: inset(0 0 100% 0); transition: clip-path 600ms var(--ease-in-out); }
.reveal-ready [data-reveal="bild"][data-visible] { clip-path: inset(0 0 0 0); }

/* Reduzierte Bewegung: keine Positionswechsel, nur sanftes Einblenden */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .main-nav, .main-nav.offen { transform: none; }
  .reveal-ready [data-reveal] { opacity: 0; transform: none; clip-path: none; transition: opacity 200ms ease; }
  .reveal-ready [data-reveal][data-visible] { opacity: 1; }
}

@media print {
  .reveal-ready [data-reveal] { opacity: 1; transform: none; clip-path: none; }
}
