/* ==============================================
   TB Grundeigentum – Städteseiten CSS
   Gemeinsames Stylesheet für alle /staedte/*.html
   ============================================== */

:root {
    --clr-cream: #FBF8F4; --clr-cream-warm: #F5EFE6; --clr-sand: #E8DFD0;
    --clr-earth: #8B7355; --clr-earth-dark: #6B5740;
    --clr-forest: #2A5A3B; --clr-forest-deep: #1B3D28; --clr-forest-light: #3A7A52;
    --clr-rust: #C4652A; --clr-rust-light: #D97B42;
    --clr-charcoal: #2A2725; --clr-text: #3D3935; --clr-text-mid: #5C5650; --clr-text-light: #7A746D;
    --clr-white: #FFFFFF; --clr-red: #B8352A; --clr-green: #2A8A50;
    --clr-gold: #C9993A; --clr-gold-light: #E5BE6A;
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 8px; --radius-md: 14px; --radius-lg: 22px; --radius-xl: 32px;
    --shadow-xs: 0 1px 3px rgba(42,39,37,0.04); --shadow-sm: 0 2px 12px rgba(42,39,37,0.06);
    --shadow-md: 0 4px 24px rgba(42,39,37,0.08); --shadow-lg: 0 8px 40px rgba(42,39,37,0.12);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--clr-text); background: var(--clr-cream); line-height: 1.75; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* Container */
.container { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 1.25rem; }

/* Typography */
.section-label { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-body); font-size: 0.72rem; font-weight: 900; letter-spacing: 0.18em; text-transform: uppercase; color: var(--clr-forest); margin-bottom: 1rem; }
.section-label::before { content: ''; display: block; width: 24px; height: 2px; background: var(--clr-forest); border-radius: 2px; }
.section-title { font-family: var(--font-display); font-weight: 700; line-height: 1.2; color: var(--clr-charcoal); margin-bottom: 1rem; }
.section-title--lg { font-size: 2rem; }
.section-title--md { font-size: 1.6rem; }
.section-text { font-size: 1.02rem; line-height: 1.8; color: var(--clr-text-mid); }
.section-text + .section-text { margin-top: 0.85rem; }
.section-text strong { color: var(--clr-text); font-weight: 700; }
.section-text em { color: var(--clr-forest); font-style: italic; font-family: var(--font-display); }

/* Highlight Box */
.highlight-box { background: var(--clr-forest-deep); color: var(--clr-white); padding: 1.25rem 1.5rem; border-radius: var(--radius-md); font-size: 1rem; line-height: 1.7; margin: 1.5rem 0; }
.highlight-box strong { color: var(--clr-gold-light); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; font-family: var(--font-body); font-weight: 700; border: none; border-radius: var(--radius-sm); cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); text-align: center; width: 100%; line-height: 1.35; }
.btn-cta { background: var(--clr-rust); color: var(--clr-white); font-size: 1.1rem; padding: 1.1rem 2rem; box-shadow: 0 4px 20px rgba(196,101,42,0.3); position: relative; overflow: hidden; }
.btn-cta::after { content: ''; position: absolute; top: -50%; left: -60%; width: 35%; height: 200%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent); transform: skewX(-20deg); animation: shimmer 4s ease-in-out infinite; }
@keyframes shimmer { 0%, 100% { left: -60%; } 50% { left: 130%; } }
.btn-cta:hover { background: var(--clr-rust-light); transform: translateY(-2px); }
.btn-phone { background: var(--clr-forest); color: var(--clr-white); font-size: 1.15rem; padding: 1rem 2rem; box-shadow: 0 4px 16px rgba(42,90,59,0.25); }
.btn-phone:hover { background: var(--clr-forest-deep); transform: translateY(-2px); }
.btn-sub { display: block; text-align: center; font-size: 0.85rem; color: var(--clr-text-light); margin-top: 0.5rem; }

