:root {
    --brown-950: #17100a;
    --brown-900: #24170e;
    --brown-800: #3a2415;
    --brown-700: #5f3b20;
    --brown-600: #81552e;
    --brown-500: #a36d3a;
    --cream: #f7efe2;
    --cream-2: #efe1cc;
    --green: #31452b;
    --green-2: #465f38;
    --gold: #d9aa5f;
    --text: #2b2118;
    --muted: #6b5b4b;
    --white: #fffdf8;
    --danger-bg: #fdecec;
    --danger: #8a1f1f;
    --success-bg: #eef8ef;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    background: var(--cream);
    color: var(--text);
    line-height: 1.6;
}

body, input, select, button { font-size: 16px; }
input, select, button { font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; }

.site-header {
    min-height: 760px;
    background-image: linear-gradient(90deg, rgba(23,16,10,.76), rgba(23,16,10,.48), rgba(23,16,10,.34)), url('../Hintergrundbild.jpeg');
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.sub-header {
    background: var(--brown-950);
    color: var(--white);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.topbar {
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    text-decoration: none;
}

.brand img {
    display: block;
    width: auto;
    height: 92px;
    max-width: 330px;
    object-fit: contain;
    border-radius: 8px;
}

.menu {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-family: Arial, Helvetica, sans-serif;
}

.menu a {
    text-decoration: none;
    padding: 10px 13px;
    border-radius: 999px;
    color: rgba(255,255,255,.88);
    transition: background .2s ease, color .2s ease;
}

.menu a:hover,
.menu .admin-link {
    background: rgba(255,255,255,.12);
    color: #fff;
}

.hero {
    max-width: 1180px;
    margin: 0 auto;
    padding: 110px 24px 150px;
}

.hero-card {
    max-width: 680px;
    padding: 42px;
    border-radius: 28px;
    background: rgba(23,16,10,.62);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 24px 80px rgba(0,0,0,.32);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 800;
}

.eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    background: var(--gold);
    border-radius: 999px;
}

h1, h2, h3 { line-height: 1.12; margin: 0 0 16px; }
h1 { font-size: clamp(42px, 6vw, 76px); }
h2 { font-size: clamp(30px, 4vw, 48px); }
h3 { font-size: 23px; }

.hero-card p {
    font-size: 20px;
    color: rgba(255,255,255,.86);
    margin: 0 0 28px;
}

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

.button, button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    padding: 14px 20px;
    background: var(--green-2);
    color: #fff;
    text-decoration: none;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    font-family: Arial, Helvetica, sans-serif;
    box-shadow: 0 10px 22px rgba(49,69,43,.26);
}

.button:hover, button:hover { background: var(--green); }
.button-secondary {
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    box-shadow: none;
}
.button-secondary:hover { background: rgba(255,255,255,.22); }

.section { padding: 86px 24px; }
.section-light { background: var(--cream); }
.section-dark {
    background: linear-gradient(135deg, var(--brown-950), var(--brown-800));
    color: var(--white);
}

.wrap { max-width: 1180px; margin: 0 auto; }
.section-heading { max-width: 760px; margin-bottom: 34px; }
.section-heading p, .intro-panel p, .muted { color: var(--muted); }
.section-dark .section-heading p,
.section-dark .intro-panel p,
.section-dark .muted { color: rgba(255,255,255,.72); }

.wood-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.wood-card, .form-card, .note-box, .container {
    background: var(--white);
    color: var(--text);
    border-radius: 22px;
    box-shadow: 0 16px 50px rgba(58,36,21,.12);
}

.wood-card {
    padding: 26px;
    border: 1px solid rgba(95,59,32,.12);
}
.wood-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    background: var(--cream-2);
    color: var(--brown-700);
    border-radius: 16px;
    margin-bottom: 18px;
    font-size: 24px;
}
.wood-card p { color: var(--muted); margin-bottom: 18px; }
.wood-card strong { color: var(--green); font-family: Arial, Helvetica, sans-serif; font-size: 20px; }

.two-column {
    display: grid;
    grid-template-columns: .82fr 1.18fr;
    gap: 34px;
    align-items: start;
}

.intro-panel {
    padding: 28px 0;
    position: sticky;
    top: 20px;
}

.check-list {
    padding: 0;
    margin: 24px 0 0;
    list-style: none;
    font-family: Arial, Helvetica, sans-serif;
}
.check-list li {
    margin: 10px 0;
    padding-left: 30px;
    position: relative;
    color: rgba(255,255,255,.82);
}
.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 900;
}

