/* ============================================================
   Taltlow — shared styles for index / impressum / datenschutz
   Palette: teal #1a5653  +  gold #d4a847
============================================================ */

:root {
    --primary: #1a5653;
    --primary-light: #2a7a76;
    --primary-dark: #0f3533;
    --primary-ink: #07201f;
    --gold: #d4a847;
    --gold-light: #e8c374;
    --gold-dark: #b8902f;
    --cream: #faf7ee;
    --paper: #ffffff;
    --ink: #1a1f1e;
    --ink-mute: #5a6664;
    --line: #e9e5da;
    --shadow-sm: 0 1px 2px rgba(15, 53, 51, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 53, 51, 0.08);
    --shadow-lg: 0 28px 70px rgba(15, 53, 51, 0.14);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --container: 1200px;
    --section-y: clamp(4rem, 8vw, 7rem);
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.022em;
    line-height: 1.15;
    color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

p { color: var(--ink-mute); }

/* ===== Utilities ===== */

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section { padding: var(--section-y) 0; }

/* Skip browser paint for offscreen sections — boosts LCP without affecting layout */
.services,
.gallery,
.about,
.cta-band {
    content-visibility: auto;
    contain-intrinsic-size: 1px 1500px;
}

/* Skip-to-content link for keyboard/screen-reader users (also a small SEO/UX win) */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    background: var(--primary);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    z-index: 1000;
    text-decoration: none;
    font-weight: 600;
    transition: top 0.2s;
}
.skip-link:focus { top: 1rem; outline: 2px solid var(--gold); }

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 1rem;
}

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3.5rem;
}

.section-head h2 { margin-bottom: 0.75rem; }
.section-head p { font-size: 1.05rem; }

/* ===== Buttons ===== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, box-shadow 0.3s;
    white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

.btn-lg { padding: 1.05rem 1.85rem; font-size: 1rem; }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.85rem; }

.btn-gold {
    background: var(--gold);
    color: var(--primary-ink);
    box-shadow: 0 8px 24px rgba(212, 168, 71, 0.35);
}
.btn-gold:hover { background: var(--gold-light); box-shadow: 0 12px 28px rgba(212, 168, 71, 0.45); }

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 24px rgba(26, 86, 83, 0.25);
}
.btn-primary:hover { background: var(--primary-light); }

.btn-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

.btn-outline {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

.icon { width: 18px; height: 18px; stroke-width: 2; }
.icon-lg { width: 28px; height: 28px; stroke-width: 1.75; }

/* ===== Header ===== */

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
    border-bottom: 1px solid transparent;
}

.site-header.solid,
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom-color: var(--line);
    box-shadow: var(--shadow-sm);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1rem 1.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 700;
    color: #fff;
    transition: color 0.3s;
}

.brand-logo {
    height: 42px;
    width: auto;
    transition: transform 0.3s;
}

.brand:hover .brand-logo { transform: scale(1.05); }

.brand-name {
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.site-header.scrolled .brand,
.site-header.solid .brand { color: var(--ink); }

.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-links a {
    padding: 0.5rem 0.9rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    transition: color 0.25s, background 0.25s;
}

.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }

.site-header.scrolled .nav-links a,
.site-header.solid .nav-links a { color: var(--ink-mute); }

.site-header.scrolled .nav-links a:hover,
.site-header.solid .nav-links a:hover { color: var(--primary); background: rgba(26, 86, 83, 0.08); }

.nav-cta { display: flex; gap: 0.6rem; align-items: center; }

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 0.5rem;
    color: #fff;
    cursor: pointer;
}

.site-header.scrolled .nav-toggle,
.site-header.solid .nav-toggle { color: var(--ink); }

/* ===== Footer ===== */

.site-footer {
    background: var(--primary-ink);
    color: rgba(255, 255, 255, 0.78);
    padding: 4.5rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.65);
    margin-top: 1rem;
    max-width: 280px;
    font-size: 0.95rem;
}

.footer-logo {
    height: 52px;
    filter: brightness(1.1);
}

