:root {
    --bg: #050816;
    --bg-alt: #0b1020;
    --card: #10182a;
    --accent: #4f46e5;
    --accent-soft: rgba(79,70,229,0.12);
    --text: #f9fafb;
    --text-muted: #9ca3af;
    --border-subtle: rgba(148,163,184,0.25);
    --shadow-soft: 0 18px 40px rgba(15,23,42,0.55);
    --radius-lg: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #111827 0, #020617 60%);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header / Navigation */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
    background: linear-gradient(to bottom,
    rgba(15,23,42,0.95),
    rgba(15,23,42,0.85),
    rgba(15,23,42,0.0)
    );
    border-bottom: 1px solid rgba(148,163,184,0.15);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0.25rem;
    gap: 1rem;
}

/* Logo */

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.logo-mark {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 0%, #a855f7, #4f46e5 40%, #0ea5e9 100%);
    box-shadow: 0 0 24px rgba(59,130,246,0.8);
    position: relative;
    overflow: hidden;
}

.logo-mark::after {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: inherit;
    border: 1px solid rgba(248,250,252,0.75);
    opacity: 0.6;
}

.logo span {
    opacity: 0.6;
    font-weight: 500;
}

/* Hauptnavigation */

.main-nav {
    display: flex;
}

.nav-list {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    align-items: center;
}

.nav-list > li {
    position: relative;
}

.nav-list > li > a {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0;
}

.nav-list > li > a:hover {
    background: rgba(15,23,42,0.9);
    color: var(--text);
    transform: translateY(-1px);
}

.has-dropdown > a::after {
    content: "▾";
    font-size: 0.6rem;
    margin-left: 0.3rem;
    opacity: 0.7;
}

.nav-list .dropdown {
    position: absolute;
    top: 100%;              /* direkt unter dem Button */
    left: 0;
    margin-top: 0;          /* WICHTIG: kein Gap zwischen Button und Panel */
    min-width: 220px;
    padding: 0.5rem 0.35rem;
    border-radius: 12px;
    background: rgba(15,23,42,0.98);
    box-shadow: 0 18px 45px rgba(15,23,42,0.95);

    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    pointer-events: none;
    z-index: 40;

    transition:
            opacity 0.14s ease,
            transform 0.14s ease,
            visibility 0.14s ease;
}

.nav-list .dropdown li {
    list-style: none;
}

.nav-list .dropdown li a {
    display: block;
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
}

.nav-list .dropdown li a:hover {
    background: rgba(30,64,175,0.4);
    color: var(--text);
}

/* Hover-/Focus-Logik: Dropdown anzeigen */
.nav-list li.has-dropdown:hover > .dropdown,
.nav-list li.has-dropdown:focus-within > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Unsichtbare „Brücke“ zwischen Button und Panel
   verhindert, dass das Menü beim Überfahren des Bereichs kurz verschwindet */
.nav-list .dropdown::before {
    content: "";
    position: absolute;
    top: -8px;      /* ragt 8px nach oben über das Panel hinaus */
    left: 0;
    right: 0;
    height: 8px;
    /* kein Hintergrund – nur eine unsichtbare Hoverfläche */
}

/* Header-Actions + Social */

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-nav {
    background: var(--accent);
    color: #e5e7eb;
    font-weight: 500;
    border-radius: 999px;
    padding: 0.5rem 1rem;
    box-shadow: 0 10px 25px rgba(79,70,229,0.55);
    font-size: 0.9rem;
    border: 1px solid transparent;
    transition: background 0.18s ease, transform 0.1s ease, box-shadow 0.18s ease;
}

.btn-nav:hover {
    background: #6366f1;
    transform: translateY(-1px);
}

.social-links {
    display: flex;
    gap: 0.55rem;
    font-size: 0.8rem;
}

