/* ═══════════════════════════════════════════════════════════════════════════
   Korbflechterei Witt – Haupt-Stylesheet
   Erdton-Design: Sandbeige / Walnussbraun / Olivgrün
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Selbst gehostete Schriften (kein Google-CDN) ───────────────────────── */
@font-face {
    font-family: 'Playfair Display';
    font-style:  normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/playfair-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Playfair Display';
    font-style:  italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/playfair-400i.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Lato';
    font-style:  normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/lato-300.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Lato';
    font-style:  normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/lato-400.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Lato';
    font-style:  normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/lato-700.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Variablen ─────────────────────────────────────────────────────────────── */
:root {
    --primary:     #6B4226;
    --primary-dk:  #4E2F18;
    --secondary:   #7A9E6F;
    --secondary-dk:#5C7A53;
    --accent:      #C49A6C;
    --accent-lt:   #D4B48C;
    --bg:          #F5EDD8;
    --bg-light:    #FFF8F0;
    --bg-dark:     #EDE2CC;
    --text:        #2C1810;
    --text-muted:  #7A6458;
    --border:      #DDD0BA;
    --white:       #FFFFFF;
    --shadow:      rgba(44,24,16,0.12);
    --shadow-md:   rgba(44,24,16,0.20);

    --radius-sm:   6px;
    --radius:      12px;
    --radius-lg:   20px;

    --font-head:   'Playfair Display', Georgia, serif;
    --font-body:   'Lato', 'Helvetica Neue', Arial, sans-serif;

    --nav-h:       72px;
    --max-w:       1200px;
    --transition:  0.3s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

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

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

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--secondary); }

ul { list-style: none; }

/* ── Typografie ────────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
    font-family: var(--font-head);
    line-height: 1.25;
    color: var(--primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Layout ────────────────────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

.section-header {
    text-align: center;
    margin-bottom: 56px;
}
.section-header h2 { margin-bottom: 12px; }
.section-header p {
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* ── Navigation ────────────────────────────────────────────────────────────── */
.nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 12px var(--shadow);
    height: var(--nav-h);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.nav-logo .logo-main {
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}
.nav-logo .logo-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    transition: background var(--transition), color var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
    background: var(--bg-dark);
    color: var(--primary);
}
.nav-links a.nav-cta {
    background: var(--primary);
    color: var(--white);
    padding: 8px 20px;
}
.nav-links a.nav-cta:hover {
    background: var(--primary-dk);
    color: var(--white);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--primary-dk);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.45;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(44,24,16,0.75) 0%, rgba(107,66,38,0.5) 60%, rgba(122,158,111,0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 700px;
}

.hero-tag {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.hero-content h1 {
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.15rem;
    opacity: 0.92;
    margin-bottom: 36px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.25);
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dk);
    border-color: var(--primary-dk);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107,66,38,0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.7);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--white);
    color: var(--white);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}
.btn-secondary:hover {
    background: var(--secondary-dk);
    border-color: var(--secondary-dk);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-ghost:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-sm { padding: 9px 20px; font-size: 0.875rem; }
.btn-lg { padding: 18px 44px; font-size: 1.05rem; }

.btn-icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ── Karte ─────────────────────────────────────────────────────────────────── */
.card {
    background: var(--bg-light);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px var(--shadow-md);
}

.card-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

.card-body {
    padding: 20px 24px 24px;
}
.card-body h3 { margin-bottom: 8px; font-size: 1.15rem; }
.card-body p  { color: var(--text-muted); font-size: 0.9rem; }

.card-price {
    font-family: var(--font-head);
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 700;
    margin: 12px 0 16px;
}

.card-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    background: var(--accent);
    color: var(--white);
    margin-bottom: 10px;
}

/* ── Raster ────────────────────────────────────────────────────────────────── */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center;
}

/* ── Leistungs-Karten ──────────────────────────────────────────────────────── */
.service-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 36px 28px;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px var(--shadow);
}

.service-icon {
    width: 72px;
    height: 72px;
    background: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    line-height: 1;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}
