/* ============================================================
   DaWi Media v5 – Design System "Workshop on the Dyke"
   Sauberes CSS: Nur neue Tokens, keine Inline-Styles im HTML
   ============================================================ */

:root {
    --ink: #0E1A24;
    --paper: #F6F3EE;
    --paper-2: #ECE6DC;
    --ink-text: #0E1A24;
    --ink-text-soft: #4B5563;
    --paper-text: #F6F3EE;
    --paper-text-soft: #A8B3BD;
    --beacon-on-sand: #0B5F75;
    --brand: #0E7490;
    --brand-bright: #22B8E0;
    --beacon: var(--brand);
    --beacon-bright: var(--brand-bright);
    --tide: #0F766E;
    --tide-bright: #2DD4BF;
    --border-light: rgba(14, 26, 36, 0.12);
    --border-dark: rgba(246, 243, 238, 0.15);
    --max-width: 1200px;
    --gutter: 20px;
    --radius: 16px;
    --radius-sm: 8px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --hero-overlay: linear-gradient(90deg, rgba(14, 26, 36, 0.94) 20%, rgba(14, 26, 36, 0.78) 60%, rgba(14, 26, 36, 0.5) 100%);
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    color-scheme: dark;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--paper);
    color: var(--ink-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

@media (prefers-color-scheme: dark) {
    body:not([data-theme="light"]) {
        background: var(--ink);
        color: var(--paper-text);
    }
}

body[data-theme="dark"] {
    background: var(--ink);
    color: var(--paper-text);
}

h1, h2, h3, h4 { text-wrap: balance; font-weight: 700; margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.2; margin-bottom: 1rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.3; margin-bottom: 1.5rem; }
h3 { font-size: 1.125rem; margin-bottom: 0.75rem; }
p { margin: 0; }
a { color: var(--beacon); text-decoration: none; font-weight: 500; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--beacon); outline-offset: 3px; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(3rem, 8vw, 5rem) 0; margin: 0; }
.section--light { background: var(--paper); color: var(--ink-text); }
.section--light .soft { color: var(--ink-text-soft); }
.section--sand { background: var(--paper-2); color: var(--ink-text); }
.section--dark { background: var(--ink); color: var(--paper-text); }
.section--dark .soft { color: var(--paper-text-soft); }
.section--dark a { color: var(--beacon-bright); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    min-height: 48px;
    transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
    text-decoration: none;
    gap: 0.5rem;
}

.btn--primary { background: var(--beacon); color: white; }
.btn--primary:hover { opacity: 0.9; transform: translateY(-2px); }
.section--dark .btn--primary { background: var(--beacon-bright); color: var(--ink); }

.btn--secondary { background: transparent; color: var(--beacon); border: 2px solid var(--beacon); }
.btn--secondary:hover { background: rgba(14, 116, 144, 0.08); }
.section--dark .btn--secondary { color: var(--paper-text); border-color: var(--paper-text); }
.section--dark .btn--secondary:hover { background: rgba(246, 243, 238, 0.1); }

.btn--ki { background: transparent; color: var(--tide); border: 2px solid var(--tide); }
.btn--ki:hover { background: rgba(15, 118, 110, 0.08); }
.section--dark .btn--ki { color: var(--tide-bright); border-color: var(--tide-bright); }
.section--dark .btn--ki:hover { background: rgba(45, 212, 191, 0.1); }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 2rem; margin: 2rem 0; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 2rem; margin: 2rem 0; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 1.5rem; margin: 1.5rem 0; }

.card {
    padding: 2rem;
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--ink-text);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.section--light .card { background: white; }
.section--sand .card { background: var(--paper); }
.section--dark .card { background: rgba(246, 243, 238, 0.08); color: var(--paper-text); border-color: var(--border-dark); }
.card h3 { margin: 0; }
.card p { flex-grow: 1; margin: 0; }
.card--primary { border: 2px solid var(--beacon); }
.section--dark .card--primary { border-color: var(--beacon-bright); }

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(14, 116, 144, 0.1);
    color: var(--beacon-on-sand);
}

.badge--ki { background: rgba(15, 118, 110, 0.1); color: var(--tide); }
.section--dark .badge { background: rgba(34, 184, 224, 0.2); color: var(--beacon-bright); }
.section--dark .badge--ki { background: rgba(45, 212, 191, 0.2); color: var(--tide-bright); }

