/* ==================================================
   RESET
================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==================================================
   COLOR SYSTEM
================================================== */
:root {
    --accent: #fce499;
    --accent-soft: rgba(252, 228, 153, 0.15);

    --text-main: #555555;
    --text-muted: #8a8a8a;

    --bg-main: #111111;
    --bg-secondary: #181818;
    --bg-card: #1f1f1f;

    --border: #2a2a2a;
    --header-height: 51px;
}

/* ==================================================
   BASE
================================================== */
html {
    scroll-behavior: smooth;
}

body {
    font-family:
        "Geist",
        system-ui,
        -apple-system,
        sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-main);
    line-height: 1.6;
    font-weight: 400;

    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}
html,
body {
    overflow-x: clip;
}
@supports not (overflow: clip) {
    html,
    body {
        overflow-x: hidden;
    }
}

section[id] {
    scroll-margin-top: var(--header-height);
}

/* Überschriften modern und markant */
h1,
h2,
h3 {
    font-family: "Geist", system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

h1 {
    font-size: 2.2rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
}

h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent);
}

.center {
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Logo */
.hero-logo {
    margin-bottom: 1.6rem;
}
@media (min-width: 900px) {
    .hero-logo {
        margin-bottom: 2rem;
    }
}

.hero-logo img {
    width: clamp(240px, 40vw, 440px);
    height: auto;
    display: block;
    filter: drop-shadow(0 10px 30px rgba(252, 228, 153, 0.25));
    animation: float 6s ease-in-out infinite;
}

.hero-title {
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero-title-main {
    display: block;
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    color: var(--accent);
}

.hero-title-sub {
    display: block;
    margin-top: 0.4rem;
    font-size: clamp(1.1rem, 2.6vw, 1.5rem);
    font-weight: 500;
    color: var(--text-muted);
}
.hero-button {
    margin-top: 2.6rem;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
    100% {
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .hero-title-main {
        font-size: 2rem;
    }
    .hero-title-sub {
        font-size: 1.15rem;
    }
}

/* NAV-Logo klein halten */
.header .logo img {
    height: 64px; /* 30–40px sind üblich */
    width: auto;
    display: block;
    max-width: none;
}

.header .logo {
    margin-right: auto; /* Menü nach rechts schieben */
    display: flex;
    align-items: center;
    font-weight: 800;
    letter-spacing: 0.6px;
    color: var(--accent);
    text-decoration: none;
    font-size: 1.1rem;
    line-height: 1;
}

.header .logo:hover {
    opacity: 0.9;
}

.header .logo {
    margin-right: auto;
    display: flex;
    align-items: center;

    font-family: "Geist", system-ui, sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;

    color: var(--accent);
    text-decoration: none;
    line-height: 1;

    /* Dezenter Glow */
    text-shadow:
        0 0 6px rgba(252, 228, 153, 0.35),
        0 0 14px rgba(252, 228, 153, 0.18);

    transition:
        opacity 0.25s ease,
        text-shadow 0.25s ease;
}

.header .logo:hover {
    opacity: 0.95;
    text-shadow:
        0 0 10px rgba(252, 228, 153, 0.6),
        0 0 22px rgba(252, 228, 153, 0.35);
}

.header .logo:hover {
    opacity: 0.95;
    text-shadow:
        0 0 10px rgba(252, 228, 153, 0.6),
        0 0 22px rgba(252, 228, 153, 0.35);
}

/* Optional: der Link selbst sauber zentriert */
.header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    /* Buttons und Akzente */
}
.btn-primary,
.nav-link,
.footer a {
    font-family: "Geist", system-ui, sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.container {
    max-width: 1100px;
    padding: 0 1.25rem;
    margin: 0 auto;
}

section {
    padding: 3rem 0;
    /* min-height: 100vh; */
}

.section-dark {
    background: var(--bg-secondary);
}

.header .logo {
    margin-right: auto; /* Menü nach rechts schieben */
    display: flex;
    align-items: center;
    font-weight: 800;
    letter-spacing: 0.6px;
    color: var(--accent);
    text-decoration: none;
    font-size: 1.1rem;
    line-height: 1;
}

.header .logo:hover {
    opacity: 0.9;
}

/* ==================================================
   OPTIONAL EFFECTS
================================================== */

canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
}

.hero,
main,
header,
section,
.container {
    position: relative;
    z-index: 1;
}

/* ==================================================
   HEADER
================================================== */
.header {
    position: sticky;
    top: 0;
    background: rgba(17, 17, 17, 0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    z-index: 10;
    transition: all 0.3s ease;
    padding: 1.25rem 0;
}
.header.scrolled {
    /*background: var(--nav-bg-scrolled);*/
    padding: 0.75rem 0rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo svg {
    width: 140px;
}

.logo text {
    fill: var(--accent);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.8px;
}

/* ==================================================
   HERO
================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;

    background: linear-gradient(-45deg, #111111, #181818, #1f1f1f, #111111);
    background-size: 400% 400%;
    animation: gradientFlow 20s ease infinite;
}

.hero h1 {
    font-size: 2rem;
    line-height: 1.2;
    color: var(--accent);
}

.hero-leistungen {
    margin: 2rem 0 2rem;
    color: var(--text-muted);
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ==================================================
   HERO BACKGROUND SYSTEMS
================================================== */
.hero-circles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

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

/* ---------- Orbit System ---------- */
.orbit-system {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;

    transform-style: preserve-3d;
    animation: spin3D 14s linear infinite;
}

@keyframes spin3D {
    from {
        transform: translate(-50%, -50%) rotateX(22deg) rotateY(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotateX(22deg) rotateY(360deg);
    }
}

.ring {
    position: absolute;
    top: 50%;
    left: 50%;

    border-radius: 50%;
    border: 1px solid rgba(252, 228, 153, 0.45);
    opacity: 0.65;
    filter: blur(0.4px);

    transform: translate(-50%, -50%);
    box-shadow:
        inset 0 0 12px rgba(252, 228, 153, 0.15),
        0 0 20px rgba(252, 228, 153, 0.2);
}

.ring::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.ring:nth-child(1) {
    width: 150px;
    height: 150px;
}
.ring:nth-child(2) {
    width: 220px;
    height: 220px;
    transform: translate(-50%, -50%) translateZ(-60px);
}
.ring:nth-child(3) {
    width: 300px;
    height: 300px;
    transform: translate(-50%, -50%) translateZ(-120px);
}

/* ---------- Glass Layer ---------- */
.glass-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(6px) saturate(120%);
    -webkit-backdrop-filter: blur(6px) saturate(120%);
    pointer-events: none;
}

/* ---------- Hero Grain ---------- */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;

    background-image: repeating-radial-gradient(
        circle at 0 0,
        rgba(255, 255, 255, 0.035),
        rgba(255, 255, 255, 0.035) 1px,
        transparent 1px,
        transparent 3px
    );

    mix-blend-mode: overlay;
    opacity: 0.25;
    animation: grainMove 6s steps(10) infinite;
}

@keyframes grainMove {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(-2%, 1%);
    }
    50% {
        transform: translate(1%, -2%);
    }
    75% {
        transform: translate(-1%, -1%);
    }
    100% {
        transform: translate(0, 0);
    }
}

/* ==================================================
   SERVICES
================================================== */
.services {
    display: grid;
    gap: 1.2rem;
    margin-top: 2rem;
}

.service {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.6rem;
    transition: 0.25s ease;
}

.service:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 8px 30px rgba(252, 228, 153, 0.08);
}

.service h3 {
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.service p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.icon svg {
    width: 34px;
    height: 34px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 2;
    margin-bottom: 0.75rem;
}

.target-audience {
    background: rgba(252, 228, 153, 0.05); /* leichter gelber Hintergrund */
    border-left: 4px solid var(--accent); /* farbliche Hervorhebung */
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.target-audience h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.target-audience p,
.target-audience ul {
    margin: 0.5rem 0;
    line-height: 1.6;
    color: var(--text-muted);
}

.target-audience ul {
    padding-left: 1.5rem;
    list-style-type: disc;
}
a {
    color: var(--accent);
    text-decoration: none;
}

/* ==================================================
   WARUM ICH & REFERENZEN
================================================== */

.why-me,
.references {
    margin-bottom: 4rem;
}

.why-me h2,
.references h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2.2rem;
}

.why-grid,
.ref-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
    margin-top: 2rem;
}

.ref-item img {
    width: 100%; /* Bild füllt die Breite des Containers */
    height: 200px; /* Einheitliche Höhe für alle Bilder */
    object-fit: cover; /* Bild wird zugeschnitten, um Container zu füllen */
    display: block;
    margin-top: 1rem;
    border-radius: 8px; /* optional: runde Ecken für eleganten Look */
}

.why-item,
.ref-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.8rem;
    transition: all 0.3s ease;
}

