/* STIEGLER Torsysteme – statischer OnePager
   Aufbau nach dem Muster 110_preisundpreis. Farben aus dem bisherigen Auftritt:
   Stiegler-Blau #00559E, Grau aus dem Logo. Bewusst hell, ruhig, klassisch. */

@font-face { font-family: "Lora"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/lora-400.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/lora-500.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/lora-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/lora-600.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-400.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/source-sans-3-500.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/source-sans-3-600.woff2") format("woff2"); }

:root {
  --blue: #00559e;
  --blue-dark: #004580;
  --blue-deep: #003a6b;
  --blue-tint: #e8f1f9;
  --grey: #6b6b6a;          /* Grau der Logo-Schrift */
  --ink: #2e2d2c;
  --muted: #565553;
  --paper: #ffffff;
  --tint: #f4f5f6;
  --line: #dcdfe3;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --wrap: 1180px;
  --radius: 2px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; accent-color: var(--blue); caret-color: var(--blue); scrollbar-color: #9fb3c8 var(--tint); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; font-family: var(--sans); font-size: 1.1875rem; line-height: 1.6; color: var(--ink); background: var(--paper); hyphens: auto; -webkit-hyphens: auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.18; margin: 0 0 .5em; hyphens: manual; text-wrap: balance; color: var(--ink); }
h2 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem); }
p { margin: 0 0 1em; text-wrap: pretty; }
::selection { background: var(--blue); color: #fff; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -48px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus, .skip-link:hover { top: 8px; color: #fff; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 3px solid var(--blue); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand { display: block; flex: none; }
.brand img { width: 198px; height: auto; }
.header-right { display: flex; align-items: center; gap: 28px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.site-nav a { text-decoration: none; font-weight: 500; font-size: 1.05rem; color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="true"] { border-bottom-color: var(--blue); color: var(--blue); }
.header-phone { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; color: var(--blue); white-space: nowrap; }
.header-phone svg { width: 18px; height: 18px; flex: none; }
.nav-toggle { display: none; }

@media (max-width: 1020px) {
  .header-phone span { display: none; }
  .header-phone { width: 44px; height: 44px; justify-content: center; border: 1px solid var(--line); border-radius: 50%; }
}
@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .brand img { width: 160px; }
  .header-right { gap: 8px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 0; }
  .bars, .bars::before, .bars::after { display: block; width: 22px; height: 2px; background: var(--ink); position: relative; transition: transform .2s; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -7px; } .bars::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); display: none; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px 16px 16px; }
  .site-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .no-js .site-nav { position: static; display: block; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: var(--radius); font: 600 1.05rem/1 var(--sans); text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); color: #fff; }
.btn-outline { background: #fff; border-color: var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue-tint); color: var(--blue-dark); }
.btn-white { background: #fff; color: var(--blue-deep); }
.btn-white:hover { background: var(--blue-tint); color: var(--blue-deep); }

/* ---------- Hero ---------- */
.hero { background: var(--tint); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1fr; gap: 40px; padding-top: 48px; padding-bottom: 56px; align-items: center; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.1fr 1fr; gap: 64px; padding-top: 80px; padding-bottom: 88px; } }
.h1-sub { display: block; color: var(--blue); }
.hero h1 { font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.4rem); margin-bottom: 20px; }
.lead { font-size: 1.25rem; color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-facts { list-style: none; margin: 36px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: 1rem; color: var(--muted); }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 8px; height: 8px; background: var(--blue); flex: none; }
.hero-photo { margin: 0; background: #fff; padding: 10px; border: 1px solid var(--line); box-shadow: 0 18px 40px -28px rgba(0,58,107,.45); justify-self: center; width: 100%; max-width: 442px; }
.hero-photo img { width: 100%; }
.hero-photo figcaption, .photo figcaption { font-size: .92rem; color: var(--muted); margin-top: 8px; line-height: 1.4; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.section-tint { background: var(--tint); }
.section-head { max-width: 780px; margin-bottom: 44px; }
.section-head h2 { margin-bottom: .35em; }
.section-intro { color: var(--muted); font-size: 1.15rem; }

/* ---------- Unternehmen ---------- */
.about { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 900px) { .about { grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: start; } }
.lead-sm { font-size: 1.22rem; }
.chronik { list-style: none; margin: 0 0 36px; padding: 0; border-top: 1px solid var(--line); }
.chronik li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); line-height: 1.45; }
.chronik-year { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; line-height: 1.2; color: var(--blue); }
.person { margin: 0; display: flex; flex-direction: column; }
.person strong { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; }
.person span { color: var(--muted); }
.kompetenzen { list-style: none; padding: 16px 0 0; margin: 28px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr; gap: 6px 28px; }
@media (min-width: 560px) { .kompetenzen { grid-template-columns: 1fr 1fr; } }
.kompetenzen li { display: flex; align-items: baseline; gap: 10px; color: var(--blue-deep); font-weight: 600; }
.kompetenzen li::before { content: ""; width: 8px; height: 8px; background: var(--blue); flex: none; transform: translateY(-1px); }