.service-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* ── Galerie ───────────────────────────────────────────────────────────────── */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 20px;
    border: 2px solid var(--border);
    background: var(--bg-light);
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 1;
    cursor: pointer;
    background: var(--bg-dark);
}

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

.gallery-item:hover img { transform: scale(1.06); }

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(44,24,16,0.7) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 16px;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }

.gallery-item-overlay span {
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 500;
}

/* ── Lightbox ──────────────────────────────────────────────────────────────── */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(20,10,5,0.94);
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.lightbox.open { display: flex; }

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    color: var(--white);
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

.lightbox-caption {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    text-align: center;
    max-width: 500px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    color: var(--white);
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}
.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* ── Verkauf-Artikel ───────────────────────────────────────────────────────── */
.product-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px var(--shadow-md);
}

.product-img-wrap {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--bg-dark);
}
.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.04); }

.product-select-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: var(--bg-light);
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    font-size: 1rem;
}
.product-select-btn:hover,
.product-select-btn.selected {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--white);
}

.product-body {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-id {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.product-body h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}
.product-body p {
    color: var(--text-muted);
    font-size: 0.875rem;
    flex: 1;
}
.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.product-price {
    font-family: var(--font-head);
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 700;
}

/* Anfrage-Korb */
.inquiry-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary);
    color: var(--white);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 900;
    transform: translateY(100%);
    transition: transform var(--transition);
    box-shadow: 0 -4px 20px rgba(44,24,16,0.2);
}
.inquiry-bar.visible { transform: translateY(0); }
.inquiry-bar-text { font-size: 0.95rem; }
.inquiry-bar-text strong { font-size: 1.1rem; }

/* ── Über uns ──────────────────────────────────────────────────────────────── */
.about-illustration {
    width: 150px;
    margin-bottom: 12px;
    mix-blend-mode: multiply;
    opacity: 0.85;
}
.about-text h2 { margin-bottom: 20px; }
.about-text p  { color: var(--text-muted); line-height: 1.8; }

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 50px var(--shadow-md);
}
.about-image img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.about-badge {
    position: absolute;
    bottom: -16px;
    right: -16px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    width: 110px;
    height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--font-head);
    box-shadow: 0 6px 20px rgba(196,154,108,0.4);
}
.about-badge .year {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
}
.about-badge .label {
    font-size: 0.6rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.2;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 36px;
}
.fact-item {
    background: var(--bg-dark);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}
.fact-item .num {
    font-family: var(--font-head);
    font-size: 2rem;
    color: var(--primary);
    font-weight: 700;
    line-height: 1;
}
.fact-item .lbl {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ── Team ──────────────────────────────────────────────────────────────────── */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.team-card {
    text-align: center;
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 32px 20px;
    border: 1px solid var(--border);
}
.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    border: 3px solid var(--accent);
}
.team-avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    margin: 0 auto 16px;
    border: 3px solid var(--accent);
}
.team-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.team-card .team-role { color: var(--text-muted); font-size: 0.875rem; }

/* ── Leistungen ────────────────────────────────────────────────────────────── */
.leistung-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
}
.leistung-block:last-child { border-bottom: none; }
.leistung-block.reverse { direction: rtl; }
.leistung-block.reverse > * { direction: ltr; }

.leistung-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 16px 40px var(--shadow);
}
.leistung-img img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.leistung-text h2 { margin-bottom: 16px; }
.leistung-text p  { color: var(--text-muted); margin-bottom: 16px; }

.leistung-list {
    list-style: none;
    margin: 20px 0 28px;
}
.leistung-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}
.leistung-list li::before {
    content: '✓';
    color: var(--secondary);
    font-weight: 700;
    margin-top: 1px;
    flex-shrink: 0;
}

