/* ==========================================================================
   Immobilienservice Pfalz – Design 2026-10 („hell & klar", angelehnt an zeitstrom.com)
   Wird NUR von den öffentlichen Seiten NACH style.css geladen und überschreibt
   dort das Erscheinungsbild. Backend (/einsaetze, /kalkulation) lädt diese Datei
   nicht und bleibt unverändert.
   Prinzip: weiße/hellgraue Flächen, fast-schwarzer Text, EINE Signalfarbe (Kupfer)
   für Handlungsaufforderungen, Grün als Markenfarbe, Pillen-Buttons, große
   ruhige Karten, keine Verläufe/Glows.
   ========================================================================== */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/fonts/inter-latin-var.woff2') format('woff2');
}

:root {
    --signal: #a35f36;          /* Kupfer, AA-tauglich mit weißer Schrift (4,9:1) */
    --signal-hover: #8f5330;
    --primary-soft: #e6f2ea;

    --text: #1a1a1a;
    --text-secondary: #5c5c5c;
    --text-muted: #6b6b6b;      /* vorher #94a3b8 – auf Weiß unter AA */
    --bg: #ffffff;
    --bg-alt: #f5f5f4;
    --border: #e7e7e5;
    --border-light: #efefed;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
    --shadow-md: 0 8px 24px -8px rgba(0,0,0,0.10);
    --shadow-lg: 0 20px 40px -16px rgba(0,0,0,0.14);
    --shadow-glow: none;

    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 28px;
    --radius-xl: 36px;

    --focus-ring: 3px solid var(--primary);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-feature-settings: 'cv11', 'ss01';
    background: var(--bg);
    line-height: 1.65;
}
*:focus-visible { outline-offset: 3px; }
button, input, select, textarea { font-family: inherit; }

h1, h2, h3, h4, h5, h6 { letter-spacing: -0.025em; }

