/* ======================================== */
/*         ZENTRALE STYLESHEET              */
/*      ReefManager Website - V2.2 (FINAL)  */
/* ======================================== */

/* NEU: Import der mobilen Styles */
@import url('mobile-styles.css');

/* --- 1. Design-System & Variablen --- */
:root {
    --primary-color: #e6e6e6;
    --text-color: #e0e5f0;
    --text-color-muted: #b0c4de;
    --card-background-color: rgba(15, 22, 36, 0.5);
    --card-border-color: rgba(255, 255, 255, 0.1);
    --card-shadow-color: rgba(0, 0, 0, 0.5);
    --mouse-x: 50%;
    --mouse-y: 50%;

    /* NEU: Hellere Akzentfarbe für Ränder */
    --border-accent-color: rgba(255, 255, 255, 0.6);
}

/* --- 2. Globale Grundstile & Animationen --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    color: var(--text-color);
    line-height: 1.7;
    background-color: #111827;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: space-between;
}

@keyframes slide-in-fade-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- 3. Layout (Hintergrund & Inhalt) --- */
.background-layer {
    position: fixed;
    width: 120vw;
    height: 120vh;
    left: -10vw;
    top: -10vh;
    background-image: url('Bilder/Hintergrund.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: -1;
    will-change: transform;
}

.content-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    perspective: 1500px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 4. Hauptnavigation (Sticky) --- */
.main-nav {
    position: relative;
    padding: 1rem 0;
    background: rgba(10, 15, 25, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border-color);
    top: 0;
    z-index: 1000;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-header {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.lang-switcher {
    order: 2;
}

.nav-logo {
    order: 1;
}

.nav-links {
    order: 3;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.nav-links a {
    color: var(--text-color-muted);
    font-weight: 400;
    transition: color 0.3s ease, transform 0.3s ease;
    font-size: 1rem;
}

.nav-links a:hover {
    color: #fff;
    transform: translateY(-2px);
}

/* --- 5. Typografie --- */
h1,
h2,
h3 {
    color: #ffffff;
    line-height: 1.3;
    font-weight: 700;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.3rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

.content-layer>*:nth-child(2) {
    margin-top: 2rem;
}

.hero {
    margin-bottom: 4rem;
}




/* ================================================= */
/* --- 6. UPGRADE: DYNAMISCHER KACHEL-STIL (BASIS) --- */
/* ================================================= */
.hero-text-box,
.feature-card,
.page-link-card,
.section-header,
.legal-content-wrapper,
.showcase-item,
.accordion-item,
#page-anleitungen .page-link-card,
#hardware-specials .accordion-item {
    position: relative;
    overflow: hidden;
    background: var(--card-background-color);
    /* NEU: Hellerer, konsistenter Rand */
    border: 1px solid var(--border-accent-color);
    border-radius: 20px;
    box-shadow:
        0 15px 35px var(--card-shadow-color),
        inset 0 1px 1px rgba(255, 255, 255, 0.1),
        inset 0 -1px 1px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1),
        box-shadow 0.5s cubic-bezier(0.165, 0.84, 0.44, 1),
        border-color 0.5s ease;
    transform-style: preserve-3d;

    animation: slide-in-fade-up 0.8s ease-out forwards;
    opacity: 0;
}


.hero-text-box::before,
.feature-card::before,
.page-link-card::before,
.showcase-item::before,
.accordion-item::before,
#page-anleitungen .page-link-card::before,
#hardware-specials .accordion-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle 400px at var(--mouse-x) var(--mouse-y), rgba(230, 230, 230, 0.15), transparent 80%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: -1;
}

.hero-text-box:hover,
.feature-card:hover,
.page-link-card:hover,
.showcase-item:hover,
.accordion-item:hover,
#page-anleitungen .page-link-card:hover,
#hardware-specials .accordion-item:hover {
    transform: perspective(1200px) translateY(-15px) rotateY(var(--rotate-y, 0deg)) rotateX(var(--rotate-x, 0deg)) scale3d(1.08, 1.08, 1.08);

    box-shadow:
        0 40px 70px rgba(0, 0, 0, 0.6),
        0 5px 15px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.1),
        inset 0 -1px 1px rgba(0, 0, 0, 0.2);
    /* NEU: Randfarbe auf Akzentfarbe setzen */
    border-color: var(--primary-color);
}


/* ================================================= */
/* --- 7a. UNIVERSELLE KACHEL-STILE (PADDING-FIX) --- */
/* ================================================= */

.feature-card {
    margin-bottom: 2rem;
    padding: 2.5rem;
}

.feature-card>.image-showcase-grid {
    padding: 1.5rem;
}

#page-app .feature-card,
#page-hardware .feature-card {
    display: flex;
    gap: 3rem;
    align-items: center;
}

/* --- Allgemeine Komponenten --- */
.section-header,
.hero-text-box {
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    text-align: center;
}

/* NEU: Zentriert den Text in allen Feature Cards */
.feature-content {
    flex: 1.5;
    text-align: center;
}

.feature-content h3 {
    text-align: center;
}

/* Korrektur: Listen und Tech-Points müssen linksbündig bleiben */
.feature-content ul,
.feature-content .tech-point,
.feature-content .story-point {
    text-align: left;
}

.feature-content ul,
.feature-content ol {
    display: inline-block;
    /* Zentriert die Liste als Block */
    padding-left: 0;
    list-style: none;
    /* Entfernt den Standardpunkt, da wir Checkmarks via ::before nutzen */
}

.feature-content li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
    text-align: left;
    /* Korrektur */
}

.feature-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Style für die Tech-Point/Alert Boxen (linksbündig) */
.tech-point {
    background: rgba(10, 20, 35, 0.5);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 650px;
    border-radius: 0 8px 8px 0;
    text-align: left;
}

.tech-point strong {
    color: #fff;
}

.tech-point p {
    margin: 0;
}

.tech-point .tech-point {
    /* Für den Fall verschachtelter Tech-Points */
    margin: 1rem 0;
}


.page-links-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.page-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    height: 180px;
}

.page-link-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.page-link-card span {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
}


#page-app .feature-card:nth-child(even),
#page-hardware .feature-card:nth-child(even) {
    flex-direction: row-reverse;
}

.image-gallery-container {
    flex: 1;
    max-width: 320px;
    margin: 0 auto;
    position: relative;
    margin-bottom: 60px;
}

.slides {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 19.5;
    border-radius: 20px;
    overflow: hidden;
    background: #050505;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slides img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.slides img.active-slide {
    opacity: 1;
}