.why-item:hover,
.ref-item:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(252, 228, 153, 0.08);
}

.why-icon {
    margin-bottom: 1rem;
}

.why-icon svg {
    width: 48px;
    height: 48px;
    fill: var(--accent);
}
.why-item p {
    color: var(--text-muted);
}
.why-item h3,
.ref-item h3 {
    margin-bottom: 0.8rem;
    font-size: 1.25rem;
    color: var(--accent);
}
.ref-item p {
    color: var(--text-muted);
}

.ref-item ul {
    margin-top: 0.8rem;
    padding-left: 1.2rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.ref-item li {
    margin-bottom: 0.4rem;
}

.ref-note {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.95rem;
}

/* Mobile Optimierung */
@media (max-width: 600px) {
    .why-grid,
    .ref-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================================================
   BUTTONS
================================================== */

.btn-primary {
    display: inline-block;
    padding: 0.95rem 2rem;
    background: transparent;
    color: var(--accent);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    border: 2px solid var(--accent);
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition:
        color 0.4s ease,
        background 0.4s ease,
        box-shadow 0.4s ease;
    z-index: 1;
}

/* Shine-Effekt beim Hover */
.btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(252, 228, 153, 0.25),
        transparent
    );
    transition: left 0.6s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Haupt-Hover-Effekt: Filled mit Glow */
.btn-primary:hover {
    color: var(--bg-main);
    background: var(--accent);
    box-shadow:
        0 0 20px rgba(252, 228, 153, 0.5),
        0 0 40px rgba(252, 228, 153, 0.2);
}

/* Optional: Aktiver Zustand (beim Klicken) */
.btn-primary:active {
    transform: scale(0.96);
    box-shadow: 0 0 30px rgba(252, 228, 153, 0.6);
}

/* Kleinere Variante für sekundäre Buttons (falls gewünscht) */
.btn-primary.btn-small {
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
}

/* Responsive: Etwas kleiner auf Mobile */
@media (max-width: 600px) {
    .btn-primary {
        padding: 0.85rem 1.8rem;
        font-size: 0.95rem;
    }
}

/* ================= FEATURED SERVICE ================= */
.service-featured {
    border-color: rgba(252, 228, 153, 0.4);
}

.service-featured h3 {
    font-size: 1.15rem;
}

/* Tech Stack Liste */
.tech-list {
    margin-top: 1rem;
    padding-left: 1.2rem;
    list-style: none;
}

.tech-list li {
    position: relative;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.tech-list li::before {
    content: "•";
    position: absolute;
    left: -0.9rem;
    color: var(--accent);
}
/* ================= ABOUT / TIMELINE ================= */
.about-intro {
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--text-muted);
}

.timeline {
    display: grid;
    gap: 1.2rem;
    max-width: 700px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 1rem;
    padding-left: 1rem;
    border-left: 2px solid var(--border);
}

.timeline-year {
    font-weight: 600;
    color: var(--accent);
    font-size: 0.95rem;
}

.timeline-item p {
    margin: 0;
    color: var(--text-main);
    font-size: 0.95rem;
}

@media (max-width: 600px) {
    .timeline-item {
        grid-template-columns: 1fr;
        padding-left: 0.75rem;
    }

    .timeline-year {
        margin-bottom: 0.2rem;
    }
}
/* ================= ABOUT GRID ================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .portrait-wrapper {
        justify-self: center;
    }
}

/* ================= PORTRAIT ================= */
/* ================= PORTRAIT ================= */
.portrait {
    position: relative;
    width: 260px;
    height: auto; /* Höhe automatisch – kein Abschneiden mehr */
    aspect-ratio: none; /* Quadratzwang entfernen */
    border-radius: 20px;
    overflow: hidden; /* Nur für das Bild, nicht für den Filter */
    /*background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);*/
}

.portrait img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    object-fit: contain; /* Vollständig sichtbar, proportional */
    /*background: var(--bg-main); /* Fallback-Hintergrund bei transparentem PNG */
    /*filter: sepia();*/
}

