/*
Theme Name: Lehmbau & Restauration Stoll
Theme URI: https://example.com/
Author: Philipp / Lehmbau & Restauration Stoll
Description: Statisches Coming-Soon-Theme für Lehmbau & Restauration Stoll
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: lehmbau-stoll
*/

:root {
    --color-bg: #f4eee6;
    --color-bg-soft: #f9f4ec;
    --color-primary: #b56a3b;  /* warmer „Lehm“-Ton */
    --color-primary-dark: #8b4d26;
    --color-accent: #31543a;  /* gedecktes Grün */
    --color-text: #27221c;
    --color-muted: #7b6d60;
    --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.08);
    --radius-lg: 18px;
    --radius-md: 12px;
}

/* Reset / Base */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

/* Layout helpers */

.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4.5rem 0;
}

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

h1, h2, h3 {
    margin-top: 0;
    letter-spacing: 0.02em;
    color: var(--color-text);
}

h1 {
    font-size: clamp(2.1rem, 3.2vw, 2.9rem);
}

h2 {
    font-size: clamp(1.6rem, 2.4vw, 2rem);
    margin-bottom: 0.75rem;
}

h3 {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
}

p {
    margin: 0 0 0.75rem;
}

.section-intro {
    max-width: 640px;
    color: var(--color-muted);
}

/* Header / Navigation */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(244, 238, 230, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.25s ease;
}

.site-header.scrolled {
    box-shadow: var(--shadow-soft);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
    gap: 1.25rem;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-wrap img {
    height: 52px;
    width: auto;
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--color-text);
}

.logo-tagline {
    font-size: 0.8rem;
    color: var(--color-muted);
}

.main-nav {
    display: flex;
    gap: 1.3rem;
    font-size: 0.95rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--color-text);
    position: relative;
    padding-bottom: 0.1rem;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
    width: 100%;
}

/* Mobile nav toggle */

.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.3rem;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px 0;
    background: var(--color-text);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero */

.hero {
    padding: 4.5rem 0 4rem;
    background: radial-gradient(circle at top left, #fdf6ec 0, var(--color-bg) 55%);
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.4fr);
    gap: 2.5rem;
    align-items: center;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--color-primary-dark);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.hero-info {
    color: var(--color-muted);
    max-width: 560px;
    margin-bottom: 1.5rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    font-size: 0.93rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.btn-ghost {
    border-color: rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.7);
    color: var(--color-text);
}

.btn-ghost:hover {
    background: #fff;
}

.btn-outline {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: transparent;
}

.btn-outline:hover {
    background: var(--color-accent);
    color: #fff;
}

/* Hero badge */

.hero-badge {
    justify-self: center;
}

.badge-inner {
    background: linear-gradient(135deg, #fefaf5, #f4ebdf);
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.6rem;
    box-shadow: var(--shadow-soft);
    max-width: 320px;
    border: 1px solid rgba(141, 103, 64, 0.18);
}

.badge-title {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    color: var(--color-muted);
}

.badge-main {
    display: block;
    font-weight: 700;
    margin-top: 0.35rem;
    font-size: 0.95rem;
    color: var(--color-primary-dark);
}

.badge-line {
    display: block;
    width: 46px;
    height: 2px;
    margin: 0.7rem 0;
    background: var(--color-accent);
    border-radius: 999px;
}

.badge-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.badge-foot {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: var(--color-muted);
}

/* Services */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
    margin-top: 2rem;
}

.service-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1.1rem 1.2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.service-card p {
    font-size: 0.93rem;
    color: var(--color-muted);
}

/* Qualifikation */

.qual-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.3fr);
    gap: 2rem;
    align-items: start;
}

.qual-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: grid;
    gap: 0.35rem;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.qual-list li {
    font-size: 0.9rem;
    padding-left: 1.1rem;
    position: relative;
    color: var(--color-muted);
}

.qual-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--color-primary);
}

.qual-note {
    font-size: 0.9rem;
    color: var(--color-muted);
    margin-top: 0.5rem;
}

.qual-box {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.6rem 1.5rem;
    box-shadow: var(--shadow-soft);
    border-left: 4px solid var(--color-accent);
    font-size: 0.95rem;
}

/* Kontakt */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.3fr);
    gap: 2rem;
    align-items: start;
}

.contact-box {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1.1rem 1.3rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.03);
    font-size: 0.95rem;
}

.contact-name {
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.contact-box a {
    color: var(--color-primary-dark);
    text-decoration: none;
}

.contact-box a:hover {
    text-decoration: underline;
}

.contact-side h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.contact-side p {
    font-size: 0.9rem;
    color: var(--color-muted);
}

.callback-msg {
    margin-top: 0.75rem;
    font-size: 0.88rem;
    color: var(--color-accent);
    min-height: 1.2em;
}

/* Footer */

.site-footer {
    padding: 1.4rem 0 1.6rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: #f1e9e0;
    font-size: 0.85rem;
    color: var(--color-muted);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-note {
    font-style: italic;
}

/* Scroll animations */

[data-animate] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */

@media (max-width: 840px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-badge {
        justify-self: flex-start;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .qual-grid,
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (max-width: 640px) {
    .header-inner {
        padding: 0.5rem 0;
    }

    .logo-wrap img {
        height: 44px;
    }

    .main-nav {
        position: absolute;
        inset-inline: 0;
        top: 100%;
        background: rgba(244, 238, 230, 0.98);
        flex-direction: column;
        align-items: flex-start;
        padding: 0.8rem 1.5rem 1.2rem;
        gap: 0.6rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        display: none;              /* Wichtig: mobile standardmäßig ausblenden */
    }

    .main-nav.open {
        display: flex;              /* Nur bei geöffnetem Burger anzeigen */
    }

    .nav-toggle {
        display: block;
    }

    .nav-toggle.open span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.open span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .hero {
        padding-top: 3.5rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .services-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .badge-inner {
        max-width: 100%;
    }
}