/* --- Bild-Raster (für Vision/Story Seite) --- */
.image-showcase-grid {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.showcase-item {
    flex: 1 1 200px;
    max-width: 250px;
    padding: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.showcase-item img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    flex-grow: 1;
    min-height: 0;
}

.showcase-item span {
    font-weight: 700;
    color: var(--text-color);
}

/* --- Spezielle Text-Blöcke (für Story Seite) --- */
.story-point {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.story-point .icon {
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
    width: 40px;
    text-align: center;
    margin-top: 5px;
}

.story-point-text p {
    margin: 0;
}

.story-point-text strong {
    color: #ffffff;
    font-weight: 700;
}

/* ================================================= */
/* --- 8. RESPONSIVE VIDEO CONTAINER (FINAL) --- */
/* ================================================= */

.video-responsive-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 800px;
    margin: 2.5rem auto;
    padding-top: 56.25%;
    border-radius: 15px;
    background-color: #000;
}

.video-responsive-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border: none;
}


/* --- Impressum / Datenschutz --- */

.legal-content-wrapper {
    padding: 1.5rem;
}

/* ================================================= */
/* --- 7b. BILDER-GRID (FINALE VERSION, 4 NEBENEINANDER) --- */
/* ================================================= */


.showcase-item {
    flex-basis: calc(25% - 1rem);
    min-width: 150px;

    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    cursor: pointer;
    overflow: hidden;
}

/* Das Bild selbst */
.showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* NEU: Das Lupen-Icon */
.zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;

    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}


.showcase-item:hover .zoom-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}



/* ===================================================== */
/* --- FINALE VERSION: ICP-Anleitungs-Seite --- */
/* ===================================================== */

#page-icp .container {
    max-width: 900px;
}

#page-icp h2 {
    color: var(--primary-color);
}

#page-icp code {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 0.2em 0.4em;
    font-size: 85%;
    border-radius: 6px;
    color: #ffc107;
}

/* --- Tab-Navigation --- */
#page-icp .tab-switcher {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

/* Die Keyframe-Animation für die wellenförmige Leucht-Aura (wird für den aktiven Button verwendet) */
@keyframes wave-glow {
    0% {
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.4),
            0 0 5px rgba(230, 230, 230, 0.2),
            0 0 10px rgba(230, 230, 230, 0.2);
    }

    50% {
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.3),
            0 0 20px rgba(230, 230, 230, 0.6),
            0 0 35px rgba(230, 230, 230, 0.5);
    }

    100% {
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.4),
            0 0 5px rgba(230, 230, 230, 0.2),
            0 0 10px rgba(230, 230, 230, 0.2);
    }
}

/* NEU: Das Basis-Design für alle Tab-Buttons */
#page-icp .tab-button {
    /* GRÖSSE & TEXT */
    padding: 0.9rem 1.8rem;
    /* Deutlich größer */
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-color-muted);

    /* GLAS-EFFEKT */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.05), transparent),
        rgba(10, 15, 25, 0.4);
    /* Subtiler Glanz von oben */
    border: 1px solid var(--card-border-color);
    border-radius: 15px;
    /* Abgerundete Ecken */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    /* SCHATTEN & INTERAKTION */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.4s ease;
}

/* NEU: Der Hover-Effekt für ALLE Buttons */
#page-icp .tab-button:hover {
    transform: translateY(-4px);
    color: #fff;
    background-color: rgba(10, 15, 25, 0.6);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* NEU: Das Design für den AKTIVEN Button mit Leucht-Aura */
#page-icp .tab-button.active {
    color: #fff;
    background-color: rgba(230, 230, 230, 0.1);
    border-color: var(--primary-color);

    /* Die wellenförmige Leucht-Animation wird hier angewendet */
    animation: wave-glow 4s infinite ease-in-out;
}

/* Der Hover-Effekt für den aktiven Button pausiert die Animation und verstärkt das Leuchten */
#page-icp .tab-button.active:hover {
    animation-play-state: paused;
    box-shadow: 0 0 20px rgba(230, 230, 230, 0.6);
    /* Starkes, statisches Leuchten */
}


/* --- Tab-Inhalt (unverändert) --- */
#page-icp .tab-content {
    display: none;
}

#page-icp .tab-content.active {
    display: block;
}


/* --- 1. Die Akkordeon-Kachel in dunkler, transparenter Glas-Optik --- */
#page-icp .accordion-item {
    margin-bottom: 1rem;
    overflow: hidden;

    /* NEU: Der dunkle, transparente Glas-Effekt */
    background: rgba(0, 0, 0, 0.15);
    /* Dunkler Tint (Schwarz) mit hoher Transparenz */
    backdrop-filter: blur(10px);
    /* Etwas weniger Unschärfe für mehr "Durchsicht" */
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Eine subtile, helle Kante als Kontrast */
    border-radius: 15px;

    /* Der innere Schatten wird entfernt, da er bei dunklem Glas nicht passt */
    box-shadow: none;

    transform: none !important;
    animation: slide-in-fade-up 0.8s ease-out forwards;
    opacity: 0;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

/* Hover-Effekt für das dunkle Glas */
#page-icp .accordion-item:hover {
    background: rgba(0, 0, 0, 0.25);
    /* Wird beim Hovern minimal dunkler/weniger transparent */
    border-color: rgba(255, 255, 255, 0.2);
    /* Die Kante leuchtet etwas auf */
}

/* Der klickbare Header-Bereich */
#page-icp .accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 1.2rem 1.5rem;
    transition: background-color 0.3s ease;
}

#page-icp .accordion-item.open .accordion-header {
    background-color: rgba(230, 230, 230, 0.05);
}

/* Die Überschrift im Header */
#page-icp .accordion-header h4 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 700;
}

/* Das Plus/Kreuz-Icon */
#page-icp .accordion-header .icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

#page-icp .accordion-item.open .accordion-header .icon {
    transform: rotate(45deg);
}

/* Der ausklappbare Inhalts-Container (Animation) */
#page-icp .accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

#page-icp .accordion-content-inner {
    /* Abstand wird erst beim Öffnen hinzugefügt */
    padding: 0 1.5rem;
}

#page-icp .accordion-item.open .accordion-content-inner {
    /* Abstand nach oben (zum Header) und unten */
    padding-top: 0.5rem;
    padding-bottom: 1.5rem;
}


/* --- 2. Listen mit einheitlicher, weißer Schrift (platzsparend) --- */
#page-icp .accordion-content-inner ul {
    list-style: none;
    padding-left: 0;
}

/* Alle Listenpunkte (erste und zweite Ebene) */
#page-icp .accordion-content-inner li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.6rem;

    /* NEU: Einheitliche Schrift für alle */
    color: var(--text-color);
    font-style: normal;
    font-size: 1rem;
    line-height: 1.6;
    /* Verbessert die Lesbarkeit bei Textblöcken */
}

#page-icp .accordion-content-inner li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 2px;
    /* Bessere vertikale Ausrichtung */
    font-size: 1.2rem;
    color: var(--primary-color);
    /* Alle Punkte in Akzentfarbe */
}

/* Spezifischer Einzug für die Unterliste */
#page-icp .accordion-content-inner ul ul {
    margin-top: 0.8rem;
    padding-left: 1.2rem;
    /* Sorgt für die Einrückung der zweiten Ebene */
}

/* Wichtige Wörter bleiben fett und weiß */
#page-icp .accordion-content-inner li strong {
    color: #ffffff;
    font-weight: 700;
}