/* Entferne den blur-Filter komplett – das war der Übeltäter! */
.portrait::after {
    content: none; /* Kein Glass-Effekt mehr, der alles verschwimmen lässt */
}

/* Falls du den Glass-Effekt behalten willst, nur auf dem Bild selbst: */
.portrait::before {
    content: "";
    position: absolute;
    inset: 0;
    /*background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);*/
    pointer-events: none;
    border-radius: 20px;
    z-index: 1;
    opacity: 0.6; /* Leichter, damit Text nicht betroffen ist */
}

/* ==================================================
   CONTACT FORM
================================================== */
#kontakt {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;

    background: linear-gradient(-45deg, #111111, #181818, #1f1f1f, #111111);
    background-size: 400% 400%;
    animation: gradientFlow 20s ease infinite;
}
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    margin-bottom: 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(252, 228, 153, 0.15);
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

/* Status Nachricht */
.form-status {
    margin-top: 1rem;
    font-size: 0.95rem;
    text-align: center;
    min-height: 1.5em;
}

.form-status.success {
    color: #a0e4a0;
}

.form-status.error {
    color: #e4a0a0;
}

/* ================= HONEYPOT (ANTI-SPAM) ================= */
.hp-wrap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ==================================================
   FLOATING CONTACT BUTTONS (seitlich fixiert)
