/* ============================================================
   sonnenschutz-folie-sachsen.de – Design System
   Basis-CSS (ergänzt Tailwind, eigene Variablen & Komponenten)
   ============================================================ */

/* --- Google Fonts (Inter) ---------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- CSS Custom Properties --------------------------------- */
:root {
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

    --color-orange:      #f08118;
    --color-orange-dark: #d46b0a;
    --color-orange-pale: #fef3e8;
    --color-anthrazit:   #1e2229;
    --color-anthrazit-2: #2a2f38;
    --color-slate-50:    #f8fafc;
    --color-slate-100:   #f1f5f9;
    --color-slate-200:   #e2e8f0;
    --color-slate-600:   #475569;
    --color-slate-700:   #334155;
    --color-slate-900:   #0f172a;
    --color-white:       #ffffff;

    --radius-sm:  6px;
    --radius-md:  12px;
    --radius-lg:  20px;
    --radius-xl:  28px;

    --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md:  0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.08);
    --shadow-lg:  0 12px 40px rgba(0,0,0,.14), 0 4px 12px rgba(0,0,0,.08);
    --shadow-xl:  0 24px 60px rgba(0,0,0,.18);

    --transition: 200ms cubic-bezier(.4,0,.2,1);
}

/* --- Reset / Base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-slate-900);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

img, video {
    max-width: 100%;
    display: block;
}

/* --- Typografie ------------------------------------------- */
.heading-display {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.heading-1 {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.heading-2 {
    font-size: clamp(1.375rem, 2.5vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.heading-3 {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.015em;
}

.lead {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.65;
    color: var(--color-slate-600);
}

.caption {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-orange);
}

/* --- Buttons ---------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-orange);
    color: #fff;
    box-shadow: 0 4px 14px rgba(240,129,24,.35);
}

.btn-primary:hover {
    background: var(--color-orange-dark);
    box-shadow: 0 6px 20px rgba(240,129,24,.45);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.4);
}

.btn-ghost:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.7);
}

.btn-outline {
    background: transparent;
    color: var(--color-anthrazit);
    border: 1.5px solid var(--color-slate-200);
}

.btn-outline:hover {
    background: var(--color-slate-50);
    border-color: var(--color-slate-400);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

/* --- Cards ------------------------------------------------ */
.card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-slate-200);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
}

.card-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

/* Photo Cards (Service Cards mit großem Bild) */
.photo-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 4/5;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.photo-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(.4,0,.2,1);
}

.photo-card:hover img {
    transform: scale(1.04);
}

.photo-card-overlay {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    background: linear-gradient(
        to top,
        rgba(15,23,42,.92) 0%,
        rgba(15,23,42,.60) 60%,
        transparent 100%
    );
}

/* --- Sections --------------------------------------------- */
.section {
    padding: 4.5rem 0;
}

.section-sm {
    padding: 2.5rem 0;
}

.section-lg {
    padding: 6rem 0;
}

.container {
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 640px) {
    .container { padding: 0 2rem; }
}

@media (min-width: 1024px) {
    .container { padding: 0 2.5rem; }
}

/* --- Section labels / eyebrows ---------------------------- */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.875rem;
    border-radius: 100px;
    background: var(--color-orange-pale);
    color: var(--color-orange-dark);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* --- Navigation ------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(226,232,240,.8);
    transition: transform 0.35s cubic-bezier(.4,0,.2,1), box-shadow var(--transition);
    transform: translateY(0);
}

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,.08);
}

.site-header.hide {
    transform: translateY(-110%);
}

/* Abstandshalter damit Inhalt nicht unterm fixierten Header verschwindet */
body::before {
    content: '';
    display: block;
    height: 4rem;
}

@media (min-width: 1024px) {
    body::before {
        height: 4.5rem;
    }
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-slate-700);
    padding: 0.25rem 0;
    position: relative;
    transition: color var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--color-orange);
    border-radius: 2px;
    transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-anthrazit);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* --- Hero ------------------------------------------------- */
.hero-section {
    position: relative;
    min-height: 96vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--color-anthrazit);
}

/* Innenseiten-Hero (kompakter) */
.hero-section-inner {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--color-anthrazit);
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(15,23,42,.85) 0%,
        rgba(15,23,42,.65) 50%,
        rgba(15,23,42,.25) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* --- Trust Bar -------------------------------------------- */
.trust-bar {
    background: #fff;
    border-bottom: 1px solid var(--color-slate-200);
    padding: 0.875rem 0;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-slate-700);
    white-space: nowrap;
}

.trust-item svg {
    color: var(--color-orange);
    flex-shrink: 0;
}

/* --- Stats ------------------------------------------------ */
.stat-value {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--color-orange);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-slate-600);
    margin-top: 0.25rem;
}

/* --- Process Steps ---------------------------------------- */
.process-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.process-num {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--color-orange);
    color: #fff;
    font-size: 1.125rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(240,129,24,.4);
    margin-bottom: 1rem;
}

/* --- Image split sections --------------------------------- */
.img-split {
    display: grid;
    gap: 0;
}

@media (min-width: 768px) {
    .img-split {
        grid-template-columns: 1fr 1fr;
        min-height: 520px;
    }
}

.img-split-img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
}

/* --- FAQ Accordion ---------------------------------------- */
details.faq-item {
    border-radius: var(--radius-2xl);
    border: 1px solid var(--color-slate-200);
    background: #fff;
    overflow: hidden;
    transition: box-shadow var(--transition);
}