/* ── Kontakt ───────────────────────────────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    align-items: start;
}

.contact-info h3 { margin-bottom: 24px; }

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 24px;
}
.contact-icon {
    width: 44px;
    height: 44px;
    background: var(--bg-dark);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.contact-item-text strong {
    display: block;
    color: var(--primary);
    font-size: 0.875rem;
    margin-bottom: 2px;
}
.contact-item-text span,
.contact-item-text a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ── Formular ──────────────────────────────────────────────────────────────── */
.form-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 40px;
    box-shadow: 0 8px 30px var(--shadow);
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    -webkit-appearance: none;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(107,66,38,0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 140px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 12px;
}

/* ── Alert ─────────────────────────────────────────────────────────────────── */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
    border-left: 4px solid;
}
.alert-success { background: #EBF5E9; border-color: var(--secondary); color: #3A6B32; }
.alert-error   { background: #FBE9E7; border-color: #C0392B; color: #8B2519; }
.alert-info    { background: #EAF3FB; border-color: #2980B9; color: #1A4F72; }

/* ── CTA-Banner ────────────────────────────────────────────────────────────── */
.cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dk) 100%);
    padding: 80px 0;
    text-align: center;
    color: var(--white);
}
.cta-banner h2 { color: var(--white); margin-bottom: 14px; }
.cta-banner p  { opacity: 0.88; margin-bottom: 32px; font-size: 1.05rem; }

/* ── Footer ────────────────────────────────────────────────────────────────── */
.footer {
    background: var(--primary-dk);
    color: rgba(255,255,255,0.75);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-brand .logo-main { color: var(--white); margin-bottom: 12px; display: block; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; }

.footer-col h4 {
    color: var(--white);
    font-family: var(--font-head);
    margin-bottom: 16px;
    font-size: 1rem;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.68); font-size: 0.875rem; }
.footer-col ul li a:hover { color: var(--accent-lt); }

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.footer-social a {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.75);
    font-size: 1rem;
    transition: background var(--transition), color var(--transition);
}
.footer-social a:hover {
    background: var(--accent);
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--accent-lt); }

/* ── Breadcrumb ────────────────────────────────────────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dk) 100%);
    padding: 48px 0;
    color: var(--white);
}
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-hero p  { color: rgba(255,255,255,0.8); margin-top: 8px; }

/* ── Admin-Bereich ─────────────────────────────────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar {
    width: 240px;
    background: var(--primary-dk);
    color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sidebar-logo {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-logo .logo-main { color: var(--white); font-family: var(--font-head); font-size: 1rem; font-weight: 700; }
.sidebar-logo .logo-sub  { color: rgba(255,255,255,0.5); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }

.sidebar-nav { flex: 1; padding: 16px 0; }
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    color: rgba(255,255,255,0.68);
    font-size: 0.9rem;
    transition: background var(--transition), color var(--transition);
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}
.sidebar-nav a .nav-icon { font-size: 1.1rem; width: 20px; text-align: center; }

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
}
.sidebar-footer a:hover { color: var(--accent-lt); }

.admin-main {
    margin-left: 240px;
    flex: 1;
    min-height: 100vh;
    background: #F0EBE0;
}

.admin-topbar {
    background: var(--white);
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}
.admin-topbar h1 { font-size: 1.4rem; }

.admin-content { padding: 28px; }

.stat-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}
.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
}
.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}
.stat-icon.brown  { background: rgba(107,66,38,0.1); }
.stat-icon.green  { background: rgba(122,158,111,0.1); }
.stat-icon.accent { background: rgba(196,154,108,0.1); }
.stat-icon.blue   { background: rgba(41,128,185,0.1); }
.stat-num { font-family: var(--font-head); font-size: 2rem; color: var(--primary); font-weight: 700; line-height: 1; }
.stat-lbl { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}
.admin-table th {
    background: var(--bg-dark);
    text-align: left;
    padding: 12px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}
.admin-table td {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
    vertical-align: middle;
}
.admin-table tr:hover td { background: var(--bg); }

.admin-table img.thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.badge-green  { background: #D4EDD1; color: #2E7D32; }
.badge-red    { background: #FDECEA; color: #C0392B; }
.badge-yellow { background: #FEF9E7; color: #7D6608; }
.badge-blue   { background: #EAF3FB; color: #1A5276; }

/* Upload-Zone */
.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    background: var(--bg-light);
    transition: border-color var(--transition), background var(--transition);
}
.upload-zone:hover,
.upload-zone.dragging {
    border-color: var(--primary);
    background: var(--bg-dark);
}
.upload-zone .upload-icon { font-size: 3rem; margin-bottom: 12px; }
.upload-zone h3 { margin-bottom: 8px; }
.upload-zone p  { color: var(--text-muted); font-size: 0.875rem; }

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 20px;
}
.preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-dark);
}
.preview-item img { width: 100%; height: 100%; object-fit: cover; }
.preview-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    background: rgba(192,57,43,0.9);
    border-radius: 50%;
    border: none;
    color: var(--white);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Admin-Formular */
