/* ========================================
   Michael Wolf — Bureau für Kommunikation + Design
   Fonts: bunny.net (DSGVO-konform, EU-Server)
   Kein Tracking, keine Cookies, kein Banner nötig
   ======================================== */

:root {
    --black: #0a0a0a;
    --white: #f8f7f4;
    --gray-100: #f0efec;
    --gray-200: #e2e0db;
    --gray-400: #999690;
    --gray-600: #5c5a56;
    --gray-800: #2a2927;
    --accent: #c0157a;
    --accent-light: #d93d96;
    --coral: #33a9c7;
    --coral-light: #55c5e2;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    --container: 1200px;
    --gap: clamp(1.5rem, 4vw, 3rem);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); background: var(--white); color: var(--gray-800); line-height: 1.6; -webkit-font-smoothing: antialiased; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gap); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.accent-link { color: var(--accent); }

/* ---- Navigation ---- */

.nav { position: fixed; top: 0; left: 0; width: 100%; z-index: 100; padding: 1.25rem 0; transition: background 0.3s, padding 0.3s, box-shadow 0.3s; }
.nav.scrolled { background: rgba(248,247,244,0.78); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); padding: 0.75rem 0; box-shadow: 0 1px 0 rgba(226,224,219,0.6); }
.nav-inner { max-width: var(--container); margin: 0 auto; padding: 0 var(--gap); display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; }
.nav-logo-img { height: 40px; width: auto; display: block; }
.nav-links { list-style: none; display: flex; gap: 2.5rem; align-items: center; }
.nav-links a { font-size: 0.875rem; font-weight: 500; letter-spacing: 0.02em; color: var(--gray-600); transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }
.nav-cta { background: var(--black); color: var(--white) !important; padding: 0.6rem 1.5rem; border-radius: 100px; transition: background 0.2s !important; }
.nav-cta:hover { background: var(--accent) !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; z-index: 200; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); transition: background 0.3s; }
.nav.scrolled .nav-toggle span { background: var(--black); }

/* ---- Hero ---- */

.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; padding: 6rem var(--gap) 4rem; color: var(--white); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(10,10,10,0.82) 0%, rgba(10,10,10,0.55) 60%, rgba(10,10,10,0.35) 100%); }
.hero-content { max-width: 800px; position: relative; z-index: 1; }
.hero-tag { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gray-400); margin-bottom: 2rem; }
.hero-title { font-family: var(--font-heading); font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 1.5rem; }
.highlight { color: var(--accent); }
.hero-sub { font-size: clamp(1rem, 2vw, 1.25rem); color: var(--gray-400); max-width: 560px; line-height: 1.7; margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-scroll { position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.75rem; color: var(--gray-400); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; z-index: 1; }
.scroll-line { width: 1px; height: 48px; background: linear-gradient(to bottom, var(--gray-400), transparent); animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ---- Buttons ---- */

.btn { display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-body); font-size: 0.9375rem; font-weight: 500; padding: 0.875rem 2rem; border-radius: 100px; border: none; cursor: pointer; transition: all 0.25s; text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-light); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--gray-600); color: var(--white); background: transparent; }
.btn-ghost:hover { border-color: var(--white); }
.btn-large { padding: 1.1rem 2.5rem; font-size: 1rem; }

/* ---- Section shared ---- */

.section-tag { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--coral); margin-bottom: 1.5rem; }
.section-title { font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 1.25rem; }
.section-intro { font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); color: var(--gray-600); max-width: 600px; line-height: 1.7; margin-bottom: 0; }

/* ---- Scroll-Reveal Heading ---- */

.reveal-heading { font-family: var(--font-heading); font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; margin-bottom: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.2em; }
.cta-box .reveal-heading { justify-content: center; text-align: center; font-size: clamp(1.5rem, 3vw, 2.25rem); }
.kontakt-simple .reveal-heading { justify-content: center; text-align: center; font-size: clamp(2rem, 3vw, 2.75rem); }
.rv { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; display: inline-block; }
.rv.on { opacity: 1; transform: translateY(0); }

/* ---- About ---- */

.about { padding: 8rem 0; }
.about-grid { display: grid; grid-template-columns: 200px 1fr; gap: 4rem; }
.about-lead { font-size: 1.2rem; color: var(--gray-800); margin-bottom: 1rem; line-height: 1.7; }
.about-content p { color: var(--gray-600); line-height: 1.7; margin-bottom: 1rem; }
.about-stats { display: flex; gap: 3rem; margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--gray-200); }
.stat-label { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-400); margin-bottom: 0.25rem; }
.stat-value { font-family: var(--font-heading); font-weight: 600; font-size: 1rem; color: var(--black); }

/* ---- Streetworker / Haltung ---- */

.streetworker { background: var(--gray-100); }