================================================== */

.floating-contact {
    position: fixed;
    right: 20px;
    bottom: 100px; /* Abstand vom unteren Rand – über dem Footer */
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 998;
    pointer-events: none; /* Damit nicht alles blockiert */
}

.float-btn {
    width: 56px;
    height: 56px;
    background: var(--bg-card);
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(252, 228, 153, 0.2);
    transition: all 0.3s ease;
    pointer-events: all; /* Nur die Buttons klickbar */
    backdrop-filter: blur(8px);
}

.float-btn:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(252, 228, 153, 0.5);
    background: var(--accent);
}

.float-btn svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 2;
    transition: stroke 0.3s ease;
}

.float-btn:hover svg {
    stroke: var(--bg-main);
}

/* Pulsierender Glow für den Telefon-Button (zieht mehr Aufmerksamkeit) */
.phone {
    animation: pulseGlow 4s infinite;
}

@keyframes pulseGlow {
    0%,
    100% {
        box-shadow:
            0 4px 15px rgba(0, 0, 0, 0.3),
            0 0 20px rgba(252, 228, 153, 0.2);
    }
    50% {
        box-shadow:
            0 4px 15px rgba(0, 0, 0, 0.3),
            0 0 35px rgba(252, 228, 153, 0.5);
    }
}

/* Mobile Anpassung: Etwas höher, damit nicht vom Daumen verdeckt */
@media (max-width: 768px) {
    .floating-contact {
        right: 16px;
        bottom: 90px;
    }

    .float-btn {
        width: 52px;
        height: 52px;
    }

    .float-btn svg {
        width: 26px;
        height: 26px;
    }
}

/* WhatsApp spezifische Farbe (original WhatsApp-Grün) */
.whatsapp {
    border-color: #25d366;
    background: rgba(37, 211, 102, 0.15);
}

.whatsapp svg {
    stroke: #25d366;
    fill: #25d366; /* WhatsApp-Logo ist gefüllt */
}

.whatsapp:hover {
    background: #25d366;
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(37, 211, 102, 0.6);
}

.whatsapp:hover svg {
    stroke: white;
    fill: white;
}

/* Stärkerer Puls für WhatsApp (oft der am meisten genutzte Kanal) */
.whatsapp {
    animation: pulseGlowWA 3.5s infinite;
}

@keyframes pulseGlowWA {
    0%,
    100% {
        box-shadow:
            0 4px 15px rgba(0, 0, 0, 0.3),
            0 0 20px rgba(37, 211, 102, 0.3);
    }
    50% {
        box-shadow:
            0 4px 15px rgba(0, 0, 0, 0.3),
            0 0 40px rgba(37, 211, 102, 0.7);
    }
}

/* Verstecken beim Scrollen nach ganz unten (optional, falls Footer überlappt) */
@media (min-width: 769px) {
    .footer:hover ~ .floating-contact,
    .floating-contact:hover {
        bottom: 100px;
    }
}
/* ================= LEGAL PAGES ================= */
.legal {
    max-width: 900px;
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.legal h1 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.legal h2 {
    font-size: 1.15rem;
    margin-top: 1.6rem;
    margin-bottom: 0.6rem;
    color: var(--accent);
    text-align: left;
}

.legal p,
.legal li {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-muted);
}