.form-card {
    padding: 34px;
}

label {
    display: block;
    margin: 15px 0 7px;
    font-weight: 800;
    font-family: Arial, Helvetica, sans-serif;
}

input, select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d8cbb9;
    border-radius: 12px;
    font-size: 16px;
    background: #fff;
    color: var(--text);
    outline: none;
}
input:focus, select:focus {
    border-color: var(--brown-500);
    box-shadow: 0 0 0 4px rgba(163,109,58,.13);
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}
.note-box {
    padding: 28px;
    border-left: 6px solid var(--gold);
}

.footer {
    padding: 26px 24px;
    text-align: center;
    background: var(--brown-950);
    color: rgba(255,255,255,.72);
    font-family: Arial, Helvetica, sans-serif;
}
.footer p { margin: 0; }

.container {
    max-width: 920px;
    margin: 40px auto;
    padding: 32px;
}
.nav { margin-bottom: 18px; font-family: Arial, Helvetica, sans-serif; }
.nav a { margin-right: 12px; color: var(--brown-700); font-weight: 800; }

.notice, .error {
    padding: 14px 16px;
    border-radius: 14px;
    margin: 16px 0;
    font-family: Arial, Helvetica, sans-serif;
}
.notice { background: var(--success-bg); }
.error { background: var(--danger-bg); color: var(--danger); }

.result-section { min-height: 78vh; }
.result-wrap { max-width: 920px; }
.result-card { margin: 0 auto; }
.result {
    display: grid;
    gap: 4px;
    padding: 22px;
    background: linear-gradient(135deg, var(--green), var(--green-2));
    color: #fff;
    border-radius: 18px;
    margin: 20px 0;
    font-family: Arial, Helvetica, sans-serif;
}
.result span { opacity: .85; }
.result strong { font-size: clamp(30px, 5vw, 48px); }
.result-note { margin-top: 20px; }

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-family: Arial, Helvetica, sans-serif;
    overflow: hidden;
    border-radius: 14px;
}
th, td {
    padding: 12px;
    border-bottom: 1px solid #e8ddcf;
    text-align: left;
}
th { background: var(--cream-2); }
tr:last-child td { border-bottom: 0; }

@media (max-width: 980px) {
    .wood-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .two-column, .contact-grid { grid-template-columns: 1fr; }
    .intro-panel { position: static; }
}

@media (max-width: 720px) {
    .site-header { min-height: auto; }
    .topbar { align-items: flex-start; flex-direction: column; }
    .menu { gap: 6px; }
    .menu a { padding: 8px 10px; background: rgba(255,255,255,.08); }
    .hero { padding: 52px 18px 72px; }
    .hero-card { padding: 26px; }
    .section { padding: 58px 18px; }
    .grid, .wood-grid { grid-template-columns: 1fr; }
    .form-card, .container { padding: 24px; }
    h1 { font-size: 39px; }
}

.send-request-form,
.request-form {
    margin-top: 24px;
}

.send-request-form + .button-secondary,
.request-form + .button-secondary {
    margin-top: 12px;
}

/* Ergänzungen: zentrierter Hero, Holzsorten-Infotext und Produktionsseite */
.hero {
    display: flex;
    justify-content: center;
}

