/* ===== CSS Variables ===== */
:root {
    --earth-dark: #3b2f1e;
    --earth: #5c4a32;
    --earth-light: #7a6244;
    --sand-dark: #a08060;
    --sand: #c9a96e;
    --sand-light: #e8d5a8;
    --cream: #f5ece0;
    --cream-light: #faf6ef;
    --white: #fffdf9;
    --terracotta: #c45a3c;
    --terracotta-dark: #a34430;
    --terracotta-light: #e07a5f;
    --ochre: #d4952b;
    --ochre-light: #e8b84a;
    --font-serif: 'DM Serif Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.7;
    color: var(--earth-dark);
    background-color: var(--white);
}

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

/* ===== Custom Elements ===== */
site-nav,
site-footer {
    display: contents;
}

/* ===== Container ===== */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 246, 239, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(201, 169, 110, 0.2);
    transition: box-shadow var(--transition);
}

.nav.scrolled {
    box-shadow: 0 2px 20px rgba(59, 47, 30, 0.1);
}

.nav-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav-logo-text {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--earth-dark);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--earth-light);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: color var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--terracotta);
    transition: width var(--transition);
}

.nav-links a:hover {
    color: var(--terracotta);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hamburger */
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    width: 28px;
    height: 20px;
    position: relative;
}

.nav-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--earth-dark);
    position: absolute;
    left: 0;
    transition: all var(--transition);
}

.nav-hamburger span:nth-child(1) { top: 0; }
.nav-hamburger span:nth-child(2) { top: 9px; }
.nav-hamburger span:nth-child(3) { top: 18px; }

.nav-hamburger.open span:nth-child(1) {
    top: 9px;
    transform: rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
    top: 9px;
    transform: rotate(-45deg);
}

/* ===== Hero ===== */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 4rem;
    position: relative;
    overflow: hidden;
    background: url('hero-bg.png') center center / cover no-repeat;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background: rgba(30, 20, 10, 0.45);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo {
    width: min(440px, 85vw);
    margin-bottom: 1.5rem;
}

.hero-logo img {
    width: 100%;
    height: auto;
    filter: invert(1);
    opacity: 0.95;
}

.hero-divider {
    margin-bottom: 1.5rem;
    color: var(--sand-light);
    opacity: 0.6;
}

.hero-divider svg {
    width: 120px;
    height: 12px;
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sand-light);
    margin-bottom: 0.4rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-tagline {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-style: italic;
    color: var(--ochre-light);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    z-index: 1;
    animation: float 2.5s ease-in-out infinite;
}

.hero-scroll svg {
    width: 28px;
    height: 28px;
    stroke: var(--sand-light);
    stroke-width: 2;
    fill: none;
    opacity: 0.7;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ===== Sections ===== */
.section {
    padding: 6rem 0;
    position: relative;
}

.section--alt {
    background: var(--cream);
}

.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 400;
    color: var(--earth-dark);
    margin-bottom: 2rem;
    line-height: 1.2;
}

/* ===== Instrumente Grid ===== */
.instrumente-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem;
    align-items: center;
}

.instrumente-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(59, 47, 30, 0.15);
}

.instrumente-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.instrumente-grid--reverse {
    grid-template-columns: 1.2fr 1fr;
}

/* ===== About text ===== */
.about-text {
    font-size: 1.05rem;
    color: var(--earth);
    line-height: 1.9;
}

.about-text p + p {
    margin-top: 1.2rem;
}

/* ===== Feature Cards ===== */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--sand-light);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(59, 47, 30, 0.1);
    border-color: var(--sand);
}

.feature-card-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--terracotta-light), var(--terracotta));
    border-radius: 50%;
    padding: 12px;
    color: var(--white);
}

.feature-card-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card h3 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--earth-dark);
}

.feature-card p {
    font-size: 0.88rem;
    color: var(--earth-light);
    line-height: 1.6;
}

/* ===== Zitat ===== */
#zitat {
    padding: 5rem 0;
    text-align: center;
    background: var(--earth-dark);
    color: var(--sand-light);
    position: relative;
    overflow: hidden;
}