details.faq-item:hover {
    box-shadow: var(--shadow-md);
}

details.faq-item[open] {
    box-shadow: var(--shadow-md);
}

details.faq-item summary,
details.faq-item .faq-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.125rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    color: var(--color-slate-900);
    gap: 1rem;
}

details.faq-item summary::-webkit-details-marker { display: none; }

details.faq-item summary .faq-icon {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-slate-400);
    transition: transform var(--transition), color var(--transition);
}

details.faq-item[open] summary .faq-icon {
    color: var(--color-orange);
    transform: rotate(180deg);
}

details.faq-item .faq-answer,
details.faq-item .faq-body {
    padding: 0 1.5rem 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-slate-600);
}

/* --- Cookie Banner ---------------------------------------- */
#cookieBanner.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* --- Footer ----------------------------------------------- */
.footer-root {
    background: #111827;
    color: #f1f5f9;
    margin-top: 5rem;
    width: 100%;
}

.footer-accent {
    height: 4px;
    background: var(--color-orange);
    width: 100%;
}

.footer-main {
    padding: 3.5rem 1.5rem 2.5rem;
}

@media (min-width: 640px) {
    .footer-main { padding: 4rem 2.5rem 3rem; }
}

@media (min-width: 1024px) {
    .footer-main { padding: 4.5rem 4rem 3.5rem; }
}

@media (min-width: 1440px) {
    .footer-main { padding: 4.5rem 6rem 3.5rem; }
}

.footer-grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 1fr;
}

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

@media (min-width: 1024px) {
    .footer-grid { grid-template-columns: 1.8fr 1fr 1fr 1.2fr; gap: 3rem; }
}

/* Brand column */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo-link {
    display: inline-block;
}

.footer-logo {
    height: 2.5rem;
    width: auto;
    max-width: 200px;
}

@media (min-width: 1024px) {
    .footer-logo { height: 2.75rem; }
}

.footer-slogan {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-orange);
    margin-top: -0.25rem;
}

.footer-tagline {
    font-size: 0.875rem;
    line-height: 1.65;
    color: #94a3b8;
    max-width: 22rem;
}

.footer-social {
    display: flex;
    gap: 0.625rem;
    margin-top: 0.5rem;
}

.footer-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.12);
    color: #94a3b8;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.footer-social-btn:hover {
    background: var(--color-orange);
    color: #fff;
    border-color: var(--color-orange);
}

/* Info columns */
.footer-col {}

.footer-col-heading {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-orange);
    margin-bottom: 1rem;
}

/* Navigation links */
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-nav-link {
    font-size: 0.875rem;
    color: #cbd5e1;
    transition: color var(--transition), padding-left var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-nav-link:hover {
    color: #fff;
    padding-left: 0.35rem;
}

.footer-nav-link::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-orange);
    flex-shrink: 0;
    opacity: 0;
    transition: opacity var(--transition);
}

.footer-nav-link:hover::before {
    opacity: 1;
}

/* Contact items */
.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #cbd5e1;
    transition: color var(--transition);
    line-height: 1.5;
}

.footer-contact-item:hover {
    color: #fff;
}

.footer-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.875rem;
    height: 1.875rem;
    border-radius: 0.5rem;
    background: rgba(240,129,24,.15);
    color: var(--color-orange);
    flex-shrink: 0;
}

.footer-contact-icon svg {
    width: 1rem;
    height: 1rem;
}

/* Address */
.footer-address {
    font-style: normal;
    font-size: 0.875rem;
    line-height: 1.75;
    color: #cbd5e1;
}

.footer-hours {
    font-size: 0.875rem;
    line-height: 1.75;
    color: #cbd5e1;
}

.footer-hours-note {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
}

/* Bottom bar */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    background: rgba(0,0,0,.3);
}

.footer-bottom-inner {
    padding: 1.25rem 1.5rem 1.375rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

@media (min-width: 640px) {
    .footer-bottom-inner { padding: 1.25rem 2.5rem 1.375rem; }
}

@media (min-width: 1024px) {
    .footer-bottom-inner { padding: 1.25rem 4rem 1.375rem; }
}

@media (min-width: 1440px) {
    .footer-bottom-inner { padding: 1.25rem 6rem 1.375rem; }
}

/* Zeile 1: Copyright + Links */
.footer-bottom-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.375rem 0.875rem;
}

.footer-bottom-copy {
    font-size: 0.8125rem;
    color: #cbd5e1;
    white-space: nowrap;
}

.footer-bottom-divider {
    color: rgba(255,255,255,.2);
    font-size: 0.75rem;
    user-select: none;
}

.footer-legal-link {
    font-size: 0.8125rem;
    color: #94a3b8;
    transition: color var(--transition);
    white-space: nowrap;
}

.footer-legal-link:hover {
    color: #fff;
}

/* Zeile 2: Design-Credit */
.footer-bottom-credit {
    font-size: 0.8rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-credit-link {
    color: #94a3b8;
    font-weight: 500;
    transition: color var(--transition);
}

.footer-credit-link:hover {
    color: var(--color-orange);
}

/* --- Utility ---------------------------------------------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}

.text-balance { text-wrap: balance; }

/* --- Scroll Animation (einfach, kein JS nötig) ------------ */
@media (prefers-reduced-motion: no-preference) {
    .fade-in {
        animation: fadeInUp 0.5s ease both;
    }
    @keyframes fadeInUp {
        from { opacity: 0; transform: translateY(20px); }
        to   { opacity: 1; transform: translateY(0); }
    }
}