.social-links a {
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    border: 1px solid transparent;
    color: var(--text-muted);
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.social-links a:hover {
    border-color: rgba(148,163,184,0.5);
    color: var(--text);
    background: rgba(15,23,42,0.9);
}

/* Hero / Banner */

.hero {
    padding: 4.2rem 0 3rem;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.eyebrow-badge {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34,197,94,0.85);
}

.hero-title {
    font-size: clamp(2.3rem, 4vw, 3.1rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.hero-title span {
    background: linear-gradient(90deg, #a855f7, #6366f1, #22d3ee);
    -webkit-background-clip: text;
    color: transparent;
}

.hero-text {
    color: var(--text-muted);
    max-width: 36rem;
    font-size: 0.98rem;
    margin-bottom: 1.7rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: center;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.2rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.16s ease, transform 0.08s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.btn-primary {
    background: var(--accent);
    color: #e5e7eb;
    box-shadow: 0 14px 35px rgba(79,70,229,0.65);
}

.btn-primary:hover {
    background: #6366f1;
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(15,23,42,0.8);
    border-color: rgba(148,163,184,0.3);
    color: var(--text-muted);
}

.btn-secondary:hover {
    border-color: rgba(148,163,184,0.7);
    color: var(--text);
    transform: translateY(-1px);
}

.hero-meta {
    margin-top: 1.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.hero-meta span::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(148,163,184,0.7);
}

/* Hero-Karte rechts */

.hero-card {
    background: radial-gradient(circle at top left, rgba(56,189,248,0.12), transparent 55%),
    radial-gradient(circle at bottom, rgba(99,102,241,0.15), transparent 60%),
    var(--bg-alt);
    border-radius: 24px;
    padding: 1.6rem 1.5rem;
    border: 1px solid rgba(148,163,184,0.25);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background-image: radial-gradient(circle at 0 0, rgba(148,163,184,0.08) 1px, transparent 0);
    background-size: 22px 22px;
    opacity: 0.6;
}

.hero-card-inner {
    position: relative;
    z-index: 1;
}

.hero-card-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.hero-card-title {
    font-size: 1.15rem;
    font-weight: 600;
}

.hero-card-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.9rem;
}

.hero-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.1rem;
}

.chip {
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.35);
    background: rgba(15,23,42,0.8);
    color: var(--text-muted);
}

.hero-stat-row {
    display: flex;
    justify-content: space-between;
    gap: 1.1rem;
    font-size: 0.78rem;
}

.hero-stat {
    flex: 1;
}

.hero-stat-label {
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.hero-stat-value {
    font-weight: 600;
    font-size: 0.95rem;
}

.hero-grid-preview {
    margin-top: 1rem;
    border-radius: 14px;
    border: 1px solid rgba(148,163,184,0.22);
    background: rgba(15,23,42,0.85);
    padding: 0.9rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
    font-size: 0.72rem;
}

.hero-grid-pill {
    padding: 0.5rem 0.55rem;
    border-radius: 10px;
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(148,163,184,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-muted);
}

/* Sections allgemein */

.section {
    padding: 3rem 0 2.5rem;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.8rem;
}

.section-header-main {
    max-width: 32rem;
}

.section-title {
    font-size: 1.4rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

.section-link {
    font-size: 0.85rem;
    color: #93c5fd;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
    white-space: nowrap;
}

.section-link:hover {
    border-color: rgba(147,197,253,0.8);
    color: #e5e7eb;
    background: rgba(15,23,42,0.9);
}

/* Neuigkeiten-Karten (Slider verwendet diese) */

.card {
    background: rgba(15,23,42,0.9);
    border-radius: var(--radius-lg);
    padding: 1.2rem 1.1rem;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 14px 30px rgba(15,23,42,0.65);
}

.card-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: #c4d3ff;
    margin-bottom: 0.7rem;
}

.card-tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #6366f1;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.card-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.7rem;
}

.card-text {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Neuigkeiten-Slider */

.section-news-slider {
    padding-top: 1.5rem;
}

.news-slider {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.news-slider-track {
    flex: 1;
    position: relative;
    min-height: 0;
}

.news-slide {
    display: none;
}

.news-slide.is-active {
    display: block;
}

.slider-btn {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: rgba(15,23,42,0.95);
    color: var(--text-muted);
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}

.slider-btn:hover {
    background: rgba(15,23,42,1);
    color: var(--text);
    border-color: rgba(148,163,184,0.7);
    transform: translateY(-1px);
}

/* Footer */

.site-footer {
    border-top: 1px solid rgba(148,163,184,0.25);
    margin-top: 2.5rem;
    padding: 1rem 0 1.6rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.footer-left > div + div {
    margin-top: 0.2rem;
}

.footer-links {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--text);
}

/* Responsiv */

@media (max-width: 960px) {
    .header-inner {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .main-nav {
        order: 3;
        width: 100%;
    }

    .nav-list {
        flex-wrap: wrap;
    }

    .header-actions {
        margin-left: auto;
    }
}

@media (max-width: 800px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-card {
        order: -1;
        margin-bottom: 1.5rem;
    }

    .news-slider {
        flex-direction: column;
        align-items: stretch;
    }

    .slider-btn {
        align-self: center;
    }
}

@media (max-width: 640px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .hero {
        padding-top: 3.5rem;
    }

    .hero-title {
        font-size: 2.1rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-link {
        margin-top: 0.7rem;
    }
}


/* Produktübersicht */

.product-overview {
    padding-top: 4rem;
}

.product-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.filter-btn {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.4);
    background: rgba(15,23,42,0.92);
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}

.filter-btn:hover {
    background: rgba(15,23,42,1);
    color: var(--text);
    border-color: rgba(148,163,184,0.8);
    transform: translateY(-1px);
}

.filter-btn.is-active {
    background: var(--accent);
    color: #e5e7eb;
    border-color: transparent;
    box-shadow: 0 10px 25px rgba(79,70,229,0.6);
}

/* Raster + Karten */

.product-grid {
    display: grid;
    /* Fixe Kartenbreite: 280–320px, immer mehrere Spalten wenn möglich */
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.6rem;
    justify-content: center; /* Zentriert das Grid, wenn wenig Karten da sind */
}


.product-card-inner {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.product-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #020617;
    border: 1px solid rgba(15,23,42,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-thumb-placeholder span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.product-body {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.product-header {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    align-items: baseline;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
}

.product-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.product-badge {
    font-size: 0.72rem;
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(52,211,153,0.6);
    color: #6ee7b7;
    white-space: nowrap;
}

.product-text {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.product-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.product-meta-pill {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.4);
    color: var(--text-muted);
}

.product-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.product-links a {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.4);
    color: #c7d2fe;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.product-links a:hover {
    border-color: #93c5fd;
    background: rgba(15,23,42,0.95);
    color: #e5e7eb;
}

/* Status / Fallback */

.product-status {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}


/* Toolbar Übersicht */

.product-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
    justify-content: space-between;
}

.product-search {
    flex: 1 1 220px;
}

.product-search input {
    width: 100%;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.5);
    background: rgba(15,23,42,0.92);
    color: var(--text);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.product-search input::placeholder {
    color: var(--text-muted);
}

.product-search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(79,70,229,0.6);
    background: rgba(15,23,42,1);
}

/* Detailseite */

.product-detail {
    padding-top: 4rem;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 2rem;
    align-items: flex-start;
}



.product-detail-back {
    display: inline-block;
    font-size: 0.85rem;
    color: #93c5fd;
    margin-bottom: 0.8rem;
}

.product-detail-back:hover {
    color: #e5e7eb;
}

.product-detail-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.2rem;
}

.product-detail-title-block h1 {
    font-size: 1.8rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
}

.product-detail-tagline {
    font-size: 0.98rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.product-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.product-detail-meta span {
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.4);
    background: rgba(15,23,42,0.9);
}

.product-detail-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(52,211,153,0.7);
    color: #6ee7b7;
    white-space: nowrap;
}

.product-detail-text {
    margin-bottom: 1.5rem;
}

.product-detail-text h2,
.product-detail-section h2,
.product-detail-section h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.product-detail-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.product-detail-section {
    margin-top: 1rem;
}

.product-detail-feature-list {
    padding-left: 1.2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.product-detail-feature-list li {
    margin-bottom: 0.3rem;
}

.product-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.product-detail-tags span {
    font-size: 0.8rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.4);
    color: var(--text-muted);
}

/* Sidebar */

.product-detail-sidebar {
    display: block;    /* oder flex, aber das ist hier egal */
}

@media (min-width: 980px) {
    .product-detail-links {
        position: fixed;
        top: 50%;
        right: max(1.5rem, calc((100vw - 1120px) / 2)); /* orientiert sich an deinem 1120px-Container */
        transform: translateY(-50%);
        width: 260px; /* gleiche Breite wie die Grid-Spalte */
    }
}

/* Mobile / Tablet: ganz normal im Flow, ohne fix */
@media (max-width: 979px) {
    .product-detail-links {
        position: static;
        transform: none;
        width: auto;
    }
}

.product-detail-thumb {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(15,23,42,0.9);
    background: #020617;
}

.product-detail-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.product-detail-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.product-detail-gallery {
    margin-top: 0.5rem;
}

.product-detail-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 0.4rem;
}

.product-detail-gallery-item {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(15,23,42,0.9);
    background: #020617;
}

.product-detail-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Detail-Error */

.product-detail-error h1 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.product-detail-error p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.product-detail-error a {
    color: #93c5fd;
}

.product-detail-error a:hover {
    color: #e5e7eb;
}

/* Responsive Detailseite */

@media (max-width: 880px) {
    .product-detail-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-detail-sidebar {
        justify-content: flex-start;
    }

    .product-detail-links {
        position: static;
    }
}

.product-detail-related {
    margin-top: 2rem;
}

.product-detail-related h2 {
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
}

.product-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.9rem;
}

.product-related-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-related-inner {
    display: flex;
    gap: 0.7rem;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(148,163,184,0.45);
    background: radial-gradient(circle at top left, rgba(79,70,229,0.18), rgba(15,23,42,0.95));
    box-shadow: 0 12px 30px rgba(15,23,42,0.7);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease, background 0.15s ease;
}

.product-related-card:hover .product-related-inner {
    border-color: #93c5fd;
    box-shadow: 0 16px 40px rgba(15,23,42,0.9);
    transform: translateY(-2px);
    background: radial-gradient(circle at top left, rgba(129,140,248,0.26), rgba(15,23,42,0.98));
}

.product-related-thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(15,23,42,0.9);
    background: #020617;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-related-thumb-placeholder-mark {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 1px solid rgba(148,163,184,0.6);
    box-shadow: 0 0 0 1px rgba(15,23,42,0.9);
    opacity: 0.85;
}


