/* =============================================
   Stahl & Stamm
   Primary Color: #45564f (Dark Sage)
   ============================================= */

:root {
    --bg: #f5f3f0;
    --bg-elevated: #efeeeb;
    --bg-card: #ffffff;
    --border: rgba(26, 30, 29, 0.06);
    --border-hover: rgba(69, 86, 79, 0.25);
    --text: #1a1e1d;
    --text-secondary: #4a4a4a;
    --text-muted: #899a8f;
    --primary: #45564f;
    --primary-hover: #3a4a44;
    --primary-light: #6a7e74;
    --primary-glow: rgba(69, 86, 79, 0.15);
    --weld-sparkle: #f5c842;
    --weld-core: #ffffff;
    --white: #ffffff;

    --font-display: 'Oswald', sans-serif;
    --font-body: 'Lora', Georgia, serif;
    --font-ui: 'Inter', sans-serif;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.7s cubic-bezier(0.16, 1, 0.3, 1);

    --section-spacing: clamp(3rem, 8vw, 5rem);
    --space-md: 2rem;
    --space-lg: 4rem;

    --max-width: 1280px;
    --header-height: 64px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.bg-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(to right, rgba(69, 86, 79, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(69, 86, 79, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
}

/* ==============================================
   HEADER
   ============================================== */

header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(245, 243, 240, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--transition-fast);
}

header.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.06); }

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 4%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Brand with animated S */
.brand {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0;
    color: var(--primary);
}

.brand-text {
    display: flex;
    align-items: center;
    position: relative;
}

.brand-s-svg {
    width: 24px;
    height: 34px;
    color: var(--primary);
    flex-shrink: 0;
}

.s-path {
    stroke-dasharray: 90;
    stroke-dashoffset: 90;
    animation: weldS 6s ease-in-out infinite;
}

@keyframes weldS {
    0%, 5% { stroke-dashoffset: 90; stroke: var(--text-muted); opacity: 0.3; }
    15% { stroke-dashoffset: 60; stroke: var(--primary); opacity: 1; }
    40% { stroke-dashoffset: 10; stroke: var(--primary); opacity: 1; }
    50%, 90% { stroke-dashoffset: 0; stroke: var(--primary); opacity: 1; }
    95% { stroke-dashoffset: 0; stroke: var(--weld-sparkle); }
    98% { stroke-dashoffset: 90; stroke: var(--text-muted); opacity: 0.3; }
    100% { stroke-dashoffset: 90; stroke: var(--text-muted); opacity: 0.3; }
}

/* Welding arc glow on the S */
.brand-s-svg::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--weld-core);
    border-radius: 50%;
    box-shadow: 0 0 8px 3px var(--weld-sparkle), 0 0 20px 6px rgba(245, 200, 66, 0.4);
    opacity: 0;
    animation: weldDot 6s ease-in-out infinite;
}

@keyframes weldDot {
    0%, 12% { opacity: 0; }
    14%, 38% { opacity: 1; }
    42%, 100% { opacity: 0; }
}

/* Spark particles near the S */
.brand-sparks {
    position: absolute;
    top: 2px;
    left: -2px;
    width: 28px;
    height: 38px;
    pointer-events: none;
    overflow: visible;
}

.brand-sparks span {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--weld-sparkle);
    border-radius: 50%;
    opacity: 0;
    animation: spark 6s ease-in-out infinite;
}

.brand-sparks span:nth-child(1) { left: 4px; top: 20px; animation-delay: 0.85s; animation-duration: 0.5s; }
.brand-sparks span:nth-child(2) { left: 8px; top: 24px; animation-delay: 1.2s; animation-duration: 0.4s; width: 1.5px; height: 1.5px; }
.brand-sparks span:nth-child(3) { left: 2px; top: 28px; animation-delay: 1.5s; animation-duration: 0.6s; }
.brand-sparks span:nth-child(4) { left: 12px; top: 18px; animation-delay: 1.8s; animation-duration: 0.35s; width: 1px; height: 1px; }

@keyframes spark {
    0%, 14% { opacity: 0; transform: translate(0, 0); }
    20% { opacity: 1; transform: translate(3px, -4px); }
    50% { opacity: 0; transform: translate(8px, 6px); }
    100% { opacity: 0; }
}

.brand-remaining {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
}

/* Navigation */
.main-nav ul { list-style: none; display: flex; gap: 28px; align-items: center; }

