/* Explain: Global styles for buttons, cards, header, and form elements. */
/* Schaltflächen */
.btn-wood,
.btn-forest,
.btn-dark,
.btn-ghost,
.btn-ghost-light,
.btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 3.15rem;
    padding: 0.9rem 2.1rem;
    border-radius: 2px;
    font-family: var(--font-body);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 300ms ease, color 300ms ease, border-color 300ms ease, transform 300ms ease;
}

.btn-wood {
    background: var(--wood);
    border: 1px solid var(--wood);
    color: var(--anthracite);
}

.btn-wood:hover {
    background: var(--wood-dark);
    border-color: var(--wood-dark);
    color: var(--cream);
}

.btn-forest {
    background: var(--forest);
    border: 1px solid var(--forest);
    color: var(--text-on-dark);
}

.btn-forest:hover {
    background: var(--forest-soft);
    border-color: var(--forest-soft);
}

.btn-dark {
    background: var(--anthracite);
    border: 1px solid var(--anthracite);
    color: var(--text-on-dark);
}

.btn-dark:hover {
    background: #000000;
    border-color: #000000;
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--anthracite);
}

.btn-ghost:hover {
    background: var(--forest);
    border-color: var(--forest);
    color: var(--text-on-dark);
}

.btn-ghost-light {
    background: rgba(242, 239, 233, 0.06);
    border: 1px solid rgba(242, 239, 233, 0.45);
    color: var(--text-on-dark);
}

.btn-ghost-light:hover {
    background: var(--text-on-dark);
    border-color: var(--text-on-dark);
    color: var(--forest);
}

.btn-light {
    background: var(--text-on-dark);
    border: 1px solid var(--text-on-dark);
    color: var(--anthracite);
}

.btn-light:hover {
    background: var(--wood);
    border-color: var(--wood);
}

.btn-whatsapp {
    background: var(--whatsapp);
    border: 1px solid var(--whatsapp);
    color: #ffffff;
}

.btn-whatsapp:hover {
    background: var(--whatsapp-dark);
    border-color: var(--whatsapp-dark);
}

.header-cta {
    min-height: 2.7rem;
    padding: 0.6rem 1.4rem;
    font-size: 0.7rem;
}

/* Abschnittsmarkierung */
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--wood);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
}

.section-kicker::before {
    display: inline-block;
    width: 2rem;
    height: 1px;
    background: currentColor;
    content: "";
}

/* Kopfzeile */
.site-header {
    background: rgba(246, 243, 237, 0.9);
    backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
    background: rgba(246, 243, 237, 0.97);
    box-shadow: 0 14px 40px rgba(20, 23, 25, 0.10);
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.55rem;
    color: var(--anthracite);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 300ms ease;
}

.nav-link::after {
    position: absolute;
    bottom: 0.1rem;
    left: 0.55rem;
    right: 0.55rem;
    width: 0;
    height: 1px;
    background: var(--wood);
    content: "";
    transition: width 300ms ease;
}

.nav-link:hover {
    color: var(--forest);
}

.nav-link:hover::after {
    width: calc(100% - 1.1rem);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    background: transparent;
    border: 0;
}

.nav-dropdown-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 50;
    min-width: 13.5rem;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    background: var(--surface-raised);
    box-shadow: var(--shadow-card);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(10px);
    transition: opacity 220ms ease, transform 220ms ease, visibility 220ms;
}

.nav-dropdown-panel::before {
    position: absolute;
    top: -18px;
    left: 0;
    right: 0;
    height: 18px;
    content: "";
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel,
.nav-dropdown.is-open .nav-dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-link {
    display: block;
    padding: 0.7rem 1rem;
    color: var(--anthracite);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: background-color 200ms ease, color 200ms ease;
}

.nav-dropdown-link:hover {
    background: var(--surface-color);
    color: var(--forest);
}

/* Karten & Panels */
.card {
    border: 1px solid var(--border-color);
    background: var(--surface-raised);
    transition: border-color 300ms ease, transform 300ms ease, box-shadow 300ms ease;
}

.card:hover {
    border-color: var(--wood);
    box-shadow: var(--shadow-card);
    transform: translateY(-4px);
}

.media-frame {
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
}

.media-frame img {
    transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.media-frame:hover img {
    transform: scale(1.045);
}

.feature-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
}

.stat-value {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
}

/* Formulare */
.form-label {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--text-color);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.form-field {
    width: 100%;
    min-height: 3.15rem;
    padding: 0.8rem 1.1rem;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    background: #ffffff;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.5;
    transition: border-color 250ms ease, box-shadow 250ms ease;
}

.form-field::placeholder {
    color: rgba(101, 106, 103, 0.75);
}

.form-field:focus {
    outline: none;
    border-color: var(--wood);
    box-shadow: 0 0 0 3px rgba(185, 138, 86, 0.16);
}

textarea.form-field {
    min-height: 9.5rem;
    resize: vertical;
}

.file-drop {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px dashed var(--border-color);
    background: rgba(246, 243, 237, 0.7);
    transition: border-color 250ms ease, background-color 250ms ease;
}

.file-drop:hover {
    border-color: var(--wood);
    background: rgba(185, 138, 86, 0.09);
}

.form-status.success {
    color: var(--forest);
}

.form-status.error {
    color: #9c4a33;
}

/* Galerie & Lightbox */
.gallery-item {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    border: 0;
    background: var(--surface-color);
    cursor: zoom-in;
}

.gallery-item img {
    transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(20, 23, 25, 0.94);
}

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

.lightbox-image {
    width: auto;
    max-width: min(100%, 1180px);
    max-height: 86vh;
    box-shadow: var(--shadow-soft);
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

/* Rechtstexte */
.legal-text h2 {
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
}

.legal-text h3 {
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
}

.legal-text p {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.85;
}

.legal-text ul {
    margin: 0 0 1rem 1.25rem;
    list-style: disc;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.85;
}

.legal-text a {
    color: var(--wood-dark);
    text-decoration: underline;
}

/* Mobile Aktionsleiste */
.mobile-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 45;
    border-top: 1px solid var(--border-color);
    background: rgba(246, 243, 237, 0.96);
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    backdrop-filter: blur(18px);
}

/* Schwebender WhatsApp-Zugang */
.wa-float {
    display: none;
}

@media (min-width: 1024px) {
    .wa-float {
        position: fixed;
        right: 1.5rem;
        bottom: 1.5rem;
        z-index: 60;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 3.75rem;
        height: 3.75rem;
        border-radius: 9999px;
        background: var(--whatsapp);
        color: #ffffff;
        box-shadow: 0 14px 34px rgba(20, 23, 25, 0.26);
        transition: background-color 300ms ease, transform 300ms ease;
    }

    .wa-float:hover {
        background: var(--whatsapp-dark);
        transform: translateY(-2px);
    }
}