.product-related-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.product-related-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
}

.product-related-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-related-category {
    font-size: 0.7rem;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.5);
    color: var(--text-muted);
    white-space: nowrap;
}

.product-related-tagline {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-related-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.product-related-meta span {
    padding: 0.16rem 0.45rem;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.4);
}

/* News Page */

.news-page {
    padding-top: 4rem;
}

.news-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.8rem;
    align-items: center;
    justify-content: space-between;
}

.news-search {
    flex: 1 1 260px;
}

.news-search input {
    width: 100%;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.5);
    background: rgba(15,23,42,0.92);
    color: var(--text);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.news-search input::placeholder {
    color: var(--text-muted);
}

.news-search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(79,70,229,0.6);
    background: rgba(15,23,42,1);
}

.news-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.news-filter-btn {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.4);
    background: rgba(15,23,42,0.92);
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}

.news-filter-btn:hover {
    background: rgba(15,23,42,1);
    color: var(--text);
    border-color: rgba(148,163,184,0.8);
    transform: translateY(-1px);
}

.news-filter-btn.is-active {
    background: var(--accent);
    color: #e5e7eb;
    border-color: transparent;
    box-shadow: 0 10px 25px rgba(79,70,229,0.6);
}

/* News list/cards */

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-card-inner {
    display: flex;
    gap: 1rem;
}