.main-nav a {
    font-family: var(--font-ui);
    font-weight: 500;
    font-size: 0.75rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-secondary);
    display: flex;
    align-items: baseline;
    gap: 6px;
    position: relative;
    transition: color var(--transition-fast);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: var(--primary);
    transition: width var(--transition-smooth);
}

.main-nav a:hover::after { width: 100%; }
.main-nav a:hover { color: var(--primary); }

.nav-number {
    font-family: var(--font-display);
    font-size: 0.65rem;
    color: var(--primary);
    font-weight: 400;
    opacity: 0.5;
}

/* Mobile Menu */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; z-index: 1001; }
.menu-line {
    display: block; width: 22px; height: 1.5px;
    background: var(--text); transition: all 0.3s ease;
}
.menu-line + .menu-line { margin-top: 5px; }

@media (max-width: 639px) {
    .menu-toggle { display: block; min-width: 44px; min-height: 44px; padding: 12px; }
    .menu-line { width: 26px; height: 2px; }
    .menu-line + .menu-line { margin-top: 6px; }

    .main-nav {
        position: fixed; top: 0; right: 0; bottom: 0; width: 100%;
        background: var(--bg);
        display: flex; align-items: center; justify-content: center;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .main-nav.open { transform: translateX(0); }
    .main-nav ul { flex-direction: column; gap: 8px; text-align: center; }
    .main-nav a {
        font-size: 1.4rem; color: var(--text);
        display: flex; align-items: center; justify-content: center;
        min-height: 52px; padding: 8px 0;
    }
    .main-nav a::after { display: none; }
    .main-nav a:hover { color: var(--primary-light); }
    .main-nav .nav-number { font-size: 0.9rem; display: block; margin-bottom: 4px; opacity: 0.4; }
}

/* ==============================================
   HERO — Light Mode
   ============================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--text);
    overflow: hidden;
}

/* Ambient glow — lighter */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 40%, rgba(69, 86, 79, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(106, 126, 116, 0.04) 0%, transparent 40%);
    animation: heroBreath 10s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes heroBreath {
    0% { opacity: 0.4; transform: scale(1) translate(0, 0); }
    100% { opacity: 1; transform: scale(1.06) translate(-1%, -1%); }
}

.hero-accent {
    position: absolute;
    top: -10%; right: -5%;
    width: 35%; height: 120%;
    background: linear-gradient(135deg, var(--primary) 0%, rgba(69, 86, 79, 0.02) 100%);
    transform: rotate(-12deg);
    opacity: 0.03;
    pointer-events: none;
}

/* Particles */
.hero-particles {
    position: absolute; inset: 0;
    pointer-events: none; overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px; height: 3px;
    background: var(--primary-light);
    border-radius: 50%;
    opacity: 0;
    animation: float 9s ease-in-out infinite;
}

.particle:nth-child(1) { left: 12%; top: 25%; animation-delay: 0s; }
.particle:nth-child(2) { left: 28%; top: 68%; animation-delay: 2s; animation-duration: 11s; width: 2px; height: 2px; }
.particle:nth-child(3) { left: 58%; top: 22%; animation-delay: 4s; animation-duration: 8s; width: 4px; height: 4px; }
.particle:nth-child(4) { left: 75%; top: 55%; animation-delay: 1s; animation-duration: 10s; }
.particle:nth-child(5) { left: 88%; top: 18%; animation-delay: 3s; animation-duration: 12s; width: 2px; height: 2px; }

@keyframes float {
    0%, 100% { opacity: 0; transform: translate(0, 0); }
    15% { opacity: 0.25; }
    50% { opacity: 0.4; transform: translate(15px, -60px); }
    85% { opacity: 0.08; }
}

/* Blueprint lines */
.hero-lines {
    position: absolute; inset: 0;
    pointer-events: none; overflow: hidden;
}

.hero-lines span {
    position: absolute;
    background: var(--primary);
    opacity: 0;
    animation: lineAppear 6s ease-in-out infinite;
}

.hero-lines span:nth-child(1) { top: 10%; bottom: 10%; left: 20%; width: 1px; animation-delay: 0s; }
.hero-lines span:nth-child(2) { top: 10%; bottom: 10%; right: 20%; width: 1px; animation-delay: 1.5s; }
.hero-lines span:nth-child(3) { top: 15%; bottom: 5%; left: 50%; width: 1px; animation-delay: 3s; }
.hero-lines span:nth-child(4) { top: 30%; left: 30%; right: 30%; height: 1px; animation-delay: 0.5s; }
.hero-lines span:nth-child(5) { bottom: 25%; left: 15%; right: 15%; height: 1px; animation-delay: 2s; }

@keyframes lineAppear {
    0%, 100% { opacity: 0; transform: scaleY(0); }
    50% { opacity: 0.04; transform: scaleY(1); }
}

/* Corner brackets */
.hero-bracket--top-left { position: absolute; top: 15%; left: 10%; border-top: 1px solid var(--primary); border-left: 1px solid var(--primary); width: 40px; height: 40px; opacity: 0; animation: bracketFade 8s ease-in-out infinite; z-index: 3; }
.hero-bracket--top-right { position: absolute; top: 15%; right: 10%; border-top: 1px solid var(--primary); border-right: 1px solid var(--primary); width: 40px; height: 40px; opacity: 0; animation: bracketFade 8s ease-in-out 2s infinite; z-index: 3; }
.hero-bracket--bottom-left { position: absolute; bottom: 15%; left: 10%; border-bottom: 1px solid var(--primary); border-left: 1px solid var(--primary); width: 40px; height: 40px; opacity: 0; animation: bracketFade 8s ease-in-out 4s infinite; z-index: 3; }
.hero-bracket--bottom-right { position: absolute; bottom: 15%; right: 10%; border-bottom: 1px solid var(--primary); border-right: 1px solid var(--primary); width: 40px; height: 40px; opacity: 0; animation: bracketFade 8s ease-in-out 6s infinite; z-index: 3; }

@keyframes bracketFade {
    0%, 100% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 0.12; transform: scale(1); }
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero {
    overflow-x: hidden;
}

.hero-logo {
    width: min(900px, 92vw);
    max-width: 900px;
    height: auto;
    display: block;
    animation: logoEnter 1.2s cubic-bezier(0.16, 1, 0.3, 1) both, logoFloat 7s ease-in-out 1.2s infinite alternate;
    filter: drop-shadow(0 8px 32px rgba(0,0,0,0.08));
}

@keyframes logoEnter {
    0% { opacity: 0; transform: scale(0.92) translateY(24px); filter: drop-shadow(0 0 0 transparent); }
    100% { opacity: 1; transform: scale(1) translateY(0); filter: drop-shadow(0 8px 32px rgba(0,0,0,0.08)); }
}

@keyframes logoFloat {
    0% { transform: translateY(0); filter: drop-shadow(0 8px 32px rgba(0,0,0,0.08)); }
    100% { transform: translateY(-8px); filter: drop-shadow(0 14px 40px rgba(0,0,0,0.12)); }
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    color: var(--text-muted);
    margin-top: 18px;
    margin-bottom: 22px;
    text-align: center;
    font-style: italic;
    opacity: 0.7;
}

.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* CTA */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    font-family: var(--font-ui);
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    text-decoration: none;
    padding: 14px 40px;
    border: 1.5px solid var(--primary);
    color: var(--white);
    background: var(--primary);
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.cta-button:hover {
    background: var(--dark);
    border-color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}

.contact-form .cta-button { width: 100%; text-align: center; }

/* ==============================================
   SECTION HEADERS
   ============================================== */

.section-header { margin-bottom: var(--section-spacing); }
.section-number {
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: var(--primary);
    letter-spacing: 0.12em;
    display: block;
    margin-bottom: 8px;
}
.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.1;
    color: var(--text);
}
.section-divider {
    width: 48px;
    height: 2px;
    background: var(--primary);
    margin-top: 16px;
}

