/* ============================================================
   zec.css – Einheitliches Design-System
   Zechnall – Informatik-Werkzeuge für den Unterricht
   ============================================================ */

/* ── Reset ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

/* ── Dark Theme (Standard) ── */
:root {
    --clr-bg: #0f172a;
    --clr-surface: #1e293b;
    --clr-accent: #34d399;
    --clr-accent2: #38bdf8;
    --clr-text: #e2e8f0;
    --clr-muted: #94a3b8;
    --radius: 14px;
    --radius-lg: 16px;
    --panel-bg: var(--clr-surface);
    --text-color: var(--clr-text);
    --border-color: rgba(255, 255, 255, 0.1);
    --box-bg: rgba(255, 255, 255, 0.03);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --transition: all 0.3s ease;
    --transition-fast: all 0.25s ease;
}

/* ── Light Theme ── */
html[data-theme="light"] {
    --clr-bg: #f8fafc;
    --clr-surface: #ffffff;
    --clr-accent: #10b981;
    --clr-accent2: #0ea5e9;
    --clr-text: #0f172a;
    --clr-muted: #64748b;
    --panel-bg: var(--clr-surface);
    --text-color: var(--clr-text);
    --border-color: rgba(15, 23, 42, 0.12);
    --box-bg: rgba(15, 23, 42, 0.03);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow: 0 4px 16px rgba(15, 23, 42, 0.10);
    --shadow-lg: 0 8px 32px rgba(15, 23, 42, 0.12);
}


/* ============================================================
   GRUNDLAYOUT
   ============================================================ */

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--clr-bg);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background-color 0.25s, color 0.25s;
    overflow-x: hidden;
}


/* ============================================================
   BREADCRUMB
   ============================================================ */

.breadcrumb {
    width: 100%;
    max-width: 1600px;
    padding: 1rem 2rem;
    font-size: 0.85rem;
    color: var(--clr-muted);
}

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

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

.breadcrumb span {
    margin: 0 0.4rem;
}


/* ============================================================
   HEADER & THEME TOGGLE
   ============================================================ */

header {
    width: 100%;
    max-width: 1600px;
    padding: 1rem 2rem;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

/* Variante ohne Breadcrumb darüber: weniger oberes Padding */
.breadcrumb+header {
    padding-top: 0;
    padding-bottom: 1rem;
}

.theme-toggle {
    position: absolute;
    top: 1rem;
    right: 2rem;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    padding: 0;
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    font-size: 1.15rem;
    cursor: pointer;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: var(--transition);
}

/* Wenn Header direkt nach Breadcrumb kommt, Toggle oben bündig */
.breadcrumb+header .theme-toggle {
    top: 0;
}

.theme-toggle:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
    background: var(--box-bg);
}

.theme-toggle .sun {
    display: none;
}

.theme-toggle .moon {
    display: inline;
}

html[data-theme="light"] .theme-toggle .sun {
    display: inline;
}

html[data-theme="light"] .theme-toggle .moon {
    display: none;
}


/* ============================================================
   MAIN CONTAINER
   ============================================================ */

main {
    flex: 1;
    padding: 2rem;
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Variante für schmalere Detailseiten */
main.narrow {
    max-width: 900px;
}

/* Variante für breitere Startseite */
main.wide {
    max-width: 1000px;
    padding: 1rem 2rem 4rem;
}

/* Variante für Kategorieseiten */
main.category {
    max-width: 1200px;
    padding: 1rem 2rem 4rem;
}


/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
    text-align: center;
    margin-bottom: 2.5rem;
    width: 100%;
}

/* Größerer Abstand auf der Startseite */
main.wide .hero {
    margin-bottom: 4rem;
}

.hero .icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

/* Größeres Icon auf der Startseite */
main.wide .hero .icon {
    font-size: 4.5rem;
    margin-bottom: 1rem;
}

/* Schwebeanimation (optional per Klasse) */
.hero .icon.animated {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Stärkere Animation auf der Startseite */
main.wide .hero .icon.animated {
    animation: float-lg 3s ease-in-out infinite;
}

@keyframes float-lg {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

.hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    background: linear-gradient(90deg, var(--clr-accent), var(--clr-accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.2;
}

main.wide .hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
}

.hero p {
    color: var(--clr-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

main.wide .hero p {
    font-size: 1.15rem;
    max-width: 600px;
}

.hero .tag {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--clr-accent);
    background: rgba(52, 211, 153, 0.1);
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
}


/* ============================================================
   CTA BUTTON (Detailseiten)
   ============================================================ */

.cta-wrapper {
    text-align: center;
    margin-bottom: 2.5rem;
}

.cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2.5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent2));
    color: #0f172a;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: transform 0.25s, box-shadow 0.25s;
    box-shadow: 0 4px 15px rgba(52, 211, 153, 0.2);
}