.news-thumb {
    width: 180px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(15,23,42,0.9);
    background: #020617;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.news-header-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.news-type-pill {
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.7);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
}

.news-date {
    opacity: 0.8;
}

.news-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.news-title a {
    color: var(--text);
}

.news-title a:hover {
    color: #e5e7eb;
}

.news-summary {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.2rem;
}

.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.news-tags span {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.4);
    color: var(--text-muted);
}

.news-readmore a {
    font-size: 0.8rem;
    color: #93c5fd;
}

.news-readmore a:hover {
    color: #e5e7eb;
}

.news-status {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Kompakte Variante auf der Startseite */

.news-card-compact .news-card-inner {
    gap: 0.6rem;
}

.news-card-compact .news-content {
    padding-right: 0.2rem;
}

.home-news-list .card {
    max-width: 100%;
}

.home-news-footer {
    margin-top: 1rem;
}

/* Responsive */

@media (max-width: 800px) {
    .news-card-inner {
        flex-direction: column;
    }

    .news-thumb {
        width: 100%;
        max-height: 220px;
    }

    .news-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

.home-news {
    padding-top: 3rem;
}

.home-news-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.home-news-card {
    padding: 0; /* wir nutzen den inneren Wrapper */
}

.home-news-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.home-news-card-inner {
    padding: 0.85rem 1rem;
}

.home-news-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.home-news-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0.4rem 0 0.3rem;
}

.home-news-summary {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.home-news-more {
    font-size: 0.78rem;
    color: #93c5fd;
}

.home-news-card-link:hover .home-news-more {
    color: #e5e7eb;
}

.home-news-footer {
    margin-top: 1.2rem;
}

.home-news-thumb {
    width: 100%;
    height: 140px;              /* bei Bedarf anpassen */
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.6rem;
    border: 1px solid rgba(15,23,42,0.9);
    background: #020617;
}

.home-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* About */

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: flex-start;
}

.about-highlight-block {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-list li {
    margin-bottom: 0.5rem;
}

.about-list li span {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}

.about-list li small {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.about-pillars-grid,
.about-roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.about-cta-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.about-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Portfolio-Galerie */

.portfolio-gallery {
    padding-top: 3rem;
}

.portfolio-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.2rem;
}

/* Jedes Item ist eine Kachel ohne extra Innenabstand */
.portfolio-item {
    position: relative;
    padding: 0;
    overflow: hidden;
}

/* Bild definiert die Kachel – einheitliches Seitenverhältnis */
.portfolio-item-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;          /* kannst du auf 4/3 oder 1/1 ändern */
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(15,23,42,0.9);
    background: #020617;
}

.portfolio-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Caption als Overlay unten */
.portfolio-item-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.5rem 0.7rem 0.55rem;
    background: linear-gradient(
            to top,
            rgba(15,23,42,0.92),
            rgba(15,23,42,0.7),
            transparent
    );
    font-size: 0.8rem;
    color: var(--text);
    pointer-events: none; /* Bild bleibt „klickbar“, wenn du später Links einbaust */
}

