/* style.css - gemeinsames Stylesheet aller Seiten von website-renovierung.de */
/* Design-System angelehnt an endlich-ki.de (Navy/Gold, Montserrat/Barlow Condensed). */

/* Schriften lokal ausgeliefert (kein Google-Fonts-Request) */
@font-face { font-family: 'Montserrat'; src: url('/fonts/montserrat.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('/fonts/barlow-condensed-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
    --primary-navy: #1a2332;
    --navy-soft: #2c3e50;
    --accent-gold: #c9a66b;
    --accent-gold-light: #d4b583;
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --shadow: rgba(26, 35, 50, 0.15);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body { font-family: 'Montserrat', sans-serif; color: var(--text-dark); background: var(--bg-light); line-height: 1.6; overflow-x: hidden; }

a:not([class]):link, a:not([class]):visited { color: inherit; }
img { max-width: 100%; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

/* Header */
header { background: linear-gradient(135deg, var(--primary-navy) 0%, var(--navy-soft) 100%); padding: 0.55rem 0; overflow: hidden; position: relative; }
header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(201, 166, 107, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(201, 166, 107, 0.1) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; position: relative; z-index: 1; }
.logo { font-family: 'Barlow Condensed', sans-serif; font-size: 2.1rem; font-weight: 700; color: var(--text-light); text-decoration: none; letter-spacing: 1px; text-transform: lowercase; line-height: 1.1; white-space: nowrap; }
.logo-accent { color: var(--accent-gold); }
.header-right { display: flex; align-items: center; gap: 1.5rem; }
.header-nav { display: flex; gap: 1.4rem; }
.header-nav a { color: rgba(255, 255, 255, 0.88); text-decoration: none; font-size: 0.82rem; font-weight: 500; transition: color 0.3s; }
.header-nav a:hover { color: var(--accent-gold); }
.header-cta { display: inline-block; padding: 0.5rem 1.2rem; background: var(--accent-gold); color: var(--primary-navy); text-decoration: none; border-radius: 50px; font-weight: 600; font-size: 0.8rem; white-space: nowrap; transition: var(--transition); }
.header-cta:hover { background: white; transform: scale(1.04); }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 1.5rem; }
.content-section { background: white; border-radius: 16px; padding: 3rem; box-shadow: 0 10px 40px var(--shadow); margin-bottom: 1.5rem; scroll-margin-top: 1rem; }
.section-title { font-family: 'Barlow Condensed', sans-serif; font-size: 2.2rem; color: var(--primary-navy); margin-bottom: 0.5rem; line-height: 1.2; position: relative; padding-bottom: 1rem; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 60px; height: 3px; background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light)); border-radius: 2px; }
.section-subtitle { font-size: 1rem; color: #888; margin-bottom: 2rem; font-weight: 400; }
.section-subtitle a { color: var(--accent-gold); text-decoration: none; }
.section-subtitle a:hover { text-decoration: underline; }

/* Hero */
/* Grafik und Overlay teilen sich eine Zelle: Die Hoehe kommt von der Grafik,
   waechst aber mit, wenn das Overlay mehr Platz braucht. */
.hero { position: relative; width: 100%; border-radius: 16px; overflow: hidden; margin-bottom: 1.5rem; box-shadow: 0 10px 40px var(--shadow); animation: fadeIn 0.9s ease-out backwards; background: var(--primary-navy); display: grid; }
/* Die Hero-Grafik liegt inline im HTML (Maus-Parallaxe braucht Zugriff auf das
   SVG-DOM). Die Hoehe kommt vom Container, das SVG fuellt ihn per
   preserveAspectRatio="slice" wie ein object-fit: cover. */
.hero-art { grid-area: 1 / 1; align-self: stretch; position: relative; width: 100%; aspect-ratio: 1280 / 600; overflow: hidden; background: var(--primary-navy); }
.hero-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* Netzgrafik */
.hn-link      { stroke: var(--accent-gold); fill: none; stroke-linecap: round; }
.hn-link-far  { stroke: #7f9bc4; fill: none; stroke-linecap: round; }
.hn-node-lead { fill: var(--accent-gold-light); }
.hn-node-leaf { fill: #7f9bc4; }
.hn-ring      { fill: none; stroke: var(--accent-gold); }
.hn-pulse     { fill: #f0dcaf; }

/* Das weiche Nachziehen rechnet hero.js; hier nur der Hinweis an den
   Compositor, welche Ebenen sich bewegen. */
.hn-net, .hn-back, .hn-glow, .hn-arm { will-change: transform; }

.hn-wave { transform-origin: 330px 360px; animation: hnWave 4.8s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.hn-w2 { animation-delay: 1.6s; }
.hn-w3 { animation-delay: 3.2s; }
@keyframes hnWave {
    0%   { transform: scale(1);   opacity: 0.55; }
    70%  { transform: scale(3.4); opacity: 0; }
    100% { transform: scale(3.4); opacity: 0; }
}

.hn-breathe { transform-origin: 330px 360px; animation: hnBreathe 5s ease-in-out infinite; }
@keyframes hnBreathe {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.045); }
}

.hn-twinkle { animation: hnTwinkle 4s ease-in-out infinite; }
.hn-t2 { animation-delay: 1.1s; }
.hn-t3 { animation-delay: 2.3s; }
.hn-t4 { animation-delay: 3.1s; }
@keyframes hnTwinkle {
    0%, 100% { opacity: 0.45; }
    50%      { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .hn-pulse { display: none; }
    .hn-wave, .hn-breathe, .hn-twinkle { animation: none; }
    .hn-wave { opacity: 0.25; }
}

/* Die Hero-Grafik blendet nach rechts selbst schon aus, deshalb reicht ein
   weicher Verlauf - so bleibt das Netz hinter der Headline sichtbar. */
.hero-overlay { grid-area: 1 / 1; justify-self: end; position: relative; width: 58%; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 2.5rem 2.8rem; background: linear-gradient(to left, rgba(26, 35, 50, 0.90) 0%, rgba(26, 35, 50, 0.72) 58%, transparent 100%); }
.hero-eyebrow { width: 10.5rem; height: 2px; background: var(--accent-gold); margin-bottom: 0.9rem; }
.hero-title { font-family: 'Barlow Condensed', sans-serif; font-size: 3.2rem; line-height: 1.1; color: white; font-weight: 700; margin-bottom: 0.9rem; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4); }
.hero-title em { font-style: normal; color: var(--accent-gold); }
.hero-sub { color: rgba(255, 255, 255, 0.85); font-size: 0.98rem; line-height: 1.65; margin-bottom: 1.4rem; max-width: 34rem; }
.hero-sub strong { color: var(--accent-gold); font-weight: 600; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: center; }
.hero-meta { margin-top: 1.3rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; font-size: 0.76rem; color: rgba(255, 255, 255, 0.72); }
.hero-meta span { display: flex; align-items: center; gap: 0.4rem; }
.hero-meta span::before { content: '›'; color: var(--accent-gold); font-weight: 700; }
.hero-trust { display: flex; align-items: center; gap: 0.65rem; margin-top: 1.2rem; }
.hero-trust img { display: block; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent-gold); flex-shrink: 0; }
.hero-trust span { font-size: 0.78rem; color: rgba(255, 255, 255, 0.8); line-height: 1.4; }
.hero-trust strong { color: white; }

/* Buttons */
.cta-buttons { display: flex; gap: 1rem; margin-top: 2.5rem; flex-wrap: wrap; justify-content: center; }
.cta-btn { display: inline-block; padding: 0.85rem 1.9rem; background: var(--accent-gold); color: var(--primary-navy); text-decoration: none; border: 1px solid transparent; border-radius: 50px; font-weight: 600; font-size: 0.9rem; transition: var(--transition); font-family: 'Montserrat', sans-serif; text-align: center; }
.cta-btn:hover { background: var(--primary-navy); color: white; transform: translateY(-2px); box-shadow: 0 6px 25px rgba(201, 166, 107, 0.4); }
.hero .cta-btn:hover { background: white; color: var(--primary-navy); }
.hero .cta-btn-ghost { background: transparent; color: white; border-color: rgba(255, 255, 255, 0.4); }
.hero .cta-btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: white; box-shadow: none; }

/* Ablauf */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; list-style: none; counter-reset: step; }
.steps li { background: var(--bg-light); border-radius: 12px; padding: 1.6rem 1.8rem; counter-increment: step; transition: var(--transition); }
.steps li:hover { transform: translateY(-4px); box-shadow: 0 8px 25px var(--shadow); }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: 'Barlow Condensed', sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--accent-gold); display: block; line-height: 1; margin-bottom: 0.6rem; }
.steps h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 1.3rem; color: var(--primary-navy); margin-bottom: 0.5rem; }
.steps p { font-size: 0.88rem; color: #666; line-height: 1.7; }

/* Preise */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.pricing-col { background: white; border: 1px solid rgba(201,166,107,0.35); border-top: 4px solid var(--accent-gold); border-radius: 12px; padding: 1.7rem 1.5rem; display: flex; flex-direction: column; box-shadow: 0 4px 16px var(--shadow); transition: var(--transition); }
.pricing-col:hover { transform: translateY(-4px); box-shadow: 0 12px 28px var(--shadow); }
.pricing-col-featured { position: relative; background: linear-gradient(160deg, var(--primary-navy), var(--navy-soft)); border-color: var(--accent-gold); box-shadow: 0 0 0 2px var(--accent-gold), 0 14px 36px rgba(26,35,50,0.35); transform: translateY(-8px); }
.pricing-col-featured:hover { transform: translateY(-12px); }
.pricing-badge { position: absolute; top: 0; right: 1.2rem; transform: translateY(-50%); background: var(--accent-gold); color: var(--primary-navy); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.3rem 0.8rem; border-radius: 999px; }
.pricing-tag { align-self: flex-start; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #8a6a2f; background: rgba(201,166,107,0.2); padding: 0.25rem 0.65rem; border-radius: 999px; margin-bottom: 0.7rem; }
.pricing-col h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 1.45rem; color: var(--primary-navy); line-height: 1.2; }
.pricing-price { font-family: 'Barlow Condensed', sans-serif; font-size: 2.9rem; font-weight: 700; color: var(--accent-gold); line-height: 1; margin-top: 0.7rem; white-space: nowrap; }
.pricing-price span { font-family: 'Montserrat', sans-serif; font-size: 0.82rem; font-weight: 500; color: #666; }
.pricing-col-sub { font-size: 0.78rem; color: #666; min-height: 2.6em; margin: 0.4rem 0 1rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(201,166,107,0.35); }
.pricing-col ul { list-style: none; font-size: 0.86rem; color: var(--text-dark); line-height: 1.6; }
.pricing-col li { position: relative; padding-left: 1.3rem; margin-bottom: 0.5rem; }
.pricing-col li::before { content: '✓'; position: absolute; left: 0; color: var(--accent-gold); font-weight: 700; }
.pricing-col-featured .pricing-tag { background: rgba(201,166,107,0.25); color: var(--accent-gold-light); }
.pricing-col-featured h3 { color: white; }
.pricing-col-featured .pricing-price { color: var(--accent-gold-light); }
.pricing-col-featured .pricing-price span, .pricing-col-featured .pricing-col-sub { color: rgba(255,255,255,0.75); }
.pricing-col-featured .pricing-col-sub { border-bottom-color: rgba(201,166,107,0.4); }
.pricing-col-featured ul { color: rgba(255,255,255,0.92); }
.pricing-note { font-size: 0.8rem; color: #888; margin-top: 1.2rem; }

/* Dunkle Sektion */
.dark-section { background: linear-gradient(135deg, var(--primary-navy) 0%, var(--navy-soft) 100%); border-radius: 16px; padding: 2.5rem 3rem; margin-bottom: 1.5rem; box-shadow: 0 10px 40px var(--shadow); position: relative; overflow: hidden; scroll-margin-top: 1rem; }
.dark-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(201, 166, 107, 0.12) 0%, transparent 55%); }
.dark-section > * { position: relative; z-index: 1; }
.dark-title { font-family: 'Barlow Condensed', sans-serif; font-size: 1.8rem; color: white; line-height: 1.2; margin-bottom: 0.8rem; }
.dark-section p { color: rgba(255, 255, 255, 0.8); font-size: 0.95rem; line-height: 1.8; max-width: 56rem; }
.dark-section p + p { margin-top: 0.8rem; }

/* Über mich */
.about { display: flex; align-items: center; gap: 2rem; margin-top: 1.5rem; }
.about picture { flex-shrink: 0; display: block; }
.about img { display: block; width: 130px; height: 130px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 3px solid var(--accent-gold); box-shadow: 0 8px 30px var(--shadow); }
.about-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.6rem; color: var(--primary-navy); line-height: 1.2; }
.about-role { font-size: 0.78rem; color: var(--accent-gold); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.8rem; }
.about p { font-size: 0.95rem; color: #555; line-height: 1.8; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
.check-list { list-style: none; display: grid; gap: 0.9rem; }
.check-list li { display: flex; gap: 0.8rem; font-size: 0.9rem; color: #555; line-height: 1.6; }
.check-list li::before { content: '✓'; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-gold); color: var(--primary-navy); font-size: 0.75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.75rem; font-weight: 600; color: var(--primary-navy); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.4rem; }
.form-group input,
.form-group textarea { width: 100%; padding: 0.75rem 1rem; border: 1px solid #e2e5e9; border-radius: 8px; font-family: 'Montserrat', sans-serif; font-size: 0.9rem; color: var(--text-dark); background: var(--bg-light); transition: border-color 0.3s, background 0.3s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent-gold); background: white; }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-extra { position: absolute; left: -9999px; top: -9999px; }
.submit-btn { display: block; width: 100%; padding: 1rem 2.4rem; background: var(--primary-navy); color: white; border: none; border-radius: 50px; font-weight: 600; font-size: 1rem; font-family: 'Montserrat', sans-serif; cursor: pointer; transition: var(--transition); margin-top: 1.5rem; }
.submit-btn:hover { background: var(--accent-gold); color: var(--primary-navy); transform: translateY(-2px); box-shadow: 0 6px 25px rgba(201, 166, 107, 0.4); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.privacy-notice { font-size: 0.75rem; color: #999; text-align: center; margin-top: 1rem; }
.privacy-notice a { color: var(--accent-gold); text-decoration: none; }
.alert { padding: 16px; border-radius: 8px; margin-bottom: 1.5rem; font-size: 0.95rem; }
.alert-error { background: rgba(231,76,60,0.12); border: 1px solid rgba(231,76,60,0.3); color: #e74c3c; }
.success-card { text-align: center; padding: 30px 0; }
.success-card h3 { font-family: 'Barlow Condensed', sans-serif; color: var(--primary-navy); font-size: 1.5rem; margin-bottom: 12px; }
.success-card p { color: #666; line-height: 1.7; font-size: 0.95rem; }
.spinner { display: inline-block; width: 18px; height: 18px; border: 3px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; vertical-align: middle; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Rechtstexte */
.legal-content h2 { font-family: 'Barlow Condensed', sans-serif; font-size: 1.5rem; color: var(--primary-navy); margin: 2rem 0 0.8rem; padding-top: 1rem; border-top: 1px solid #eee; }
.legal-content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.legal-content h3 { font-size: 1.02rem; color: var(--primary-navy); margin: 1.2rem 0 0.5rem; font-weight: 600; }
.legal-content p { font-size: 0.9rem; color: #666; line-height: 1.75; margin-bottom: 0.8rem; }
.legal-content ul { font-size: 0.9rem; color: #666; line-height: 1.75; margin: 0.5rem 0 1rem 1.5rem; }
.legal-content li { margin-bottom: 0.3rem; }
.legal-content a { color: var(--accent-gold); text-decoration: none; }
.legal-content a:hover { text-decoration: underline; }
.legal-content em { color: #888; }
.impressum-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 1.5rem; }
.impressum-block { margin-bottom: 1.5rem; }
.impressum-block .impressum-heading { font-family: 'Montserrat', sans-serif; font-size: 1rem; color: var(--primary-navy); margin-bottom: 0.5rem; font-weight: 600; }
.impressum-block p { font-size: 0.9rem; color: #666; line-height: 1.7; }
.impressum-block a { color: var(--accent-gold); text-decoration: none; }
.impressum-block a:hover { text-decoration: underline; }

/* Footer */
.site-footer { background: linear-gradient(135deg, var(--primary-navy) 0%, var(--navy-soft) 100%); padding: 2.5rem 0 2rem; text-align: center; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.footer-logo { font-family: 'Barlow Condensed', sans-serif; font-size: 1.5rem; font-weight: 700; color: white; text-transform: lowercase; letter-spacing: 1px; margin-bottom: 0.4rem; }
.footer-logo-accent { color: var(--accent-gold); }
.footer-nav { display: flex; justify-content: center; gap: 1.6rem; flex-wrap: wrap; margin: 1.2rem 0; }
.footer-nav a:link, .footer-nav a:visited { color: rgba(255, 255, 255, 0.5); font-size: 0.85rem; text-decoration: none; transition: color 0.2s; }
.footer-nav a:hover { color: var(--accent-gold); }
.footer-text { color: rgba(255, 255, 255, 0.45); font-size: 0.8rem; line-height: 1.7; }

@media (max-width: 1000px) {
    .content-section, .dark-section { padding: 2.2rem; }
    .pricing-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .hero-title { font-size: 2.5rem; }
}

@media (max-width: 820px) {
    header { padding: 0.35rem 0; }
    .header-nav { display: none; }
    .logo { font-size: 1.5rem; }

    /* Die Netzgrafik bleibt als abgedunkelter Hintergrund hinter dem Titel. */
    .hero-art { position: absolute; inset: 0; aspect-ratio: auto; opacity: 0.55; }
    /* Linksbuendig statt mittig beschnitten, sonst faellt der Kern aus dem Bild. */
    .hero-svg { inset: 0 auto 0 0; width: auto; min-width: 100%; aspect-ratio: 1280 / 720; }
    .hero-overlay { width: 100%; background: none; padding: 2.2rem 1.8rem; }
    .hero-title { font-size: clamp(2rem, 8vw, 2.6rem); }
    .hero-sub { font-size: 0.92rem; }
    .hero-actions .cta-btn { flex: 1 1 auto; }

    .steps { grid-template-columns: 1fr; }
    .section-title { font-size: 1.75rem; }
    .dark-title { font-size: 1.6rem; }
    .impressum-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 560px) {
    .container { padding: 1rem; }
    .content-section, .dark-section { padding: 1.6rem 1.3rem; border-radius: 12px; }
    .header-inner { padding: 0 1rem; gap: 0.6rem; }
    .logo { font-size: 1.25rem; letter-spacing: 0.5px; }
    .header-cta { padding: 0.45rem 1rem; font-size: 0.74rem; }
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-col-sub { min-height: 0; }
    .pricing-col-featured { transform: none; }
    .about { flex-direction: column; text-align: center; gap: 1rem; }
    .cta-buttons { flex-direction: column; }
    .cta-btn { width: 100%; }
    .footer-nav { gap: 1rem; }
    .impressum-grid { gap: 1rem; }
}
