/* Gemeinsamer Stil der Unterseiten (Leistungen, Ratgeber, Einsatzgebiet).
   Wird von werkzeuge/seiten_bauen.py eingebunden. Schriften liegen lokal in /fonts/. */
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/outfit-latin-wght-normal.woff2) format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/fonts/playfair-display-latin-wght-normal.woff2) format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 400 900; font-display: swap; src: url(/fonts/playfair-display-latin-wght-italic.woff2) format('woff2'); }
:root {
  --primary: #1A6AA8; --primary-h: #14578A; --dark: #0F2A44; --ink: #12263A; --accent: #2B83C6;
  --logo: #50ACE4; --cream: #E3EFF9; --light: #C6DDF0; --soft: #EDF5FB; --paper: #F7FBFE; --muted: #4A5B6C;
  --radius: 12px;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Outfit', system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { font-family: var(--sans); background: var(--cream); color: var(--ink); line-height: 1.65; font-size: 17px; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; font-weight: 500; }
a { color: var(--primary); }
a:hover { color: var(--primary-h); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--dark); color: #fff; padding: 10px 16px; z-index: 300; }
.skip:focus { left: 8px; top: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 26px; min-height: 48px; border-radius: 6px; border: 0; cursor: pointer;
  background: var(--primary); color: #fff; font-weight: 600; font-size: 1rem; letter-spacing: .02em; text-decoration: none; transition: background .25s, color .25s; }
.btn:hover { background: var(--primary-h); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 8px 20px; min-height: 44px; }

/* Kopfzeile */
.site-head { position: sticky; top: 0; z-index: 100; background: rgba(247,251,254,.96); box-shadow: 0 1px 0 rgba(15,42,68,.1); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.brand img { height: 52px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 22px; list-style: none; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--ink); font-weight: 500; padding: 10px 0; display: inline-block; min-height: 44px; line-height: 24px; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current] { color: var(--primary); }
.nav-links .tel { font-weight: 600; white-space: nowrap; }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.burger span, .burger::before, .burger::after { content: ""; position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: .25s; }
.burger::before { top: 15px; } .burger span { top: 21px; } .burger::after { top: 27px; }
.burger.open::before { top: 21px; transform: rotate(45deg); }
.burger.open::after { top: 21px; transform: rotate(-45deg); }
.burger.open span { opacity: 0; }
.nav-links .tel { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); }
/* Mittlere Breiten: alles nebeneinander, etwas kompakter, Telefon nur als Symbol */
@media (min-width: 821px) and (max-width: 1180px) {
  .nav-links { gap: 16px; }
  .nav-links a:not(.btn) { font-size: .94rem; }
  .nav-links .btn-sm { padding: 8px 16px; font-size: .94rem; }
  .nav-links .tel .tel-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .brand img { height: 46px; }
}
/* Menü mit drei Strichen nur noch auf schmalen Bildschirmen */
@media (max-width: 820px) {
  .burger { display: block; }
  .nav-links { position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 24px; background: var(--paper);
    box-shadow: 0 20px 30px -20px rgba(0,0,0,.3); display: none; }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--light); }
  .nav-links li:last-child { border: 0; padding-top: 16px; }
  .nav-links a:not(.btn) { display: block; font-size: 1.1rem; padding: 12px 0; }
}

/* Seitenkopf */
.crumbs { padding: 22px 0 0; font-size: .92rem; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--muted); }
.crumbs a { color: var(--muted); display: inline-block; padding: 10px 0; }
.crumbs a:hover { color: var(--primary); }
.page-head { padding: 12px 0 28px; }
.page-head h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); color: var(--dark); max-width: 900px; }
.meta { margin-top: 12px; color: var(--muted); font-size: .95rem; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.lead { margin-top: 18px; max-width: 760px; }
.lead p { font-size: 1.12rem; margin-bottom: 14px; }
.hero-img { margin: 8px 0 40px; border-radius: var(--radius); overflow: hidden; background: var(--light); aspect-ratio: 16 / 7; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* Text */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); color: var(--dark); margin: 38px 0 12px; }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 16px 1.3em; }
.prose li { margin-bottom: 6px; }
.main-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.aside { display: grid; gap: 18px; position: sticky; top: 96px; }
.box { background: var(--paper); border: 1px solid var(--light); border-radius: var(--radius); padding: 22px 24px; }
.box h2, .box h3 { font-size: 1.2rem; color: var(--dark); margin-bottom: 10px; }
.box ul { list-style: none; }
.box li { padding: 5px 0 5px 26px; position: relative; }
.box li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 10px; height: 6px; border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(-45deg); }
.box p { margin: 0; }
.tip { background: var(--soft); border-left: 4px solid var(--primary); border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px; margin: 28px 0; max-width: 760px; }
.toc { margin: 8px 0 8px; max-width: 760px; }
.toc ol { margin: 0 0 0 1.3em; }
.toc a { display: inline-block; padding: 6px 0; }