.portfolio-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.2rem;
}

.portfolio-item-tags span {
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.5);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.portfolio-item-title {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Hover-Effekt: leichtes Zoomen, Caption etwas klarer */
.portfolio-item:hover .portfolio-item-thumb img {
    transform: scale(1.05);
    opacity: 0.95;
}

.portfolio-item:hover .portfolio-item-caption {
    background: linear-gradient(
            to top,
            rgba(15,23,42,0.98),
            rgba(15,23,42,0.8),
            transparent
    );
}

/* Mobile: etwas „luftiger“ */
@media (max-width: 700px) {
    .portfolio-gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .portfolio-item-caption {
        font-size: 0.78rem;
    }
}

.contact-section {
    padding-top: 3rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 1.8rem;
    align-items: flex-start;
}



.contact-card {
    padding: 1.4rem 1.5rem;
    max-width: 640px;      /* oder 600–720px, je nach Geschmack */
    margin: 0 auto;        /* zentriert im Container */
}

.contact-form {
    max-width: 580px;
    margin: 0 auto;
}

.contact-section .section-header {
    max-width: 580px;          /* gleiche Breite wie .contact-card */
    margin: 0 auto;     /* zentriert im Container */
    justify-content: flex-start; /* kein space-between nötig */
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-row label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.5rem 0.85rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(148,163,184,0.5);
    background: rgba(15,23,42,0.92);
    color: var(--text);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(79,70,229,0.6);
    background: rgba(15,23,42,1);
}

.form-row-inline {
    margin-bottom: 1.5rem;
    /* wichtig: NICHT align-items: center; */
    align-items: stretch; /* optional, sorgt dafür, dass das Label links „voll breit“ ist */
}

.form-actions {
    margin-top: 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.contact-aside-card {
    padding: 1.3rem 1.4rem;
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.7rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contact-info-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.contact-info-list a {
    font-size: 0.88rem;
}

.contact-aside-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Feedback-Banner im Kontaktformular */
.form-feedback {
    margin-bottom: 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 0.75rem;
    font-size: 0.85rem;
}

.form-feedback-success {
    background: rgba(22, 163, 74, 0.1);
    border: 1px solid rgba(22, 163, 74, 0.7);
    color: #bbf7d0;
}

.form-feedback-error {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.8);
    color: #fecaca;
}

/* Fehlermarkierung für Felder */
.form-row-error label {
    color: #fecaca; /* helles Rot für das Label */
}

.contact-form .input-error {
    border-color: #f97373;
    box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.35);
    background: rgba(15, 23, 42, 1);
}

.contact-form .input-error:focus {
    border-color: #fb7185;
    box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.6);
}