/* ================================================= */
/* --- 9. LANDING PAGE & VIDEO MODAL --- */
/* ================================================= */

/* --- Landing Page --- */
#landing-container {
    width: 100%;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 2000px;

    /* ALT (entfernen oder ändern): */
    /* flex-grow: 1; */
    /* overflow-y: auto; */
    /* -webkit-overflow-scrolling: touch; */

    /* NEU: */
    flex-grow: 1;
    /* Behalten, damit der Container den verfügbaren Platz füllt */
}

.slider-wrapper {
    width: 100%;
    max-width: 600px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    flex: 0 0 100%;
    background: var(--card-background-color);
    border: 1px solid var(--card-border-color);
    backdrop-filter: blur(8px);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 450px;
    padding: 2rem;
}

.slide-content {
    text-align: center;
}

.welcome-slide {
    position: relative;
    background-size: 150%;
    background-position: center;
    animation: kenburns 20s ease-out infinite;
}

@keyframes kenburns {
    0% {
        background-size: 150%;
    }

    50% {
        background-size: 110%;
    }

    100% {
        background-size: 150%;
    }
}

.welcome-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(10, 20, 35, 0.6);
}

.welcome-slide .slide-content {
    position: relative;
    z-index: 2;
}

.language-selection {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.lang-button {
    background: rgba(10, 15, 25, 0.5);
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: var(--text-color);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.lang-button:hover {
    transform: translateY(-3px);
    background: var(--primary-color);
    color: #111827;
}

.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 600px;
    margin-top: 2rem;
}

.nav-arrow {
    background: rgba(10, 15, 25, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-arrow:hover {
    background-color: var(--primary-color);
    color: #111827;
}

.dots-container {
    display: flex;
    gap: 0.8rem;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.4s ease;
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.3);
}

/* --- Video Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    background: var(--card-background-color);
    border: 1px solid var(--card-border-color);
    border-radius: 15px;
    padding: 1rem;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 35px;
    height: 35px;
    background: #fff;
    color: #111827;
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}



/* ================================================= */
/* --- 10. RESPONSIVE DESIGN (ZUSAMMENGEFÜHRT) --- */
/* ================================================= */

/* Standard (Desktop-Ansicht):
   - Das Grid ist sichtbar.
   - Die Mobile-Galerie ist versteckt.
*/
.image-showcase-grid.desktop-only {
    display: flex;
}

.image-gallery-container.mobile-only {
    display: none;
}




/* ================================================= */
/* --- 8. SPEZIFISCHE SEITEN-STILE (WIEDERHERGESTELLT) --- */
/* ================================================= */

/* --- Anleitungen-Seite --- */
#page-anleitungen .page-links-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

#page-anleitungen .page-link-card {
    display: flex;
    flex-direction: row;
    /* WICHTIG: Stellt das Nebeneinander-Layout wieder her */
    align-items: center;
    width: 100%;
    max-width: 850px;
    height: auto;
    /* WICHTIG: Hebt die feste Höhe auf */
    padding: 2.5rem;
    gap: 2.5rem;
    text-align: left;
    /* Stellt die linksbündige Ausrichtung des Textes wieder her */
}

#page-anleitungen .card-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-shrink: 0;
    width: 180px;
}

#page-anleitungen .card-left i {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

#page-anleitungen .card-left span {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

#page-anleitungen .card-right {
    flex-grow: 1;
    text-align: left;
}

#page-anleitungen .card-description {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.7;
    font-weight: 300;
    margin: 0;
}

/* ================================================= */
/* --- 11. SPRACHUMSCHALTER & FOOTER --- */
/* ================================================= */
.lang-switcher {
    position: relative;
    cursor: pointer;
    margin-left: 1.5rem;
}

.selected-lang {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--card-border-color);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.lang-switcher.open .selected-lang {
    background-color: rgba(255, 255, 255, 0.1);
}

.lang-switcher.open .lang-dropdown {
    display: block;
}

.selected-lang span {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-color);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: rgba(20, 30, 45, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border-color);
    border-radius: 8px;
    padding: 0.5rem;
    min-width: 120px;
    z-index: 1100;
}

.lang-dropdown a {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--text-color-muted);
    border-radius: 6px;
    font-size: 0.9rem;
}

.site-footer {
    padding: 3rem 0;
    margin-top: 6rem;
    background: rgba(0, 0, 0, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    flex-shrink: 0;
}

.site-footer p {
    margin-bottom: 0.8rem;
    color: var(--text-color-muted);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.site-footer a {
    color: var(--primary-color);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: #fff;
}


.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 5;
}

.gallery-arrow:hover {
    background: var(--primary-color);
    color: #111827;
    transform: translateY(-50%) scale(1.1);
}

.gallery-arrow.prev {
    left: 10px;
}

.gallery-arrow.next {
    right: 10px;
}

.gallery-arrow {
    display: none;
}

/* ================================================= */
/* ----------- 12. HINTERGRUND-ANIMATION ----------- */
/* ================================================= */

@keyframes subtle-parallax-pan {
    from {
        background-position: 0% 50%;
    }

    to {
        background-position: 100% 50%;
    }
}


/* ================================================= */
/* -- 16. FINALES ONBOARDING - FLEXIBLE HÖHE (V10) - */
/* ================================================= */

body:has(#landing-container) {
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

#landing-container {
    width: 100%;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 2000px;
}

@keyframes flip-up {
    from {
        opacity: 0;
        transform: translateY(60px) rotateX(-20deg);
    }

    to {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

/* Die zentrale 3D-Karte */
.welcome-card {
    position: relative;
    width: 100%;
    max-width: 600px;
    display: flex;
    /* WICHTIG: Ordnet Bild und Textbereich an */
    flex-direction: column;
    /* WICHTIG: Untereinander */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out, filter 0.4s ease;
    filter: drop-shadow(0 20px 20px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 15px rgba(255, 255, 255, 0.1));
    animation: flip-up 1s ease-out 0.2s forwards;
    opacity: 0;
    transform: translateY(60px) rotateX(-20deg);
}

.welcome-card:hover {
    filter: drop-shadow(0 30px 30px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 30px rgba(255, 255, 255, 0.25));
}

.welcome-card:hover .welcome-image,
.welcome-card:hover .welcome-content {
    transform: translateZ(40px);
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.welcome-card:hover::before {
    opacity: 1;
}

/* Layout der Karte */
.welcome-image {
    transition: transform 0.4s ease-out;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
    line-height: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.welcome-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.welcome-content {
    position: relative;
    /* WICHTIG: Bleibt der Bezugspunkt für den Text */

    /* DEIN WUNSCH: Der sichtbare, transparente Hintergrund */
    background: rgba(15, 22, 36, 0.2);
    border-radius: 0 0 24px 24px;

    /* DIE LÖSUNG: Wir geben dem Bereich eine feste Mindesthöhe. */
    /* Da der Inhalt absolut ist, hat der Container keine natürliche Höhe. */
    /* 340px ist ein guter Wert, der genug Platz für den Text bietet. */
    min-height: 360px;

    /* Aufräumen: Unnötige Flex-Eigenschaften entfernen */
    flex-grow: 0;
    /* Nicht mehr nötig */
    display: block;
    /* Ein einfacher Block ist alles, was wir brauchen */
}

/* Steuerung der Onboarding-Schritte */
.onboarding-step {
    /* Füllt den Parent (.welcome-content) komplett aus */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* WICHTIG: Das Padding sorgt für den Abstand des Textes zum Rand */
    padding: 2.5rem;

    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;

    /* Diese Flex-Regeln zentrieren den Inhalt INNERHALB des Steps */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.onboarding-step:not(.active) {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
}

.step-content-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0rem;
}

/* Schreibmaschine & Cursor */
#typewriter-container {
    min-height: 90px;
    margin: 0;
}

#typewriter-text {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(90deg, #ffd700, #ffac4d, #ffffff, #ffac4d, #ffd700);
    background-size: 200% 200%;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: sparkle 5s linear infinite;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8), 0 0 15px rgba(255, 215, 0, 0.7), 0 0 30px rgba(255, 165, 0, 0.6);
}

#typewriter-text::after {
    content: '_';
    font-weight: 300;
    color: #ffd700;
    text-shadow: 0 0 10px #ffd700;
    animation: blink 0.8s infinite;
    margin-left: 0.1em;
    display: inline-block;
    transform: translateY(-0.05em);
}

#typewriter-text.typing-done::after {
    animation: blink 1.2s infinite;
}