.cta:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 30px rgba(52, 211, 153, 0.35);
}

.cta:active {
    transform: translateY(0) scale(0.98);
}

.file-hint {
    text-align: center;
    color: var(--clr-muted);
    font-size: 0.8rem;
    margin-top: 0.5rem;
    font-family: 'Courier New', monospace;
}


/* ============================================================
   CONTENT CARDS (Detailseiten – Beschreibung, Lernziele etc.)
   ============================================================ */

.content-card {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
    width: 100%;
}

.content-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--clr-accent);
}

.content-card h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--clr-accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.content-card p,
.content-card li {
    color: var(--clr-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.content-card ul {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.content-card li {
    margin-bottom: 0.3rem;
}


/* ============================================================
   FEATURE GRID (Detailseiten – Funktionen)
   ============================================================ */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.feature {
    background: var(--box-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    transition: var(--transition);
}

.feature:hover {
    border-color: var(--clr-accent);
    box-shadow: var(--shadow-sm);
}

.feature .f-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.feature h3 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    color: var(--clr-text);
}

.feature p {
    font-size: 0.82rem;
    color: var(--clr-muted);
}


/* ============================================================
   FILTER AREA (Kategorieseiten)
   ============================================================ */

.filter-wrapper {
    width: 100%;
    max-width: 1000px;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    background: var(--panel-bg);
    padding: 1.25rem 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    font-size: 0.75rem;
    color: var(--clr-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-left: 0.5rem;
}

.filter-select {
    background: var(--clr-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.7rem 2.5rem 0.7rem 1rem;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%2394a3b8" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.8rem top 50%;
}

.filter-select:hover,
.filter-select:focus {
    border-color: var(--clr-accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

/* Filter Meta (Counter & Reset) */
.filter-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0.5rem;
    font-size: 0.95rem;
    color: var(--clr-muted);
}

.filter-meta strong {
    color: var(--text-color);
    font-weight: 700;
}

.btn-reset-sm {
    background: transparent;
    border: none;
    color: var(--clr-muted);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
}

.btn-reset-sm.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-reset-sm:hover {
    color: var(--clr-accent);
    background: var(--box-bg);
}


/* ============================================================
   GRID LAYOUTS
   ============================================================ */

.grid {
    display: grid;
    gap: 1.5rem;
    width: 100%;
}

/* Standard-Kategorie-Grid (Informatik, IuM) */
.grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Etwas breitere Karten bei IuM */
.grid.grid-wide {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* Startseite: größere Karten */
.grid.grid-home {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}


/* ============================================================
   CARDS – Kategorie-Karten (Informatik, IuM)
   ============================================================ */

.card {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem 1.5rem 1.5rem;
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.card::after {
    content: '→';
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    font-size: 1.2rem;
    color: var(--clr-muted);
    transition: color 0.3s, transform 0.3s;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--card-clr, var(--clr-accent));
}

.card:hover::after {
    color: var(--card-clr, var(--clr-accent));
    transform: translateX(4px);
}

.card .card-icon {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-icon-bg, var(--box-bg));
    border-radius: 12px;
    transition: var(--transition);
}

.card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    transition: color 0.3s;
}

.card:hover h2 {
    color: var(--card-clr, var(--clr-accent));
}

.card p {
    color: var(--clr-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
}


/* ============================================================
   CARDS – Startseite (größer, zentriert)
   ============================================================ */

.card.card-home {
    padding: 3rem 2.5rem;
    align-items: center;
    text-align: center;
    border-radius: var(--radius-lg);
}

.card.card-home::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(52, 211, 153, 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

html[data-theme="light"] .card.card-home::before {
    background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.06), transparent 60%);
}

.card.card-home:hover {
    transform: translateY(-8px);
}

.card.card-home:hover::before {
    opacity: 1;
}

/* Kein Pfeil auf Startseite */
.card.card-home::after {
    display: none;
}

.card.card-home .card-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
}

.card.card-home h2 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}

/* Hover-Farbe Light-Mode auf Startseite */
html[data-theme="light"] .card.card-home:hover h2 {
    color: #059669;
}

.card.card-home p {
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

/* Badge Container (Startseite) */
.card .badge-container {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.card .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clr-accent);
    background: rgba(52, 211, 153, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    transition: background 0.3s, color 0.3s;
}

html[data-theme="light"] .card .badge {
    background: rgba(16, 185, 129, 0.1);
}

.card:hover .badge {
    background: var(--clr-accent);
    color: var(--clr-bg);
}

html[data-theme="light"] .card:hover .badge {
    background: var(--clr-accent);
    color: #0f172a;
}


/* ============================================================
   CARD FARBVARIANTEN (c1–c6)
   ============================================================ */

/* Dark Mode */
.card.c1 {
    --card-clr: #a78bfa;
    --card-icon-bg: rgba(167, 139, 250, 0.1);
}

.card.c2 {
    --card-clr: #f472b6;
    --card-icon-bg: rgba(244, 114, 182, 0.1);
}

.card.c3 {
    --card-clr: #38bdf8;
    --card-icon-bg: rgba(56, 189, 248, 0.1);
}

.card.c4 {
    --card-clr: #34d399;
    --card-icon-bg: rgba(52, 211, 153, 0.1);
}

.card.c5 {
    --card-clr: #fbbf24;
    --card-icon-bg: rgba(251, 191, 36, 0.1);
}

.card.c6 {
    --card-clr: #818cf8;
    --card-icon-bg: rgba(129, 140, 248, 0.1);
}

/* Light Mode */
html[data-theme="light"] .card.c1 {
    --card-clr: #6d28d9;
    --card-icon-bg: rgba(109, 40, 217, 0.1);
}

html[data-theme="light"] .card.c2 {
    --card-clr: #db2777;
    --card-icon-bg: rgba(219, 39, 119, 0.1);
}

html[data-theme="light"] .card.c3 {
    --card-clr: #0284c7;
    --card-icon-bg: rgba(2, 132, 199, 0.1);
}

html[data-theme="light"] .card.c4 {
    --card-clr: #059669;
    --card-icon-bg: rgba(5, 150, 105, 0.1);
}

html[data-theme="light"] .card.c5 {
    --card-clr: #d97706;
    --card-icon-bg: rgba(217, 119, 6, 0.1);
}

html[data-theme="light"] .card.c6 {
    --card-clr: #4338ca;
    --card-icon-bg: rgba(67, 56, 202, 0.1);
}


/* ============================================================
   TAGS (Kategorie-Karten & Hero)
   ============================================================ */

.card .tags,
.hero .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1.25rem;
}

.card .tag,
.card .tag-art,
.card .tag-klasse,
.hero .tag,
.hero .tag-art,
.hero .tag-klasse {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    line-height: 1.4;
    width: fit-content;
    display: inline-block;
}

/* Dark Mode Tag-Farben */
.card .tag,
.hero .tag {
    background: rgba(167, 139, 250, 0.15);
    color: #a78bfa;
}

.card .tag-art,
.hero .tag-art {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
}

.card .tag-klasse,
.hero .tag-klasse {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
}

/* Light Mode Tag-Farben */
html[data-theme="light"] .card .tag,
html[data-theme="light"] .hero .tag {
    background: rgba(109, 40, 217, 0.1);
    color: #6d28d9;
}

html[data-theme="light"] .card .tag-art,
html[data-theme="light"] .hero .tag-art {
    background: rgba(2, 132, 199, 0.1);
    color: #0284c7;
}

html[data-theme="light"] .card .tag-klasse,
html[data-theme="light"] .hero .tag-klasse {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
}


/* ============================================================
   KEINE ERGEBNISSE STATE
   ============================================================ */

#no-results {
    display: none;
    width: 100%;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--clr-muted);
}

#no-results .nr-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

#no-results h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.btn-reset {
    margin-top: 1.5rem;
    background: transparent;
    border: 1px solid var(--clr-accent);
    color: var(--clr-accent);
    padding: 0.6rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-reset:hover {
    background: var(--clr-accent);
    color: var(--clr-bg);
}


/* ============================================================
   FOOTER
   ============================================================ */

footer {
    width: 100%;
    text-align: center;
    padding: 1.5rem;
    color: var(--clr-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    header {
        padding: 1rem;
    }

    .breadcrumb+header {
        padding: 0 1rem 1rem;
    }

    .theme-toggle {
        right: 1rem;
    }

    main,
    main.narrow,
    main.wide,
    main.category {
        padding: 1rem 1.5rem 3rem;
    }

    main.wide .hero {
        margin-bottom: 3rem;
    }

    .content-card {
        padding: 1.25rem;
    }

    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }

    .filter-bar {
        flex-direction: column;
        padding: 1.25rem 1.5rem;
    }

    .filter-meta {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .grid,
    .grid.grid-wide {
        grid-template-columns: 1fr;
    }

    .card.card-home {
        padding: 2rem 1.5rem;
    }
}

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


/* ============================================================
   ZUSÄTZLICHE SEMANTISCHE FARBEN
   ============================================================ */

:root {
    --success: #34d399;
    --danger: #f87171;
    --warning: #fbbf24;
}

html[data-theme="light"] {
    --success: #10b981;
    --danger: #dc2626;
    --warning: #d97706;
}


/* ============================================================
   MODAL (wiederverwendbar)
   ============================================================ */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.modal-content {
    background: var(--panel-bg);
    color: var(--text-color);
    width: 90%;
    max-width: 850px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    border: 1px solid var(--border-color);
}

.modal-content h2 {
    color: var(--clr-accent);
    margin-top: 0;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.modal-content h3 {
    color: var(--clr-accent2);
    margin-top: 25px;
}

.modal-content p,
.modal-content li {
    line-height: 1.6;
    color: var(--clr-muted);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--clr-muted);
    cursor: pointer;
    padding: 0;
    box-shadow: none;
}

.modal-close:hover {
    color: var(--danger);
    transform: none;
    background: transparent;
}


/* ============================================================
   FEEDBACK BOX (wiederverwendbar)
   ============================================================ */

.feedback-box {
    padding: 16px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    display: none;
    width: 100%;
    font-size: 0.95em;
    box-shadow: var(--shadow);
    animation: fadeIn 0.3s ease;
}

.feedback-success {
    background: rgba(52, 211, 153, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
}

.feedback-warning {
    background: rgba(251, 191, 36, 0.1);
    color: var(--warning);
    border: 1px solid var(--warning);
}

.feedback-error {
    background: rgba(248, 113, 113, 0.1);
    color: var(--danger);
    border: 1px solid var(--danger);
}


/* ============================================================
   INFO-BOX & PSEUDOCODE (wiederverwendbar)
   ============================================================ */

.info-content h3 {
    color: var(--clr-accent2);
    margin: 24px 0 10px 0;
    font-size: 1.1em;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 6px;
}

.info-content p,
.info-content li {
    color: var(--clr-muted);
    line-height: 1.6;
    font-size: 0.95em;
    margin-bottom: 10px;
}

.info-box {
    background: var(--box-bg);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: 8px;
    margin: 12px 0;
    font-size: 0.95em;
    color: var(--clr-muted);
    line-height: 1.5;
}

.info-box.tip {
    border-left: 4px solid var(--success);
    background: rgba(52, 211, 153, 0.05);
}

.info-box.warning {
    border-left: 4px solid var(--warning);
    background: rgba(251, 191, 36, 0.05);
}

.info-box code {
    color: var(--danger);
    font-family: monospace;
    font-weight: bold;
    background: rgba(248, 113, 113, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.pseudocode {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    line-height: 1.8;
    overflow-x: auto;
    white-space: pre;
    color: var(--clr-muted);
    margin: 10px 0;
}

html[data-theme="light"] .pseudocode {
    background: rgba(15, 23, 42, 0.04);
}

.pseudocode .kw {
    color: var(--clr-accent2);
    font-weight: bold;
}

.pseudocode .fn {
    color: var(--clr-accent);
}

.pseudocode .cm {
    color: #64748b;
    font-style: italic;
}

.pseudocode .hl {
    color: var(--warning);
}


/* ============================================================
   PANEL (wiederverwendbar)
   ============================================================ */

.panel {
    background: var(--panel-bg);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.panel-close {
    float: right;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: var(--clr-muted);
    padding: 0;
    margin-top: -5px;
    box-shadow: none;
}

.panel-close:hover {
    color: var(--danger);
    transform: none;
    background: transparent;
}


/* ============================================================
   BUTTON VARIANTEN (wiederverwendbar)
   ============================================================ */

.btn-info {
    color: var(--clr-accent2);
    border-color: rgba(56, 189, 248, 0.3);
}

.btn-cta {
    background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent2));
    color: #0f172a;
    border: none;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(52, 211, 153, 0.2);
}

.btn-cta:hover:not(:disabled) {
    box-shadow: 0 8px 25px rgba(52, 211, 153, 0.4);
    background: linear-gradient(135deg, #4ade80, #7dd3fc);
}

.btn-warn {
    color: var(--warning);
    border-color: rgba(251, 191, 36, 0.3);
}

.btn-danger {
    color: var(--danger);
    border-color: rgba(248, 113, 113, 0.3);
}


/* ============================================================
   ANIMATION KEYFRAMES
   ============================================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }
}