/* Banner */
.form-status {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 1rem;
    padding: 0.7rem 0.9rem;
    border-radius: 0.9rem;
    font-size: 0.85rem;
}

.form-status-success {
    background: rgba(22, 163, 74, 0.12);
    border: 1px solid rgba(22, 163, 74, 0.8);
    color: #bbf7d0;
}

.form-status-error {
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.9);
    color: #fecaca;
}

.form-status-icon {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 999px;
    margin-top: 0.2rem;
}

.form-status-success .form-status-icon {
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.9);
}

.form-status-error .form-status-icon {
    background: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.9);
}

/* Fehlermarkierung Felder */
.form-row-error label {
    color: #fecaca;
    text-shadow: 0 0 4px rgba(248, 113, 113, 0.85);
    font-weight: 500;
}

.contact-form .input-error {
    border-color: #f97373;
    box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.65);
    background: rgba(15, 23, 42, 1);
}

.contact-form .input-error::placeholder {
    color: #fecaca;
}

.contact-form .input-error:focus {
    border-color: #fb7185;
    box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.9);
}


/* reCAPTCHA Fehler-Zustand */
.form-row-error .g-recaptcha iframe {
    box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.9);
    border-radius: 0.5rem;
}

.form-row .g-recaptcha {
    display: inline-block;
    padding: 0.4rem 0.5rem;
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.9); /* dein Dark-Background */
}

.form-row-error .g-recaptcha {
    box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.9);
}

.imprint-hero {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.imprint-card {
    max-width: 960px;
    margin: 0 auto 1.5rem;
    padding: 1.5rem 1.7rem;
}

.imprint-card h2 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(148,163,184,0.25);
}

.imprint-card h3 {
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: 0.4rem;
}

.imprint-extra {
    margin-top: 0.75rem;
    border-top: 1px dashed rgba(148,163,184,0.4);
    padding-top: 0.75rem;
}

.imprint-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.imprint-card a {
    text-decoration: none;
    border-bottom: 1px dashed rgba(94, 234, 212, 0.6);
}

.imprint-card a:hover {
    border-bottom-style: solid;
}


@media (min-width: 768px) {
    .imprint-grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    }
}

.imprint-block p {
    margin: 0 0 0.75rem;
}

/* Checkbox Styles */
.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
    line-height: 1.4;
    font-size: 0.85rem;
}

.checkbox-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin: 0;

    border-radius: 0.35rem;
    border: 1px solid rgba(148,163,184,0.5);
    background: rgba(15,23,42,0.92);
    cursor: pointer;
    position: relative;
}

.checkbox-label input[type="checkbox"]::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border-right: 2px solid #f9fafb;
    border-bottom: 2px solid #f9fafb;
    transform: rotate(45deg);
    opacity: 0;
}

.checkbox-label:hover input[type="checkbox"] {
    opacity: 0.85;
}

.checkbox-label input[type="checkbox"]:checked {
    background: var(--accent);
    border-color: var(--accent);
}

.checkbox-label input[type="checkbox"]:checked::after {
    opacity: 1;
}

/* Fokus sichtbar machen */
.checkbox-label input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.checkbox-label input[type="checkbox"]:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.checkbox-text {
    display: inline-block;
}

/* Fehler-Zustand Checkbox */
.form-row-error .checkbox-label {
    color: #fecaca;
}

.form-row-error .checkbox-label input[type="checkbox"] {
    border-color: #f97373;
}