.checks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.checks li { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0; }
.checks li::before { content: ""; flex-shrink: 0; width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; background-color: var(--tide); -webkit-mask: url(data:image/svg+xml;utf8,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22black%22%20stroke-width=%223%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%3E%3Cpath%20d=%22M20%206%209%2017l-5-5%22/%3E%3C/svg%3E) center / contain no-repeat; mask: url(data:image/svg+xml;utf8,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22black%22%20stroke-width=%223%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%3E%3Cpath%20d=%22M20%206%209%2017l-5-5%22/%3E%3C/svg%3E) center / contain no-repeat; }
.section--dark .checks li::before { background-color: var(--tide-bright); }

nav { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 0; border-bottom: 1px solid var(--border-light); }
.section--dark nav { border-color: var(--border-dark); }
nav h2 { font-size: 1.25rem; margin: 0; }

/* ----- Sticky Navigation mit Burger-Menü ----- */
.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(14, 26, 36, 0.94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-dark);
}

.sticky-nav .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.75rem var(--gutter);
    border-bottom: 0;
    position: relative;
}

.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo img { height: 45px; width: auto; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a { color: var(--paper-text); font-weight: 500; text-decoration: none; transition: color 0.2s; }
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--beacon-bright); text-decoration: none; }
.nav-links a.btn { color: #fff; padding: 0.5rem 1.25rem; min-height: 44px; }
.nav-links a.btn:hover { color: #fff; }

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: 0;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--paper-text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--ink);
        border-bottom: 1px solid var(--border-dark);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
        text-align: center;
    }

    .nav-links.active { display: flex; }
    .nav-links li { width: 100%; }
    .nav-links a { display: block; padding: 0.875rem var(--gutter); font-size: 1.1rem; }
    .nav-links a.btn { display: flex; margin: 0.5rem var(--gutter) 1rem; width: auto; }

    .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .menu-toggle span { transition: none; }
}

footer:not(.site-footer) { padding: 3rem 0 1.5rem; text-align: center; border-top: 1px solid var(--border-light); margin-top: 4rem; }
.section--dark footer:not(.site-footer) { border-color: var(--border-dark); }
footer:not(.site-footer) p { font-size: 0.875rem; margin: 0.5rem 0; }

