/* Glaserei Eiselbrecher: helle Glasfarben, Glasschneider freigestellt neben der Schlagzeile, Schneidrad-Band mit Verbandszeile, Ablauf als Ritzlinie. Abstände nur aus 4, 8, 16, 24, 32, 48, 64, 96. */
@view-transition { navigation: auto; }

:root {
  --bg: #eef4f2;
  --soft: #e1ebe8;
  --surface: #f9fcfb;
  --heading: #10262b;
  --text: #1f3338;
  --muted: #4a5f64;
  --accent: #0a6670;
  --accent-dark: #074e56;
  --line: #b9ccc8;
  --ink: #10262b;
  --on-dark: #e8f1ef;
  --glass: #9fd3d0;

  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 32px; --s6: 48px; --s7: 64px; --s8: 96px;
  --r: 8px;
  --shadow: 0 0 32px rgba(16, 38, 43, 0.16);
  --h: 72px;
  --pad: var(--s4);
  --section: var(--s7);

  --sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (min-width: 768px) { :root { --pad: var(--s5); --section: var(--s8); } }
@media (min-width: 1200px) { :root { --pad: var(--s6); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
  line-height: 1.6;
  hyphens: auto;
  overflow-wrap: break-word;
}
@media (max-width: 767px) { body { padding-bottom: var(--s8); } }

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--sans); color: var(--heading); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; max-width: 60ch; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.dark :focus-visible, .callbar :focus-visible { outline-color: #ffffff; }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--pad); }

/* Kopfzeile */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--h); background: var(--surface); color: var(--heading); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: var(--s2); height: 100%; }
.brand {
  font-weight: 800; font-size: 1.25rem; line-height: 1.15; letter-spacing: -0.01em;
  color: var(--heading); text-decoration: none; margin-right: auto;
  min-height: 44px; display: inline-flex; align-items: center; gap: var(--s2);
}
.brand small { display: none; font-weight: 500; font-size: 0.9375rem; letter-spacing: 0; color: var(--muted); }
@media (min-width: 480px) { .brand { font-size: 1.5rem; } .brand small { display: inline; } }

.hcall {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 44px; min-width: 44px; padding: 0 var(--s2);
  background: var(--accent); color: #ffffff; border-radius: var(--r);
  font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color 0.18s ease-out;
}
.hcall:hover { background: var(--accent-dark); }
.hcall span { display: none; }
.hcall svg, .nav-toggle svg { width: 24px; height: 24px; flex: none; }

.nav-toggle {
  display: none; align-items: center; gap: var(--s2);
  min-height: 44px; padding: 0 var(--s2);
  background: none; border: 0; border-radius: var(--r);
  color: var(--heading); font: inherit; font-weight: 600; cursor: pointer;
}
.js .nav-toggle { display: inline-flex; }

.nav {
  position: absolute; left: 0; right: 0; top: 100%;
  display: flex; flex-direction: column;
  padding: var(--s2) var(--pad) var(--s4);
  background: var(--surface); box-shadow: var(--shadow);
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity 0.2s ease-out, transform 0.2s ease-out, visibility 0s linear 0.2s;
}
.nav.open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.nav a { display: flex; align-items: center; min-height: 56px; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em; color: var(--heading); text-decoration: none; border-bottom: 1px solid var(--line); }
.nav a[aria-current="true"] { color: var(--accent-dark); }
html:not(.js) .nav { display: none; }

@media (min-width: 768px) {
  .bar { gap: var(--s5); }
  .brand { margin-right: 0; white-space: nowrap; }
  .nav { position: static; margin-left: auto; flex-direction: row; gap: var(--s5); padding: 0; background: none; box-shadow: none; visibility: visible; opacity: 1; transform: none; transition: none; }
  html:not(.js) .nav { display: flex; }
  .nav a { min-height: 44px; font-size: 1rem; font-weight: 500; letter-spacing: 0; border-bottom: 0; color: var(--text); transition: color 0.18s ease-out; }
  .nav a:hover { color: var(--accent-dark); }
  .nav a[aria-current="true"] { color: var(--accent-dark); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
  .hcall { padding: 0 var(--s3); }
  .hcall span { display: inline; }
  .nav-toggle, .js .nav-toggle { display: none; }
}

/* Knöpfe */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 var(--s5);
  border-radius: var(--r); border: 0;
  background: var(--accent); color: #ffffff;
  font: inherit; font-weight: 600; text-decoration: none; text-align: center;
  transition: background-color 0.18s ease-out, transform 0.18s ease-out;
}
.btn:hover { background: var(--accent-dark); }
.btn:active { transform: translateY(1px); }
.btn-line { background: transparent; color: var(--heading); box-shadow: inset 0 0 0 2px var(--heading); }
.btn-line:hover { background: var(--heading); color: var(--on-dark); }
.textlink { display: inline-flex; align-items: center; min-height: 48px; color: inherit; font-weight: 600; text-underline-offset: 6px; text-decoration-thickness: 2px; transition: opacity 0.18s ease-out; }
.textlink:hover { opacity: 0.75; }

/* Start: Schlagzeile links, Glasschneider freigestellt rechts, Ritzlinie unten */
.hero { scroll-margin-top: var(--h); padding-block: var(--s6) var(--section); }
.hero-grid { display: grid; gap: var(--s5); }
.eyebrow { font-size: 0.9375rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: var(--s3); }
.hero h1 { font-size: clamp(2.25rem, 1.3rem + 3.2vw, 4rem); max-width: 9em; }
.lead { margin-top: var(--s4); max-width: 34ch; }
.hero-actions { margin-top: var(--s4); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); }
.hero-actions .btn { width: 100%; }
.cutter { margin: 0; }
.cutter img { width: 100%; mix-blend-mode: multiply; }
.score { position: relative; height: 2px; margin-top: var(--s6); background: var(--heading); }
.score::after { content: ""; position: absolute; right: 25%; top: -3px; width: 48px; height: 8px; background: var(--bg); border-left: 2px solid var(--heading); border-right: 2px solid var(--heading); transform: skewX(-30deg); }