.legal a {
    color: var(--accent);
    text-decoration: none;
}

.legal a:hover {
    text-decoration: underline;
}

/* ==================================================
   FOOTER
================================================== */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    background-color: var(--bg-secondary);
    padding: 1rem 0;
    text-align: center;
    z-index: 10;
}
.footer a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer a:hover {
    color: var(--accent);
}

/* ==================================================
   GLOBAL NOISE
================================================== */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;

    background-image: repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.015) 0px,
        rgba(255, 255, 255, 0.015) 1px,
        transparent 1px,
        transparent 2px
    );
    opacity: 0.35;
}

/* ==================================================
   RESPONSIVE
================================================== */
@media (max-width: 600px) {
    .orbit-system {
        width: 220px;
        height: 220px;
    }

    .ring:nth-child(1) {
        width: 110px;
        height: 110px;
    }
    .ring:nth-child(2) {
        width: 170px;
        height: 170px;
    }
    .ring:nth-child(3) {
        width: 220px;
        height: 220px;
    }

    .glass-layer {
        backdrop-filter: blur(4px);
    }

    .ring {
        filter: blur(0.2px);
    }

    .hero::after {
        opacity: 0.18;
    }
}

/* ==================================================
   PRINT
================================================== */
@media print {
    body {
        background: #fff;
        color: #000;
    }

    .header,
    .hero,
    .btn-primary,
    .contact-form,
    body::after {
        display: none !important;
    }

    .section,
    .section-dark {
        background: #fff;
        padding: 1.5rem 0;
    }

    h2,
    h3 {
        color: #000;
    }

    .service {
        border: 1px solid #ccc;
        box-shadow: none;
    }
}

/* ==================================================
   TECH LOGOS SCROLLBARE MARQUEE
================================================== */

.tech-scroll-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
    text-align: center;
}

.tech-scroll-section h2 {
    margin-bottom: 2.5rem;
    font-size: 2rem;
}

.tech-scroller {
    width: 100%;
    padding-top: 10px;
    overflow-x: clip;
    overflow-y: hidden;
    position: relative;
    height: 100px; /* Höhe der Logos */
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 30px rgba(252, 228, 153, 0.08);
}
@supports not (overflow: clip) {
    .tech-scroller {
        overflow-x: hidden;
    }
}

.tech-track {
    display: flex;
    position: absolute;
    white-space: nowrap;
    animation: scroll 40s linear infinite; /* 40s = Geschwindigkeit – langsamer = 50s, schneller = 30s */
}

.tech-logo {
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.inline-svg {
    color: var(--accent);
    height: 70px;
    width: auto;
    margin: 0 2rem;
    fill: #a0a0a0;
    stroke: #000;
    transition: all 0.4s ease;
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.4));
}

.tech-track:hover .inline-svg {
    animation-play-state: paused;
}

.inline-svg:hover {
    color: var(--accent);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.6));
    transform: scale(1.15);
}

/* Endlos-Scroll-Animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* Genau die Hälfte, weil doppelt */
    }
}

/* Hover-Pause (optional – macht es interaktiver) */
.tech-scroller:hover .tech-track {
    animation-play-state: paused;
}

/* Mobile: Kleiner & langsamer */
@media (max-width: 768px) {
    .tech-track img {
        height: 60px;
        margin: 0 1.2rem;
    }
    .tech-scroller {
        height: 90px;
    }
}

/* Fade-In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.9s ease-out,
        transform 0.9s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Optional: Gestaffelte Animationen bei Services */
.services .fade-in:nth-child(1) {
    transition-delay: 0.1s;
}
.services .fade-in:nth-child(2) {
    transition-delay: 0.2s;
}
.services .fade-in:nth-child(3) {
    transition-delay: 0.3s;
}
.services .fade-in:nth-child(4) {
    transition-delay: 0.4s;
}
.services .fade-in:nth-child(5) {
    transition-delay: 0.5s;
}