/* Header */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 900; background: rgba(251,248,244,0.88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgba(0,0,0,0.04); transition: box-shadow 0.3s ease; }
.header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--clr-charcoal); }
.logo span { color: var(--clr-forest); }
.header-phone { display: flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; font-weight: 700; color: var(--clr-forest); padding: 0.45rem 0.9rem; border: 1.5px solid var(--clr-forest); border-radius: 50px; transition: all 0.2s ease; }
.header-phone:hover { background: var(--clr-forest); color: var(--clr-white); }

/* Hero */
.hero { padding: calc(56px + 2rem) 0 2.5rem; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--clr-forest-deep); color: var(--clr-white); font-size: 0.7rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.45rem 1rem; border-radius: 50px; margin-bottom: 1.25rem; }
.hero-badge .dot { width: 7px; height: 7px; background: var(--clr-gold-light); border-radius: 50%; }
.hero h1 { font-family: var(--font-display); font-size: 2.1rem; line-height: 1.15; font-weight: 700; color: var(--clr-charcoal); margin-bottom: 1.25rem; }
.hero h1 em { font-style: italic; color: var(--clr-forest); }
.hero-text { font-size: 1.08rem; line-height: 1.75; color: var(--clr-text-mid); margin-bottom: 1.5rem; }
.hero-text strong { color: var(--clr-text); }

/* Trust Bar */
.trust-bar { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.trust-tag { display: flex; align-items: center; gap: 0.35rem; background: var(--clr-white); padding: 0.45rem 0.85rem; border-radius: 50px; font-size: 0.8rem; font-weight: 600; color: var(--clr-text); box-shadow: var(--shadow-xs); border: 1px solid rgba(0,0,0,0.04); }
.trust-tag .t-icon { font-size: 1rem; }

/* Proof Bar */
.proof-bar { background: var(--clr-white); border-top: 1px solid rgba(0,0,0,0.04); border-bottom: 1px solid rgba(0,0,0,0.04); padding: 1.5rem 0; }
.proof-bar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; text-align: center; }
.proof-bar-item .pb-number { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--clr-forest); display: block; line-height: 1.2; }
.proof-bar-item .pb-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--clr-text-light); display: block; margin-top: 0.15rem; }

/* NEPQ Question */
.nepq-question { font-family: var(--font-display); font-size: 1.25rem; font-style: italic; color: var(--clr-forest-deep); line-height: 1.45; padding: 1.25rem 1.5rem; background: var(--clr-white); border-left: 3px solid var(--clr-gold); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1.5rem 0; box-shadow: var(--shadow-xs); }
.nepq-question--white { color: rgba(255,255,255,0.95); background: rgba(255,255,255,0.08); border-left-color: var(--clr-gold-light); }

/* Content Sections */
.content-section { padding: 3.5rem 0; }
.content-section:nth-child(even) { background: var(--clr-cream-warm); }
.content-section--dark { background: var(--clr-forest-deep) !important; color: var(--clr-white); }
.content-section--dark .section-title { color: var(--clr-white); }
.content-section--dark .section-text { color: rgba(255,255,255,0.85); }
.content-section--dark em { color: var(--clr-gold-light); }

/* Value Cards */
.value-grid { margin-top: 1.5rem; }
.value-card { background: var(--clr-white); border-radius: var(--radius-md); padding: 1.5rem 1.25rem; margin-bottom: 0.85rem; box-shadow: var(--shadow-sm); display: flex; gap: 1rem; align-items: flex-start; border: 1px solid rgba(0,0,0,0.03); }
.vc-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.35rem; flex-shrink: 0; background: var(--clr-cream); }
.vc-content h4 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 700; color: var(--clr-charcoal); margin-bottom: 0.35rem; }
.vc-content p { font-size: 0.88rem; color: var(--clr-text-mid); line-height: 1.6; }

/* Erbpacht Note */
.erbpacht-note { background: #FDF6F5; border: 1px solid #F0D5D2; border-radius: var(--radius-md); padding: 1.25rem 1.5rem; margin: 1.5rem 0; font-size: 0.92rem; line-height: 1.7; }
.erbpacht-note strong { color: var(--clr-red); }

/* Hood Grid (Stadtteile) */
.hood-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 1.5rem; }
.hood-card { background: var(--clr-white); border-radius: var(--radius-md); padding: 1.25rem 1rem; text-align: center; box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.03); }
.hood-card h4 { font-size: 0.92rem; font-weight: 700; color: var(--clr-charcoal); margin-bottom: 0.25rem; }
.hood-card p { font-size: 0.85rem; color: var(--clr-text-light); line-height: 1.5; }