/* FAQ */
.faq { margin: 12px 0 8px; max-width: 760px; }
.faq details { background: var(--paper); border: 1px solid var(--light); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 14px 20px; min-height: 48px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--primary); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 16px; }

/* Anfragekasten */
.cta { background: var(--dark); color: #fff; border-radius: var(--radius); padding: 32px clamp(20px, 4vw, 44px); margin: 48px 0; }
.cta h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); color: #fff; margin: 0 0 8px; }
.cta p { color: #D6E6F4; max-width: 640px; margin-bottom: 18px; }
.cta .row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta .btn-wa { background: #fff; color: var(--dark); }
.cta .btn-wa:hover { background: var(--light); color: var(--dark); }
.cta .tel-link { color: #fff; font-weight: 600; display: inline-block; padding: 12px 6px; min-height: 48px; }

/* Kacheln */
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--dark); margin: 44px 0 6px; }
.section-sub { color: var(--muted); margin-bottom: 18px; max-width: 700px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; margin: 18px 0 8px; list-style: none; }
.card { background: var(--paper); border: 1px solid var(--light); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.card .thumb { aspect-ratio: 3 / 2; background: var(--light); overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 1.28rem; color: var(--dark); }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card:hover { box-shadow: 0 10px 24px -14px rgba(15,42,68,.4); }
.card p { color: var(--muted); font-size: .98rem; }
.card .more { margin-top: auto; padding-top: 6px; font-weight: 600; color: var(--primary); }
.card .tag { font-size: .85rem; color: var(--muted); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 6px; }
.chips li a, .chips li span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 999px; background: var(--paper); border: 1px solid var(--light); text-decoration: none; color: var(--ink); }
.chips li a:hover { border-color: var(--primary); color: var(--primary); }
.chips .t { color: var(--muted); margin-left: 8px; font-size: .9rem; }

/* Ortssuche */
.search { max-width: 560px; margin: 14px 0 6px; }
.search label { display: block; font-weight: 600; margin-bottom: 6px; }
.search input { width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; border: 1.5px solid var(--light); border-radius: 8px; background: #fff; color: var(--ink); }
.search input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(26,106,168,.2); }
.search ul { list-style: none; margin-top: 8px; display: grid; gap: 6px; }
.search ul a { display: flex; justify-content: space-between; gap: 12px; min-height: 44px; align-items: center; padding: 8px 14px; border-radius: 8px; background: var(--paper); border: 1px solid var(--light); text-decoration: none; color: var(--ink); }
.search ul a:hover { border-color: var(--primary); }
.search .info { color: var(--muted); font-size: .95rem; margin-top: 8px; }
.quelle { font-size: .88rem; color: var(--muted); margin-top: 10px; }
.facts { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 8px 0 8px; }
.facts li { background: var(--paper); border: 1px solid var(--light); border-radius: var(--radius); padding: 12px 18px; }
.facts b { display: block; font-size: 1.3rem; font-family: var(--serif); color: var(--dark); font-weight: 500; }
.hinweis { margin-top: 40px; padding: 14px 18px; border: 1px dashed var(--accent); border-radius: var(--radius); color: var(--muted); font-size: .94rem; max-width: 760px; }
main { padding-bottom: 56px; }

/* Fußzeile */
.site-foot { background: var(--dark); color: #D6E6F4; padding: 48px 0 28px; margin-top: 24px; }
.foot-grid { display: grid; grid-template-columns: 1.1fr 1.4fr 1fr; gap: 40px 48px; align-items: start; }
.foot-grid img { height: 92px; width: auto; }
.site-foot h2 { font-family: var(--sans); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--logo); font-weight: 600; margin-bottom: 12px; }
.site-foot address { font-style: normal; display: grid; gap: 2px; }
.site-foot a { color: #fff; text-decoration: none; display: inline-block; padding: 6px 0; min-height: 36px; }
.site-foot a:hover { text-decoration: underline; color: #fff; }
.foot-nav { display: grid; gap: 0; }
.copy { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); font-size: .9rem; display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; }
@media (max-width: 900px) {
  .main-grid { grid-template-columns: 1fr; gap: 8px; }
  .aside { position: static; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { height: 64px; } .brand img { height: 44px; } .nav-links { top: 64px; }
  .hero-img { aspect-ratio: 3 / 2; }
  .cta .btn { width: 100%; }
  .cards { grid-template-columns: 1fr; }
}