/* ===== FAQ Accordion ===== */
.faq {
    display: grid;
    gap: 0.9rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.faq-item:hover {
    border-color: rgba(252, 228, 153, 0.35);
    box-shadow: 0 10px 30px rgba(252, 228, 153, 0.06);
    transform: translateY(-2px);
}

.faq-item > summary {
    list-style: none;
    cursor: pointer;
    padding: 1.1rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;

    color: var(--accent);
    font-weight: 650;
    letter-spacing: -0.01em;
}

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

.faq-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    position: relative;
    opacity: 0.9;
}

.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    background: var(--accent);
    border-radius: 2px;
}

.faq-icon::before {
    width: 18px;
    height: 2px;
}

.faq-icon::after {
    width: 2px;
    height: 18px;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.faq-item[open] {
    border-color: rgba(252, 228, 153, 0.45);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.faq-item[open] .faq-icon::after {
    transform: rotate(90deg);
    opacity: 0; /* plus -> minus */
}

.faq-content {
    padding: 0 1.2rem 1.15rem;
    color: var(--text-muted);
}

.faq-content p {
    margin-top: 0.2rem;
    line-height: 1.75;
    font-size: 0.98rem;
}

/* Fokus sichtbar (Keyboard) */
.faq-item > summary:focus-visible {
    outline: 3px solid rgba(252, 228, 153, 0.25);
    outline-offset: 2px;
    border-radius: 12px;
}
/* Smooth Accordion Animation Helpers */
.faq-content {
    overflow: hidden; /* wichtig für height animation */
    will-change: height;
}

.faq-content-inner {
    padding: 0 1.2rem 1.15rem; /* padding nach innen verschoben */
    color: var(--text-muted);
}

.faq-content-inner p {
    margin-top: 0.2rem;
    line-height: 1.75;
    font-size: 0.98rem;
}

/* kleine micro-animation beim Öffnen */
.faq-item .faq-content-inner {
    opacity: 0;
    transform: translateY(-4px);
    transition:
        opacity 220ms ease,
        transform 220ms ease;
}

.faq-item[open] .faq-content-inner {
    opacity: 1;
    transform: translateY(0);
}

.hero-icon-wrapper {
    display: flex;
    justify-content: center;
    margin: 2rem 0 1.5rem;
    color: var(--accent);
}

.hero-illustration {
    width: clamp(140px, 22vw, 220px);
    height: auto;

    filter: drop-shadow(0 12px 30px rgba(252, 228, 153, 0.25));
    opacity: 0.9;
}

.hero-illustration {
    animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Stroke draw */
.stroke-draw path,
.stroke-draw line,
.stroke-draw rect,
.stroke-draw ellipse,
.stroke-draw polyline,
.stroke-draw polygon {
    stroke-dasharray: 700;
    stroke-dashoffset: 700;
    animation: draw 1.35s ease forwards;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

/* Pulsierende Nodes */
.node {
    transform-origin: center;
    animation: nodePulse 2.8s ease-in-out infinite;
}
.node-2 {
    animation-delay: 0.25s;
}
.node-3 {
    animation-delay: 0.5s;
}
.node-4 {
    animation-delay: 0.75s;
}
@keyframes nodePulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.95;
    }
    50% {
        transform: scale(1.08);
        opacity: 0.7;
    }
}

/* Glitch Center Block */
.center-block {
    transform-origin: center;
    animation: glitch 4.8s infinite;
}
@keyframes glitch {
    0%,
    92%,
    100% {
        transform: translate(0, 0);
        opacity: 1;
    }
    93% {
        transform: translate(1px, 0);
        opacity: 0.95;
    }
    94% {
        transform: translate(-1px, 1px);
        opacity: 0.9;
    }
    95% {
        transform: translate(0, -1px);
        opacity: 0.95;
    }
    96% {
        transform: translate(0, 0);
        opacity: 1;
    }
}

/* Dataflow dots softer */
.flow-dots {
    filter: drop-shadow(0 0 10px rgba(252, 228, 153, 0.25));
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .node,
    .center-block {
        animation: none !important;
    }
}

/* ==================================================
   FLIPCARD SYSTEM (Android/Chrome stable) + 3D Shading
   Note: This block is placed at the END to override any older flip/shading rules.
================================================== */

/* Optional: services grid (keeps your existing .services if already defined) */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

/* Wrapper */
.flipcard {
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    perspective: 1200px;
}

/* Inner 3D element */
.flipcard .flip-inner {
    position: relative;
    min-height: 280px;

    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;

    transition: transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Flip on hover (desktop) + click (JS adds .is-flipped) */
@media (hover: hover) and (pointer: fine) {
    .flipcard:hover .flip-inner {
        transform: rotateY(180deg);
    }
}
.flipcard.is-flipped .flip-inner {
    transform: rotateY(180deg);
}

/* Faces */
.flipcard .flip-face {
    position: absolute;
    inset: 0;

    border-radius: 12px;
    padding: 1.6rem;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.65rem;

    background: var(--bg-card);
    border: 1px solid var(--border);

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;

    /* Android stability */
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
}

/* Front */
.flipcard .flip-front {
    text-align: center;
}
.flipcard .flip-front p {
    margin: 0;
}

/* Back */
.flipcard .flip-back {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);

    text-align: left;
    display: flex;
    flex-direction: column;
}

/* Back button bottom + centered */
.flipcard .flip-back .btn-primary {
    margin-top: auto;
    align-self: center;
}

/* Glow on hover/flip */
@media (hover: hover) and (pointer: fine) {
    .flipcard:hover .flip-face {
        border-color: var(--accent);
        box-shadow: 0 10px 30px rgba(252, 228, 153, 0.1);
    }
}
.flipcard.is-flipped .flip-face {
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(252, 228, 153, 0.1);
}

/* Focus */
.flipcard:focus {
    outline: none;
}
.flipcard:focus-visible .flip-face {
    box-shadow:
        0 0 0 3px rgba(252, 228, 153, 0.28),
        0 10px 30px rgba(252, 228, 153, 0.1);
}

/* Touch devices: disable hover flip (click only) */
@media (hover: none) {
    .flipcard:hover .flip-inner {
        transform: none;
    }
}

/* -------- 3D SHADING via BACKGROUND (Chrome Android-safe) -------- */
/* Default: no shading */
.flipcard .flip-front,
.flipcard .flip-back {
    --shade: 0;
}

/* Front: right edge darker as it "recedes" */
.flipcard .flip-front {
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, calc(0.08 * var(--shade))) 40%,
            rgba(0, 0, 0, calc(0.22 * var(--shade))) 100%
        ),
        var(--bg-card);
}