@keyframes sparkle {
    0% {
        background-position: 200% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Buttons & Icons */
.welcome-subtitle {
    font-size: 1.1rem;
    color: var(--text-color-muted);
    margin: 0;
}

.cookie-icon,
.final-icon {
    font-size: 4rem;
    color: var(--primary-color);
    text-shadow: 0 0 20px var(--primary-color);
    margin: 0;
}

.language-selection {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 0;
}

.lang-button,
.next-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.lang-button:hover,
.next-btn:hover {
    transform: translateY(-3px) scale(1.05);
    background: var(--primary-color);
    color: #111827;
    border-color: var(--primary-color);
}

.next-btn {
    opacity: 0;
    pointer-events: none;
}

.next-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

.final-button {
    background: var(--primary-color);
    color: #111827;
    border-color: var(--primary-color);
}

.final-button:hover {
    background: #fff;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 0 30px var(--primary-color);
}


#landing-container {
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

#landing-container.fading-out {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}


/* Startet den gesamten Inhalt unsichtbar */
.content-layer {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

/* Macht den Inhalt sichtbar, wenn die Klasse hinzugefügt wird */
.content-layer.visible {
    opacity: 1;
}


/* ================================================= */
/* --- 8. FINALE, KUGELSICHERE VIDEO-LÖSUNG (V12) --- */
/* ================================================= */

.video-container-wrapper {
    position: relative;
    max-width: 900px;
    margin: 2rem auto 0;
    border-radius: 15px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

/* Beide Child-Container übereinander legen */
.video-iframe-container,
.video-consent-placeholder {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    width: 100%;
    height: 100%;
}

/* --- YouTube-Container --- */
.video-iframe-container {
    display: none;
    /* standardmäßig unsichtbar */
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    background-color: #000;
}

.video-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- Platzhalter --- */
.video-consent-placeholder {
    display: flex;
    /* standardmäßig sichtbar */
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: rgba(10, 15, 25, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-color);
    z-index: 10;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* --- Umschalten, wenn Zustimmung erteilt --- */
.video-container-wrapper.consent-given .video-iframe-container {
    display: block;
}

.video-container-wrapper.consent-given .video-consent-placeholder {
    display: none;
}

/* --- Platzhalter-Inhalt --- */
.video-consent-placeholder i.fa-youtube {
    font-size: 4rem;
    color: #FF0000;
    margin-bottom: 1.5rem;
}

.video-consent-placeholder p {
    margin: 0;
    max-width: 450px;
    line-height: 1.6;
}

.consent-change-button {
    margin: 1.5rem 0;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: #111827;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.consent-change-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(230, 230, 230, 0.5);
}

.legal-note {
    font-size: 0.8rem;
    color: var(--text-color-muted);
    font-style: italic;
    margin-top: 1.5rem;
}

/* ================================================= */
/* --- 13c. FINALES GLAS-ORB-DESIGN MIT LEUCHT-AURA --- */
/* ================================================= */

/* Der Container bleibt unverändert */
.icon-links-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 1rem 0;
}

/* NEU: Die Keyframe-Animation für die wellenförmige Leucht-Aura */
@keyframes wave-glow {
    0% {
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.4),
            /* Basis-Schatten für Tiefe */
            0 0 5px rgba(230, 230, 230, 0.2),
            /* Innerer Ring der Aura */
            0 0 10px rgba(230, 230, 230, 0.2);
        /* Äußerer Ring der Aura */
    }

    50% {
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.3),
            /* Basis-Schatten wird weicher */
            0 0 20px rgba(230, 230, 230, 0.6),
            /* Innerer Ring leuchtet stark */
            0 0 35px rgba(230, 230, 230, 0.5);
        /* Äußerer Ring dehnt sich aus */
    }

    100% {
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.4),
            /* Zurück zum Basis-Schatten */
            0 0 5px rgba(230, 230, 230, 0.2),
            0 0 10px rgba(230, 230, 230, 0.2);
    }
}

/* Das neue, durchsichtigere Glas-Orb-Design */
.icon-links-grid .icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    position: relative;

    /* ANGEPASST: Stärker durchsichtiger Hintergrund */
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 60%),
        rgba(15, 22, 36, 0.25);
    /* Deutlich transparenter! */

    /* ANGEPASST: Hellerer Rand für einen schärferen Glas-Look */
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    backdrop-filter: blur(5px);
    /* Etwas weniger Blur für mehr Klarheit */
    -webkit-backdrop-filter: blur(5px);

    /* ANGEPASST: Der box-shadow wird jetzt durch die Animation gesteuert */
    transform-style: preserve-3d;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    /* box-shadow transition für den Hover-Effekt */

    /* NEU: Die wellenförmige Leucht-Animation wird angewendet */
    animation: wave-glow 4s infinite ease-in-out;
}

/* Der Hover-Effekt erzeugt ein starkes, statisches Leuchten */
.icon-link:hover {
    animation-play-state: paused;
    /* Die Welle stoppt bei Interaktion */
    transform: perspective(1000px) translateY(-5px) scale3d(1.15, 1.15, 1.15);

    /* NEU: Ein intensiver, statischer Leuchtschatten beim Hovern */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(255, 255, 255, 0.9),
        /* Sehr starkes weißes Leuchten */
        0 0 50px var(--primary-color);
    /* Weiche Aura in der Akzentfarbe */
}

/* Das Maus-Glanzlicht bleibt erhalten */
.icon-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle 150px at var(--mouse-x) var(--mouse-y), rgba(230, 230, 230, 0.3), transparent 80%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.icon-link:hover::before {
    opacity: 1;
}