/* Neighborhood Tags (alternative Stadtteil-Darstellung) */
.neighborhood-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.neighborhood-tag { background: var(--clr-white); padding: 0.5rem 1rem; border-radius: 50px; font-size: 0.85rem; font-weight: 600; color: var(--clr-text); box-shadow: var(--shadow-xs); border: 1px solid rgba(0,0,0,0.04); }

/* Bridge */
.bridge { padding: 3rem 0; background: var(--clr-forest-deep); color: var(--clr-white); text-align: center; }
.bridge h2 { font-family: var(--font-display); font-size: 1.65rem; font-weight: 700; line-height: 1.25; margin-bottom: 1rem; }
.bridge h2 em { font-style: italic; color: var(--clr-gold-light); }
.bridge p { font-size: 1rem; line-height: 1.75; opacity: 0.9; max-width: 600px; margin: 0 auto; }

/* Process Steps */
.process-steps { margin-top: 1.5rem; }
.p-step { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.25rem; }
.p-step-num { width: 36px; height: 36px; border-radius: 50%; background: var(--clr-forest); color: var(--clr-white); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; flex-shrink: 0; }
.p-step h4 { font-size: 1rem; font-weight: 700; color: var(--clr-charcoal); margin-bottom: 0.25rem; }
.p-step p { font-size: 0.92rem; color: var(--clr-text-mid); line-height: 1.65; }

/* Final CTA */
.final { padding: 3.5rem 0 5rem; text-align: center; }
.final .section-title { margin-bottom: 0.75rem; }
.final .section-text { margin-bottom: 1.5rem; }
.final .btn { margin-bottom: 0.65rem; }
.final-urgency { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.82rem; font-weight: 700; color: var(--clr-rust); margin-top: 1rem; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--clr-rust); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.6); } }

/* Back Link */
.back-link { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.88rem; color: var(--clr-forest); font-weight: 600; margin-bottom: 1rem; padding: 0.3rem 0; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.back-link:hover { border-bottom-color: var(--clr-forest); }

/* Nearby Cities */
.nearby-cities { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(0,0,0,0.06); }
.nearby-cities h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--clr-charcoal); margin-bottom: 0.75rem; }
.nearby-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.nearby-links a { background: var(--clr-white); padding: 0.45rem 1rem; border-radius: 50px; font-size: 0.85rem; font-weight: 600; color: var(--clr-forest); box-shadow: var(--shadow-xs); border: 1px solid rgba(42,90,59,0.12); transition: all 0.2s; }
.nearby-links a:hover { background: var(--clr-forest); color: var(--clr-white); }

/* Breadcrumbs */
.breadcrumbs { font-size: 0.78rem; color: var(--clr-text-light); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--clr-forest); text-decoration: underline; text-underline-offset: 2px; }
.breadcrumbs a:hover { color: var(--clr-forest-deep); }

/* Sticky Bar */
.sticky-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; background: var(--clr-white); border-top: 1px solid rgba(0,0,0,0.06); padding: 0.65rem 1rem; box-shadow: 0 -4px 20px rgba(0,0,0,0.08); transform: translateY(100%); transition: transform 0.4s ease; }
.sticky-bar.visible { transform: translateY(0); }
.sticky-bar .btn { font-size: 0.95rem; padding: 0.8rem 1.5rem; }