/* Back: left edge darker as it "recedes" */
.flipcard .flip-back {
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, calc(0.22 * var(--shade))) 0%,
            rgba(0, 0, 0, calc(0.08 * var(--shade))) 60%,
            rgba(0, 0, 0, 0) 100%
        ),
        var(--bg-card);
}

/* Shade only while rotating (your flipcard.js toggles these) */
.flipcard.is-snap-enter .flip-front {
    --shade: 1;
}
.flipcard.is-snap-leave .flip-back {
    --shade: 1;
}

/* -------- SVG Icons inside flipcards (ensure lines are visible) -------- */
.flipcard .svc-icon {
    stroke: var(--accent);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.flipcard .svc-icon .node {
    fill: var(--accent);
    stroke: none;
}

/* Button vertical centering robustness (in case of narrow cards) */
.flipcard .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    white-space: nowrap;
    min-height: 40px;
}

/* Desktop Hover */
@media (hover: hover) and (pointer: fine) {
    .flipcard:hover .flip-inner {
        transform: rotateY(180deg);
    }
}

/* Click / Touch (immer gültig!) */
.flipcard.is-flipped .flip-inner {
    transform: rotateY(180deg);
}

/* =========================
   TECH STRIP (Icon-Leiste)
========================= */

.tech-strip {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.8rem;
    align-items: center;
    justify-content: flex-start;
    opacity: 0.9;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.25s ease;
}

.tech-item:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

.tech-icon {
    font-weight: 700;
    font-size: 0.95rem;
    background: rgba(0, 0, 0, 0.04);
    padding: 4px 8px;
    border-radius: 6px;
}

/* =========================
   SECTION GRADIENT DIVIDER
========================= */

/* =========================
<div class="section-divider"></div>
========================= */

.section-divider {
    position: relative;
    height: 28px;
    margin: 4rem 0;
}

/* Obere Lichtkante */
.section-divider::before {
    content: "";
    position: absolute;
    top: 13px;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

/* Untere Schattenkante */
.section-divider::after {
    content: "";
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.6);
}