/* Das Icon im Inneren */
.icon-link i {
    font-size: 2.0rem;
    color: var(--text-color);
    /* Etwas heller für bessere Sichtbarkeit */
    transition: color 0.3s ease, text-shadow 0.3s ease;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.icon-link:hover i {
    color: #fff;
    text-shadow: 0 0 15px #fff;
    /* Stärkeres Leuchten des Icons beim Hovern */
}


/* Animation-Verzögerungen für einen Wellen-Effekt */
.icon-links-grid .icon-link:nth-child(1) {
    animation-delay: 0s;
}

.icon-links-grid .icon-link:nth-child(2) {
    animation-delay: 0.5s;
}

.icon-links-grid .icon-link:nth-child(3) {
    animation-delay: 1s;
}

.icon-links-grid .icon-link:nth-child(4) {
    animation-delay: 1.5s;
}

.icon-links-grid .icon-link:nth-child(5) {
    animation-delay: 2s;
}



/* ================================================= */
/* --- 20. NEU: BILD-ZOOM-EFFEKT (LIGHTBOX) --- */
/* ================================================= */

.image-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.image-modal-overlay.active {
    opacity: 1;
}

/* Das vergrößerte Bild */
.modal-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.image-modal-overlay.active .modal-image {
    transform: scale(1);
}

/* Der Schließen-Button (X) */
.modal-close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.modal-close-btn:hover {
    transform: scale(1.2);
}


/* ================================================= */
/* --- 21. STIL FÜR BENUTZERDEFINIERTE SCROLLBAR --- */
/* ================================================= */

.content-layer::-webkit-scrollbar,
.nav-links::-webkit-scrollbar,
.image-showcase-grid::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.content-layer::-webkit-scrollbar-track,
.nav-links::-webkit-scrollbar-track,
.image-showcase-grid::-webkit-scrollbar-track {
    background: rgba(10, 15, 25, 0.3);
    border-radius: 10px;
}

.content-layer::-webkit-scrollbar-thumb,
.nav-links::-webkit-scrollbar-thumb,
.image-showcase-grid::-webkit-scrollbar-thumb {
    background-color: rgba(230, 230, 230, 0.4);
    border-radius: 10px;
    border: 2px solid rgba(10, 15, 25, 0.3);
}

.content-layer::-webkit-scrollbar-thumb:hover,
.nav-links::-webkit-scrollbar-thumb:hover,
.image-showcase-grid::-webkit-scrollbar-thumb:hover {
    background-color: rgba(230, 230, 230, 0.6);
}

/* Unterstützung für Firefox */
.content-layer,
.nav-links,
.image-showcase-grid {
    scrollbar-width: thin;
    scrollbar-color: rgba(230, 230, 230, 0.4) rgba(10, 15, 25, 0.3);
}

.content-layer {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main.container {
    flex-grow: 1;
}


.slides {
    position: relative;
    overflow: hidden;
    transition: height 0.4s ease-in-out;
}

.slides img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    visibility: hidden;
}

.slides img.active-slide {
    position: relative;
    opacity: 1;
    visibility: visible;
}

/* ======================================== */
/* --- STILE FÜR DIE NEUE PFEIL-NAVIGATION --- */
/* ======================================== */
.nav-arrow-button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border-color);
    color: var(--text-color-muted);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    /* Verhindert, dass die Buttons schrumpfen */
}

.nav-arrow-button:hover {
    background-color: var(--primary-color);
    color: #111827;
    transform: scale(1.1);
    border-color: var(--primary-color);
}

#current-tab-display h3 {
    transition: opacity 0.3s ease;
}

.youtube-link-section {
    text-align: center;
    margin-top: 2rem;
    /* Abstand zum Video */
    padding: 1.5rem;
    /* Innenabstand, um es wie eine "Sektion" aussehen zu lassen */
    background: var(--card-background-color);
    /* Nutzt den bestehenden Kartenhintergrund */
    border: 1px solid var(--card-border-color);
    /* Nutzt den bestehenden Kartenrand */
    border-radius: 20px;
    /* Abgerundete Ecken wie bei anderen Karten */
    box-shadow: 0 15px 35px var(--card-shadow-color);
    /* Schatten wie bei anderen Karten */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: slide-in-fade-up 0.8s ease-out forwards;
    /* Animation wie bei anderen Elementen */
    opacity: 0;
    /* Startet unsichtbar für die Animation */
}

.youtube-link-section p {
    margin-bottom: 1rem;
    color: var(--text-color-muted);
    /* Etwas gedämpfter Text */
    font-size: 1rem;
}

.youtube-link-section .button {
    display: inline-block;
    /* Für die korrekte Darstellung des Buttons */
    padding: 0.8rem 1.8rem;
    background-color: var(--primary-color);
    /* Akzentfarbe für den Button */
    color: #111827;
    /* Dunkler Text auf hellem Button */
    border: none;
    border-radius: 50px;
    /* Stark abgerundete Ecken */
    font-weight: 700;
    text-decoration: none;
    /* Keine Unterstreichung */
    transition: all 0.3s ease;
    font-size: 1.05rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    /* Leichter Schatten für Tiefe */
}

.youtube-link-section .button:hover {
    transform: translateY(-3px) scale(1.05);
    /* Leichter Hover-Effekt */
    background-color: #fff;
    /* Heller beim Hover */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    /* Stärkerer Schatten beim Hover */
}


/* ================================================= */
/* --- 22. STARKE ANIMATION FÜR FINALEN BUTTON --- */
/* ================================================= */

/* Schritt 1: Die Keyframe-Animation definieren */
/* Diese Animation lässt den Button schweben und sein Leuchten pulsieren. */
@keyframes pulse-glow {
    0% {
        transform: translateY(0) scale(1);
        box-shadow: 0 0 15px rgba(230, 230, 230, 0.3),
            0 0 25px rgba(230, 230, 230, 0.2),
            0 0 35px rgba(230, 230, 230, 0.1);
    }

    50% {
        /* Lässt den Button nach oben schweben und leicht größer werden */
        transform: translateY(-8px) scale(1.05);
        /* Das Leuchten wird intensiver und breiter */
        box-shadow: 0 0 30px rgba(230, 230, 230, 0.6),
            0 0 45px rgba(230, 230, 230, 0.4),
            0 0 60px rgba(230, 230, 230, 0.2);
    }

    100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 0 15px rgba(230, 230, 230, 0.3),
            0 0 25px rgba(230, 230, 230, 0.2),
            0 0 35px rgba(230, 230, 230, 0.1);
    }
}

/* Schritt 2: Den Button mit den neuen Stilen und der Animation versehen */
#final-redirect-btn {
    /* Basis-Styling für den 3D-Glas-Effekt */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    /* Weißer Text für besseren Kontrast */
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);

    /* WICHTIG: Die Animation anwenden */
    /* Name | Dauer | Timing-Funktion | Wiederholung */
    animation: pulse-glow 4s ease-in-out infinite;

    /* Übergang für den Hover-Effekt definieren */
    transition: all 0.3s ease;
}