.news-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 2rem;
}

.news-detail-hero {
    margin: 1rem 0 1.2rem;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(15,23,42,0.9);
    background: #020617;
    max-height: 320px; /* hier begrenzen wir die Höhe */
}

.news-detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Responsive: Detailseite einkolumnig */
@media (max-width: 880px) {
    .news-detail-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

.product-detail-media {
    margin-bottom: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}



.product-detail-main-thumb {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(15,23,42,0.9);
    background: #020617;
    max-height: 420px;              /* Begrenzung der Höhe */
}

.product-detail-main-thumb img {
    width: 100%;
    height: auto;
    max-height: 420px;              /* große Originale werden runter skaliert */
    object-fit: contain;            /* ganze Grafik sichtbar */
    display: block;
}

/* Galerie-Grid (hattest du teilweise schon) */
.product-detail-gallery {
    margin-top: 0.3rem;
}

.product-detail-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    gap: 0.4rem;
}

.product-detail-gallery-item {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(15,23,42,0.9);
    background: #020617;
    padding: 0;
    cursor: pointer;
    height: 72px;                    /* feste Thumbnail-Höhe */
}

.product-detail-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.85;
    transition:
            opacity 0.15s ease,
            transform 0.15s ease,
            box-shadow 0.15s ease,
            outline 0.15s ease;
}

.product-detail-gallery-item img:hover {
    opacity: 1;
    transform: scale(1.02);
}

/* Aktives Thumbnail */
.product-detail-gallery-item img.is-active {
    opacity: 1;
    outline: 2px solid var(--accent);
    box-shadow: 0 0 0 1px rgba(79,70,229,0.7);
}

/* =========================
   Image Lightbox (Product Detail)
   ========================= */

.image-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

.image-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.image-lightbox-inner {
    position: relative;
    max-width: min(90vw, 1100px);
    max-height: min(85vh, 700px);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(148,163,184,0.7);
    background: #020617;
    box-shadow: 0 25px 60px rgba(15,23,42,0.95);
}

.image-lightbox-inner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #020617;
}

.image-lightbox-close {
    position: absolute;
    top: 0.6rem;
    right: 0.8rem;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.7);
    background: rgba(15,23,42,0.9);
    color: #e5e7eb;
    font-size: 1.4rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}

.image-lightbox-close:hover {
    background: rgba(15,23,42,1);
    border-color: #e5e7eb;
    transform: translateY(-1px);
}

.image-lightbox-prev,
.image-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.7);
    background: rgba(15,23,42,0.9);
    color: #e5e7eb;
    font-size: 1.4rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
            background 0.15s ease,
            border-color 0.15s ease,
            transform 0.08s ease;
}

.image-lightbox-prev {
    left: 0.75rem;
}

.image-lightbox-next {
    right: 0.75rem;
}

.image-lightbox-prev:hover,
.image-lightbox-next:hover {
    background: rgba(15,23,42,1);
    border-color: #e5e7eb;
    transform: translateY(-50%) translateY(-1px);
}

.field-meta {
    margin-top: 0.35rem;
    display: flex;
    justify-content: flex-end; /* oder flex-start, wenn links */
}

.char-counter {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.9;
}

.char-counter-warning {
    color: var(--accent);
    opacity: 1;
}





/* Items untereinander */
.portfolio-gallery-stack {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.portfolio-item-full {
    width: 100%;
    max-width: none;      /* überschreibt frühere max-width */
    margin: 0 0 3rem 0;   /* Abstand nach unten, kein zentrieren mehr nötig */
    display: flex;
    flex-direction: column;
    gap: 1rem;
}


/* Media: kleiner, zentriert, keine Monstergröße */
.portfolio-item-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;   /* alle Bilder gleiche Höhe/Breite */
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #020617;
    max-width: none;
    margin: 0;
}

/* Slides: nur aktiver sichtbar (kein position:absolute mehr) */
.portfolio-slides {
    width: 100%;
    height: 100%;
}

.portfolio-slide {
    display: none;
    width: 100%;
    height: 100%;
}

.portfolio-slide.is-active {
    display: block;
}

.portfolio-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* cropt alles ins 16:9-Fenster */
    display: block;
}