/* ==============================================
   ABOUT — Light
   ============================================== */

.about { padding: var(--section-spacing) 4%; background: var(--bg); position: relative; z-index: 1; }

.about-grid {
    display: grid;
    gap: var(--space-lg);
    max-width: var(--max-width);
    margin: 0 auto;
}

@media (min-width: 900px) {
    .about-grid { grid-template-columns: 2fr 1fr; align-items: start; }
}

.about-content {
    background: var(--white);
    padding: clamp(24px, 5vw, 44px);
    border-left: 3px solid var(--primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.03), 0 6px 24px rgba(0,0,0,0.04);
}

.about-content h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}
.about-content .lead { font-size: 1.05rem; font-weight: 600; color: var(--primary); margin-bottom: 18px; font-style: italic; }
.about-content p { color: #444; margin-bottom: 14px; }
.about-content ul { list-style: none; padding: 0; margin-bottom: 18px; }
.about-content li { position: relative; padding-left: 22px; margin-bottom: 12px; color: #444; }
.about-content li::before { content: ''; position: absolute; left: 0; top: 9px; width: 7px; height: 1px; background: var(--primary); }

/* Stats */
.about-stats {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: calc(var(--header-height) + 40px);
}

@media (max-width: 899px) {
    .about-stats { flex-direction: row; flex-wrap: wrap; justify-content: center; position: static; }
}

.stat {
    text-align: center;
    padding: 24px 20px;
    background: var(--text);
    color: var(--white);
    min-width: 130px;
    border-bottom: 2px solid var(--primary);
}
.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-light);
    display: block;
    line-height: 1;
    margin-bottom: 6px;
}
.stat-label {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.5;
    opacity: 0.7;
}

