/* =====================================================================
   Robert Mlynek – Gas · Wasser · Heizung · Sanitär
   Temporäre "Im Aufbau"-Seite · eigenständiges, schlankes Stylesheet
   Marken: Blau #2d7ab8 (Wasser) · Orange #f5841f (Flamme)
   ===================================================================== */

/* ---- Lokale Schrift (DSGVO: lokal gehostet, keine Google-Verbindung) ---- */
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/playfair-display-v30-latin-700.woff2') format('woff2');
}

/* ---- Design-Tokens ---- */
:root {
    --blau: #2d7ab8;
    --blau-dunkel: #1a5a8a;
    --blau-hell: #4fa9d9;
    --orange: #f5841f;
    --orange-dunkel: #e55b0f;

    --navy: #0d1b2a;
    --text: #1e293b;
    --text-leise: #5b6b7e;

    --bg: #ffffff;
    --bg-sanft: #f4f7fb;
    --linie: #e3e9f0;

    --schrift-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --schrift-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;

    --radius: 16px;
    --radius-klein: 10px;
    --schatten: 0 18px 50px -18px rgba(13, 27, 42, 0.28);
    --schatten-soft: 0 4px 18px -8px rgba(13, 27, 42, 0.22);
    --max-breite: 720px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    font-family: var(--schrift-sans);
    color: var(--text);
    line-height: 1.65;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blau-dunkel); }

/* ---- Accessibility ---- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--navy);
    color: #fff;
    padding: 10px 18px;
    border-radius: 0 0 var(--radius-klein) 0;
    z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible {
    outline: 3px solid var(--blau);
    outline-offset: 3px;
    border-radius: 4px;
}

/* =====================================================================
   COMING-SOON HERO
   ===================================================================== */
.hero {
    flex: 1 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 24px 72px;
    overflow: hidden;
    background:
        radial-gradient(1200px 520px at 50% -10%, #eaf3fb 0%, rgba(234, 243, 251, 0) 60%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-sanft) 100%);
}

/* Dezente Marken-Blobs für Tiefe (rein dekorativ) */
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.18;
    z-index: 0;
    pointer-events: none;
}
.hero::before { width: 360px; height: 360px; background: var(--blau); top: -90px; right: -70px; }
.hero::after  { width: 300px; height: 300px; background: var(--orange); bottom: -110px; left: -80px; }

.hero-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--max-breite);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--schatten);
    border-radius: 24px;
    padding: 48px 40px 44px;
    text-align: center;
}

.hero-logo {
    width: clamp(220px, 48vw, 340px);
    height: auto;
    margin: 0 auto 30px;
}

/* "Im Aufbau"-Status-Badge mit pulsierendem Punkt */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #fff5ea;
    color: #b8480c; /* dunkleres Orange: 4.9:1 auf #fff5ea -> WCAG-AA-konform (Marken-Orange traegt der Punkt) */
    border: 1px solid #ffd9b0;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 7px 15px;
    border-radius: 999px;
    margin-bottom: 26px;
}
.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 0 0 rgba(245, 132, 31, 0.6);
    animation: puls 2s infinite;
}
@keyframes puls {
    0%   { box-shadow: 0 0 0 0 rgba(245, 132, 31, 0.55); }
    70%  { box-shadow: 0 0 0 12px rgba(245, 132, 31, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 132, 31, 0); }
}

.hero h1 {
    font-family: var(--schrift-serif);
    font-weight: 700;
    color: var(--navy);
    font-size: clamp(1.9rem, 5.2vw, 2.9rem);
    line-height: 1.12;
    letter-spacing: -0.01em;
    margin-bottom: 18px;
}
.hero h1 .akzent { color: var(--blau); }

.hero-lead {
    font-size: clamp(1.02rem, 2.4vw, 1.18rem);
    color: var(--text-leise);
    max-width: 52ch;
    margin: 0 auto 14px;
}

.hero-sub {
    font-size: 0.98rem;
    color: var(--text-leise);
    max-width: 52ch;
    margin: 0 auto;
}

/* Marken-Trennlinie (Blau → Orange) */
.trenner {
    width: 88px;
    height: 4px;
    border-radius: 999px;
    margin: 30px auto;
    background: linear-gradient(90deg, var(--blau) 0%, var(--orange) 100%);
}

/* ---- Kontaktbereich ---- */
.kontakt-titel {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-leise);
    margin-bottom: 16px;
}

.kontakt-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.02rem;
    font-weight: 600;
    padding: 14px 26px;
    border-radius: var(--radius-klein);
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
    border: 2px solid transparent;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn-primary {
    background: var(--blau);
    color: #fff;
    box-shadow: var(--schatten-soft);
}
.btn-primary:hover { background: var(--blau-dunkel); transform: translateY(-2px); }

.btn-outline {
    background: #fff;
    color: var(--blau-dunkel);
    border-color: var(--linie);
}
.btn-outline:hover { border-color: var(--blau); transform: translateY(-2px); }

.kontakt-hinweis {
    margin-top: 22px;
    font-size: 0.9rem;
    color: var(--text-leise);
}
.kontakt-hinweis a { color: var(--blau-dunkel); font-weight: 600; }

/* =====================================================================
   FOOTER (alle Seiten)
   ===================================================================== */
.footer {
    flex-shrink: 0;
    background: var(--navy);
    color: #c7d3e0;
    padding: 26px 24px;
    text-align: center;
    font-size: 0.88rem;
}
.footer-inner {
    max-width: var(--max-breite);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}
.footer p { margin: 0; }
.footer-legal {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-legal a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}
.footer-legal a:hover { text-decoration: underline; }

/* =====================================================================
   RECHTSSEITEN (Impressum / Datenschutz)
   ===================================================================== */
.legal-header {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-sanft) 100%);
    border-bottom: 1px solid var(--linie);
    padding: 30px 24px 26px;
}
.legal-header-inner {
    max-width: var(--max-breite);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}
.legal-header .logo-link { display: inline-block; }
.legal-header .logo-link img { width: 190px; height: auto; }
.zurueck-link {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--blau-dunkel);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.zurueck-link:hover { text-decoration: underline; }

.legal-main {
    flex: 1 0 auto;
    padding: 40px 24px 60px;
}
.legal-content {
    max-width: var(--max-breite);
    margin: 0 auto;
}
.legal-content h1 {
    font-family: var(--schrift-serif);
    color: var(--navy);
    font-size: clamp(1.8rem, 4.5vw, 2.4rem);
    margin-bottom: 8px;
}
.legal-content > p.stand {
    color: var(--text-leise);
    font-size: 0.9rem;
    margin-bottom: 30px;
}
.legal-content h2 {
    color: var(--navy);
    font-size: 1.25rem;
    margin: 34px 0 12px;
    padding-top: 8px;
}
.legal-content h3 {
    color: var(--navy);
    font-size: 1.05rem;
    margin: 22px 0 8px;
}
.legal-content p { margin-bottom: 14px; }
.legal-content ul { margin: 0 0 14px 22px; }
.legal-content li { margin-bottom: 6px; }
.legal-content a { color: var(--blau-dunkel); }

.legal-address {
    font-style: normal;
    background: var(--bg-sanft);
    border: 1px solid var(--linie);
    border-left: 4px solid var(--blau);
    border-radius: var(--radius-klein);
    padding: 16px 20px;
    margin: 4px 0 18px;
    line-height: 1.7;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 540px) {
    .hero-card { padding: 34px 22px 36px; border-radius: 20px; }
    .kontakt-actions { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    .legal-header-inner { justify-content: center; text-align: center; }
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