/* Schritt 3: Einen noch stärkeren Hover-Effekt hinzufügen */
#final-redirect-btn:hover {
    /* Die Puls-Animation wird pausiert, um die direkte Interaktion hervorzuheben */
    animation-play-state: paused;

    /* Der Button kommt dem Nutzer entgegen (3D-Effekt) */
    transform: translateY(-10px) scale(1.15);

    /* Das Leuchten wird beim Hovern extrem stark */
    box-shadow: 0 0 40px var(--primary-color),
        0 0 60px var(--primary-color);

    background: var(--primary-color);
    color: #111827;
    /* Dunkler Text für Lesbarkeit auf hellem Grund */
    text-shadow: none;
}


/* ================================================= */
/* --- WISSENS-SEITE: BREITE KARTEN (WIE ANLEITUNGEN) --- */
/* ================================================= */

/* 1. Container auf Flexbox umstellen (statt Grid) */
#page-knowledge .page-links-section,
#page-wissen .page-links-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* 2. Die Karte selbst breit machen */
#page-knowledge .page-link-card,
#page-wissen .page-link-card {
    display: flex;
    flex-direction: row;
    /* Icon links, Text rechts */
    align-items: center;
    width: 100%;
    max-width: 850px;
    /* Maximale Breite wie bei Anleitungen */
    height: auto;
    /* WICHTIG: Höhe automatisch an Text anpassen */
    padding: 2.5rem;
    gap: 2.5rem;
    text-align: left;
}

/* 3. Linker Bereich (Icon) */
#page-knowledge .card-left,
#page-wissen .card-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-shrink: 0;
    width: 180px;
}

#page-knowledge .card-left i,
#page-wissen .card-left i {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

#page-knowledge .card-left span,
#page-wissen .card-left span {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

/* 4. Rechter Bereich (Text) */
#page-knowledge .card-right,
#page-wissen .card-right {
    flex-grow: 1;
    text-align: left;
}

#page-knowledge .card-description,
#page-wissen .card-description {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.7;
    font-weight: 300;
    margin: 0;
}


/* =================================
 * Kommentar-Sektion Styling (Schwarz-Weiß-Thema)
 * ================================= */
#comment-section {
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.article-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 10px;
}

.like-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.like-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.like-btn.liked {
    background-color: #fff;
    color: #000;
    border-color: #fff;
}

.like-counter {
    font-weight: bold;
    color: #fff;
}

#comment-form {
    margin-bottom: 2.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #fff;
}

#comment-form input,
#comment-form textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    padding: 0.75rem;
    color: #fff;
    font-family: var(--font-main);
    font-size: 1rem;
}

#comment-form button {
    background: #fff;
    color: #000;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

#comment-form button:hover {
    background: #ccc;
}

.comments-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

#comments-list .comment {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#comments-list .comment:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.comment-author {
    color: #fff;
}

.comment-body {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.comment-footer .comment-like-btn {
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.5);
}

.comment-footer .comment-like-btn .fa-heart {
    font-family: "Font Awesome 6 Free";
    font-weight: 400;
}

.comment-footer .comment-like-btn.liked .fa-heart {
    font-weight: 900;
}

.comment-footer .comment-like-btn.liked {
    background-color: #fff;
    border-color: #fff;
    color: #000;
}

/* --- NEU: CSS FÜR DEN BESUCHERZÄHLER --- */
.visitor-counter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-top: 1rem;
    /* Oder wo auch immer es passt */
}

#visitor-count-display {
    font-weight: bold;
    color: rgba(255, 255, 255, 0.7);
}



/* ================================================= */
/* --- 23. RESOURCE / DOWNLOAD KARTEN (MODULAR) --- */
/* ================================================= */

/* Grid Layout */
.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    align-items: start;
}

/* Karten Basis-Design (Erbt vom Design-System) */
.file-card {
    background: var(--card-background-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    height: 100%;
    /* Damit alle gleich hoch wirken */
}

.file-card:hover {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

/* Badges (Oben rechts) */
.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    color: #fff;
    border: 1px solid #ffc107;
    /* Standard: Gelb für Gesucht */
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.badge.download {
    border-color: var(--primary-color);
}

.badge.official {
    border-color: #3b82f6;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

/* Bild / Icon Bereich */
.file-image-wrapper {
    width: 100%;
    height: 180px;
    /* Feste Höhe für Einheitlichkeit */
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.file-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Oder 'contain', je nach Geschmack */
    transition: transform 0.5s ease;
}

.file-card:hover .file-image-wrapper img {
    transform: scale(1.05);
}

/* Fallback Icon */
.file-icon-fallback {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.15);
}

/* Inhalt */
.file-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.file-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: #fff;
}

.file-author {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-desc {
    font-size: 0.95rem;
    color: var(--text-color-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
}

/* Tech-Tip / Alert Box */
.tech-tip {
    background: rgba(220, 53, 69, 0.1);
    border-left: 3px solid #dc3545;
    padding: 0.8rem;
    font-size: 0.85rem;
    color: #ffadad;
    margin-bottom: 1rem;
    border-radius: 0 4px 4px 0;
}

/* Call to Action (für Gesucht-Karten) */
.call-to-action {
    font-size: 0.85rem;
    color: var(--primary-color);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    margin-top: auto;
}

/* Download Button (Erbt vom Design, aber spezifisch angepasst) */
.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem;
    background: var(--primary-color);
    color: #111827;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.95rem;
    margin-top: auto;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}


/* NEU: WhatsApp Button Style */
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(0, 0, 0, 0.6);
    /* Schwarz Transparent */
    border: 1px solid #25D366;
    /* Grüner Rahmen */
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    margin-top: 1rem;
    margin-right: 0.5rem;
    /* Abstand zum nächsten Button */
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.whatsapp-btn:hover {
    background: #25D366;
    /* Grün bei Hover */
    color: #fff;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.4);
    transform: scale(1.02);
}

/* Disclaimer Box für Service Seite */
.disclaimer-box {
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
    color: #e0e0e0;
    line-height: 1.6;
}


/* ================================================= */
/* --- 24. REEFMANAGER DIY CREATORS SEKTION (NEU) --- */
/* ================================================= */

/* 1. Feature-Row Layout (Innen-Elemente) */
.diy-feature-row {
    padding: 1.5rem;
    /* Ein dezenter, dunkler Untergrund innerhalb des Akkordeons */
    background: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    /* Standard: Untereinander */
}

/* 2. Text-Sektion (Zentrierung) */
.diy-feature-text {
    text-align: center;
    /* GOAL: Text zentrieren */
    margin-bottom: 1rem;
}

.diy-feature-text h3 {
    margin: 0;
    font-size: 1.4rem;
    color: #fff;
    /* Titel immer weiß */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Zentriert Icon und Titel zusammen */
    gap: 15px;
}

/* 3. Icon-Circle (Anpassung des HTML-Inline-Styles) */
.diy-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    flex-shrink: 0;
}

.diy-icon-circle i {
    color: #111827;
    /* Dunkle Farbe für das Icon */
    font-size: 1.2rem;
    margin-right: 0 !important;
    /* Entfernt den inline style */
}

/* 4. Action-Sektion (Button-Container) */
.diy-feature-actions {
    display: flex;
    justify-content: center;
    /* Zentriert die Buttons */
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* 5. Button Styles (Outlined Style) */
.diy-btn {
    /* Outlined-Style */
    background: transparent;
    border: 2px solid var(--primary-color);
    /* Die Outlinie */
    color: var(--primary-color);
    padding: 0.7rem 1.4rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.diy-btn:hover {
    background: var(--primary-color);
    /* Gefüllt beim Hover */
    color: #111827;
    /* Dunkler Text beim Hover */
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(230, 230, 230, 0.3);
}

.diy-btn-small {
    font-size: 0.95rem;
}

.diy-btn-large {
    font-size: 1.05rem;
}

/* ================================================= */
/* --- 25. NEU: HARDWARE/DEEP-DIVE SEKTION (Akkordeon) --- */
/* ================================================= */



#hardware-specials .accordion-content-inner {
    /* Macht den gesamten Inhalt der Sektion linksbündig */
    text-align: left;
}

#hardware-specials .accordion-content-inner ul {
    /* Stellt sicher, dass die Liste linksbündig ist */
    padding-left: 0;
}

/* Spezieller Style für die Liste der Architekturbeschreibung */
#hardware-specials .accordion-content-inner li {
    list-style: none;
    position: relative;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

#hardware-specials .accordion-content-inner li strong {
    color: #fff;
    display: block;
    margin-bottom: 0.5rem;
}