.hero-card {
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.hero-card .eyebrow {
    justify-content: center;
}

.hero-actions {
    justify-content: center;
}

.wood-info {
    max-width: 920px;
    margin: 52px auto 0;
    padding: 38px 42px;
    background: rgba(255, 253, 248, .72);
    border: 1px solid rgba(95, 59, 32, .12);
    border-radius: 22px;
    box-shadow: 0 16px 50px rgba(58, 36, 21, .08);
}

.wood-info h2 {
    font-size: clamp(28px, 3.4vw, 42px);
}

.wood-info h3 {
    margin-top: 30px;
    color: var(--brown-800);
}

.wood-info p:last-child {
    margin-bottom: 0;
}

.production-page {
    min-height: 78vh;
}

.production-wrap {
    max-width: 980px;
}

.production-heading {
    max-width: 900px;
    margin-bottom: 32px;
}

.production-heading h1 {
    color: var(--brown-950);
}

.production-content {
    padding: 42px;
    background: var(--white);
    border: 1px solid rgba(95, 59, 32, .12);
    border-radius: 24px;
    box-shadow: 0 16px 50px rgba(58, 36, 21, .12);
}

.production-content h2 {
    margin-top: 40px;
    font-size: clamp(27px, 3.2vw, 38px);
    color: var(--brown-800);
}

.production-content h2:first-of-type {
    margin-top: 34px;
}

.production-content p {
    margin: 0 0 18px;
}

.production-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.production-secondary {
    color: var(--brown-800);
    background: var(--cream-2);
    border: 1px solid rgba(95, 59, 32, .16);
    box-shadow: none;
}

.production-secondary:hover {
    color: #fff;
}

@media (max-width: 720px) {
    .wood-info,
    .production-content {
        padding: 26px;
    }
}


/* WhatsApp-Kontakt */
.whatsapp-contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 19px;
    border-radius: 999px;
    background: #237a3b;
    color: #fff;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(35,122,59,.22);
}
.whatsapp-contact-button:hover { background: #195f2c; }

.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 18px;
    border-radius: 999px;
    background: #237a3b;
    color: #fff;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 800;
    box-shadow: 0 12px 32px rgba(0,0,0,.28);
}
.whatsapp-float:hover { background: #195f2c; }
.whatsapp-float span { font-size: 20px; line-height: 1; }

@media (max-width: 640px) {
    .whatsapp-float {
        right: 14px;
        bottom: 14px;
        padding: 12px 15px;
        font-size: 15px;
    }
}

@media (max-width: 760px) {
    .topbar {
        align-items: flex-start;
    }

    .brand img {
        height: 72px;
        max-width: 270px;
    }
}

@media (max-width: 480px) {
    .brand img {
        height: 62px;
        max-width: 225px;
    }
}


.appointment-notice {
    margin: 20px auto 24px;
    max-width: 750px;
    padding: 11px 16px;
    background: #fffafa;
    color: #87413b;
    border: 1px solid #ead2cf;
    border-left: 3px solid #c9827b;
    border-radius: 7px;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
}


/* Datenschutzbestätigung im letzten Anfrageschritt */
.consent-form { margin-top: 24px; }
.consent-box {
    display: grid;
    gap: 14px;
    margin: 0 0 20px;
    padding: 20px;
    border: 1px solid rgba(95, 59, 32, .22);
    border-radius: 10px;
    background: #fffaf0;
    color: #33261d;
}
.consent-option {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 12px;
    align-items: start;
    line-height: 1.55;
    cursor: pointer;
}
.consent-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    accent-color: #2f6b3c;
}
.consent-option a { font-weight: 700; }
.consent-error { margin-top: 20px; }
.footer a { color: inherit; }

/* Finale Header- und Logoanpassungen */
.topbar {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 14px;
}

.brand {
    justify-content: center;
}

.brand img {
    width: 132px;
    height: 132px;
    max-width: none;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .28);
}

.menu {
    width: 100%;
    justify-content: center;
}

.hero-card h1 {
    font-size: clamp(34px, 4.8vw, 62px);
}

@media (max-width: 760px) {
    .topbar {
        align-items: center;
        flex-direction: column;
    }

    .brand img {
        width: 108px;
        height: 108px;
        max-width: none;
    }

    .menu {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .brand img {
        width: 92px;
        height: 92px;
        max-width: none;
    }
}

/* Korrigiertes rundes Logo: vollständig sichtbar, ohne Beschnitt */
.brand img {
    object-fit: contain;
    padding: 0;
    background: transparent;
}

.wood-subtext {
    margin: -6px 0 16px;
    min-height: 48px;
    color: var(--muted);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.45;
}

/* PHP-7.4-/Header-Update: größeres Logo und deutlichere Menübuttons */
.brand img {
    width: 172px;
    height: 172px;
    object-fit: contain;
    background: transparent;
}

.menu {
    gap: 12px;
}

.menu a {
    padding: 11px 18px;
    border: 1px solid rgba(255, 255, 255, .30);
    border-radius: 12px;
    background: rgba(255, 255, 255, .12);
    box-shadow: 0 5px 14px rgba(0, 0, 0, .18);
    font-weight: 700;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.menu a:hover,
.menu a:focus-visible,
.menu .admin-link {
    background: rgba(255, 255, 255, .22);
    border-color: rgba(255, 255, 255, .52);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .24);
    transform: translateY(-1px);
    color: #fff;
}

@media (max-width: 760px) {
    .brand img {
        width: 140px;
        height: 140px;
    }

    .menu a {
        padding: 9px 13px;
    }
}

@media (max-width: 480px) {
    .brand img {
        width: 120px;
        height: 120px;
    }
}
