/* ==========================================================================
   Gudenkauf E-Commerce Agentur — zentrales Stylesheet
   Modern & technisch: dunkel, Signal-Lime-Akzent, Oswald + IBM Plex.
   Eingebunden über includes/layout_header.php (<link rel="stylesheet">).
   ========================================================================== */

:root {
    --bg:        #0a0b0d;
    --bg-soft:   #101216;
    --panel:     #14171c;
    --line:      #23272f;
    --text:      #e8eaed;
    --muted:     #8b929c;
    --accent:    #d6ff3f;   /* Signal-Lime */
    --accent-dim:#a9cc2f;
    --radius:    14px;
    --maxw:      1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "IBM Plex Sans", system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Feines technisches Raster + Vignette als Atmosphäre */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: 0.14;
    pointer-events: none;
    z-index: 0;
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 100%);
            mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 100%);
}

.wrap { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.2rem, 4vw, 2.5rem); }

/* Hauptbereich schiebt den Footer nach unten (Sticky Footer) */
main { flex: 1 0 auto; }

/* --- Kicker / Mono-Label --- */
.kicker {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-dim);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}
.kicker::before {
    content: "";
    width: 26px; height: 1px;
    background: var(--accent);
}

/* --- Header --- */
header.site {
    position: sticky; top: 0; z-index: 10;
    backdrop-filter: blur(10px);
    background: rgba(10,11,13,0.72);
    border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand {
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: -0.01em;
    text-decoration: none;
    color: var(--text);
    display: flex; align-items: center; gap: 0.55rem;
}
.brand .dot { width: 9px; height: 9px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 14px var(--accent); }
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
    color: var(--muted); text-decoration: none; font-size: 0.92rem;
    font-family: "IBM Plex Mono", monospace; letter-spacing: 0.02em;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
@media (max-width: 720px) { .nav-links { display: none; } }

/* --- Hero --- */
.hero { padding: clamp(4.5rem, 12vh, 9rem) 0 clamp(3.5rem, 8vh, 6rem); }
.hero h1 {
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    font-size: clamp(2.7rem, 8vw, 5.6rem);
    line-height: 0.98;
    letter-spacing: -0.03em;
    margin: 1.6rem 0 0;
    max-width: 15ch;
}
.hero h1 .accent { color: var(--accent); }
.hero p.lead {
    color: var(--muted);
    font-size: clamp(1.05rem, 2.2vw, 1.32rem);
    max-width: 52ch;
    margin: 1.6rem 0 2.4rem;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.btn {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.92rem; letter-spacing: 0.02em;
    padding: 0.95rem 1.6rem;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.15s, background 0.2s, border-color 0.2s;
    display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-primary { background: var(--accent); color: #0a0b0d; font-weight: 500; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px var(--accent); }
.btn-ghost { color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
/* Submit-Button des Kontaktformulars */
.btn-submit { border: none; cursor: pointer; justify-content: center; width: 100%; }

/* --- Section-Grundgerüst --- */
section { padding: clamp(3.5rem, 9vh, 6.5rem) 0; position: relative; }
.section-head { max-width: 60ch; margin-bottom: 3rem; }
.section-head h2 {
    font-family: "Oswald", sans-serif;
    font-weight: 600;
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin: 1rem 0 0;
}

/* --- Leistungen --- */
.grid-leistungen { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
@media (max-width: 880px) { .grid-leistungen { grid-template-columns: 1fr; } }
.card {
    background: linear-gradient(180deg, var(--panel), var(--bg-soft));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem 1.8rem 2.2rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s, transform 0.25s;
}
.card:hover { border-color: var(--accent-dim); transform: translateY(-4px); }
.card::after {
    content: "";
    position: absolute; inset: 0 0 auto 0; height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0; transition: opacity 0.25s;
}
.card:hover::after { opacity: 1; }
.card .num {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.8rem; color: var(--accent-dim);
    letter-spacing: 0.1em;
}
.card h3 {
    font-family: "Oswald", sans-serif; font-weight: 600;
    font-size: 1.4rem; margin: 1.2rem 0 0.7rem; letter-spacing: -0.01em;
}
.card p { color: var(--muted); font-size: 0.98rem; margin: 0; }
.card ul {
    list-style: none; padding: 0; margin: 1.2rem 0 0;
    font-family: "IBM Plex Mono", monospace; font-size: 0.82rem; color: var(--muted);
}
.card ul li { padding: 0.3rem 0; border-top: 1px solid var(--line); }
.card ul li::before { content: "› "; color: var(--accent); }

/* --- Über uns --- */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 880px) { .about { grid-template-columns: 1fr; gap: 2rem; } }
.about h2 {
    font-family: "Oswald", sans-serif; font-weight: 600;
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    letter-spacing: -0.02em; margin: 1rem 0 1.2rem;
}
.about p { color: var(--muted); }
.about .lead-text { color: var(--text); font-size: 1.15rem; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat {
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.5rem 1.4rem; background: var(--bg-soft);
}
.stat .big {
    font-family: "Oswald", sans-serif; font-weight: 700;
    font-size: 2.2rem; color: var(--accent); line-height: 1;
}
.stat .lbl { font-family: "IBM Plex Mono", monospace; font-size: 0.76rem; color: var(--muted); letter-spacing: 0.08em; margin-top: 0.5rem; }

/* --- Kontakt --- */
.kontakt-inner {
    background: linear-gradient(180deg, var(--panel), var(--bg-soft));
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: clamp(2rem, 5vw, 3.5rem);
    display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem;
}
@media (max-width: 880px) { .kontakt-inner { grid-template-columns: 1fr; gap: 2rem; } }
.kontakt-info h2 { font-family: "Oswald", sans-serif; font-weight: 600; font-size: 2rem; margin: 1rem 0; letter-spacing: -0.02em; }
.kontakt-info p { color: var(--muted); }
.kontakt-info a { color: var(--accent); text-decoration: none; }
.kontakt-info a:hover { text-decoration: underline; }
.kontakt-meta { margin-top: 1.6rem; font-family: "IBM Plex Mono", monospace; font-size: 0.9rem; }
.kontakt-meta div { padding: 0.35rem 0; color: var(--muted); }
.kontakt-meta strong { color: var(--text); font-weight: 500; }

form { display: flex; flex-direction: column; gap: 1.1rem; }
.field label {
    display: block; font-family: "IBM Plex Mono", monospace;
    font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 0.5rem;
}
.field input, .field textarea {
    width: 100%; background: var(--bg); color: var(--text);
    border: 1px solid var(--line); border-radius: 10px;
    padding: 0.85rem 1rem; font-family: inherit; font-size: 1rem;
    transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 130px; }
.field .err { color: #ff6b6b; font-size: 0.82rem; margin-top: 0.4rem; font-family: "IBM Plex Mono", monospace; }
/* Honeypot – für Menschen unsichtbar */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { border-radius: 10px; padding: 0.9rem 1.1rem; font-size: 0.95rem; margin-bottom: 0.4rem; }
.alert-ok  { background: rgba(214,255,63,0.1);  border: 1px solid var(--accent-dim); color: var(--accent); }
.alert-err { background: rgba(255,107,107,0.1); border: 1px solid #ff6b6b; color: #ff8f8f; }

/* --- Rechtstext-Seiten (Impressum / Datenschutz) --- */
.legal { padding: clamp(4.5rem, 10vh, 7rem) 0 clamp(3rem, 8vh, 5rem); }
.legal .wrap { max-width: 780px; }
.legal h1 {
    font-family: "Oswald", sans-serif; font-weight: 700;
    font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.02em;
    line-height: 1.05; margin: 1rem 0 2rem;
}
.legal h2 {
    font-family: "Oswald", sans-serif; font-weight: 600;
    font-size: 1.3rem; letter-spacing: -0.01em;
    margin: 2.5rem 0 0.6rem; color: var(--text);
}
.legal h3 { font-size: 1.02rem; font-weight: 600; margin: 1.4rem 0 0.4rem; color: var(--text); }
.legal p, .legal li { color: var(--muted); }
.legal a { color: var(--accent); text-decoration: none; }
.legal a:hover { text-decoration: underline; }
.legal address {
    font-style: normal; color: var(--text); line-height: 1.9;
    border-left: 2px solid var(--accent); padding-left: 1.1rem; margin: 0.5rem 0;
}
.legal ul { padding-left: 1.2rem; }
.legal .updated { font-family: "IBM Plex Mono", monospace; font-size: 0.82rem; color: var(--muted); margin-top: 3rem; }

/* --- Footer --- */
footer.site { border-top: 1px solid var(--line); padding: 3rem 0 4rem; margin-top: 2rem; flex-shrink: 0; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer-brand { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 1.2rem; }
.footer-note { max-width: 32ch; margin-top: 0.6rem; }
.footer-col { font-size: 0.9rem; color: var(--muted); line-height: 1.9; }
.footer-col .h { font-family: "IBM Plex Mono", monospace; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-dim); display: block; margin-bottom: 0.4rem; }
.footer-col a { color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--accent); }
.copyright { margin-top: 2.5rem; font-family: "IBM Plex Mono", monospace; font-size: 0.78rem; color: var(--muted); }

/* --- Page-Load-Orchestrierung --- */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; animation: rise 0.8s cubic-bezier(0.16,1,0.3,1) forwards; }
.d1 { animation-delay: 0.05s; } .d2 { animation-delay: 0.15s; }
.d3 { animation-delay: 0.25s; } .d4 { animation-delay: 0.35s; } .d5 { animation-delay: 0.45s; }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; opacity: 1; } html { scroll-behavior: auto; } }