/* Footer */
.footer { background: var(--clr-charcoal); color: rgba(255,255,255,0.5); padding: 2.5rem 0; padding-bottom: calc(2.5rem + 65px); font-size: 0.8rem; text-align: center; }
.footer a { color: rgba(255,255,255,0.7); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(255,255,255,0.2); }
.footer a:hover { color: #fff; }
.footer-links { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 0.75rem; }
.footer-note { font-size: 0.72rem; margin-top: 0.5rem; opacity: 0.6; }

/* Reveal Animation */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

/* ============================================
   RESPONSIVE – Mobile First Fixes
   ============================================ */

/* Mobile (< 768px) */
@media (max-width: 767px) {
    /* Container */
    .container { padding: 0 1rem; }

    /* Typography */
    .hero h1 { font-size: 1.85rem; line-height: 1.2; }
    .section-title--lg { font-size: 1.65rem; }
    .section-title--md { font-size: 1.4rem; }
    .section-text { font-size: 0.95rem; }
    .nepq-question { font-size: 1.1rem; padding: 1rem 1.15rem; }

    /* Proof Bar – 3 Spalten bleiben, aber kompakter */
    .proof-bar-grid { gap: 0.25rem; }
    .proof-bar-item .pb-number { font-size: 1.35rem; }
    .proof-bar-item .pb-label { font-size: 0.65rem; letter-spacing: 0.04em; }

    /* Hood Grid – 1 Spalte auf kleinen Screens */
    .hood-grid { grid-template-columns: 1fr; gap: 0.6rem; }
    .hood-card { text-align: left; padding: 1rem; display: flex; gap: 0.75rem; align-items: center; }
    .hood-card h4 { margin-bottom: 0; }
    .hood-card p { font-size: 0.82rem; }

    /* Value Cards – kompakter */
    .value-card { padding: 1.15rem 1rem; gap: 0.75rem; }
    .vc-icon { width: 40px; height: 40px; font-size: 1.15rem; }
    .vc-content h4 { font-size: 0.95rem; }
    .vc-content p { font-size: 0.85rem; }

    /* Trust Bar */
    .trust-bar { gap: 0.35rem; }
    .trust-tag { font-size: 0.75rem; padding: 0.35rem 0.7rem; }

    /* Buttons */
    .btn-cta { font-size: 1rem; padding: 1rem 1.25rem; }
    .btn-phone { font-size: 1.05rem; padding: 0.9rem 1.5rem; }

    /* Content Sections */
    .content-section { padding: 2.5rem 0; }
    .bridge { padding: 2rem 0; }
    .bridge h2 { font-size: 1.4rem; }

    /* Highlight Box */
    .highlight-box { padding: 1rem 1.15rem; font-size: 0.92rem; }

    /* Process Steps */
    .p-step h4 { font-size: 0.95rem; }
    .p-step p { font-size: 0.85rem; }

    /* Final */
    .final { padding: 2.5rem 0 4rem; }

    /* Nearby Cities */
    .nearby-cities h3 { font-size: 1rem; }
    .nearby-links a { font-size: 0.8rem; padding: 0.4rem 0.85rem; }

    /* Erbpacht Note */
    .erbpacht-note { padding: 1rem 1.15rem; font-size: 0.85rem; }

    /* Neighborhood Tags */
    .neighborhood-grid { gap: 0.35rem; }
    .neighborhood-tag { font-size: 0.8rem; padding: 0.4rem 0.85rem; }

    /* Back Link */
    .back-link { font-size: 0.82rem; }

    /* Breadcrumbs */
    .breadcrumbs { font-size: 0.72rem; }
}

/* Sehr kleine Screens (< 400px, z.B. iPhone SE) */
@media (max-width: 399px) {
    .hero h1 { font-size: 1.6rem; }
    .section-title--md { font-size: 1.25rem; }
    .proof-bar-item .pb-number { font-size: 1.15rem; }
    .proof-bar-item .pb-label { font-size: 0.6rem; }
    .hood-card { padding: 0.85rem; }
    .btn-cta { font-size: 0.92rem; padding: 0.9rem 1rem; }
    .trust-tag { font-size: 0.7rem; }
}

/* Tablet + Desktop (≥ 768px) */
@media (min-width: 768px) {
    .hero h1 { font-size: 2.75rem; }
    .section-title--lg { font-size: 2.5rem; }
    .section-title--md { font-size: 1.9rem; }
    .sticky-bar { display: none; }
    .footer { padding-bottom: 2.5rem; }
}

/* Desktop (≥ 1024px) */
@media (min-width: 1024px) {
    .container { max-width: 800px; }
    .hero h1 { font-size: 3rem; }
}