/* ---------- Produkte (Akkordeon) ---------- */
.prod-group + .prod-group { margin-top: 48px; }
.prod-group-title { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.7rem); color: var(--blue-deep); margin-bottom: 8px; }
.areas { border-top: 1px solid var(--line); }
.area { border-bottom: 1px solid var(--line); }
.area summary { list-style: none; display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 14px 0; cursor: pointer; }
.area-thumb { width: 96px; height: 64px; object-fit: cover; border: 1px solid var(--line); background: #fff; flex: none; }
.area-thumb-empty { display: block; background: linear-gradient(var(--line), var(--line)) center / 40% 1px no-repeat, #fff; }
details[open] > summary .area-thumb { border-color: var(--blue); }
@media (max-width: 560px) { .area summary { gap: 14px; } .area-thumb { width: 64px; height: 48px; } }
.area summary::-webkit-details-marker { display: none; }
.area-head { display: flex; flex-direction: column; }
.area-title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem); line-height: 1.25; }
.area-short { color: var(--muted); font-size: 1rem; margin-top: 2px; }
.toggle { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; position: relative; flex: none; transition: border-color .2s, background .2s; }
.toggle::before, .toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--blue); transform: translate(-50%, -50%); transition: transform .25s cubic-bezier(.16,1,.3,1); }
.toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] > summary .toggle::after { transform: translate(-50%, -50%) rotate(0); }
summary:hover .toggle { border-color: var(--blue); background: var(--blue-tint); }
.area summary:hover .area-title { color: var(--blue); }
.area-body { display: grid; grid-template-columns: 1fr; gap: 28px; padding: 0 0 32px; }
.area-body.has-img { }
@media (min-width: 820px) { .area-body.has-img { grid-template-columns: 1fr 260px; gap: 48px; } }
.area-text { max-width: 46em; }
.area-text > p:first-child { font-size: 1.12rem; }
.specs { display: grid; grid-template-columns: 1fr; gap: 6px 32px; margin: 20px 0 0; }
@media (min-width: 640px) { .specs { grid-template-columns: 11rem 1fr; } }
.specs dt { font-weight: 600; color: var(--blue-deep); font-size: 1rem; }
.specs dd { margin: 0 0 8px; color: var(--muted); font-size: 1rem; }
.refs { margin: 20px 0 0; padding: 14px 18px; background: var(--tint); }
.refs h4 { font-family: var(--sans); font-size: 1rem; margin: 0 0 6px; color: var(--blue-deep); }
.refs ul { margin: 0; padding-left: 1.1em; }
.refs li { margin-bottom: 4px; font-size: 1rem; }
.highlight { display: inline-flex; flex-direction: column; margin: 18px 0 0; padding: 10px 16px; background: var(--blue-tint); }
.highlight strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--blue-deep); line-height: 1.2; }
.highlight span { font-size: .95rem; color: var(--muted); }
.photo { margin: 0; }
.photo img { border: 1px solid var(--line); background: #fff; padding: 6px; }
.photo a { display: block; cursor: zoom-in; }
.photo a:hover img { border-color: var(--blue); }
.photos { display: grid; gap: 12px; align-content: start; }
@media (max-width: 819px) { .photos { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); } .photos img { width: 100%; } }
.svc-photo { margin-top: 12px; }
@media (min-width: 640px) { .svc-photo { grid-column: 2; } }

/* ---------- Service ---------- */
.service { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 960px) { .service { grid-template-columns: 1fr 300px; gap: 56px; align-items: start; } }
.services { border-top: 1px solid var(--line); }
.svc { display: grid; grid-template-columns: 1fr; gap: 4px 32px; padding: 20px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .svc { grid-template-columns: 13rem 1fr; } }
.svc h3 { font-size: 1.35rem; margin: 0; color: var(--blue-deep); }
.svc p { color: var(--muted); margin: 0; }
.svc ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.svc li { margin-bottom: 2px; }
.service-note { margin-top: 28px; padding: 18px 22px; background: var(--blue-tint); color: var(--blue-deep); }
.service-note p { margin: 0; }

