:root {
    /* Dunkles Schema (Standard) */
    --bg: #0d0d0f;
    --bg-card: #17171b;
    --bg-card-alt: #1e1e23;
    --border: rgba(197, 160, 89, 0.16);
    --text: #f2ede4;
    --text-soft: #d8cfc0;
    --text-muted: #a89f8f;
    --text-dim: #7d7669;
    --accent: #c5a059;
    --accent-contrast: #1c1408;
    --header-bg: rgba(13, 13, 15, 0.92);
    --btn-secondary-border: rgba(197, 160, 89, 0.35);
}

/* Automatik: folgt dem System, solange keine manuelle Wahl gespeichert ist */
@media (prefers-color-scheme: light) {
    :root {
        --bg: #f7f3ea;
        --bg-card: #ffffff;
        --bg-card-alt: #efe6d6;
        --border: rgba(165, 120, 50, 0.22);
        --text: #241d14;
        --text-soft: #4a4030;
        --text-muted: #746a58;
        --text-dim: #948a76;
        --accent: #a07d3a;
        --accent-contrast: #1c1408;
        --header-bg: rgba(247, 243, 234, 0.92);
        --btn-secondary-border: rgba(165, 120, 50, 0.3);
    }
}

/* Manuelle Wahl per Umschalter überstimmt die Systemeinstellung */
[data-theme="light"] {
    --bg: #f7f3ea;
    --bg-card: #ffffff;
    --bg-card-alt: #efe6d6;
    --border: rgba(165, 120, 50, 0.22);
    --text: #241d14;
    --text-soft: #4a4030;
    --text-muted: #746a58;
    --text-dim: #948a76;
    --accent: #a07d3a;
    --accent-contrast: #1c1408;
    --header-bg: rgba(247, 243, 234, 0.92);
    --btn-secondary-border: rgba(165, 120, 50, 0.3);
}
[data-theme="dark"] {
    --bg: #0d0d0f;
    --bg-card: #17171b;
    --bg-card-alt: #1e1e23;
    --border: rgba(197, 160, 89, 0.16);
    --text: #f2ede4;
    --text-soft: #d8cfc0;
    --text-muted: #a89f8f;
    --text-dim: #7d7669;
    --accent: #c5a059;
    --accent-contrast: #1c1408;
    --header-bg: rgba(13, 13, 15, 0.92);
    --btn-secondary-border: rgba(197, 160, 89, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background-color 0.2s ease, color 0.2s ease;
}
a { color: inherit; }
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(4px);
}
header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
}
.brand .icon { font-size: 1.4rem; }
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent); }
.header-call {
    display: inline-block;
    background: var(--accent);
    color: var(--accent-contrast);
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 24px;
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Hero */
.hero {
    padding: 130px 0 90px;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(8, 8, 9, 0.74), rgba(8, 8, 9, 0.5) 45%, rgba(8, 8, 9, 0.88)),
        url('../img/referenz-wohnzimmer.jpg') center/cover no-repeat;
}
.hero .icon-big {
    width: 88px;
    height: 88px;
    background: #c5a059;
    border-radius: 16px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}
h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 12px;
}
.hero h1 {
    color: #f7f3ea;
}
.hero .tagline {
    color: #e2d9c8;
    font-size: 1.15rem;
    margin-bottom: 8px;
}
.hero .region {
    color: #d8b56c;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 36px;
}
.hero .btn-secondary {
    color: #f7f3ea;
    border-color: rgba(247, 243, 234, 0.45);
}
.cta-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 28px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
}
.btn-primary {
    background: var(--accent);
    color: var(--accent-contrast);
}
.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--btn-secondary-border);
}

/* Sections */
section { padding: 64px 0; }
.section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.section-sub {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 44px;
    font-size: 1rem;
}

/* Leistungen */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 22px;
    text-align: center;
}
.service-card .icon {
    font-size: 2rem;
    margin-bottom: 14px;
}
.service-card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}
.service-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Vorher/Nachher */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.gallery-pair {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}
.photo-slots {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.photo-slot {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--bg-card-alt);
}
.photo-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.photo-slot .label {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: #f0f0f0;
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 12px;
}
.photo-slot.missing img { display: none; }
.photo-slot.missing::after {
    content: 'Foto folgt';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 0.85rem;
}
.gallery-caption {
    padding: 14px 18px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Referenzen */
.ref-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.ref-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}
.ref-card .photo {
    aspect-ratio: 4 / 3;
    background: var(--bg-card-alt);
}
.ref-card .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ref-card .ref-caption {
    padding: 12px 16px;
    color: var(--text-soft);
    font-size: 0.85rem;
}

/* Warum wir */
.why-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.why-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.why-item .mark {
    color: var(--accent);
    font-size: 1.2rem;
    font-weight: 700;
}
.why-item p {
    color: var(--text-soft);
    font-size: 0.95rem;
}

/* Kontakt */
.contact-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 44px 32px;
    text-align: center;
}
.contact-box h2 { margin-bottom: 10px; }
.contact-box .region-line {
    color: var(--text-muted);
    margin-bottom: 28px;
}
.contact-details {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}
.contact-details a { color: var(--accent); text-decoration: none; }

/* Footer & Impressum */
footer {
    padding: 32px 0;
    color: var(--text-dim);
    font-size: 0.82rem;
    border-top: 1px solid var(--border);
}
footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}
.impressum { color: var(--text-muted); }
.impressum summary {
    cursor: pointer;
    color: var(--text-muted);
    text-decoration: underline;
    list-style: none;
}
.impressum summary::-webkit-details-marker { display: none; }
.impressum-body {
    margin-top: 16px;
    text-align: left;
    max-width: 420px;
    font-size: 0.82rem;
    line-height: 1.7;
}
.impressum-body p { margin-bottom: 4px; }
.impressum-body a { color: var(--accent); text-decoration: none; }

@media (max-width: 560px) {
    h1 { font-size: 1.9rem; }
    .header-call span.text { display: none; }
}