.footer-col h4 {
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { color: rgba(255, 255, 255, 0.78); transition: color 0.25s; font-size: 0.95rem; }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-meta a { color: rgba(255, 255, 255, 0.65); margin-left: 1.25rem; transition: color 0.25s; }
.footer-meta a:hover { color: var(--gold); }

/* ===== Legal page (impressum/datenschutz) ===== */

.legal-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #fff;
    padding: 9rem 0 4.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.legal-hero::before {
    content: '';
    position: absolute;
    width: 480px;
    height: 480px;
    top: -180px;
    right: -160px;
    background: radial-gradient(circle, rgba(212, 168, 71, 0.18) 0%, transparent 70%);
    border-radius: 50%;
}

.legal-hero h1 { color: #fff; margin-bottom: 0.5rem; }
.legal-hero p { color: rgba(255, 255, 255, 0.78); font-size: 1.05rem; }

.legal-content {
    max-width: 780px;
    margin: 0 auto;
    padding: 4rem 1.5rem 5rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 2.75rem;
    margin-bottom: 0.85rem;
    color: var(--primary);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--line);
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content h3 {
    font-size: 1.1rem;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--ink);
}

.legal-content p,
.legal-content li {
    color: var(--ink-mute);
    line-height: 1.75;
    margin-bottom: 1rem;
    font-size: 0.98rem;
}

.legal-content ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-content a { color: var(--primary); text-decoration: underline; }
.legal-content a:hover { color: var(--primary-light); }

.legal-content strong { color: var(--ink); font-weight: 600; }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary);
    font-weight: 500;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
    width: 100%;
}

.back-link:hover { color: var(--primary-light); }

/* ===== Cookie consent banner ===== */
.cookie-banner {
    position: fixed;
    inset: auto 1rem 1rem 1rem;
    z-index: 9000;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}
.cookie-banner.is-open { opacity: 1; transform: translateY(0); }

.cookie-card {
    background: var(--paper);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    border: 1px solid var(--line);
}

.cookie-text h2 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--ink);
}
.cookie-text p {
    color: var(--ink-mute);
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 1.1rem;
}
.cookie-text a {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-settings {
    border-top: 1px solid var(--line);
    padding-top: 1rem;
    margin-bottom: 1.1rem;
    display: grid;
    gap: 0.85rem;
}
.cookie-settings[hidden],
.cookie-banner [hidden] { display: none !important; }
.cookie-toggle {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 0.85rem;
    align-items: start;
    cursor: pointer;
}
.cookie-toggle input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--ink-mute);
    border-radius: 4px;
    margin-top: 2px;
    cursor: pointer;
    position: relative;
    background: #fff;
    transition: background 0.2s, border-color 0.2s;
}
.cookie-toggle input[type="checkbox"]:checked {
    background: var(--primary);
    border-color: var(--primary);
}
.cookie-toggle input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    inset: 2px 3px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-1px, -1px);
    width: 5px;
    height: 9px;
    box-sizing: border-box;
}
.cookie-toggle input[type="checkbox"]:disabled {
    background: var(--ink-mute);
    border-color: var(--ink-mute);
    cursor: not-allowed;
}
.cookie-toggle strong {
    color: var(--ink);
    font-size: 0.95rem;
}
.cookie-toggle small {
    display: block;
    color: var(--ink-mute);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    line-height: 1.5;
}
.cookie-pill {
    display: inline-block;
    background: var(--cream);
    color: var(--ink-mute);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    margin-left: 0.4rem;
    vertical-align: middle;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: flex-end;
}

@media (max-width: 560px) {
    .cookie-banner { inset: auto 0.5rem 0.5rem 0.5rem; }
    .cookie-card { padding: 1.25rem; }
    .cookie-actions { justify-content: stretch; flex-direction: column-reverse; }
    .cookie-actions .btn { width: 100%; }
}

/* ===== Responsive ===== */

@media (max-width: 900px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-top: 1px solid var(--line);
        box-shadow: var(--shadow-md);
        padding: 0.5rem 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: max-height 0.3s ease, opacity 0.2s ease;
    }
    .nav-links.open {
        max-height: 400px;
        opacity: 1;
        pointer-events: auto;
    }
    .nav-links a {
        padding: 0.95rem 1.5rem;
        color: var(--ink) !important;
        font-size: 1rem;
        border-radius: 0;
        border-bottom: 1px solid var(--line);
    }
    .nav-links a:last-child { border-bottom: 0; }
    .nav-toggle { display: inline-flex; }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom .container { flex-direction: column; align-items: flex-start; }
    .footer-meta a { margin-left: 0; margin-right: 1rem; }
}
