/* ===========================================================
   Washcenter Purkersdorf – Design-System
   Helle Optik, Grün als Markenfarbe (aus dem bisherigen Auftritt)
   =========================================================== */

:root {
    --green-primary: #308446;
    --green-primary-dark: #256536;
    --green-dark: #005214;
    --green-light: #bdecb6;
    --green-pale: #eef8ec;

    --bg: #ffffff;
    --bg-soft: #f7f9f6;
    --bg-muted: #f0f2ee;
    --text: #22291f;
    --text-muted: #5b6459;
    --border: #e1e6dc;

    --danger: #b3261e;
    --danger-bg: #fbeceb;

    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 16px rgba(34, 41, 31, 0.08);
    --shadow-lg: 0 12px 32px rgba(34, 41, 31, 0.14);

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --container-width: 1160px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--green-dark);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4 {
    line-height: 1.25;
    margin: 0 0 0.5em;
    font-weight: 700;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

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

.section {
    padding: 56px 0;
}

.section--soft {
    background: var(--bg-soft);
}

.section-header {
    max-width: 640px;
    margin: 0 0 32px;
}

.section-header p {
    color: var(--text-muted);
}

.eyebrow {
    display: inline-block;
    color: var(--green-primary-dark);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 8px;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn--primary {
    background: var(--green-primary);
    color: #fff;
}

.btn--primary:hover {
    background: var(--green-dark);
    color: #fff;
}

.btn--outline {
    background: transparent;
    border-color: var(--green-primary);
    color: var(--green-primary-dark);
}

.btn--outline:hover {
    background: var(--green-pale);
    color: var(--green-dark);
}

.btn--small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn--danger {
    background: var(--danger);
    color: #fff;
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--border);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text);
}

.brand img {
    height: 42px;
    width: auto;
}

.nav-toggle {
    display: none;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav a {
    color: var(--text);
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 999px;
}

.main-nav a:hover,
.main-nav a.is-active {
    background: var(--green-pale);
    color: var(--green-dark);
    text-decoration: none;
}

.main-nav .btn {
    margin-left: 8px;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    position: relative;
    transition: 0.2s;
}

.nav-toggle-label span::before {
    content: "";
    position: absolute;
    top: -7px;
}

.nav-toggle-label span::after {
    content: "";
    position: absolute;
    top: 7px;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    background: linear-gradient(180deg, var(--green-pale) 0%, #ffffff 70%);
    padding: 72px 0 56px;
    overflow: hidden;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.hero__tagline {
    display: inline-block;
    background: var(--green-light);
    color: var(--green-dark);
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.hero__image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 3;
    background: var(--bg-muted);
}

.hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__facts {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 32px;
    color: var(--text-muted);
    font-weight: 600;
}

.hero__facts li {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.hero__facts .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-primary);
    flex-shrink: 0;
}

/* ---------- Cards / Grids ---------- */

.grid {
    display: grid;
    gap: 24px;
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    height: 100%;
}

.card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--green-pale);
    color: var(--green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-bottom: 16px;
}

.step-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.step-card__number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--green-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ---------- Preistabelle ---------- */

.price-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.price-table th {
    background: var(--green-primary);
    color: #fff;
    text-align: left;
    padding: 14px 18px;
    font-weight: 700;
}

.price-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}

.price-table tr:last-child td {
    border-bottom: none;
}

.price-table .price-cell {
    font-weight: 700;
    color: var(--green-dark);
    white-space: nowrap;
}

/* ---------- Promotions / Badges ---------- */

.promo-card {
    background: var(--green-pale);
    border: 1px solid var(--green-light);
    border-radius: var(--radius);
    padding: 24px;
}

.badge {
    display: inline-block;
    background: var(--green-light);
    color: var(--green-dark);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 999px;
}

/* ---------- Gallery ---------- */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-grid__item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--bg-muted);
    box-shadow: var(--shadow);
    cursor: pointer;
}

.gallery-grid__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.gallery-grid__item:hover img {
    transform: scale(1.04);
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 8, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 24px;
}

.lightbox.is-open {
    display: flex;
}

.lightbox img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: var(--radius-sm);
}

.lightbox__close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
}

/* ---------- Footer ---------- */

.site-footer {
    background: var(--green-dark);
    color: #eaf3e9;
    padding: 48px 0 24px;
    margin-top: 64px;
}

.site-footer a {
    color: #eaf3e9;
}

.site-footer h4 {
    color: #fff;
    margin-bottom: 12px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-bottom {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.9rem;
    color: #c7dcc4;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    font-weight: 700;
}

/* ---------- Forms ---------- */

.form-field {
    margin-bottom: 18px;
}

.form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="number"],
.form-field input[type="date"],
.form-field input[type="password"],
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    background: #fff;
    color: var(--text);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    outline: 2px solid var(--green-primary);
    outline-offset: 1px;
}

.form-field--checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-field--checkbox input {
    width: auto;
}

.form-hint {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* Honeypot-Feld: fuer echte Nutzer unsichtbar */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-weight: 600;
}

.alert--success {
    background: var(--green-pale);
    color: var(--green-dark);
    border: 1px solid var(--green-light);
}

.alert--error {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid #f0c9c6;
}

/* ---------- Utilities ---------- */

.text-muted { color: var(--text-muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }

/* ---------- Admin ---------- */

.admin-shell {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: var(--green-dark);
    color: #eaf3e9;
    padding: 24px 16px;
}

.admin-sidebar__brand {
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: 24px;
    display: block;
    color: #fff;
}

.admin-sidebar a {
    display: block;
    color: #dcecd9;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    margin-bottom: 4px;
}

.admin-sidebar a:hover,
.admin-sidebar a.is-active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    text-decoration: none;
}

.admin-main {
    flex: 1;
    padding: 32px 40px;
    background: var(--bg-soft);
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.admin-table th,
.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.admin-table th {
    background: var(--bg-muted);
    font-weight: 700;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.admin-actions {
    display: flex;
    gap: 8px;
}

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-pale);
    padding: 20px;
}

.login-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    width: 100%;
    max-width: 380px;
}

.thumb {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    background: var(--bg-muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .hero__grid { grid-template-columns: 1fr; }
    .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .admin-shell { flex-direction: column; }
    .admin-sidebar { width: 100%; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
    .admin-sidebar__brand { width: 100%; }
    .admin-main { padding: 24px 20px; }
}

@media (max-width: 720px) {
    .nav-toggle-label { display: block; }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 12px 20px 20px;
        border-bottom: 1px solid var(--border);
        display: none;
    }

    .main-nav a { padding: 12px 10px; }

    .nav-toggle:checked ~ .main-nav {
        display: flex;
    }

    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