/* Mobile flip card */
.gallery-mobile { display: none; }
.flip-card-mobile { height: 310px; perspective: 1000px; cursor: pointer; }
.flip-card-mobile-inner { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; transition: transform 0.75s cubic-bezier(0.16,1,0.3,1); }
.flip-card-mobile:hover .flip-card-mobile-inner,
.flip-card-mobile.flipped .flip-card-mobile-inner { transform: rotateY(180deg); }
.fcm-front, .fcm-back { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.fcm-front { overflow: hidden; }
.gallery-mobile-img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.fcm-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 2.5rem 1.5rem 1.25rem; background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, transparent 100%); color: var(--white); font-family: var(--font-heading); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.07em; line-height: 1.5; text-transform: uppercase; }
.fcm-back { background: var(--accent); transform: rotateY(180deg); display: flex; flex-direction: column; justify-content: center; padding: 2rem; }

/* Desktop flip cards */
.gallery-strip { display: grid; grid-template-columns: repeat(4, 1fr); height: 460px; }
.flip-card { perspective: 1000px; cursor: pointer; }
.flip-card-inner { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; transition: transform 0.75s cubic-bezier(0.16,1,0.3,1); }
.flip-card:hover .flip-card-inner { transform: rotateY(180deg); }
.flip-front, .flip-back { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip-front { overflow: hidden; }
.gs-img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; transition: transform 0.4s ease; }
.flip-card:hover .gs-img { transform: scale(1.03); }
.gs-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 3rem 1.25rem 1.25rem; background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, transparent 100%); color: var(--white); font-family: var(--font-heading); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.07em; line-height: 1.5; text-transform: uppercase; }
.gs-bar { width: 18px; height: 2px; background: var(--accent); margin-bottom: 8px; }
.flip-back { transform: rotateY(180deg); display: flex; flex-direction: column; justify-content: flex-end; padding: 2rem; }
.flip-back--magenta { background: var(--accent); }
.flip-back--black { background: var(--black); border-left: 1px solid rgba(192,21,122,0.3); }

/* Flip card back content */
.fc-back-label { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 0.75rem; font-family: var(--font-body); }
.fc-back-line { width: 20px; height: 2px; background: rgba(255,255,255,0.35); margin-bottom: 1rem; }
.flip-back--magenta .fc-back-line { background: rgba(255,255,255,0.4); }
.flip-back--black .fc-back-line { background: var(--accent); }
.fc-back-quote { font-family: var(--font-heading); font-size: clamp(0.95rem, 1.4vw, 1.2rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; color: var(--white); margin-bottom: 0.875rem; }
.fc-back-text { font-size: 0.875rem; line-height: 1.55; color: rgba(255,255,255,0.65); font-family: var(--font-body); }

/* Text below strip */
.streetworker-below { padding: 6rem 0; }
.streetworker-below-inner { display: grid; grid-template-columns: 340px 1fr; gap: 5rem; align-items: start; }
.streetworker-intro .section-intro { margin-bottom: 0; }

/* Street cards */
.street-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.street-card { background: var(--white); padding: 1.75rem; border-radius: 10px; border: 1px solid var(--gray-200); transition: transform 0.3s, box-shadow 0.3s; }
.street-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(0,0,0,0.06); }
.street-icon { width: 36px; height: 36px; margin-bottom: 1rem; color: var(--accent); display: block; }
.street-card h3 { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--black); }
.street-card p { color: var(--gray-600); line-height: 1.7; font-size: 0.9375rem; }

/* ---- Leistungen — diagonal top ---- */

.leistungen { padding: 8rem 0 8rem; clip-path: polygon(0 40px, 100% 0, 100% 100%, 0 100%); background: var(--white); margin-top: -40px; padding-top: calc(8rem + 40px); }
.leistungen-list { max-width: 800px; }
.leistung { display: flex; gap: 2.5rem; padding: 2.5rem 0; border-bottom: 1px solid var(--gray-200); align-items: flex-start; }
.leistung:first-child { border-top: 1px solid var(--gray-200); }
.leistung-number { font-family: var(--font-heading); font-size: 0.875rem; font-weight: 600; color: var(--coral); padding-top: 0.25rem; flex-shrink: 0; }
.leistung-content h3 { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--black); }
.leistung-content p { color: var(--gray-600); line-height: 1.7; font-size: 0.9375rem; }

/* ---- CTA — diagonal ---- */

.cta-section { clip-path: polygon(0 0, 100% 40px, 100% 100%, 0 100%); background: var(--gray-100); margin-top: -40px; padding-top: calc(8rem + 40px); padding-bottom: 8rem; }
.cta-box { background: var(--accent); background-image: url(bg.jpg); background-size: cover; color: var(--white); padding: clamp(3rem, 6vw, 5rem); border-radius: 16px; text-align: center; position: relative; overflow: hidden; }
.cta-box::before { content: ''; position: absolute; top: -60%; right: -20%; width: 70%; height: 200%; background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 60%); pointer-events: none; }
.cta-box h2 { font-family: var(--font-heading); font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 1rem; position: relative; z-index: 1; }
.cta-box p { color: rgba(248,247,244,0.8); max-width: 500px; margin: 0 auto 2rem; line-height: 1.7; position: relative; z-index: 1; }
.cta-box .btn { position: relative; z-index: 1; background: var(--white); color: var(--accent); font-weight: 700; }
.cta-box .btn:hover { background: var(--black); color: var(--white); transform: translateY(-2px); }