.hero { padding: 5rem 0; text-align: center; }
.hero h1 { margin-bottom: 1rem; }
.hero > p { max-width: 600px; margin: 1rem auto 2rem; font-size: 1.125rem; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

.soft { color: var(--ink-text-soft); }
.section--dark .soft { color: var(--paper-text-soft); }

@media (max-width: 768px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
    .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 1.5rem; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; }
    .hero { padding: 3rem 0; }
    .card { padding: 1.5rem; }
    .form-box { padding: 2rem 1.25rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 400px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
    .grid-4 { grid-template-columns: 1fr; }
    .card { padding: 1.25rem; }
    .btn { padding-left: 1rem; padding-right: 1rem; }
    .logo img { height: 38px; }
}

/* Honeypot: für Menschen unsichtbar, Bots füllen es aus */
.hp { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

/* ----- Kontaktformular, Hinweise, Footer (aus style.css übernommen, Variablen auf v5 gemappt) ----- */
.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus {
    left: 10px;
    top: 10px;
    background: var(--beacon-bright);
    color: var(--ink);
    padding: 10px 16px;
    z-index: 2000;
    font-weight: 700;
}

.next-step { color: var(--paper-text-soft); margin: 0 auto 2rem; text-align: center; max-width: 700px; }

.form-box {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(246, 243, 238, 0.06);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    padding: 3rem 2.5rem;
}

.form { display: flex; flex-direction: column; gap: 1.25rem; }
.form label { display: block; font-weight: 600; margin-bottom: 0.5rem; color: var(--paper-text); }

.form input,
.form textarea,
.form select {
    width: 100%;
    padding: 0.875rem;
    background: rgba(14, 26, 36, 0.6);
    border: 1px solid rgba(246, 243, 238, 0.3);
    border-radius: var(--radius-sm);
    color: var(--paper-text);
    font: inherit;
}

.form select option { background: var(--ink); color: var(--paper-text); }
.form textarea { resize: vertical; }

.form input:focus,
.form textarea:focus,
.form select:focus {
    border-color: var(--beacon-bright);
    box-shadow: 0 0 0 2px rgba(34, 184, 224, 0.35);
    outline: none;
}

.form .btn { align-self: flex-start; }
.form-note { color: var(--paper-text-soft); font-size: 0.9rem; line-height: 1.5; }
.form-note a, .contact-direct a { color: var(--beacon-bright); text-decoration: underline; }
.optional { color: var(--paper-text-soft); font-weight: 400; }

.alert {
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
    border: 1px solid;
}
.alert--success { color: #34d399; border-color: #34d399; background: rgba(16, 185, 129, 0.1); }
.alert--error { color: #f87171; border-color: #f87171; background: rgba(239, 68, 68, 0.1); }

.contact-direct { text-align: center; color: var(--paper-text-soft); margin-top: 2rem; }

.site-footer {
    padding: 3rem var(--gutter) 2rem;
    background-color: var(--ink);
    border-top: 1px solid var(--border-dark);
    color: var(--paper-text-soft);
    font-size: 0.9rem;
}
.footer-container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2.5rem; margin-bottom: 2rem; }
.footer-col { flex: 1; min-width: 150px; }
.footer-col--brand { min-width: 250px; }
.footer-col--contact { min-width: 200px; }
.footer-logo { display: inline-block; margin-bottom: 1rem; }
.footer-logo img { height: 35px; width: auto; }
.footer-tagline, .footer-hours { color: var(--paper-text-soft); }
.footer-col h2 { color: var(--paper-text); font-size: 1rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a { color: var(--paper-text-soft); text-decoration: none; }
.footer-col ul a:hover { color: var(--beacon-bright); }
.footer-phone a { color: var(--beacon-bright); text-decoration: none; font-weight: 600; font-size: 1rem; }
.footer-bottom {
    border-top: 1px solid var(--border-dark);
    padding-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.ai-notice { font-size: 0.8rem; }

/* ----- Bilder: Hero und Seitenköpfe ----- */
.hero-bg {
    background:
        linear-gradient(90deg, rgba(14, 26, 36, 0.94) 20%, rgba(14, 26, 36, 0.78) 60%, rgba(14, 26, 36, 0.55) 100%),
        url('../img/hero-netz.webp') center / cover no-repeat;
}

.page-hero {
    padding: clamp(3.5rem, 10vw, 6rem) 0;
    background-color: var(--ink);
    background-image: var(--hero-overlay);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-bottom: 1px solid var(--border-dark);
    color: var(--paper-text);
}
.page-hero h1 { color: #fff; max-width: 700px; }
.page-hero p { color: #D9D5CE; font-size: 1.1rem; max-width: 600px; }
.page-hero--leistungen { background-image: var(--hero-overlay), url('../img/kopf-leistungen.webp'); }
.page-hero--ueber-uns { background-image: var(--hero-overlay), url('../img/kopf-ueber-uns.webp'); }
.page-hero--kontakt { background-image: var(--hero-overlay), url('../img/kopf-kontakt.webp'); }

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 320px) 1fr;
    gap: 2.5rem;
    align-items: start;
}
.about-portrait { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 5; object-fit: cover; }

@media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-portrait { max-width: 260px; }
}

/* ----- Kontrast-Fixes (Cyan auf Sand-Hintergrund) ----- */
.section--sand a:not(.btn),
.section--sand .badge { color: var(--beacon-on-sand); }

/* ============================================================
   Komponenten-Klassen (ersetzen Inline-Styles im HTML)
   ============================================================ */

/* ----- Icons (Sprite: img/icons.svg, Lucide, ISC-Lizenz) ----- */
.icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ----- Typografie und Layout-Helfer ----- */
.text-center { text-align: center; }
.section-title { text-align: center; margin-bottom: 2rem; }
.section--dark .section-title { color: var(--paper-text); }
.section--flush-top { padding-top: 0; }
.lead { font-size: 1.125rem; line-height: 1.7; max-width: 600px; margin: 1.5rem auto; }
.lead--narrow { font-size: 1.0625rem; max-width: 500px; margin: 1rem auto 2rem; }
.prose { max-width: 72ch; font-size: 1.0625rem; line-height: 1.8; }
.prose p + p { margin-top: 1.25rem; }
.prose h2 { margin-top: 2.5rem; margin-bottom: 0.75rem; }
.prose h3 { margin-top: 1.5rem; }

/* ----- Merkmale, Preise, Links ----- */
.feature__title { font-weight: 600; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.feature__title .icon { color: var(--tide); }
.section--dark .feature__title .icon { color: var(--tide-bright); }

.price { font-size: 1.25rem; font-weight: 700; color: var(--beacon); margin: 0; }
.price--lg { font-size: 2.5rem; line-height: 1.2; margin: 0.5rem 0; }
.section--sand .price { color: var(--beacon-on-sand); }
.section--dark .price { color: var(--beacon-bright); }
.package-meta { font-size: 0.875rem; color: var(--ink-text-soft); display: flex; align-items: center; gap: 0.5rem; margin: 0; }
.section--dark .package-meta { color: var(--paper-text-soft); }

.link-more { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--beacon); }
.section--sand .link-more { color: var(--beacon-on-sand); }

.btn--block { width: 100%; }
.card .btn { align-self: stretch; margin-top: auto; }
.card .badge { align-self: flex-start; }
.card--featured { border-color: var(--beacon-bright); box-shadow: 0 8px 24px rgba(14, 116, 144, 0.18); }
.card .note { font-size: 0.875rem; color: var(--ink-text-soft); }

.info-box { padding: 1.5rem; background: var(--paper-2); border-radius: 12px; color: var(--ink-text); }
.info-box h3 { color: var(--beacon-on-sand); margin: 0 0 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
.info-box p { margin: 0; color: var(--ink-text-soft); }
.info-box p + p { margin-top: 0.75rem; }
.section--dark .info-box { background: rgba(246, 243, 238, 0.08); color: var(--paper-text); }
.section--dark .info-box h3 { color: var(--beacon-bright); }
.section--dark .info-box p { color: var(--paper-text-soft); }
.section--sand .info-box { background: var(--paper); }

/* Bausteine / Aufzählungen mit Wert */
.value-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.value-list li { display: flex; align-items: flex-start; gap: 0.75rem; }
.value-list .icon { color: var(--tide); margin-top: 0.2rem; }
.value-list__price { margin-left: auto; font-weight: 600; white-space: nowrap; }

/* ----- FAQ ----- */
.faq { max-width: 72ch; margin: 0 auto; }
.faq details { margin: 0 0 1rem; padding: 1rem 1.25rem; border: 1px solid var(--border-light); border-radius: var(--radius-sm); background: white; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--beacon); min-height: 24px; }
.faq details[open] summary { margin-bottom: 0.75rem; }
.faq p { color: var(--ink-text); }

/* ----- Kontakt-Block, Tabellen ----- */
.contact-info { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.contact-info li { display: flex; align-items: flex-start; gap: 0.75rem; }
.contact-info .icon { color: var(--beacon-bright); margin-top: 0.15rem; }
.contact-info a { text-decoration: underline; }

.table-wrap { overflow-x: auto; margin: 1.5rem 0; -webkit-overflow-scrolling: touch; }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.9375rem; }
.table-wrap th, .table-wrap td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--border-light); vertical-align: top; }
.table-wrap thead th { background: var(--paper-2); color: var(--ink-text); font-weight: 700; }
.table-wrap tbody th { font-weight: 600; }

/* Rechtstexte */
.legal { max-width: 72ch; line-height: 1.65; }
.legal h2 { margin-top: 2.5rem; margin-bottom: 0.75rem; }
.legal h3 { margin-top: 1.5rem; }
.legal p, .legal li { margin-bottom: 0.75rem; }

/* ----- Footer-Kontaktspalte, Navigations-Button ----- */
.footer-contact { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-contact li { display: flex; align-items: flex-start; gap: 0.5rem; }
.footer-contact .icon { margin-top: 0.2rem; }
.footer-contact a { color: var(--paper-text-soft); text-decoration: none; }
.footer-contact a:hover { color: var(--beacon-bright); }
.footer-bottom a { color: var(--paper-text-soft); }
.sticky-nav .btn--primary { background: var(--beacon-bright); color: var(--ink); }
.nav-links a.btn,
.nav-links a.btn:hover { color: var(--ink); }

/* ----- Formular: Eingabegröße, Fehler, Hinweise, Senden ----- */
input, textarea, select { font-size: max(16px, 1rem); }

.field-hint { display: block; margin-top: 0.375rem; font-size: 0.875rem; color: var(--paper-text-soft); }
.field-error {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.375rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #FCA5A5;
}
.field-error[hidden] { display: none; }
.form input[aria-invalid="true"],
.form textarea[aria-invalid="true"],
.form select[aria-invalid="true"] { border-color: #F87171; box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.3); }
.form input.is-valid,
.form textarea.is-valid,
.form select.is-valid { border-color: var(--tide-bright); }

.btn.is-sending { cursor: progress; opacity: 0.85; pointer-events: none; }
.btn.is-sending::after {
    content: "";
    width: 1em;
    height: 1em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .btn.is-sending::after { animation: none; border-right-color: currentColor; }
    .btn { transition: none; }
    .btn--primary:hover { transform: none; }
}

.alert .icon { vertical-align: -4px; margin-right: 0.5rem; }

/* ----- Startseite: Icons in Überschriften, Hero-Telefon ----- */
.card h3 { display: flex; align-items: center; gap: 0.5rem; }
.card h3 .icon { color: var(--beacon); }
.section--dark .card h3 .icon { color: var(--beacon-bright); }
.hero-phone { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; }
.hero-phone .icon { color: var(--beacon-bright); }
.hero-buttons--start { justify-content: flex-start; }

/* ----- Leistungen ----- */
.section--flush-top { padding-top: clamp(1.5rem, 4vw, 2.5rem); }
.table-wrap table { background: white; }
.table-wrap caption { text-align: left; padding-bottom: 0.5rem; caption-side: top; }
h2 .icon { vertical-align: -3px; color: var(--beacon-on-sand); }
.prose + .prose { margin-top: 1.25rem; }

/* ----- Kontaktseite ----- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2rem; align-items: start; max-width: 1000px; margin: 0 auto; }
.contact-grid .form-box { max-width: none; margin: 0; }
.contact-grid .info-box h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.field > label .optional { margin-left: 0.25rem; }
.btn[aria-disabled="true"] { pointer-events: none; }
@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
}
.table-wrap caption { display: table-caption; }
.table-wrap thead th { background: #DDD5C7; }

/* ----- Auftrag 03 (05.10.2026): System-Bausteine, Schritte, Garantie-Siegel ----- */
.step-visual { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: rgba(14, 116, 144, 0.1); color: var(--brand); margin-bottom: 1rem; }
.section--dark .step-visual { background: rgba(34, 184, 224, 0.12); color: var(--brand-bright); }
.step-visual .icon { width: 34px; height: 34px; }
.intro-problem { max-width: 72ch; margin: 0 auto 2rem; text-align: center; font-size: 1.0625rem; line-height: 1.8; }
.system-note { text-align: center; margin-top: 1.5rem; }
.guarantee { display: grid; grid-template-columns: 200px 1fr; gap: 2.5rem; align-items: center; }
.guarantee-seal { width: 200px; height: 200px; filter: drop-shadow(0 6px 18px rgba(14, 26, 36, 0.18)); }
.guarantee .grid-2 { margin: 0; }
.small-print { font-size: 0.875rem; color: var(--ink-text-soft); margin-top: 0.75rem; }
/* Garantiebedingungen direkt unter dem Siegel (06.10.2026) */
.guarantee { grid-template-areas: "seal boxes" "terms terms"; }
.guarantee-seal { grid-area: seal; }
.guarantee > .grid-2 { grid-area: boxes; }
.guarantee-terms { grid-area: terms; width: 100%; padding: 1.5rem; background: white; border: 1px solid var(--border-light); border-radius: 12px; color: var(--ink-text); scroll-margin-top: 6rem; }
.guarantee-terms h3 { margin: 0 0 1rem; color: var(--beacon-on-sand); }
.guarantee-terms h4 { margin: 0 0 0.5rem; font-size: 1rem; color: var(--ink-text); }
.guarantee-terms__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 1.5rem 2rem; }
.guarantee-terms ul { margin: 0; padding-left: 1.25rem; font-size: 1rem; line-height: 1.6; }
.guarantee-terms li + li { margin-top: 0.4rem; }
@media (max-width: 768px) {
    .guarantee { grid-template-columns: 1fr; justify-items: center; grid-template-areas: "seal" "terms" "boxes"; }
    .guarantee-seal { width: 160px; height: 160px; }
    .guarantee-terms { padding: 1.25rem; }
}

/* ============================================================
   Block R: Animationen (nur transform/opacity, 300-600 ms)
   Versteckt wird nur mit html.js (gesetzt, wenn keine reduzierte Bewegung gewünscht ist)
   ============================================================ */

/* 1. Einblenden beim Scrollen (JS setzt .rv, danach .in) */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity 0.5s ease-out var(--d, 0ms), transform 0.5s ease-out var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }

/* 2. Hero-Netz (Canvas wird per JS eingefügt) */
.hero-bg { position: relative; overflow: hidden; }
.hero-bg .container { position: relative; }
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* 3. Linie zwischen den drei Bausteinen */
.bausteine { position: relative; }
.bausteine .card { position: relative; z-index: 1; }
.connect { position: absolute; left: 0; width: 100%; height: 4px; top: calc(2rem + 34px); overflow: visible; pointer-events: none; }
.connect line { stroke: var(--brand-bright); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; opacity: 0.7; }
.js .connect line { stroke-dashoffset: 100; transition: stroke-dashoffset 0.6s ease-out; }
.js .connect.in line { stroke-dashoffset: 0; }
@media (max-width: 768px) { .connect { display: none; } }

/* 4. Garantie-Siegel: Ring dreht einmal ein, Haken zeichnet sich nach */
.seal .ring { transform-origin: 100px 100px; }
.seal .tick { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .seal .ring { transform: rotate(-120deg); transition: transform 0.6s ease-out; }
.js .seal .tick { stroke-dashoffset: 1; transition: stroke-dashoffset 0.5s ease-out 0.5s; }
.js .seal.in .ring { transform: none; }
.js .seal.in .tick { stroke-dashoffset: 0; }

/* 5. Hover: Karten heben an (Schatten über opacity), Buttons drücken, Icons färben sich */
.card, .info-box { transition: transform 0.3s ease; }
.card { position: relative; }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 14px 30px rgba(14, 26, 36, 0.16); opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.section--dark .card::after { box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4); }
.step-visual, .card h3 .icon { transition: background-color 0.3s ease, color 0.3s ease; }
@media (hover: hover) {
    .card:hover, .info-box:hover { transform: translateY(-4px); }
    .card:hover::after { opacity: 1; }
    .card:hover .step-visual { background: var(--brand); color: #fff; }
    .section--dark .card:hover .step-visual { background: var(--brand-bright); color: var(--ink); }
}
.btn:active { transform: translateY(1px) scale(0.97); }

@media (prefers-reduced-motion: reduce) {
    .card, .info-box, .card::after, .step-visual, .card h3 .icon { transition: none; }
    .card:hover, .info-box:hover, .btn:active { transform: none; }
}

/* ============================================================
   Überarbeitung 11.10.2026: Vertrauen (Startseite, Leistungen)
   ============================================================ */

/* Heller Einstieg mit Foto */
.hero-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.hero-split h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); color: var(--ink); }
.hero-split .lead { margin: 1.25rem 0 0; max-width: 58ch; color: var(--ink-text-soft); }
.hero-split .hero-buttons { justify-content: flex-start; }
.hero-split .hero-phone { margin-top: 1.25rem; }
.hero-split__photo { position: relative; justify-self: center; width: 100%; max-width: 380px; }
.hero-split__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: 0 18px 40px rgba(14, 26, 36, 0.18); }
.hero-split__caption { position: absolute; left: -1rem; bottom: 1.5rem; background: #fff; color: var(--ink-text); border-radius: 12px; padding: 0.75rem 1rem; box-shadow: var(--shadow); font-size: 0.9375rem; line-height: 1.4; }
.hero-split__caption strong { display: block; }
@media (max-width: 860px) {
    .hero-split { grid-template-columns: 1fr; }
    .hero-split__photo { max-width: 300px; order: -1; }
    .hero-split__caption { left: 50%; transform: translateX(-50%); bottom: -1rem; white-space: nowrap; }
}

/* Drei Fakten zum Kundenverhalten */
.fact-card .fact-num { font-size: clamp(2.4rem, 5vw, 3.2rem); font-weight: 800; line-height: 1; color: var(--beacon-on-sand); letter-spacing: -0.02em; }
.fact-card .fact-label { font-weight: 700; margin: 0; }
.fact-card .fact-problem { font-style: italic; color: var(--ink-text-soft); border-left: 3px solid var(--brand-bright); padding-left: 0.75rem; flex-grow: 0; }
.sources { max-width: 72ch; margin: 1.5rem auto 0; text-align: center; font-size: 0.8125rem; color: var(--ink-text-soft); }
.bridge { max-width: 60ch; margin: 2.5rem auto 0; text-align: center; font-size: 1.125rem; font-weight: 600; }

/* Bild neben Text */
.split-media { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.split-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; }
.split-media .prose { margin-bottom: 1.5rem; }
@media (max-width: 860px) { .split-media { grid-template-columns: 1fr; } }

/* Vertrauens-Streifen mit Haken im Logo-Blau */
.proof-strip { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 2rem; padding: 1.5rem 0; margin: 0; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.proof-strip li { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.proof-strip .icon { color: var(--brand-bright); stroke-width: 3; }

/* Bildband Region */
.photo-band { position: relative; border-radius: var(--radius); overflow: hidden; }
.photo-band img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
@media (max-width: 768px) { .photo-band img { aspect-ratio: 4 / 3; } }
.place-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0 0; }
.place-list li { padding: 0.375rem 0.875rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--border-light); font-size: 0.9375rem; }

/* Paket-Karten: Zielgruppe und Fuß */
.package-for { font-weight: 600; color: var(--ink-text); }
.card--featured .badge { background: var(--beacon); color: #fff; }
.service-note { text-align: center; max-width: 64ch; margin: 1.5rem auto 0; }
.link-row { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: center; margin-top: 1.5rem; }

/* CTA mit Wattbild */
.cta-watt { background: linear-gradient(rgba(14, 26, 36, 0.82), rgba(14, 26, 36, 0.88)), url('../img/watt-pfaehle.webp') center / cover no-repeat; }
.hero-split .hero-phone { justify-content: flex-start; text-align: left; }
header.section--light:has(.hero-split) { padding: 0; }
.photo-band { margin-bottom: 2.5rem; }
.hero-split { padding-left: var(--gutter); padding-right: var(--gutter); }
@media (max-width: 860px) { .hero-split__photo { max-width: 240px; } .hero-split { padding-top: 2rem; padding-bottom: 2.5rem; gap: 2.25rem; } }

/* Startseite 11.10.2026, Runde 2: Bild-Hero, Kontaktbereich */
.hero-photo { color: #fff; background: linear-gradient(90deg, rgba(14, 26, 36, 0.86) 0%, rgba(14, 26, 36, 0.62) 55%, rgba(14, 26, 36, 0.25) 100%), url('../img/hafen-abend.webp') center 60% / cover no-repeat; padding: clamp(4rem, 11vw, 7.5rem) 0; }
.hero-photo__text { max-width: 640px; }
.hero-photo h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.1rem); }
.hero-photo .lead { color: #E7E3DC; margin: 1.25rem 0 0; }
.hero-photo .badge { background: rgba(34, 184, 224, 0.2); color: #9BE3F5; }
.hero-photo .btn--primary { background: var(--brand-bright); color: var(--ink); }
.hero-photo .btn--secondary { color: #fff; border-color: #fff; }
.hero-photo .btn--secondary:hover { background: rgba(255, 255, 255, 0.1); }
.hero-photo a:not(.btn) { color: #fff; }
.hero-phone--start { justify-content: flex-start; }
@media (max-width: 768px) { .hero-photo { background: linear-gradient(rgba(14, 26, 36, 0.78), rgba(14, 26, 36, 0.86)), url('../img/hafen-abend.webp') 70% center / cover no-repeat; } }
.section--slim { padding: 2rem 0; }
#ansprechpartner .place-list li { background: var(--paper-2); }
#ansprechpartner .hero-buttons { margin-top: 1.75rem; }
#kontakt .contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
#kontakt .form-box { margin: 0; max-width: none; padding: 2rem; }
#kontakt .form-box h2 { margin-bottom: 0.5rem; }
#kontakt .form-box > .soft { margin-bottom: 1.5rem; }
.contact-call h2 { margin-bottom: 0.75rem; }
.contact-call__phone { display: inline-flex; align-items: center; gap: 0.75rem; font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; color: var(--brand-bright); margin: 1.25rem 0 1.5rem; text-decoration: none; }
.contact-call__phone .icon { width: 30px; height: 30px; }
@media (max-width: 860px) { #kontakt .contact-grid { grid-template-columns: 1fr; } #kontakt .form-box { padding: 1.5rem 1.25rem; } }
.nowrap { white-space: nowrap; }

/* Leistungsseite Fassung 3 (11.10.2026): kompakte Karten, Vergleich, Ablauf */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.page-hero--compact { padding: clamp(2.5rem, 7vw, 4rem) 0; }
.pkg-grid { gap: 1.25rem; margin: 0 0 2rem; }
.card.pkg { padding: 1.5rem; gap: 0.75rem; }
.card.pkg h3 { font-size: 1.25rem; }
.card.pkg .package-for { font-weight: 500; color: var(--ink-text-soft); flex-grow: 0; min-height: 3em; }
.card.pkg .price { font-size: 2rem; line-height: 1.1; color: var(--ink); }
.section--sand .card.pkg .price { color: var(--ink); }
.price-unit { font-size: 0.875rem; font-weight: 500; color: var(--ink-text-soft); }
.card.pkg .checks { gap: 0.5rem; font-size: 0.9375rem; margin-bottom: 0.5rem; }
.badge--ghost { visibility: hidden; }
.card.pkg.card--featured { border: 2px solid var(--brand-bright); }
@media (max-width: 768px) { .badge--ghost { display: none; } .card.pkg .package-for { min-height: 0; } }

.fit-guide { background: var(--paper-2); border-radius: var(--radius); padding: 1.5rem; margin: 0 0 2.5rem; }
.fit-guide h3 { margin-bottom: 1rem; }
.fit-guide ul { list-style: none; display: grid; gap: 0.75rem; margin-bottom: 1rem; }
.fit-guide li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border-light); }
.fit-guide li strong { color: var(--beacon-on-sand); white-space: nowrap; }
@media (max-width: 600px) { .fit-guide li { flex-direction: column; gap: 0.25rem; } }

.compare table { background: #fff; border-radius: 12px; overflow: hidden; }
.compare caption { text-align: left; font-weight: 700; font-size: 1.0625rem; padding: 0 0 0.75rem; color: var(--ink-text); caption-side: top; }
.compare thead th { background: var(--ink); color: var(--paper-text); }
.compare td { text-align: center; }
.compare tbody th { font-weight: 500; }
.compare tbody tr:nth-child(even) { background: rgba(14, 26, 36, 0.03); }
.compare td:nth-child(3), .compare thead th:nth-child(3) { background: rgba(34, 184, 224, 0.08); }
.compare thead th:nth-child(3) { background: var(--brand); }

.save-note { display: flex; align-items: flex-start; gap: 0.75rem; max-width: 72ch; margin: 0 auto 2rem; padding: 1rem 1.25rem; background: var(--paper); border-left: 4px solid var(--brand-bright); border-radius: var(--radius-sm); }
.save-note .icon { color: var(--brand-bright); stroke-width: 3; margin-top: 0.2rem; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; counter-reset: step; }
.step { position: relative; }
.step .step-visual { width: 56px; height: 56px; margin-bottom: 0.75rem; }
.step .step-visual .icon { width: 26px; height: 26px; }
.step__num { font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--beacon-on-sand); }
.step h3 { margin: 0.25rem 0 0.5rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.compare thead th { text-align: center; }
.compare thead th:first-child, .compare tbody th { text-align: left; width: 32%; }
.compare td:nth-child(3) { background: rgba(34, 184, 224, 0.08); }

/* Feinschliff Qualitätscheck 12.10.2026 */
html { scroll-padding-top: 5.5rem; }
.footer-col ul a { display: inline-block; padding: 0.25rem 0; min-height: 24px; }
.pkg-lead { font-size: 0.875rem; font-weight: 700; color: var(--beacon-on-sand); margin: 0; }
.card.pkg p { flex-grow: 0; } .card.pkg .checks { flex-grow: 1; }