#hardware-specials .accordion-content-inner li span {
    font-size: 0.95rem;
    color: var(--text-color-muted);
}


/* Roter Kasten für Haftungsausschluss */
#hardware-specials .disclaimer-box-red {
    margin-top: 2.5rem;
    background: rgba(220, 53, 69, 0.1);
    border-left: 4px solid #dc3545;
    padding: 1.5rem;
    border-radius: 0 12px 12px 0;
    text-align: left;
}

#hardware-specials .disclaimer-box-red h4 {
    color: #dc3545;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

#hardware-specials .disclaimer-box-red p {
    margin-bottom: 1rem;
}

#hardware-specials .disclaimer-box-red strong {
    color: #fff;
}

#hardware-specials .disclaimer-box-red span {
    font-weight: normal;
    color: rgba(255, 255, 255, 0.8);
}


/* ======================================== */
/* --- 26. STARTSEITE HEADER/HERO FIXES --- */
/* ======================================== */

/* Korrigiert die manuelle Zentrierung der obersten Feature-Card (Vision/App Start) */
#vision-content .feature-card {
    text-align: center;
}

#vision-content .feature-card h1,
#vision-content .feature-card p {
    text-align: center;
}


/* Füge diese Regel in deine style.css ein, um die Breite der Kommentar-Sektion auf dem Desktop zu begrenzen */
.article-content {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 2rem 0;
}

/* Stellt sicher, dass Formular-Elemente die volle Breite innerhalb der begrenzten Sektion nutzen */
#comment-form input,
#comment-form textarea {
    width: 100%;
    box-sizing: border-box;
}



/* --- Hardware Liste (Design wie File-Cards) --- */
.hardware-list {
    background: var(--card-background-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* Identisch zu .file-card */
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hardware-list:hover {
    border-color: var(--primary-color);
    /* Leuchtet beim Hover wie die Karten */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.hardware-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 1.5rem;
}

.hardware-item:last-child {
    border-bottom: none;
}

/* Responsive Anpassung für Mobile */
@media (max-width: 768px) {
    .hardware-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .hw-link {
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
    }
}


/* =========================================
   MOBILE FIX - ULTIMATIVE VERSION
   ========================================= */
@media only screen and (max-width: 768px) {

    /* Wir sprechen html und body an, um die Spezifität zu erhöhen */
    html body .container,
    html body .container-wide {
        padding-left: 2px !important;
        padding-right: 2px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    /* Karten und Header - FIX: Breit, leicht rund, mehr Innenabstand */
    html body .feature-card,
    html body .section-header,
    html body .accordion-item {
        width: auto !important;
        /* Automatische Breite für Margin */
        margin-left: 2px !important;
        /* Minimaler Abstand zum Rand (fast vollbreit) */
        margin-right: 2px !important;
        /* Minimaler Abstand zum Rand */

        padding: 1rem 8px !important;
        /* WICHTIG: Mehr Platz für den Text innen bei schmalen Rändern */

        border-radius: 10px !important;
        /* Nur leicht abgerundet (nicht eckig, nicht kreisrund) */
        box-sizing: border-box !important;
    }

    /* Speziell für Hardware-Inhalte, die oft Padding haben */
    html body div[style*="padding"],
    html body .accordion-content-inner {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    /* Bilder und Galerien */
    html body .image-gallery-container,
    html body img {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Schriftgrößen bändigen */
    html body h1 {
        font-size: 1.7rem !important;
        word-wrap: break-word;
    }

    html body h2 {
        font-size: 1.4rem !important;
    }

    /* Neon Button Fix */
    html body .action-button.neon-frame {
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        /* Text darf umbrechen */
        height: auto !important;
    }

    /* NEU: Zentrales Reordering für Feature-Cards (Überschrift -> Bild -> Text) */
    html body .feature-card {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    html body .feature-content {
        display: contents !important;
        /* Ermöglicht das Neuanordnen der Kinder (h3, p, ul) direkt in der Card */
    }

    html body .feature-card h3,
    html body .feature-card h2,
    html body .feature-card h4 {
        order: 1 !important;
        margin-bottom: 1.5rem !important;
        text-align: center !important;
    }

    html body .feature-card p,
    html body .feature-card ul,
    html body .feature-card ol,
    html body .feature-card .tech-point {
        order: 2 !important;
        width: 100% !important;
        margin-bottom: 1.5rem !important;
    }

    html body .feature-card .image-gallery-container,
    html body .feature-card .slides,
    html body .feature-card .image-showcase-grid,
    html body .feature-card img {
        order: 3 !important;
        margin-bottom: 2rem !important;
        margin-top: 1rem !important;
    }

    html body .feature-card .diy-feature-actions,
    html body .feature-card .hw-actions,
    html body .feature-card .action-button {
        order: 4 !important;
        width: 100% !important;
    }
}



/* --- MOBILE ACCORDION FIX: Alles zentrieren (Icon + Text) --- */

/* 1. Den gesamten Header auf "Untereinander" stellen */
html body .accordion-header {
    display: flex !important;
    flex-direction: column !important;
    /* Untereinander stapeln */
    align-items: center !important;
    /* Alles mittig ausrichten */
    text-align: center !important;
    /* Text zentrieren */
    gap: 1rem !important;
    /* Abstand zwischen Textblock und Pfeil unten */
}

/* 2. Den Container um den Text (das div) resetten */
html body .accordion-header>div {
    padding-right: 0 !important;
    /* Platz rechts entfernen */
    width: 100% !important;
}

/* 3. WICHTIG: Die H2 Überschrift + Icon zentrieren */
html body .accordion-header h2 {
    display: flex !important;
    /* Flexbox aktivieren */
    justify-content: center !important;
    /* Horizontal mittig */
    align-items: center !important;
    /* Vertikal mittig */
    width: 100% !important;
    margin-bottom: 0.5rem !important;
}

/* 4. Das Icon im H2 (Chip/User) etwas Abstand geben */
html body .accordion-header h2 i {
    margin-right: 10px !important;
}

/* 5. Den Pfeil unten (Chevron) korrigieren */
html body .accordion-header>i.icon {
    margin: 0 !important;
    /* Kein Margin nötig, gap regelt das */
    align-self: center !important;
}



/* Basis Karten-Style */
.feature-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ================================================= */
/* --- 27. COMMUNITY INTERACTION HUB (NEU) --- */
/* ================================================= */

.community-interaction {
    margin-top: 3.5rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.02), transparent);
}

.community-interaction-inner {
    max-width: 800px;
    margin: 0 auto;
}

.interaction-header {
    margin-bottom: 2rem;
}

/* --- Einwilligung Checkbox Kommentarfunktion --- */
.comment-privacy-group {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 15px;
    margin-bottom: 25px;
    text-align: left;
    padding: 0 5px;
}

.comment-privacy-group input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    margin: 4px 0 0 0 !important;
    cursor: pointer;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.comment-privacy-label {
    font-size: 0.85rem;
    color: var(--text-color-muted);
    line-height: 1.5;
    cursor: pointer;
    user-select: none;
}

.comment-privacy-label a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
}

.comment-privacy-label a:hover {
    color: #fff;
}

.community-interaction h2 {
    font-size: 1.8rem;
    margin-bottom: 0.6rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.interaction-subtitle {
    color: var(--text-color-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* Like-Feld (Badge Style) */
.article-stats-badge {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
}

.article-stats-badge .like-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.article-stats-badge .like-btn:hover {
    transform: scale(1.05);
}

.article-stats-badge .like-btn i {
    font-size: 1.1rem;
    color: #ff4757;
}

.article-stats-separator {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.2);
}

.article-stats-badge .like-counter {
    font-weight: 800;
    color: var(--primary-color);
    font-size: 1rem;
}

.community-interaction hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin: 2rem 0;
}

/* Kommentar-Formular */
.comment-form-container {
    background: rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    margin-bottom: 2.5rem;
    text-align: left;
}

.comment-form-container h3 {
    text-align: center;
    margin-bottom: 1.8rem;
    font-size: 1.5rem;
}

.comment-form-grid {
    display: grid;
    gap: 1.2rem;
}

.comment-form-grid .form-group {
    margin-bottom: 0;
}

.comment-form-grid label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-color-muted);
}

.comment-form-grid input,
.comment-form-grid textarea {
    width: 100%;
    padding: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.comment-form-grid input:focus,
.comment-form-grid textarea:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.comment-submit-btn {
    background: var(--primary-color);
    color: #111;
    border: none;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 192, 255, 0.25);
}

.comment-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 192, 255, 0.4);
    filter: brightness(1.1);
}