.zitat-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 24px,
            var(--sand) 24px,
            var(--sand) 25px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 24px,
            var(--sand) 24px,
            var(--sand) 25px
        );
    background-size: 25px 25px;
}

#zitat .container {
    position: relative;
    z-index: 1;
}

#zitat blockquote {
    font-family: var(--font-serif);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 400;
    font-style: italic;
    color: var(--sand-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

#zitat cite {
    display: block;
    margin-top: 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-style: normal;
    color: var(--sand-dark);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ===== Kontakt ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 3rem;
    align-items: start;
}

.contact-info h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--earth-dark);
}

.contact-info p {
    font-size: 0.95rem;
    color: var(--earth);
    line-height: 1.8;
}

.contact-info p + p {
    margin-top: 0.8rem;
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    position: relative;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--earth-light);
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--earth-dark);
    background: var(--white);
    border: 1px solid var(--sand-light);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--terracotta);
    box-shadow: 0 0 0 3px rgba(196, 90, 60, 0.1);
}

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

.btn-submit {
    align-self: flex-start;
    padding: 0.85rem 2.5rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--white);
    background: linear-gradient(135deg, var(--terracotta), var(--terracotta-dark));
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(196, 90, 60, 0.3);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-success,
.form-error {
    font-size: 0.9rem;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    display: none;
}

.form-success.visible {
    display: block;
    background: #e8f5e9;
    color: #2e7d32;
}

.form-error.visible {
    display: block;
    background: #ffebee;
    color: #c62828;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--earth-dark);
    color: var(--sand-light);
    padding: 3rem 0 0;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--terracotta), var(--ochre), var(--sand), var(--ochre), var(--terracotta));
}

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.footer-brand p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--sand-dark);
    margin-top: 0.5rem;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--sand-light);
}

.footer-nav h4,
.footer-region h4 {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sand-dark);
    margin-bottom: 0.8rem;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav a {
    text-decoration: none;
    font-size: 0.85rem;
    color: var(--sand-light);
    transition: color var(--transition);
    line-height: 2;
}

.footer-nav a:hover {
    color: var(--ochre-light);
}

.footer-region p {
    font-size: 0.85rem;
    line-height: 1.7;
}

.footer-bottom {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    border-top: 1px solid rgba(232, 213, 168, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--sand-dark);
}

.footer-bottom a {
    text-decoration: none;
    color: var(--sand-dark);
    margin-left: 1.5rem;
    transition: color var(--transition);
}

.footer-bottom a:hover {
    color: var(--sand-light);
}

/* Simple footer for sub-pages */
.site-footer--simple {
    background: var(--earth-dark);
    color: var(--sand-light);
    position: relative;
}

.site-footer--simple::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--terracotta), var(--ochre), var(--sand), var(--ochre), var(--terracotta));
}

.site-footer--simple .footer-bottom {
    border-top: none;
}

/* ===== Content pages (Impressum, Datenschutz) ===== */
.content-wrap {
    max-width: 700px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
}

.content-wrap h1 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: var(--earth-dark);
}

.content-wrap h2 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.6rem;
    color: var(--earth-dark);
}

.content-wrap h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--earth);
}

.content-wrap p {
    font-size: 0.95rem;
    color: var(--earth);
    margin-bottom: 0.8rem;
    line-height: 1.8;
}

.content-wrap ul {
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
}

.content-wrap li {
    font-size: 0.95rem;
    color: var(--earth);
    margin-bottom: 0.3rem;
    line-height: 1.7;
}

.content-wrap a {
    color: var(--terracotta);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--transition);
}

.content-wrap a:hover {
    color: var(--terracotta-dark);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(250, 246, 239, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 1.5rem 2rem;
        gap: 0;
        border-bottom: 1px solid var(--sand-light);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        display: block;
        padding: 0.7rem 0;
        font-size: 0.9rem;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-hamburger {
        display: block;
    }

    .instrumente-grid,
    .instrumente-grid--reverse {
        grid-template-columns: 1fr;
    }

    .feature-cards {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .footer-bottom a {
        margin-left: 0;
        margin-right: 1rem;
    }

    .section {
        padding: 4rem 0;
    }
}