.admin-form-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 28px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--border);
    border-radius: 24px;
    cursor: pointer;
    transition: background var(--transition);
}
.toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: var(--white);
    border-radius: 50%;
    transition: transform var(--transition);
}
.toggle-switch input:checked + .toggle-slider { background: var(--secondary); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ── Impressum / Datenschutz ───────────────────────────────────────────────── */
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-content h2 { font-size: 1.4rem; margin-top: 36px; margin-bottom: 12px; }
.legal-content h3 { font-size: 1.1rem; margin-top: 24px; margin-bottom: 8px; }
.legal-content p  { color: var(--text-muted); line-height: 1.8; }
.legal-content ul { list-style: disc; padding-left: 20px; color: var(--text-muted); }

/* ── Responsive ────────────────────────────────────────────────────────────── */
/* ── Breit (≤ 1100px) ──────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .grid-4     { grid-template-columns: repeat(2, 1fr); }
    .stat-cards { grid-template-columns: repeat(2, 1fr); }
}

/* ── Tablet (≤ 900px) ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .section            { padding: 60px 0; }
    .section-header     { margin-bottom: 40px; }
    .grid-3             { grid-template-columns: repeat(2, 1fr); }
    .grid-2             { grid-template-columns: 1fr; }
    .leistung-block     { grid-template-columns: 1fr; gap: 32px; }
    .leistung-block.reverse { direction: ltr; }
    .contact-grid       { grid-template-columns: 1fr; }
    .footer-grid        { grid-template-columns: 1fr 1fr; }
    .team-grid          { grid-template-columns: repeat(2, 1fr); }
    .facts-grid         { grid-template-columns: repeat(3, 1fr); }
    .admin-sidebar      { width: 200px; }
    .admin-main         { margin-left: 200px; }
}

/* ── Tablet schmal / großes Smartphone (≤ 768px) ───────────────────────── */
@media (max-width: 768px) {

    /* Navigation */
    .nav            { position: relative; }
    .nav-toggle     { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-h);
        left: 0; right: 0;
        background: var(--bg-light);
        flex-direction: column;
        padding: 12px 16px 20px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 8px 24px var(--shadow);
        gap: 2px;
        z-index: 999;
    }
    .nav-links.open     { display: flex; }
    .nav-links a        { padding: 12px 16px; font-size: 1rem; min-height: 44px; display: flex; align-items: center; border-radius: var(--radius-sm); }

    /* Hero */
    .hero               { min-height: 72vh; }
    .hero-content p     { font-size: 1rem; margin-bottom: 24px; }
    .hero-actions       { flex-direction: column; gap: 12px; }
    .hero-actions .btn  { width: 100%; justify-content: center; white-space: normal; }

    /* Layout */
    .section            { padding: 48px 0; }
    .section-header     { margin-bottom: 32px; }
    .container          { padding: 0 16px; }

    /* Grids */
    .grid-3             { grid-template-columns: 1fr; }
    .grid-4             { grid-template-columns: repeat(2, 1fr); }
    .form-row           { grid-template-columns: 1fr; }
    .footer-grid        { grid-template-columns: 1fr; }
    .team-grid          { grid-template-columns: 1fr; }

    /* About */
    .about-illustration { width: 120px; }
    .about-badge        { width: 90px; height: 90px; bottom: -8px; right: -8px; }
    .about-badge .year  { font-size: 1.3rem; }

    /* Service cards */
    .service-card       { padding: 28px 20px; }

    /* Buttons allgemein: langer deutscher Text soll umbrechen */
    .btn                { white-space: normal; text-align: center; }

    /* iOS: verhindert Auto-Zoom bei Fokus auf Eingabefelder */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    select,
    textarea            { font-size: 16px !important; }

    /* Formulare */
    .form-card          { padding: 24px 20px; }

    /* Inquiry-Bar */
    .inquiry-bar        { flex-direction: column; gap: 10px; text-align: center; padding: 14px 16px; }
    .inquiry-bar-text   { font-size: 0.9rem; }

    /* Galerie */
    .gallery-grid       { gap: 10px; }
    .filter-btn         { padding: 8px 16px; min-height: 44px; }

    /* Admin: Sidebar einklappen, Toggle-Button einblenden */
    .admin-sidebar      { transform: translateX(-100%); width: 260px; position: fixed; z-index: 500; }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main         { margin-left: 0; }
    .stat-cards         { grid-template-columns: 1fr 1fr; }
    .admin-content      { padding: 20px 16px; }
    #sidebarToggle      { display: block !important; }
}