/* Kommentar-Liste */
.comments-list-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.comments-list-header h4 {
    margin: 0;
    font-size: 1.2rem;
    white-space: nowrap;
}

.comments-list-header-line {
    height: 1px;
    flex: 1;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.1), transparent);
}

.comment-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.2rem;
    border-radius: 14px;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
}

.comment-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.comment-card-author {
    color: var(--primary-color);
    font-weight: 700;
}

.comment-card-date {
    color: var(--text-color-muted);
    font-size: 0.8rem;
}

.comment-card-body {
    line-height: 1.55;
    color: #e0e0e0;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

/* Besucher-Zähler */
.visitor-counter-section {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.visitor-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1.4rem;
    border-radius: 30px;
    color: var(--text-color-muted);
    font-size: 0.85rem;
}

.visitor-badge i {
    color: var(--primary-color);
}

.visitor-badge b {
    color: #fff;
}

/* ================================================= */
/* --- 28. CLEAN GLASS UI FIX (Rahmen & Schimmer) --- */
/* ================================================= */

/* 1. Klarer Rahmen IMMER sichtbar, kein Matsch-Schatten */
.hero-text-box,
.feature-card,
.page-link-card,
.section-header,
.legal-content-wrapper,
.showcase-item,
.accordion-item,
.hardware-list,
.file-card {
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;

    /* HIER: Ein deutlich sichtbarer, heller Rahmen im Normalzustand */
    border: 1px solid rgba(255, 255, 255, 0.35) !important;

    /* Harter, dezenter Schatten für Tiefe (nicht matschig) */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5) !important;

    /* Weicher Übergang für den Schimmer-Effekt */
    transition: all 0.4s ease !important;
}

/* 2. Hover-Effekt: Der edle Schimmer (Glow) dahinter */
.file-card:hover {
    /* Der Rahmen leuchtet in der Akzentfarbe auf */
    border-color: var(--primary-color) !important;

    /* HIER IST DER SCHIMMER: Ein helles Leuchten nach außen kombiniert mit etwas Tiefe */
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.25), 0 10px 30px rgba(0, 0, 0, 0.8) !important;

    /* Kachel hebt sich leicht an */
    transform: translateY(-5px) !important;
}

/* ================================================= */
/* --- 29. TRANSLATION HINT BANNER --- */
/* ================================================= */
.translation-hint-banner {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-150%);
    width: calc(100% - 40px);
    max-width: 700px;
    z-index: 10000;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--primary-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 255, 255, 0.3);
    border-radius: 16px;
    padding: 1.5rem 3rem 1.5rem 1.5rem;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-align: left;
    visibility: hidden;
}

.translation-hint-banner.active {
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.translation-hint-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.translation-hint-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

.translation-hint-text h4 {
    margin: 0 0 6px 0;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
}

.translation-hint-text p {
    margin: 0;
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.translation-hint-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    opacity: 0.4;
    transition: all 0.3s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.translation-hint-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 600px) {
    .translation-hint-content {
        flex-direction: column;
        text-align: center;
    }
    .translation-hint-banner {
        top: 10px;
        padding-top: 2rem;
    }
}

/* 3. Tabellen-Design für den Anschlussplan (Scharf & Clean) */
.tech-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* Auch hier ein klarer Rahmen */
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 1rem;
}

.tech-table th,
.tech-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px 15px;
    text-align: left;
    color: #e5e7eb;
}

.tech-table th {
    background: rgba(255, 255, 255, 0.1);
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.tech-table tr:last-child td {
    border-bottom: none;
}

.tech-table tr:hover td {
    background: rgba(255, 255, 255, 0.05);
}