/* ==============================================
   SERVICES — Light, Equal Size, No Boxes
   ============================================== */

.services { padding: var(--section-spacing) 4%; background: #f0ede9; position: relative; z-index: 1; }

.services-grid {
    display: grid;
    gap: 20px;
    max-width: var(--max-width);
    margin: 0 auto;
}

@media (min-width: 900px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 640px) and (max-width: 899px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

.service-bento {
    background: var(--white);
    border: 1px solid var(--border);
    overflow: hidden;
    position: relative;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-bento:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(0,0,0,0.07);
}

/* Icon */
.bento-visual {
    display: flex;
    align-items: center;
    padding: 24px 24px 0;
}

.bento-icon {
    width: 44px;
    height: 44px;
    color: var(--primary);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--primary);
    padding: 10px;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.service-bento:hover .bento-icon {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.05);
}

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

/* Content */
.bento-content {
    padding: 16px 24px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bento-content h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.2;
}

.bento-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
}

.bento-divider {
    width: 100%;
    height: 1px;
    background: var(--border);
    margin-bottom: 14px;
}

/* Clean list — no boxes */
.bento-details {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bento-details li {
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--text-secondary);
    padding-left: 20px;
    position: relative;
    line-height: 1.4;
    transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.bento-details li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border: 1.5px solid var(--primary);
    background: var(--white);
    transition: background var(--transition-fast);
}

.service-bento:hover .bento-details li::before {
    background: var(--primary);
}

.bento-details li:hover {
    color: var(--primary);
    padding-left: 26px;
}

@media (max-width: 639px) {
    .services-grid { gap: 16px; }
    .bento-visual { padding: 18px 18px 0; }
    .bento-content { padding: 14px 18px 20px; }
}

/* ==============================================
   CONTACT
   ============================================== */

.contact {
    padding: var(--section-spacing) 4%;
    background: var(--text);
    color: var(--white);
    position: relative;
    z-index: 1;
}

.contact .section-header h2 { color: var(--white); }

.contact-intro {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.contact-grid {
    display: grid;
    gap: 48px;
    max-width: var(--max-width);
    margin: 0 auto;
}

@media (min-width: 900px) {
    .contact-grid { grid-template-columns: 1fr 1.2fr; }
}

.contact-details h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary-light);
    margin-bottom: 28px;
}

.detail-item {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.detail-label {
    font-family: var(--font-ui);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    display: block;
    margin-bottom: 6px;
}

.detail-value { font-size: 1rem; line-height: 1.6; color: rgba(255,255,255,0.75); }

.detail-link {
    color: var(--white);
    text-decoration: none;
    border-bottom: 1px solid var(--primary);
    transition: color var(--transition-fast);
}

.detail-link:hover { color: var(--primary-light); }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; }

.form-label {
    font-family: var(--font-ui);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--white);
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,0.2); opacity: 0.5; }
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    background: rgba(255,255,255,0.06);
}

.datenschutz-check {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.84rem;
    color: var(--text-muted);
    cursor: pointer;
}

.datenschutz-check input[type="checkbox"] {
    width: 22px;
    height: 22px;
    min-width: 22px;
    margin-top: 2px;
    accent-color: var(--primary-light);
    cursor: pointer;
}
.datenschutz-check a { color: var(--primary-light); }
.datenschutz-check label { cursor: pointer; }

/* ==============================================
   FOOTER
   ============================================== */

footer { background: #131615; color: var(--text-muted); position: relative; z-index: 1; }

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--section-spacing) 4%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.footer-brand-text { font-family: var(--font-ui); font-size: 0.75rem; color: rgba(255,255,255,0.3); }
.footer-links { display: flex; gap: 20px; }
.footer-links a {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-decoration: none;
    color: var(--text-muted);
    transition: color var(--transition-fast);
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 12px;
}
.footer-links a:hover { color: var(--primary-light); }