/* --- Buttons: Pillen, Vollfarbe, keine Verläufe ------------------------- */
.btn {
    border-radius: 9999px; padding: 14px 28px; font-weight: 600;
    font-size: 1rem; border-width: 1.5px; box-shadow: none;
    transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn::after { display: none; }
.btn:hover { transform: none; }

.btn-primary,
.btn-white {
    background: var(--signal); border-color: var(--signal); color: #fff; box-shadow: none;
}
.btn-primary:hover, .btn-primary:focus,
.btn-white:hover, .btn-white:focus {
    background: var(--signal-hover); border-color: var(--signal-hover); color: #fff;
    box-shadow: none; transform: none;
}

.btn-secondary {
    background: var(--text); border-color: var(--text); color: #fff; box-shadow: none;
}
.btn-secondary:hover, .btn-secondary:focus {
    background: #000; border-color: #000; color: #fff; box-shadow: none; transform: none;
}

.btn-outline,
.btn-ghost {
    background: transparent; color: var(--text); border-color: #cfcfcc;
    backdrop-filter: none;
}
.btn-outline:hover, .btn-outline:focus,
.btn-ghost:hover, .btn-ghost:focus {
    background: var(--bg-alt); border-color: var(--text); color: var(--text); transform: none;
}

/* --- Header: weiß, ruhig, ohne Glas-Effekt ------------------------------ */
header {
    background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none;
    border-bottom: 1px solid var(--border-light);
}
header.scrolled { background: #fff; box-shadow: 0 1px 0 var(--border), 0 4px 16px -8px rgba(0,0,0,0.08); }
.logo h1, .logo .brand-name { color: var(--text); font-size: 1.25rem; letter-spacing: -0.03em; }
.logo .logo-sub { color: var(--text-muted); }

.nav-menu a { color: var(--text); font-weight: 500; font-size: 0.95rem; border-radius: 9999px; padding: 8px 14px; }
.nav-menu a:hover, .nav-menu a:focus { color: var(--text); background: var(--bg-alt); }
.nav-menu .nav-cta,
.nav-menu .nav-cta:hover, .nav-menu .nav-cta:focus {
    color: #fff; box-shadow: none; padding: 10px 22px;
}
.nav-menu .nav-cta { background: var(--signal); }
.nav-menu .nav-cta:hover, .nav-menu .nav-cta:focus { background: var(--signal-hover); }

.header-phone { color: var(--text); }
.header-phone:hover, .header-phone:focus { background: var(--bg-alt); color: var(--text); }
.header-phone svg { color: var(--primary-mid); }

/* --- Hero: hell, große klare Typografie --------------------------------- */
.hero {
    background: #fff; color: var(--text);
    min-height: 0; padding: 136px 0 72px;
}
.hero::before {
    background: radial-gradient(ellipse 70% 60% at 85% 35%, rgba(82,183,136,0.10), transparent 70%);
}
.hero::after, .hero-grid { display: none; }

.hero h1, .hero h2 {
    font-size: clamp(2.2rem, 4.6vw, 3.5rem);
    line-height: 1.06; font-weight: 800; letter-spacing: -0.035em;
    margin-bottom: 24px; color: var(--text);
    background: none; -webkit-text-fill-color: currentColor;
}
.hero .hero-subtitle {
    color: var(--text-secondary); font-size: 1.15rem; line-height: 1.65;
    margin-bottom: 36px; max-width: 580px;
}
.hero-content { max-width: 640px; }
.hero-visual { flex: 0 0 440px; }
.hero-visual img { animation: none; filter: none; }

.hero-badge {
    color: var(--primary); background: var(--primary-soft);
    border: 0; backdrop-filter: none; -webkit-backdrop-filter: none;
    letter-spacing: 0.06em; font-size: 0.75rem; padding: 7px 14px; margin-bottom: 28px;
}
.hero-buttons { gap: 12px; }
.hero-phone { color: var(--text-secondary); margin-top: 24px; }
.hero-phone a { color: var(--text); text-decoration-color: var(--signal); text-decoration-thickness: 2px; }
.hero-phone a:hover, .hero-phone a:focus { color: var(--signal-hover); }

/* --- Trust-Bar: graue Kachelreihe statt schwebender Karte --------------- */
.trust-bar { background: #fff; margin-top: 0; padding: 0 0 24px; }
.trust-bar .container { background: transparent; box-shadow: none; border: 0; padding: 0 24px; }
.trust-items { gap: 16px; text-align: left; }
.trust-item {
    align-items: flex-start; gap: 4px;
    background: var(--bg-alt); border-radius: var(--radius); padding: 24px;
}
.trust-number {
    font-size: 1.35rem; font-weight: 800; color: var(--text);
    background: none; -webkit-text-fill-color: currentColor; letter-spacing: -0.02em;
}
.trust-label { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.45; }

/* --- Wellen-Trenner entfallen (flaches Layout) -------------------------- */
.section-wave { display: none; }

/* --- Sections ----------------------------------------------------------- */
.section { padding: 112px 0; }
.bg-light { background-color: var(--bg-alt); }
/* Gleichfarbige Nachbar-Abschnitte (ggf. mit ausgeblendetem Wellen-Trenner dazwischen)
   nicht doppelt polstern */
.section:not(.bg-light) + .section:not(.bg-light),
.section.bg-light + .section.bg-light,
.section.bg-light + .section-wave + .section.bg-light,
.section:not(.bg-light) + .section-wave + .section:not(.bg-light) { padding-top: 0; }
.section-header { max-width: 720px; margin-bottom: 64px; }
.section-header h1, .section-header h2 {
    font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.1;
    letter-spacing: -0.035em; font-weight: 800; margin-bottom: 18px;
}
.section-header p { font-size: 1.125rem; }

.section-label {
    background: none; padding: 0; border-radius: 0;
    color: var(--primary-mid); font-size: 0.8rem; letter-spacing: 0.1em;
    margin-bottom: 14px;
}

/* --- Karten allgemein: groß, ruhig, ohne Verlauf/Glow ------------------- */
.service-card, .process-step, .package-card, .testimonial-card,
.audience-card, .usp-card, .price-card, .gebiet-card, .contact-form, .about-card {
    border-radius: var(--radius-lg); border: 1px solid var(--border);
    box-shadow: none; background: #fff;
    transition: box-shadow .25s, border-color .25s;
}
.bg-light .service-card, .bg-light .process-step, .bg-light .package-card,
.bg-light .audience-card, .bg-light .usp-card, .bg-light .price-card,
.bg-light .gebiet-card, .bg-light .contact-form { border-color: transparent; }

.service-card:hover, .process-step:hover, .package-card:hover, .testimonial-card:hover,
.audience-card:hover, .usp-card:hover, .price-card:hover, .gebiet-card:hover {
    transform: none; box-shadow: var(--shadow-md); border-color: var(--border);
}
.service-card::before, .package-card.featured::before { display: none; }

.service-card { padding: 36px 32px; }
.service-card h3, .usp-card h3, .price-card h3, .process-step h3 { font-size: 1.15rem; letter-spacing: -0.02em; }

.icon-circle, .price-icon {
    background: var(--primary-soft); color: var(--primary);
    border-radius: 16px; width: 52px; height: 52px;
}
.usp-icon, .step-number {
    background: var(--primary); box-shadow: none; border-radius: 16px;
}
.step-number { border-radius: 9999px; }
.step-connector { background: var(--border); }

/* --- Zielgruppen ------------------------------------------------------- */
.audience-card { padding: 48px 44px; }
.audience-card h3 { font-size: 1.75rem; letter-spacing: -0.03em; }
.audience-badge { background: var(--primary); }
.audience-badge-accent { background: var(--signal); }
.audience-list li { border-bottom-color: var(--border-light); }

/* --- Preise / Pakete --------------------------------------------------- */
.price-amount, .package-price {
    background: none; -webkit-text-fill-color: currentColor; color: var(--text);
    font-weight: 800; letter-spacing: -0.03em;
}
.price-amount { font-size: 1.75rem; }
.price-unit { -webkit-text-fill-color: currentColor; }
.price-features { border-top-color: var(--border-light); }
.price-features li::before { background: var(--primary-mid); }
.price-disclaimer {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
}
.price-disclaimer a, .packages-footnote a, .gebiet-note a { color: var(--primary-mid); }

.package-card.featured { border: 2px solid var(--primary); box-shadow: var(--shadow-md); }
.tag { background: var(--signal); }
.package-features li.included svg { color: var(--primary-mid); }
.packages-footnote, .gebiet-note { border-radius: var(--radius); background: #fff; }

/* --- Servicegebiet ----------------------------------------------------- */
.gebiet-card { padding: 40px 36px; }
.gebiet-card-primary { border: 2px solid var(--primary); box-shadow: none; }
.bg-light .gebiet-card-primary { border-color: var(--primary); }
.gebiet-pill { background: var(--primary); }
.gebiet-pill-accent { background: var(--signal); }
.gebiet-list li::before { background: var(--primary-mid); box-shadow: 0 0 0 3px var(--primary-soft); }
.gebiet-list a { color: var(--text); text-decoration: underline; text-decoration-color: #cfcfcc; text-underline-offset: 3px; }
.gebiet-list a:hover, .gebiet-list a:focus { text-decoration-color: var(--signal); color: var(--text); }

/* --- Über uns ---------------------------------------------------------- */
.about-content { gap: 72px; }
.about-text p:first-child { font-size: 1.2rem; }
.about-region {
    background: var(--bg-alt); border-left: 0; border-radius: var(--radius);
}
.about-text .about-region p { font-size: 0.95rem; font-weight: 400; line-height: 1.6; }
.about-signature { color: var(--text); }
.about-card::before { display: none; }
.about-card { background: var(--bg-alt); border-color: transparent; }
.about-card-facts, .about-card-facts div { border-color: #e2e2df; }

/* --- FAQ --------------------------------------------------------------- */
.faq-container { max-width: 820px; }
.faq-item { border-radius: 20px; margin-bottom: 12px; border-color: var(--border); }
.bg-light .faq-item { border-color: transparent; }
.faq-item:hover { border-color: #d6d6d3; }
.faq-item.active { border-color: var(--text); box-shadow: none; }
.faq-question { padding: 22px 28px; }
.faq-question:hover { background: transparent; }
.faq-question h3 { font-size: 1.05rem; }
.faq-answer-inner { padding: 0 28px 24px; }
.toggle-icon { border-radius: 9999px; background: var(--bg-alt); }
.toggle-icon svg { color: var(--text); }
.faq-item.active .toggle-icon { background: var(--text); }
.faq-item.active .toggle-icon svg { color: #fff; }

/* --- Kontakt & Formular ------------------------------------------------ */
.contact-form { padding: 44px; }
.form-group input, .form-group textarea, .form-group select {
    border-radius: 12px; border: 1.5px solid var(--border); background: #fafaf9; padding: 13px 16px;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--text); box-shadow: 0 0 0 4px rgba(26,26,26,0.06); background: #fff;
}
.form-group .checkbox-container { font-weight: 400; }
.info-item a { color: var(--text); text-decoration-color: var(--signal); }
.response-promise { background: var(--primary); box-shadow: none; border-radius: var(--radius); }

/* --- Abschluss-Band (Stadt-Seiten) ------------------------------------- */
.cta-band {
    background: var(--primary); box-shadow: none; border-radius: var(--radius-xl);
    padding: 72px 48px;
}
.cta-band h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); letter-spacing: -0.035em; line-height: 1.12; }
.cta-band .btn-outline { color: #fff; border-color: rgba(255,255,255,0.45); }
.cta-band .btn-outline:hover, .cta-band .btn-outline:focus { background: rgba(255,255,255,0.1); border-color: #fff; color: #fff; }
.cta-band .btn:focus-visible { outline-color: #fff; }

.breadcrumb { color: var(--text-muted); }
.breadcrumb a { color: var(--text); text-decoration: underline; text-decoration-color: #cfcfcc; text-underline-offset: 3px; }

/* --- Footer ------------------------------------------------------------ */
footer { background: #161616; margin-top: 0; }
.footer-links a { color: rgba(255,255,255,0.65); }
.footer-bottom { color: rgba(255,255,255,0.5); }

/* --- Cookie-Banner & Mobil-Leiste ------------------------------------- */
.cookie-banner { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 -8px 32px -12px rgba(0,0,0,0.15); }
.mobile-cta { border-radius: 9999px; }
.mobile-cta-call { background: var(--signal); }
.mobile-cta-form { background: var(--text); }

/* --- Rechtliche Seiten ------------------------------------------------- */
.legal-content h2 { letter-spacing: -0.025em; }
.legal-content a { color: var(--text); text-decoration-color: var(--signal); }

/* --- Responsive -------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero-visual { flex-basis: 340px; }
    .trust-items { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-menu { background: #fff; backdrop-filter: none; }
    .nav-menu .nav-cta { border-radius: 9999px; }
    .nav-phone-mobile a { background: var(--bg-alt); color: var(--text) !important; border-radius: 9999px; }

    .hero { padding: 104px 0 48px; }
    .hero .container { text-align: left; align-items: stretch; }
    .hero-visual { display: none; }
    .hero-buttons .btn { width: 100%; }

    .trust-bar { padding-bottom: 8px; }
    .trust-items { gap: 10px; }
    .trust-item { padding: 18px; }
    .trust-number { font-size: 1.1rem; }

    .section { padding: 80px 0; }
    .section-header { text-align: left; margin-bottom: 40px; }
    .audience-card { padding: 32px 24px; }
    .audience-badge { position: static; align-self: flex-start; margin-bottom: 14px; }
    .gebiet-card { padding: 28px 22px; }
    .contact-form { padding: 28px 20px; }
    .cta-band { padding: 48px 24px; border-radius: var(--radius-lg); }
    .faq-question { padding: 18px 20px; }
    .faq-answer-inner { padding: 0 20px 20px; }
}

@media (max-width: 480px) {
    .trust-bar .container { padding: 0 16px; }
}

@media (prefers-contrast: high) {
    .btn-outline, .btn-ghost { border-color: #000; }
}

/* Servicegebiet: Ortsgruppen innerhalb der Kerngebiet-Karte */
.gebiet-group {
    font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--text-muted); margin: 0 0 10px;
}
.gebiet-list + .gebiet-group { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border-light); }