/* ---- Kontakt — diagonal top ---- */

.kontakt { padding: 8rem 0; position: relative; color: var(--white); text-align: center; overflow: hidden; }
.kontakt-bg { position: absolute; inset: 0; z-index: 0; }
.kontakt-bg-img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.kontakt-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(10,10,10,0.68) 0%, rgba(10,10,10,0.52) 100%); }
.kontakt-container { position: relative; z-index: 1; }
.kontakt-simple { max-width: 600px; margin: 0 auto; }
.kontakt-simple h2 { font-family: var(--font-heading); font-size: clamp(2rem, 3vw, 2.75rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 1.25rem; }
.kontakt-lead { color: rgba(248,247,244,0.65); line-height: 1.7; margin-bottom: 2.5rem; font-size: 1.0625rem; }
.kontakt-email { display: inline-block; font-family: var(--font-heading); font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: 600; color: var(--accent); letter-spacing: -0.01em; transition: color 0.2s; margin-bottom: 2rem; }
.kontakt-email:hover { color: var(--accent-light); }
.kontakt-meta { display: flex; align-items: center; justify-content: center; gap: 0.75rem; font-size: 0.875rem; color: rgba(248,247,244,0.45); flex-wrap: wrap; }
.dot { color: rgba(248,247,244,0.3); }
.section-tag--light { color: var(--accent); }

/* ---- Footer ---- */

.footer { padding: 3rem 0; border-top: 1px solid var(--gray-200); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2rem; }
.footer-logo-img { height: 95px; width: auto; display: block; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { font-size: 0.875rem; color: var(--gray-600); transition: color 0.2s; }
.footer-links a:hover { color: var(--black); }
.footer-copy { padding-top: 2rem; border-top: 1px solid var(--gray-200); }
.footer-copy p { font-size: 0.8125rem; color: var(--gray-400); }


/* Reveal heading in dark/colored sections */
.cta-box .reveal-heading { color: var(--white); }
.kontakt-simple .reveal-heading { color: var(--white); }
.rv--break { display: block; width: 100%; }
.cta-box .rv--break { text-align: center; }


/* Mobile: 2x2 flip card grid */
.gallery-mobile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
}

.gallery-mobile .flip-card-mobile {
    height: 280px;
}

.fcm-back--black {
    background: var(--black);
}

.fcm-back--black .fc-back-label { color: var(--accent); }
.fcm-back--black .fc-back-quote { color: var(--white); }
.fcm-back--black .fc-back-text { color: rgba(255,255,255,0.6); }

/* ---- Animations ---- */


/* Haltung label spezifisch */
.streetworker-intro .section-tag { color: #c0517a; }
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---- Responsive Mobile ---- */

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: var(--white); flex-direction: column; justify-content: center; align-items: center; gap: 2rem; transition: right 0.3s; box-shadow: -4px 0 20px rgba(0,0,0,0.1); z-index: 150; }
    .nav-links.open { right: 0; }
    .nav-links a { font-size: 1.125rem; color: var(--black); }
    .about-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .about-stats { flex-direction: column; gap: 1.5rem; }
    .gallery-strip { display: none; }
    .gallery-mobile { display: block; }
    .gallery-mobile .flip-card-mobile { height: 280px; }
    .streetworker-below { padding: 3rem 0; }
    .streetworker-below-inner { grid-template-columns: 1fr; gap: 2rem; }
    .street-grid { grid-template-columns: 1fr; }
    .leistungen { clip-path: none; margin-top: 0; padding-top: 5rem; }
    .cta-section { clip-path: none; margin-top: 0; padding-top: 5rem; }

    .leistung { flex-direction: column; gap: 0.75rem; }
    .kontakt-meta { flex-direction: column; gap: 0.25rem; }
    .dot { display: none; }
    .footer-inner { flex-direction: column; gap: 1.5rem; align-items: center; text-align: center; }
    .footer-links { justify-content: center; }
    .footer-copy { text-align: center; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { text-align: center; }
    .reveal-heading { font-size: 1.6rem; }
}

/* ---- Responsive Tablet ---- */

@media (min-width: 769px) and (max-width: 1100px) {
    .gallery-strip { height: 340px; }
    .streetworker-below-inner { grid-template-columns: 240px 1fr; gap: 3rem; }
    .street-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 160px 1fr; gap: 2.5rem; }
}

@media (max-height: 650px) { .hero-scroll { display: none; } }

@media (max-width: 480px) {
    .gallery-mobile .flip-card-mobile { height: 260px; }
    .fcm-back .fc-back-quote { font-size: 0.85rem; }
    .fcm-back .fc-back-text { font-size: 0.75rem; }
}