.footer-copy {
    width: 100%;
    text-align: center;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255,255,255,0.04);
    font-family: var(--font-ui);
    font-size: 0.7rem;
    color: rgba(255,255,255,0.15);
}

/* ==============================================
   SCROLL REVEAL
   ============================================== */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero .reveal:nth-child(1) { transition-delay: 0.15s; }
.hero .reveal:nth-child(2) { transition-delay: 0.35s; }
.hero .reveal:nth-child(3) { transition-delay: 0.5s; }

/* ==============================================
   RESPONSIVE
   ============================================== */

@media (max-width: 639px) {
    .hero { min-height: 100vh; }
    .hero-logo { width: 90vw; max-width: none; }
    .hero-subtitle { margin-top: 14px; margin-bottom: 18px; }
    .about, .services, .contact { padding: var(--section-spacing) 4%; }
    .about-content { padding: 20px; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-logo, .particle, .hero::before, .hero-lines span, .hero-bracket--top-left, .hero-bracket--top-right, .hero-bracket--bottom-left, .hero-bracket--bottom-right { animation: none !important; }
    .bento-icon { transition: none; }
    .bento-details li { transition: none; }
    .s-path, .brand-sparks span { animation: none !important; }
}

/* ==============================================
   FORM STATUS MESSAGES
   ============================================== */

.form-status {
    padding: 16px 20px;
    font-size: 0.92rem;
    line-height: 1.5;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.4s ease, max-height 0.4s ease, padding 0.4s ease;
    border: 1px solid transparent;
}

.form-status:not(:empty) {
    opacity: 1;
    max-height: 200px;
    padding: 16px 20px;
}

.form-status-success {
    background: rgba(76, 175, 80, 0.08);
    border-color: rgba(76, 175, 80, 0.3) !important;
    color: #a5d6a7;
}

.form-status-error {
    background: rgba(244, 67, 54, 0.08);
    border-color: rgba(244, 67, 54, 0.3) !important;
    color: #ef9a9a;
}

/* ==============================================
   SUBPAGES (Impressum & Datenschutz)
   ============================================== */

.legal-page .bg-grid {
    background-image:
        linear-gradient(to right, rgba(69, 86, 79, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(69, 86, 79, 0.02) 1px, transparent 1px);
}

.brand-back-link {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    text-decoration: none;
}

.legal-page-hero {
    background: var(--primary);
    padding: calc(var(--header-height) + 40px) 4% 48px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
}

.legal-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 40%, rgba(106, 126, 116, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.legal-page-hero-inner {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}

.legal-page-number {
    font-family: var(--font-display);
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.legal-page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--white);
    line-height: 1.1;
}

.legal-page-hero .section-divider {
    background: rgba(255,255,255,0.4);
}

.subpage-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 4% var(--section-spacing);
}

.subpage-content article {
    background: var(--bg-elevated);
    padding: clamp(24px, 5vw, 48px);
    border: 1px solid var(--border);
}

.subpage-content section {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.subpage-content section:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.subpage-content h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text);
    margin-bottom: 16px;
}

.subpage-content h3 {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 20px;
    margin-bottom: 10px;
}

.subpage-content p,
.subpage-content address {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 10px;
    font-style: normal;
}

.subpage-content a {
    color: var(--primary);
    text-decoration: underline;
    transition: color var(--transition-fast);
}

.subpage-content a:hover { color: var(--primary-hover); }

/* Subpage mobile adjustments */
@media (max-width: 639px) {
    .legal-page-hero {
        min-height: 200px;
        padding: calc(var(--header-height) + 24px) 4% 32px;
    }
    .subpage-content { padding: 12px 4% var(--section-spacing); }
    .subpage-content article { padding: 20px; }
    .subpage-content section { margin-bottom: 32px; padding-bottom: 24px; }
    .subpage-content h2 { font-size: 1.2rem; }
    .subpage-content h3 { font-size: 1rem; }
    .subpage-content a {
        display: inline-block;
        min-height: 44px;
        line-height: 44px;
    }
}

/* Mobile general improvements */
@media (max-width: 639px) {
    .bento-details li { font-size: 0.88rem; }
    .detail-link {
        display: inline-flex;
        min-height: 44px;
        align-items: center;
    }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .cta-button { width: 100%; text-align: center; }
}

@media print {
    header, .bg-grid, .hero-particles, .menu-toggle, .contact-form, .hero-lines { display: none !important; }
    body { color: #000; background: #fff; }
}