/* ---------- Qualität ---------- */
.proofs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0 48px; border-top: 1px solid var(--line); }
@media (min-width: 820px) { .proofs { grid-template-columns: 1fr 1fr; } }
.proofs li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.proofs svg { width: 24px; height: 24px; color: var(--blue); margin-top: 3px; }
.proofs h3 { font-family: var(--sans); font-size: 1.1rem; font-weight: 600; margin: 0 0 2px; }
.proofs p { margin: 0; color: var(--muted); font-size: 1rem; }
.logos { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; margin-top: 36px; }
.logos img { height: 56px; width: auto; }
.vob-note { margin-top: 28px; color: var(--muted); font-size: 1rem; max-width: 50em; }

/* ---------- Kontakt ---------- */
.section-contact { background: var(--blue-deep); color: #fff; }
.section-contact h2, .section-contact h3 { color: #fff; }
.section-contact .section-intro { color: #d5e2ef; }
.contact { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 820px) { .contact { grid-template-columns: 1fr 1fr; } }
.contact-card { border: 1px solid rgba(255,255,255,.25); padding: 32px; }
.contact-card h3 { font-size: 1.7rem; }
.contact-card address { font-style: normal; margin-bottom: 20px; color: #e6eef6; }
.contact-lines { list-style: none; padding: 0; margin: 0 0 24px; }
.contact-lines li { font-variant-numeric: tabular-nums; display: flex; gap: 12px; padding: 7px 0; border-top: 1px solid rgba(255,255,255,.16); }
.contact-lines span { width: 5.5em; color: #b9cde0; flex: none; }
.contact-lines a { color: #fff; }
.contact-lines a:hover { color: #cfe3f7; }
.anfahrt h4 { font-family: var(--sans); font-size: 1.05rem; margin: 18px 0 4px; color: #fff; }
.anfahrt p { margin: 0; color: #e6eef6; font-size: 1.02rem; }

/* ---------- Footer ---------- */
.site-footer { background: #002a4e; color: #b9cde0; font-size: .98rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 22px; padding-bottom: 22px; }
.footer-inner p { margin: 0; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #cfe3f7; }

/* ---------- Impressum ---------- */
.legal-wrap { max-width: 860px; }
.legal h1 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.8rem); }
.legal h2 { font-size: 1.7rem; margin-top: 1.6em; }
.legal h3 { font-size: 1.3rem; margin-top: 1.4em; }
.legal-grid { display: grid; grid-template-columns: 1fr; gap: 2px 32px; margin: 0 0 16px; }
@media (min-width: 640px) { .legal-grid { grid-template-columns: 13rem 1fr; } }
.legal-grid dt { font-weight: 600; }
.legal-grid dd { margin: 0 0 6px; }
.datenschutz { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal-todo { background: #fff6e0; border: 1px solid #e8c88a; padding: 14px 18px; }

/* ---------- Lightbox ---------- */
.photo > a { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0d1f33; color: #e6eef6; overflow: hidden; }
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lb-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px 10px 24px; }
.lb-count { margin: 0; font-size: 1rem; color: #b9cde0; font-variant-numeric: tabular-nums; }
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 76px; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; padding: 8px; box-shadow: 0 24px 60px -24px rgba(0,0,0,.6); user-select: none; -webkit-user-drag: none; }
.lb-cap { margin: 0; padding: 14px 24px 22px; text-align: center; font-size: 1.05rem; color: #e6eef6; min-height: 1.5em; }
.lb-btn { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(13,31,51,.6); color: #fff; cursor: pointer; transition: background .2s, border-color .2s; }
.lb-btn:hover { background: var(--blue); border-color: var(--blue); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 14px; } .lb-prev svg { transform: rotate(180deg); }
.lb-next { right: 14px; }
.lb-nav[hidden] { display: none; }
@media (max-width: 699px) {
  .lb-stage { padding: 0 8px; }
  .lb-nav { top: auto; bottom: 12px; transform: none; }
  .lightbox[open] { grid-template-rows: auto 1fr auto 76px; }
}
@media (prefers-reduced-motion: no-preference) {
  .lightbox { transition: opacity .2s ease, overlay .2s allow-discrete, display .2s allow-discrete; opacity: 1; }
  @starting-style { .lightbox[open] { opacity: 0; } }
}
html.lb-open { overflow: hidden; }