/* ── Smartphone (≤ 480px) ───────────────────────────────────────────────── */
@media (max-width: 480px) {

    /* Basis */
    .container          { padding: 0 14px; }
    .section            { padding: 36px 0; }
    .section-header     { margin-bottom: 24px; }
    .section-header p   { font-size: 0.95rem; }

    /* Hero */
    .hero               { min-height: 60vh; }
    .hero-tag           { font-size: 0.7rem; padding: 5px 12px; margin-bottom: 14px; }
    .hero-content h1    { margin-bottom: 12px; }
    .hero-content p     { font-size: 0.95rem; }

    /* Nav: Untertitel weglassen */
    .nav-logo .logo-sub { display: none; }
    .nav-logo .logo-main { font-size: 1.15rem; }

    /* Grids */
    .grid-4             { grid-template-columns: 1fr; }
    .facts-grid         { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .stat-cards         { grid-template-columns: 1fr; }

    /* Service cards */
    .service-card       { padding: 22px 16px; }
    .service-icon       { width: 60px; height: 60px; font-size: 1.6rem; margin-bottom: 14px; }

    /* About */
    .about-illustration { width: 100px; margin-bottom: 8px; }
    .about-badge        { width: 80px; height: 80px; }
    .about-badge .year  { font-size: 1.1rem; }
    .about-badge .label { font-size: 0.55rem; }

    /* Buttons */
    .btn                { padding: 12px 20px; font-size: 0.9rem; }
    .btn-lg             { padding: 14px 24px; }

    /* Galerie */
    .gallery-grid       { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .gallery-filters    { gap: 6px; }
    .filter-btn         { padding: 6px 12px; font-size: 0.8rem; min-height: 38px; }

    /* Produkt-Karten (Verkauf) */
    .product-card       { padding: 16px; }

    /* Formulare */
    .form-card          { padding: 20px 14px; }

    /* Footer */
    .footer-grid        { gap: 20px; }

    /* Admin */
    .admin-topbar       { padding: 12px 16px; flex-wrap: wrap; gap: 8px; }
    .admin-topbar h1    { font-size: 1.1rem; }
    .admin-content      { padding: 16px 12px; }
    .section-split      { grid-template-columns: 1fr !important; }
}

/* ── Kleinstes Smartphone (≤ 360px) ────────────────────────────────────── */
@media (max-width: 360px) {
    .container          { padding: 0 12px; }
    .gallery-grid       { grid-template-columns: 1fr; }
    .facts-grid         { grid-template-columns: 1fr; gap: 6px; }
    .nav-logo .logo-main { font-size: 1.05rem; }
    .hero-tag           { display: none; }
}

/* ── Utilities ─────────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.mb-0  { margin-bottom: 0; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.d-flex { display: flex; }
.gap-16 { gap: 16px; }
.align-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