/* YouTube-Play-Icon (ohne Text im Bild) */
.portfolio-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.portfolio-play-icon::before {
    content: "";
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: rgba(15,23,42,0.85);
    border: 2px solid rgba(15,23,42,0.95);
    box-shadow: 0 12px 35px rgba(15,23,42,0.9);
}

.portfolio-play-icon::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    border-left: 18px solid #e5e7eb;
    margin-left: 2px;
}

/* GROßE KLICKZONEN LINKS/RECHTS */
/* Randzonen links/rechts: schmaler */
.portfolio-nav {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20%;              /* vorher 30 oder 50 – jetzt nur noch Randbereich */
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0;
    font-size: 2.4rem;
    color: #e5e7eb;
    z-index: 5;
    opacity: 1;
    pointer-events: auto;
}

.portfolio-nav-prev {
    left: 0;
    justify-content: flex-start;
    padding-left: 1rem;
}

.portfolio-nav-next {
    right: 0;
    justify-content: flex-end;
    padding-right: 1rem;
}

/* Overlay-Effekt nur auf der Seite, wo man hovert */
@media (hover: hover) and (pointer: fine) {
    .portfolio-nav-prev:hover {
        background: linear-gradient(
                to right,
                rgba(15,23,42,0.55),
                transparent
        );
    }

    .portfolio-nav-next:hover {
        background: linear-gradient(
                to left,
                rgba(15,23,42,0.55),
                transparent
        );
    }
}


/* Progress-Leiste unten im Bild */
.portfolio-dots {
    position: absolute;
    left: 50%;
    bottom: 1.2rem;           /* etwas höher gezogen, damit sicher im Bild */
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
    z-index: 6;
}

/* Segmente deutlich größer */
.portfolio-dots button {
    width: 100px;              /* vorher 22/30px – jetzt länger */
    height: 7px;              /* dicker */
    border-radius: 999px;
    border: none;
    background: rgba(148,163,184,0.45);
    padding: 0;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.portfolio-dots button.is-active {
    background: var(--accent);
    transform: translateY(-1px);
}

.portfolio-dots button:hover {
    background: rgba(129,140,248,0.9);
}


/* Text-Bereich unter dem Bild */
.portfolio-item-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    /* KEIN max-width hier mehr – übernimmt die 720px von .portfolio-item-full */
}

.portfolio-item-title {
    font-size: 1.15rem;
    font-weight: 600;
}

.portfolio-item-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: none; /* überschreibt evtl. frühere max-width: 48rem; */
}

.portfolio-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.75rem;
}

.portfolio-item-tags span {
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148,163,184,0.4);
}

/* Über uns – neue Layout-Variante */



/* === Über uns – neues Layout === */

/* Hero: 2 Spalten auf Desktop, Stack auf Mobile */
.about-hero {
    display: grid;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2.5rem;
}

.about-hero-main {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.about-hero-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 46rem;
}

.about-hero-side {
    max-width: 320px;
}

.about-hero-side-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.about-hero-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.about-hero-list li {
    display: flex;
    flex-direction: column;
}

.about-hero-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.about-hero-value {
    font-size: 0.9rem;
}

/* Untere Abschnitte */

.about-section {
    margin-top: 2.5rem;
}

.about-section-header {
    margin-bottom: 1.2rem;
}

.about-section-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 40rem;
}

/* Drei Spalten mit Cards */
.about-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.about-column h3 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.about-bullet-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Workflow-Block */
.about-workflow {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.about-workflow-row {
    display: grid;
    grid-template-columns: minmax(0, 190px) minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.45rem 0.35rem;
    border-radius: 0.75rem;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148,163,184,0.3);
}

.about-workflow-label {
    font-size: 0.9rem;
    font-weight: 500;
}

.about-workflow-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* CTA unten */
.about-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.2rem;
    align-items: center;
}

.about-cta-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.about-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

/* Responsive-Anpassungen */
@media (max-width: 960px) {
    .about-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .about-hero-side {
        max-width: 100%;
    }

    .about-columns {
        grid-template-columns: minmax(0, 1fr);
    }

    .about-workflow-row {
        grid-template-columns: minmax(0, 1fr);
    }
}