@media (min-width: 768px) {
  .hero { padding-block: var(--s7) var(--section); }
  .hero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--s5); align-items: center; }
  .hero-actions .btn { width: auto; }
  .score { margin-top: var(--s7); }
}

/* Abschnitte */
.section { padding-block: var(--section); scroll-margin-top: var(--h); }
.section-title { font-size: clamp(2rem, 1.2rem + 2.4vw, 3.25rem); max-width: 10em; }

/* Innung: dunkles Band mit dem Schneidrad */
.innung { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--on-dark); }
.innung-photo { position: absolute; inset: 0; z-index: -2; margin: 0; }
.innung-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.innung::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(16, 38, 43, 0.96) 0%, rgba(16, 38, 43, 0.9) 55%, rgba(16, 38, 43, 0.72) 100%); }
@media (min-width: 768px) {
  .innung::before { background: linear-gradient(90deg, rgba(16, 38, 43, 0.94) 0%, rgba(16, 38, 43, 0.84) 40%, rgba(16, 38, 43, 0.2) 100%); }
}
.innung h2 { color: #ffffff; }
.innung .lede { margin-top: var(--s4); max-width: 38ch; font-size: 1.1875rem; }
.facts { list-style: none; margin: var(--s6) 0 0; padding: 0; display: grid; gap: 0; border-top: 2px solid var(--glass); max-width: 640px; }
.facts li { display: grid; gap: var(--s1); padding-block: var(--s3); border-bottom: 1px solid rgba(232, 241, 239, 0.32); }
.facts .k { font-size: 0.9375rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--glass); }
.facts .v { font-size: 1.25rem; font-weight: 700; color: #ffffff; line-height: 1.3; }
@media (min-width: 768px) {
  .facts li { grid-template-columns: 200px 1fr; align-items: baseline; gap: var(--s4); }
}

/* Anfrage: drei Schritte entlang einer Ritzlinie */
.steps { list-style: none; margin: var(--s6) 0 0; padding: 0 0 0 var(--s6); position: relative; counter-reset: schritt; max-width: 720px; }
.steps::before { content: ""; position: absolute; left: 11px; top: var(--s1); bottom: var(--s1); width: 2px; background: var(--heading); }
.steps li { position: relative; counter-increment: schritt; padding-bottom: var(--s5); }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: counter(schritt); position: absolute; left: -48px; top: 0; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--heading); color: #ffffff; font-size: 0.875rem; font-weight: 700; }
.steps h3 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); }
.steps p { margin-top: var(--s2); }
.steps a { text-underline-offset: 4px; font-weight: 600; hyphens: none; overflow-wrap: anywhere; }
.kontakt address a { hyphens: none; overflow-wrap: anywhere; }

/* Kontakt */
.kontakt { background: var(--soft); }
.kontakt-grid { display: grid; gap: var(--s5); }
.bignum {
  display: inline-block; margin-top: var(--s4);
  font-weight: 800; letter-spacing: -0.02em; color: var(--heading); line-height: 1.3; padding-block: var(--s1);
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.75rem);
  text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; text-decoration-color: var(--accent);
  transition: opacity 0.18s ease-out;
}
.bignum:hover { opacity: 0.8; }
.kontakt address { margin-top: var(--s4); font-style: normal; font-size: 1.125rem; }
.kontakt address a { text-underline-offset: 4px; }
.actions { margin-top: var(--s5); display: flex; flex-wrap: wrap; gap: var(--s3); }

/* Fuß */
.site-footer { background: var(--ink); color: var(--on-dark); padding-block: var(--s6); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s6); justify-content: space-between; align-items: center; }
.site-footer .name { font-weight: 800; font-size: 1.125rem; color: #ffffff; }
.site-footer .links { display: flex; gap: var(--s4); }
.site-footer .links a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 4px; }

/* Feste Anrufleiste auf dem Handy */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: var(--s3) var(--pad) calc(var(--s3) + env(safe-area-inset-bottom)); background: var(--ink); box-shadow: var(--shadow); }
.callbar .btn { width: 100%; }
.js .callbar { transform: translateY(100%); transition: transform 0.25s ease-out; }
.js .callbar.show { transform: none; }
@media (prefers-reduced-motion: reduce) { .js .callbar { transition: none; } }
@media (min-width: 768px) { .callbar { display: none; } }

/* Rechtliche Seiten */
.legal { padding-block: var(--s7) var(--s8); }
.legal h1 { font-size: clamp(2.25rem, 1.4rem + 2.6vw, 3.5rem); margin-bottom: var(--s6); }
.legal h2 { font-size: 1.5rem; margin: var(--s6) 0 var(--s2); }
.legal p, .legal li { max-width: 65ch; }
.legal ul { padding-left: var(--s4); margin: var(--s3) 0 0; }
.legal li + li { margin-top: var(--s2); }
.legal a { text-underline-offset: 4px; }
.todo { background: #fbe7a1; color: var(--heading); padding: 0 var(--s1); border-radius: 4px; }

/* Bewegung: einmal einblenden, nur mit Skript und nur ohne Bewegungsreduzierung */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
  .js .rv.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; }
}
