/* abfluss-max (Abflussreinigung Max) – Übernahme von abfluss-max.at (WordPress/Elementor, 2026-11).
   Farben/Schrift wie Alt-Seite (Elementor-Kit + halb7-child): Anthrazit #253037, Blau #364D6E,
   Akzent #DEDC00, Grau #F5F4F4, Schrift Apfel Grotezk (OFL, self-hosted). */

@font-face { font-family: 'Apfel Grotezk'; src: url('/fonts/abfluss-max/apfelgrotezk-regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Apfel Grotezk'; src: url('/fonts/abfluss-max/apfelgrotezk-mittel.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Apfel Grotezk'; src: url('/fonts/abfluss-max/apfelgrotezk-satt.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Apfel Grotezk'; src: url('/fonts/abfluss-max/apfelgrotezk-fett.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Apfel Grotezk'; src: url('/fonts/abfluss-max/apfelgrotezk-brukt.woff2') format('woff2'); font-weight: 800; font-display: swap; }

:root {
  --dark: #253037;
  --dark-2: #2d3a42;
  --blue: #364d6e;
  --accent: #dedc00;
  --accent-hover: #c9c700;
  --text: #666;           /* Alt-Seite #6F6F6F, minimal dunkler für WCAG AA auf #F5F4F4 (5,3:1) */
  --light: #f5f4f4;
  --line: #dedede;
  --white: #fff;
  --radius: 22px;
  --font: 'Apfel Grotezk', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); font-size: 18px; line-height: 1.6; font-weight: 400; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--font); color: var(--dark); line-height: 1.12; margin: 0 0 .5em; font-weight: 500; letter-spacing: 0; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
strong, b { font-weight: 600; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.narrow { max-width: 820px; margin-inline: auto; }
.center { text-align: center; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--light { background: var(--light); }
.section--dark { background: var(--dark); color: #e9ecee; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
.lead { font-size: 1.08rem; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--accent); color: var(--dark); padding: 10px 16px; border-radius: 999px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.section--light :focus-visible, .card :focus-visible { outline-color: var(--blue); }

/* Buttons (Pillen in Großbuchstaben wie Alt-Seite) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: 10px 24px; border-radius: 999px; font: 400 .9rem/1 var(--font); text-transform: uppercase; letter-spacing: .03em; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.btn--accent { background: var(--accent); color: var(--dark); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--white { background: var(--white); color: var(--dark); }
.btn--white:hover { background: var(--light); }
.btn--outline { background: transparent; color: var(--dark); border-color: var(--dark); }
.btn--outline:hover { background: var(--dark); color: var(--white); }
.btn svg { width: 14px; height: 14px; flex-shrink: 0; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.center .btn-row { justify-content: center; }

/* Header: schwebende dunkle Leiste (Alt-Seite: Anthrazit, 12px Radius, 24px Abstand).
   Startseite: oben transparent und linksbündig nur mit der Navigation, beim Scrollen wächst die Leiste animiert
   auf volle Breite und blendet Logo und Notfall-Button ein. Auf den anderen Seiten ist sie immer ausgeklappt. */
.site-header { position: fixed; inset: 24px 24px auto 24px; z-index: 200; }
.header-bar { display: flex; align-items: center; width: 100%; padding: 12px 24px; border-radius: 12px; background: var(--dark); transition: width .45s cubic-bezier(.4, 0, .2, 1), background-color .3s, box-shadow .3s; }
.site-header.scrolled .header-bar { box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.brand { display: flex; align-items: center; flex-shrink: 0; max-width: 260px; overflow: hidden; transition: max-width .45s cubic-bezier(.4, 0, .2, 1), opacity .3s; }
.brand img { height: 34px; width: auto; max-width: none; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a { color: var(--white); text-decoration: none; white-space: nowrap; font-weight: 400; font-size: 1.05rem; padding: 10px 14px; border-radius: 999px; transition: background-color .2s; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: rgba(255, 255, 255, .1); }
.main-nav a.btn { padding: 10px 24px; margin-left: 10px; max-width: 260px; overflow: hidden; white-space: nowrap; font-size: .95rem; transition: background-color .2s, max-width .45s cubic-bezier(.4, 0, .2, 1), opacity .3s, padding .45s, margin .45s; }
.main-nav a.btn--accent { color: var(--dark); }
.main-nav a.btn--accent:hover { color: var(--dark); }
.main-nav a.btn:hover { background: var(--accent-hover); }
/* Startseite, oben: Leiste auf Breite der Navigation, ohne Hintergrund, ohne Logo und Button */
.site-header[data-home]:not(.scrolled) .header-bar { background: transparent; width: var(--top-w, 560px); }
.site-header[data-home]:not(.scrolled) .brand { max-width: 0; opacity: 0; pointer-events: none; }
.site-header[data-home]:not(.scrolled) .main-nav a.btn { max-width: 0; opacity: 0; padding-inline: 0; margin-left: 0; border-width: 0; pointer-events: none; }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-toggle span:nth-child(1) { top: 15px; } .menu-toggle span:nth-child(2) { top: 21px; } .menu-toggle span:nth-child(3) { top: 27px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 960px) {
  .site-header { inset: 16px 16px auto 16px; }
  .site-header[data-home]:not(.scrolled) .header-bar { width: 100%; }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 14px; border-radius: var(--radius); background: rgba(37, 48, 55, .98); display: none; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 16px; }
  .main-nav a.btn { margin: 8px 0 0; }
  .site-header[data-home]:not(.scrolled) .main-nav a.btn { max-width: none; opacity: 1; padding-inline: 24px; border-width: 1.5px; pointer-events: auto; margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) { .header-bar, .brand, .main-nav a.btn { transition: none; } }

/* Hero: geteilt, Text links auf Anthrazit, Foto rechts */
.hero { display: grid; grid-template-columns: 55fr 45fr; min-height: 100svh; background: var(--dark); color: #e9ecee; }
.hero--sub { min-height: 72svh; }
.hero__text { display: flex; flex-direction: column; justify-content: center; padding: 140px clamp(24px, 7vw, 120px) 80px; }
.hero__text h1 { color: var(--white); }
.hero__logo { width: min(100%, 420px); margin-bottom: 28px; }
.hero__claim { font-size: 1.15rem; max-width: 34em; }
.hero__media { position: relative; overflow: hidden; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.hero__slide { opacity: 0; transition: opacity .5s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__media:not([data-slider]) img { opacity: 1; }
@media (max-width: 860px) {
  .hero, .hero--sub { grid-template-columns: 1fr; min-height: 0; }
  .hero__text { padding: 120px 24px 48px; }
  .hero__media { min-height: 62vw; order: 2; }
}

/* Intro + USPs */
.usp { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.usp__claim { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; color: var(--dark); font-weight: 500; margin-bottom: 28px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: flex; align-items: center; gap: 12px; color: var(--dark); }
.checks li::before { content: ''; flex: 0 0 24px; height: 24px; border-radius: 50%; background: var(--dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat; }
.photo { border-radius: var(--radius); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .usp { grid-template-columns: 1fr; } }

/* Leistungs-Karten */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 48px; }
.card { background: var(--white); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; align-items: center; text-align: center; transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(37, 48, 55, .1); }
.card h3 { color: var(--blue); text-transform: uppercase; font-size: 1.3rem; letter-spacing: .02em; }
.card h3 a { color: inherit; text-decoration: none; }
.card p { font-size: .95rem; max-width: 30em; }
.card .btn { margin-top: auto; }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }

/* Preisliste mit Punktlinie */
.prices { max-width: 860px; margin: 40px auto 0; }
.prices table { width: 100%; border-collapse: collapse; }
.prices thead { position: absolute; left: -9999px; }
.prices tr { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.prices td { padding: 0; }
.prices td:nth-child(1) { color: var(--dark); font-weight: 500; display: flex; align-items: baseline; gap: 12px; }
.prices td:nth-child(1)::after { content: ''; flex: 1; border-bottom: 2px dotted #b9b9b9; transform: translateY(-4px); }
.prices td:nth-child(2) { color: var(--dark); font-weight: 500; white-space: nowrap; text-align: right; }
.prices td:nth-child(3) { grid-column: 1 / -1; font-size: .88rem; margin-top: 4px; }
.prices td:nth-child(3):empty { display: none; }
.prices p { font-size: .92rem; margin-top: 20px; }

/* Leistungs-Detail */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.detail .eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; font-weight: 500; color: var(--blue); margin-bottom: 10px; }
.bullets ul { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 12px; }
.bullets li { display: flex; gap: 12px; color: var(--dark); }
.bullets li::before { content: ''; flex: 0 0 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23253037' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/13px no-repeat; }
.rich h2, .rich h3 { margin-top: 1.4em; }
.rich strong { color: var(--dark); font-weight: 600; }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; } }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 40px; }
.gallery a { display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(20, 26, 30, .94); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; width: auto; border-radius: 12px; }
.lightbox button { position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 26px; cursor: pointer; }
.lightbox .lb-close { top: 20px; right: 20px; }
.lightbox .lb-prev { left: 20px; top: 50%; } .lightbox .lb-next { right: 20px; top: 50%; }

/* Über uns */
.quote { font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.4; color: var(--dark); margin: 0 0 16px; }
.quote-author { font-weight: 500; color: var(--blue); }
.signature { font-size: 1.6rem; color: var(--dark); font-weight: 500; margin-top: 24px; }

/* Consent-Platzhalter (Instagram, Zeeg) */
.embed { border-radius: var(--radius); overflow: hidden; background: var(--white); }
.embed__ph { padding: clamp(28px, 5vw, 56px); text-align: center; max-width: 620px; margin-inline: auto; }
.embed__ph p { font-size: .95rem; }
.embed iframe { display: block; width: 100%; border: 0; }
.embed--booking iframe { min-height: 720px; }
.insta-grid { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.insta-grid a { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 1; }
.insta-grid img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s cubic-bezier(.2, .7, .2, 1); }
.insta-grid a:hover img, .insta-grid a:focus-visible img { scale: 1.05; }
@media (max-width: 560px) { .insta-grid { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: reduce) { .insta-grid img { transition: none; } }
.embed--insta { max-width: 540px; margin: 32px auto 0; }
.embed--insta iframe { min-height: 640px; }

/* Rechtliches */
.legal-content { max-width: 820px; }
.legal-content h2 { font-size: 1.45rem; margin-top: 2em; }
.legal-content h3 { font-size: 1.15rem; margin-top: 1.5em; }
.legal-content ul { padding-left: 1.2em; }

/* Footer: 4 Spalten, darunter Rechtliches in einer Zeile */
.site-footer { background: var(--dark); color: #c9d0d4; padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 48px; }
.footer-brand img { height: 48px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: .95rem; max-width: 26em; margin-bottom: 22px; }
.footer-brand .btn { font-size: .8rem; }
.footer-col h2 { font-family: var(--font); font-size: .8rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--white); margin: 0 0 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col address { font-style: normal; margin-bottom: 14px; }
.footer-col p { margin: 0 0 14px; font-size: .95rem; }
.footer-hours { font-size: .88rem; color: #aab4ba; }
.site-footer a, .linklike { color: #e9ecee; text-decoration: none; font: inherit; font-size: .95rem; }
.site-footer a:hover, .linklike:hover { color: var(--accent); }
.site-footer .btn--accent, .site-footer .btn--accent:hover { color: var(--dark); }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; font-size: .88rem; color: #aab4ba; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-bottom .to-top { margin-left: auto; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .footer-bottom .to-top { margin-left: 0; } }

/* Mobile Leiste unten: schwebend, abgerundet wie alle Buttons */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 150; }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 18px; border-radius: 999px; font-weight: 400; text-decoration: none; text-transform: uppercase; font-size: .85rem; letter-spacing: .03em; box-shadow: 0 10px 28px rgba(20, 26, 30, .28); white-space: nowrap; }
  .mobile-bar a:first-child { background: var(--accent); color: var(--dark); }
  .mobile-bar a:last-child { background: var(--dark); color: var(--white); border: 1.5px solid rgba(255, 255, 255, .25); }
  .site-footer { padding-bottom: 110px; }
}

/* Reveal-Animationen (abschaltbar, ohne JS alles sichtbar) */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease var(--d, 0ms), transform 1s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
  .js-reveal .reveal.in { opacity: 1; transform: none; }
  .hero__media img { animation: heroZoom 1.6s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes heroZoom { from { transform: scale(1.06); } to { transform: none; } }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .photo img, .gallery img { transition: scale .8s cubic-bezier(.2, .7, .2, 1); }
  .photo:hover img, .gallery a:hover img { scale: 1.035; }
}

/* 1:1 aus src/styles/app.css kopiert (CLAUDE.md, Imgcredit-Protokoll) */
/* Bild-Credit / EU-KI-Kennzeichnung (AI Act Art. 50) – DirectusImage.astro */
.imgcredit {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
}

.imgcredit__badge {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: flex;
  align-items: center;
  gap: 3px;
  max-width: 80%;
  padding: 2px 5px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  font-size: 8px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.imgcredit__badge .imgcredit__icon {
  display: block;
  flex: none;
  height: 9px;
  width: auto;
}

.imgcredit__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.imgcredit__sep {
  flex: none;
  opacity: 0.6;
}
