/* ============================================================
   GLANZBOX BLOG — Miami Sunset (hell): Weiß · Gelb · Orange · Pink
   ============================================================ */

@font-face {
    font-family: 'Cabin';
    src: url('../webfonts/cabin-regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Cabin';
    src: url('../webfonts/cabin-bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'MyriadPro Cond';
    src: url('../webfonts/myriadpro-cond.otf') format('opentype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'MyriadPro Cond';
    src: url('../webfonts/myriadpro-boldcond.otf') format('opentype');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'VT323';
    src: url('../webfonts/vt323-regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

:root {
    color-scheme: light;
    --gb-pink: #ff2e97;
    --gb-pink-deep: #e0177f;
    --gb-cyan: #009fb2;          /* Türkis, dunkel genug für hellen Grund */
    --gb-cyan-bright: #00d5e8;
    --gb-orange: #ff9a3c;
    --gb-gold: #ffd23f;
    --gb-bg: #fff9ef;            /* warmes Weiß */
    --gb-panel: rgba(255, 255, 255, .9);
    --gb-panel-line: rgba(255, 46, 151, .22);
    --gb-text: #3b1440;          /* tiefes Pflaumen-Lila */
    --gb-text-dim: #93739c;
    --gb-font: 'Cabin', 'Segoe UI', sans-serif;
    --gb-display: 'MyriadPro Cond', 'Arial Narrow', sans-serif;
    --gb-mono: 'VT323', monospace;
    --gb-glow-pink: 0 0 10px rgba(255, 46, 151, .45), 0 0 24px rgba(255, 46, 151, .2);
    --gb-glow-cyan: 0 0 10px rgba(0, 213, 232, .5), 0 0 24px rgba(0, 213, 232, .22);
    --gb-shadow: 0 10px 30px rgba(120, 40, 90, .12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--gb-bg);
    color: var(--gb-text);
    font-family: var(--gb-font);
    font-size: 17px;
    line-height: 1.65;
    min-height: 100vh;
    overflow-x: hidden;
}

img { max-width: 100%; }

a { color: var(--gb-cyan); text-decoration: none; }
a:hover { color: var(--gb-pink); }

::selection { background: var(--gb-pink); color: #fff; }

/* ============================================================ Szene: sanfter Sonnenuntergang */
.gb-scene {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    background:
        linear-gradient(180deg,
            #fffdf6 0%, #fff7e0 22%, #ffedbe 40%, #ffdda0 55%,
            #ffc38f 68%, #ffa98f 78%, #ff97ab 88%, #ff8fc0 100%);
}

.gb-scene::after {
    /* zarter Schleier, damit der Content vorn ruhig bleibt */
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 251, 243, .5);
}

.gb-stars { display: none; } /* keine Sterne am hellen Himmel */

.gb-sun {
    position: absolute;
    left: 50%;
    top: 30%;
    width: min(46vw, 480px);
    aspect-ratio: 1;
    transform: translateX(-50%);
    border-radius: 50%;
    background: linear-gradient(180deg, #ffe36e 0%, #ffb64c 40%, #ff7fa4 80%, #ff5fae 100%);
    box-shadow: 0 0 90px rgba(255, 180, 90, .75), 0 0 220px rgba(255, 150, 140, .45);
    /* Retro-Streifen */
    -webkit-mask-image: linear-gradient(180deg,
        #000 0 55%,
        transparent 55% 58%, #000 58% 66%,
        transparent 66% 70%, #000 70% 77%,
        transparent 77% 82%, #000 82% 88%,
        transparent 88% 94%, #000 94% 100%);
    mask-image: linear-gradient(180deg,
        #000 0 55%,
        transparent 55% 58%, #000 58% 66%,
        transparent 66% 70%, #000 70% 77%,
        transparent 77% 82%, #000 82% 88%,
        transparent 88% 94%, #000 94% 100%);
}

.gb-grid-wrap {
    position: absolute;
    left: -25%;
    right: -25%;
    bottom: 0;
    height: 42%;
    perspective: 260px;
    overflow: hidden;
}

.gb-grid {
    position: absolute;
    inset: -100% 0 0 0;
    background-image:
        linear-gradient(rgba(255, 46, 151, .28) 1.5px, transparent 1.5px),
        linear-gradient(90deg, rgba(255, 154, 60, .28) 1.5px, transparent 1.5px);
    background-size: 64px 64px;
    transform-origin: 50% 0;
    transform: rotateX(62deg);
    animation: gb-gridmove 2.6s linear infinite;
}

@keyframes gb-gridmove {
    from { background-position: 0 0, 0 0; }
    to { background-position: 0 64px, 0 0; }
}

.gb-palm {
    /* dunkle Silhouetten — klassischer Sonnenuntergang */
    position: absolute;
    bottom: -12px;
    width: min(30vw, 340px);
    opacity: .55;
    filter: drop-shadow(0 0 18px rgba(255, 140, 90, .35));
}

.gb-palm-left { left: -40px; }

.gb-palm-right {
    right: -40px;
    transform: scaleX(-1);
}

/* CRT-Effekt: im hellen Theme deaktiviert */
.gb-crt { display: none !important; }

/* ============================================================ Header / Nav */
.gb-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .7rem clamp(1rem, 4vw, 2.5rem);
    background: rgba(255, 252, 245, .85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gb-panel-line);
    box-shadow: 0 4px 24px rgba(255, 120, 150, .12);
}

.gb-logo {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.gb-logo img { height: 54px; filter: drop-shadow(0 1px 5px rgba(120, 40, 90, .35)); }

.gb-nav {
    display: flex;
    gap: clamp(.8rem, 2.5vw, 2rem);
}

.gb-nav a {
    font-family: var(--gb-display);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--gb-text);
    padding: .15rem .35rem;
}

.gb-nav a:hover {
    color: var(--gb-pink);
    text-shadow: var(--gb-glow-pink);
}

.gb-nav a.gb-nav-active {
    color: var(--gb-pink-deep);
    border-bottom: 3px solid var(--gb-pink);
}

/* ============================================================ Hero */
.gb-hero {
    position: relative;
    height: min(92vh, 900px);
    min-height: 480px;
    display: grid;
    place-items: center;
    overflow: hidden;
    margin-top: -70px; /* Video hinter den transparenten Header ziehen */
}

.gb-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gb-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 249, 239, 0) 0%, rgba(255, 249, 239, 0) 64%, var(--gb-bg) 100%);
}

.gb-hero-content {
    position: relative;
    text-align: center;
    padding: 1rem;
}

.gb-hero-kicker {
    font-family: var(--gb-mono);
    font-size: clamp(1rem, 2.4vw, 1.5rem);
    color: #fff;
    text-shadow: 0 0 12px rgba(0, 213, 232, .9), 0 1px 8px rgba(40, 0, 40, .5);
    letter-spacing: .35em;
    text-transform: uppercase;
    margin: 0 0 .3rem;
}

.gb-hero-title {
    margin: 0;
    font-family: var(--gb-display);
    font-weight: 700;
    font-size: clamp(4rem, 14vw, 10rem);
    line-height: .9;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.gb-hero-title span {
    color: #fff;
    text-shadow: 0 0 14px rgba(255, 46, 151, .9), 0 0 42px rgba(255, 46, 151, .6), 0 2px 10px rgba(60, 0, 40, .4);
}

.gb-hero-title .gb-hero-title-alt {
    text-shadow: 0 0 14px rgba(0, 213, 232, .95), 0 0 42px rgba(0, 213, 232, .6), 0 2px 10px rgba(0, 40, 50, .4);
}

.gb-hero-sub {
    font-family: var(--gb-mono);
    font-size: clamp(1.05rem, 2.6vw, 1.6rem);
    color: #fff;
    letter-spacing: .12em;
    margin: 1rem 0 0;
    text-shadow: 0 1px 10px rgba(40, 0, 40, .65);
}

.gb-hero-scroll {
    display: inline-block;
    margin-top: 2.2rem;
    font-size: 1.6rem;
    color: #fff;
    text-shadow: 0 0 12px rgba(255, 46, 151, .9);
    animation: gb-bounce 1.6s ease-in-out infinite;
}

@keyframes gb-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* ============================================================ Sections */
.gb-main { min-height: 60vh; }

.gb-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem clamp(1rem, 4vw, 2.5rem) 4rem;
}

.gb-section-top { padding-top: 3.5rem; }

.gb-page-title {
    font-family: var(--gb-display);
    font-weight: 700;
    font-size: clamp(2.6rem, 7vw, 4.5rem);
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--gb-pink);
    text-shadow: var(--gb-glow-pink);
    margin: 0 0 .4rem;
}

.gb-title-glow {
    color: var(--gb-cyan);
    text-shadow: var(--gb-glow-cyan);
}

.gb-page-sub {
    color: var(--gb-text-dim);
    font-size: 1.1rem;
    margin: 0 0 2rem;
}

.gb-empty {
    font-family: var(--gb-mono);
    font-size: 1.3rem;
    color: var(--gb-text-dim);
    text-align: center;
    padding: 3rem 0;
}

/* ============================================================ Filter-Chips */
.gb-filter {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-bottom: 2.2rem;
}

.gb-chip {
    display: inline-block;
    font-family: var(--gb-display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gb-cyan);
    border: 1px solid rgba(0, 159, 178, .45);
    border-radius: 999px;
    padding: .3rem 1.1rem;
    background: rgba(255, 255, 255, .75);
    transition: all .18s ease;
}

.gb-chip:hover {
    box-shadow: var(--gb-glow-cyan);
    color: var(--gb-cyan);
}

.gb-chip-active {
    color: #fff;
    background: linear-gradient(90deg, var(--gb-cyan), var(--gb-cyan-bright));
    border-color: transparent;
    box-shadow: var(--gb-glow-cyan);
}

.gb-chip-mini {
    font-size: .85rem;
    padding: .12rem .7rem;
    color: var(--gb-pink-deep);
    border-color: rgba(255, 46, 151, .4);
    background: rgba(255, 46, 151, .07);
}

.gb-chip-mini:hover { box-shadow: var(--gb-glow-pink); color: var(--gb-pink-deep); }

/* ============================================================ Cards */
.gb-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.6rem;
}

.gb-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    background: var(--gb-panel);
    border: 1px solid rgba(255, 46, 151, .15);
    overflow: hidden;
    box-shadow: var(--gb-shadow);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.gb-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 46, 151, .55);
    box-shadow: 0 0 22px rgba(255, 46, 151, .25), 0 18px 44px rgba(120, 40, 90, .18);
}

.gb-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    color: inherit;
}

.gb-card-link:hover { color: inherit; }

.gb-card-media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #fff;
    border-bottom: 1px solid rgba(255, 46, 151, .1);
}

.gb-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.gb-card:hover .gb-card-media img { transform: scale(1.06); }

.gb-card-media-empty {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #fff4e0, #ffe3ef);
}

.gb-card-media-empty img {
    width: auto !important;
    height: 55% !important;
    object-fit: contain !important;
    filter: drop-shadow(0 2px 8px rgba(120, 40, 90, .25));
}

.gb-card:hover .gb-card-media-empty img { transform: none; }

.gb-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1rem 1.2rem 1.2rem;
}

.gb-card-meta {
    display: flex;
    align-items: center;
    gap: .7rem;
    font-family: var(--gb-mono);
    font-size: 1rem;
    color: var(--gb-text-dim);
    margin-bottom: .35rem;
}

.gb-card-body h2 {
    font-family: var(--gb-display);
    font-weight: 700;
    font-size: 1.55rem;
    line-height: 1.15;
    margin: 0 0 .4rem;
    color: var(--gb-text);
}

.gb-card:hover .gb-card-body h2 { color: var(--gb-pink-deep); }

.gb-card-body p {
    margin: 0;
    color: var(--gb-text-dim);
    font-size: .95rem;
}

.gb-card-stats {
    display: flex;
    gap: 1.2rem;
    margin-top: .8rem;
    padding-bottom: .7rem;
    font-family: var(--gb-mono);
    font-size: 1.05rem;
    color: var(--gb-cyan);
}

/* Kategorien unten in der Karte angedockt (außerhalb des Karten-Links) — dürfen umbrechen */
.gb-card-cats {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin: auto 1.2rem 0;
    padding: .7rem 0 1.1rem;
    border-top: 1px dashed rgba(255, 46, 151, .18);
}

/* ============================================================ Beitrag */
.gb-post-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.gb-post-hero-nocover {
    min-height: 220px;
    background: linear-gradient(135deg, #ffe9c0, #ffc9e2);
}

.gb-post-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gb-post-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 249, 239, 0) 30%, rgba(255, 249, 239, .55) 70%, var(--gb-bg) 100%);
}

.gb-post-hero-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem clamp(1rem, 4vw, 2.5rem) 1.2rem;
}

.gb-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .8rem;
    font-family: var(--gb-mono);
    font-size: 1.05rem;
    color: var(--gb-text);
    margin-bottom: .5rem;
}

.gb-post-meta time {
    background: rgba(255, 255, 255, .85);
    border-radius: 999px;
    padding: .05rem .6rem;
}

.gb-post-meta .gb-chip-mini {
    background: rgba(255, 255, 255, .9);
    border-color: rgba(255, 46, 151, .5);
}

.gb-post-title {
    font-family: var(--gb-display);
    font-weight: 700;
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    line-height: 1.05;
    margin: 0;
    color: var(--gb-text);
    text-shadow: 0 0 18px rgba(255, 251, 243, .95), 0 2px 14px rgba(255, 251, 243, .9);
}

.gb-post-body {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem clamp(1rem, 4vw, 2.5rem) 4rem;
}

.gb-heading {
    font-family: var(--gb-display);
    font-weight: 700;
    font-size: clamp(1.7rem, 4vw, 2.3rem);
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--gb-pink-deep);
    margin: 2.4rem 0 .8rem;
}

.gb-subheading {
    font-family: var(--gb-display);
    font-weight: 700;
    font-size: clamp(1.3rem, 3vw, 1.7rem);
    letter-spacing: .03em;
    color: var(--gb-cyan);
    margin: 1.8rem 0 .6rem;
}

.gb-paragraph {
    margin: 0 0 1.2rem;
    color: var(--gb-text);
}

.gb-paragraph a {
    color: var(--gb-cyan);
    border-bottom: 1px dotted rgba(0, 159, 178, .55);
}

.gb-figure {
    margin: 1.8rem 0;
}

.gb-figure img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 46, 151, .15);
    background: #fff;
    box-shadow: var(--gb-shadow);
}

.gb-grid-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.6rem;
    align-items: center;
    margin: 1.8rem 0;
}

.gb-grid-img-left .gb-grid-media { order: -1; }

.gb-grid-media img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(0, 159, 178, .18);
    background: #fff;
    box-shadow: var(--gb-shadow);
}

@media (max-width: 720px) {
    .gb-grid-block { grid-template-columns: 1fr; }
    .gb-grid-img-left .gb-grid-media { order: 0; }
}

/* Transparente Bilder: kein Rahmen, kein Schatten, keine Rundung */
.gb-figure img.gb-img-plain,
.gb-grid-media img.gb-img-plain {
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.gb-post-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2.5rem 0;
    padding-top: 1.5rem;
    border-top: 1px dashed rgba(255, 46, 151, .3);
}

/* ============================================================ Like */
.gb-like {
    font-family: var(--gb-mono);
    font-size: 1.4rem;
    color: var(--gb-pink-deep);
    background: rgba(255, 46, 151, .08);
    border: 1px solid rgba(255, 46, 151, .45);
    border-radius: 999px;
    padding: .35rem 1.3rem;
    cursor: pointer;
    transition: all .18s ease;
}

.gb-like:hover:not(:disabled) {
    box-shadow: var(--gb-glow-pink);
    transform: scale(1.05);
}

.gb-like-on {
    background: linear-gradient(90deg, var(--gb-pink), #ff5fae);
    color: #fff;
    box-shadow: var(--gb-glow-pink);
    cursor: default;
}

.gb-like-heart { display: inline-block; }

.gb-like:hover:not(:disabled) .gb-like-heart { animation: gb-heartbeat .8s ease infinite; }

@keyframes gb-heartbeat {
    0%, 100% { transform: scale(1); }
    30% { transform: scale(1.35); }
}

/* ============================================================ Kommentare */
.gb-comments { margin-top: 2rem; }

.gb-comments-count {
    font-family: var(--gb-mono);
    color: var(--gb-cyan);
    font-size: 1.4rem;
}

.gb-comment {
    background: var(--gb-panel);
    border: 1px solid rgba(0, 159, 178, .18);
    border-radius: 12px;
    padding: .9rem 1.2rem;
    margin-bottom: .9rem;
    box-shadow: var(--gb-shadow);
}

.gb-comment-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .7rem;
    margin-bottom: .3rem;
}

.gb-comment-head strong {
    color: var(--gb-cyan);
    font-family: var(--gb-display);
    font-size: 1.15rem;
    letter-spacing: .04em;
}

.gb-comment-head time, .gb-comment-head span {
    font-family: var(--gb-mono);
    font-size: .95rem;
    color: var(--gb-text-dim);
}

.gb-comment p { margin: 0; white-space: pre-line; }

.gb-comment-pending { border-color: var(--gb-orange); }

.gb-comment-state { color: var(--gb-cyan); }

.gb-comment-actions {
    display: flex;
    gap: .5rem;
    margin-top: .6rem;
}

.gb-comment-thanks {
    font-family: var(--gb-mono);
    font-size: 1.2rem;
    color: var(--gb-cyan);
}

.gb-comment-form {
    margin-top: 1.5rem;
    background: var(--gb-panel);
    border: 1px solid var(--gb-panel-line);
    border-radius: 12px;
    padding: 1.2rem 1.4rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: .8rem;
    box-shadow: var(--gb-shadow);
}

.gb-comment-form .gb-subheading { margin: 0; }

/* ============================================================ Formulare / Buttons */
.gb-input {
    width: 100%;
    font-family: var(--gb-font);
    font-size: 1rem;
    color: var(--gb-text);
    background: #fff;
    border: 1px solid rgba(0, 159, 178, .3);
    border-radius: 8px;
    padding: .55rem .8rem;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

.gb-input:focus {
    border-color: var(--gb-cyan-bright);
    box-shadow: 0 0 10px rgba(0, 213, 232, .35);
}

textarea.gb-input { resize: vertical; }

.gb-btn {
    display: inline-block;
    font-family: var(--gb-display);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(90deg, var(--gb-pink), #ff5fae);
    border: none;
    border-radius: 999px;
    padding: .5rem 1.5rem;
    cursor: pointer;
    transition: all .18s ease;
    align-self: flex-start;
}

.gb-btn:hover:not(:disabled) {
    box-shadow: var(--gb-glow-pink);
    transform: translateY(-1px);
    color: #fff;
}

.gb-btn:disabled { opacity: .5; cursor: not-allowed; }

.gb-btn-ghost {
    background: rgba(255, 255, 255, .75);
    color: var(--gb-cyan);
    border: 1px solid rgba(0, 159, 178, .45);
}

.gb-btn-ghost:hover:not(:disabled) {
    box-shadow: var(--gb-glow-cyan);
    color: var(--gb-cyan);
}

.gb-btn-mini { font-size: .9rem; padding: .25rem .9rem; }

.gb-btn-block { display: block; width: 100%; text-align: center; }

.gb-btn-danger {
    background: rgba(255, 255, 255, .75);
    color: #e0355c;
    border: 1px solid rgba(224, 53, 92, .5);
}

.gb-btn-danger:hover:not(:disabled) {
    box-shadow: 0 0 12px rgba(224, 53, 92, .4);
    color: #e0355c;
}

.gb-form-error {
    color: #e0355c;
    font-family: var(--gb-mono);
    margin: 0;
}

/* ============================================================ Galerie */
.gb-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.gb-gallery-item {
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 46, 151, .15);
    background: var(--gb-panel);
    box-shadow: var(--gb-shadow);
    transition: transform .18s ease, box-shadow .18s ease;
}

.gb-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 18px rgba(0, 213, 232, .3), 0 14px 34px rgba(120, 40, 90, .16);
}

.gb-gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}

.gb-gallery-item figcaption {
    font-family: var(--gb-mono);
    font-size: .95rem;
    color: var(--gb-text-dim);
    padding: .4rem .7rem;
}

/* Lightbox bleibt dunkel — Bilder wirken vor dunklem Grund am besten */
.gb-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(25, 5, 30, .93);
    display: grid;
    place-items: center;
    cursor: zoom-out;
    animation: gb-fadein .18s ease;
}

.gb-lightbox img {
    max-width: 94vw;
    max-height: 92vh;
    border-radius: 8px;
    box-shadow: 0 0 60px rgba(255, 46, 151, .35);
}

@keyframes gb-fadein {
    from { opacity: 0; }
    to { opacity: 1; }
}

.gb-lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10000;
    font-size: 3rem;
    line-height: 1;
    width: 64px;
    height: 84px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 12px;
    cursor: pointer;
    transition: all .15s ease;
}

.gb-lightbox-nav:hover { box-shadow: var(--gb-glow-cyan); }

.gb-lightbox-prev { left: 18px; }

.gb-lightbox-next { right: 18px; }

.gb-lightbox-close {
    position: fixed;
    top: 16px;
    right: 18px;
    z-index: 10000;
    font-size: 1.3rem;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    cursor: pointer;
}

.gb-lightbox-close:hover { box-shadow: var(--gb-glow-pink); }

.gb-lightbox-counter {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    font-family: var(--gb-mono);
    font-size: 1.2rem;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border-radius: 999px;
    padding: .15rem 1rem;
}

/* ============================================================ Footer */
.gb-footer {
    border-top: 1px solid var(--gb-panel-line);
    background: rgba(255, 252, 245, .7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem 1rem 2.5rem;
    text-align: center;
}

.gb-footer-logo { height: 34px; opacity: .9; margin-bottom: .6rem; }

.gb-footer p {
    margin: .2rem 0;
    font-family: var(--gb-mono);
    font-size: 1.05rem;
    color: var(--gb-text-dim);
}

.gb-blink { animation: gb-blink 1.1s steps(1) infinite; color: var(--gb-cyan); }

@keyframes gb-blink { 50% { opacity: 0; } }

/* ============================================================ 404 */
.gb-404 { text-align: center; padding-top: 6rem; }

.gb-404-title {
    font-family: var(--gb-display);
    font-size: clamp(6rem, 20vw, 12rem);
    margin: 0;
    color: var(--gb-pink);
    text-shadow: var(--gb-glow-pink);
    line-height: 1;
}

/* ============================================================ Login */
.gb-login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.gb-login-card {
    width: 100%;
    max-width: 420px;
    background: var(--gb-panel);
    border: 1px solid var(--gb-panel-line);
    border-radius: 16px;
    padding: 2.2rem 2.4rem;
    box-shadow: 0 0 40px rgba(255, 46, 151, .18), 0 20px 60px rgba(120, 40, 90, .2);
}

.gb-login-logo { height: 56px; display: block; margin: 0 auto 1rem; }

.gb-login-card h1 {
    font-family: var(--gb-display);
    text-transform: uppercase;
    letter-spacing: .08em;
    text-align: center;
    font-size: 1.6rem;
    color: var(--gb-cyan);
    margin: 0 0 1.4rem;
}

.gb-login-card label {
    display: block;
    margin-bottom: .9rem;
    font-family: var(--gb-mono);
    color: var(--gb-text-dim);
}

.gb-login-divider {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin: 1.2rem 0;
    color: var(--gb-text-dim);
    font-family: var(--gb-mono);
}

.gb-login-divider::before, .gb-login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gb-panel-line);
}

.gb-login-hint {
    font-size: .85rem;
    color: var(--gb-text-dim);
    text-align: center;
    margin-top: 1rem;
}

/* ============================================================ Admin */
.gb-admin {
    display: grid;
    grid-template-columns: 230px 1fr;
    min-height: 100vh;
}

.gb-admin-sidebar {
    background: rgba(255, 252, 245, .92);
    border-right: 1px solid var(--gb-panel-line);
    padding: 1.4rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 0;
    height: 100vh;
}

.gb-admin-brand {
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.gb-admin-brand img { height: 34px; align-self: flex-start; }

.gb-admin-brand span {
    font-family: var(--gb-mono);
    color: var(--gb-cyan);
    letter-spacing: .15em;
    text-transform: uppercase;
}

.gb-admin-sidebar nav {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    flex: 1;
}

.gb-admin-sidebar nav a {
    font-family: var(--gb-display);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 1.1rem;
    color: var(--gb-text);
    padding: .45rem .7rem;
    border-radius: 8px;
}

.gb-admin-sidebar nav a:hover {
    background: rgba(255, 46, 151, .1);
    color: var(--gb-pink-deep);
}

.gb-admin-sidebar-bottom {
    display: flex;
    flex-direction: column;
    gap: .7rem;
    font-family: var(--gb-mono);
}

.gb-admin-main {
    padding: 2rem clamp(1rem, 3vw, 2.5rem) 4rem;
    min-width: 0;
}

@media (max-width: 860px) {
    .gb-admin { grid-template-columns: 1fr; }
    .gb-admin-sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
    .gb-admin-sidebar nav { flex-direction: row; flex-wrap: wrap; }
}

.gb-admin-title {
    font-family: var(--gb-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: 2.2rem;
    color: var(--gb-pink-deep);
    margin: 0 0 1.2rem;
}

.gb-admin-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.gb-admin-head .gb-admin-title { margin: 0; }

.gb-admin-head-actions { display: flex; gap: .6rem; align-items: center; }

.gb-admin-hint {
    color: var(--gb-text-dim);
    font-size: .95rem;
}

.gb-admin-message {
    font-family: var(--gb-mono);
    font-size: 1.15rem;
    color: var(--gb-cyan);
}

.gb-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.gb-stat {
    background: var(--gb-panel);
    border: 1px solid var(--gb-panel-line);
    border-radius: 12px;
    padding: 1.1rem 1.2rem;
    display: flex;
    flex-direction: column;
    color: var(--gb-text);
    box-shadow: var(--gb-shadow);
    transition: box-shadow .18s;
}

.gb-stat:hover { box-shadow: 0 0 18px rgba(255, 46, 151, .25); }

.gb-stat-num {
    font-family: var(--gb-mono);
    font-size: 2.4rem;
    line-height: 1;
    color: var(--gb-cyan);
}

.gb-stat-label {
    font-size: .9rem;
    color: var(--gb-text-dim);
    margin-top: .3rem;
}

.gb-stat-alert { border-color: var(--gb-orange); }

.gb-stat-alert .gb-stat-num { color: var(--gb-orange); }

.gb-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--gb-panel);
    border: 1px solid var(--gb-panel-line);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--gb-shadow);
}

.gb-table th, .gb-table td {
    text-align: left;
    padding: .6rem .9rem;
    border-bottom: 1px solid rgba(255, 46, 151, .12);
}

.gb-table th {
    font-family: var(--gb-display);
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--gb-cyan);
    font-size: .95rem;
}

.gb-table tr:hover td { background: rgba(255, 46, 151, .05); }

/* ============================================================ Editor */
.gb-editor-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    background: var(--gb-panel);
    border: 1px solid var(--gb-panel-line);
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1.6rem;
    box-shadow: var(--gb-shadow);
}

.gb-field {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    font-family: var(--gb-mono);
    color: var(--gb-text-dim);
    min-width: 200px;
    flex: 1;
}

.gb-field-wide { flex-basis: 100%; }

.gb-field-check { flex-direction: row; align-items: center; min-width: auto; }

.gb-field-hint { font-size: .8rem; opacity: .7; }

.gb-input-title { font-size: 1.4rem; font-weight: 700; }

.gb-input-h2 { font-size: 1.3rem; font-weight: 700; color: var(--gb-pink-deep); }

.gb-input-h3 { font-size: 1.15rem; font-weight: 700; color: var(--gb-cyan); }

.gb-input-mini { font-size: .85rem; padding: .3rem .5rem; }

.gb-editor-section {
    font-family: var(--gb-display);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 1.3rem;
    color: var(--gb-cyan);
    margin: 2rem 0 .8rem;
}

.gb-editor-cover {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    background: var(--gb-panel);
    border: 1px solid var(--gb-panel-line);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: var(--gb-shadow);
}

.gb-editor-cover img {
    width: 260px;
    border-radius: 8px;
}

.gb-editor-cover-fields {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .7rem;
    font-family: var(--gb-mono);
    color: var(--gb-text-dim);
}

.gb-editor-cover-actions { display: flex; gap: .6rem; }

.gb-editor-block {
    background: var(--gb-panel);
    border: 1px solid rgba(0, 159, 178, .2);
    border-radius: 12px;
    padding: .9rem 1.1rem 1.1rem;
    margin-bottom: 1rem;
    box-shadow: var(--gb-shadow);
}

.gb-editor-block-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .6rem;
}

.gb-editor-block-type {
    font-family: var(--gb-mono);
    font-size: .95rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gb-cyan);
}

.gb-editor-block-tools button {
    background: #fff;
    border: 1px solid rgba(0, 159, 178, .35);
    color: var(--gb-cyan);
    border-radius: 6px;
    padding: .1rem .5rem;
    margin-left: .3rem;
    cursor: pointer;
}

.gb-editor-block-tools button:hover { box-shadow: 0 0 8px rgba(0, 213, 232, .4); }

.gb-editor-block-tools .gb-danger {
    color: #e0355c;
    border-color: rgba(224, 53, 92, .4);
}

.gb-editor-block-tools .gb-danger:hover { box-shadow: 0 0 8px rgba(224, 53, 92, .4); }

.gb-editor-imgrow {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.gb-editor-imgrow img { width: 220px; border-radius: 8px; }

.gb-editor-imgrow label {
    display: block;
    font-family: var(--gb-mono);
    color: var(--gb-text-dim);
    margin-bottom: .6rem;
}

.gb-editor-gridblock .gb-field { max-width: 320px; margin-bottom: .8rem; }

.gb-editor-grid-cols {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.2rem;
}

.gb-editor-grid-left { grid-template-columns: 320px 1fr; }

.gb-editor-grid-left .gb-editor-grid-text { order: 2; }

.gb-editor-grid-img img { width: 100%; border-radius: 8px; margin-bottom: .5rem; }

.gb-editor-grid-img label {
    display: block;
    font-family: var(--gb-mono);
    color: var(--gb-text-dim);
    margin-bottom: .5rem;
}

@media (max-width: 860px) {
    .gb-editor-grid-cols, .gb-editor-grid-left { grid-template-columns: 1fr; }
    .gb-editor-grid-left .gb-editor-grid-text { order: 0; }
}

.gb-editor-addbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    padding: .9rem 0 1.4rem;
    font-family: var(--gb-mono);
    color: var(--gb-text-dim);
}

.gb-editor-dangerzone {
    display: flex;
    align-items: center;
    gap: .8rem;
    flex-wrap: wrap;
    border-top: 1px dashed rgba(224, 53, 92, .35);
    margin-top: 2rem;
    padding-top: 1.2rem;
    font-family: var(--gb-mono);
    color: var(--gb-text-dim);
}

/* RTE */
.gb-rte-toolbar {
    display: flex;
    gap: .4rem;
    margin-bottom: .4rem;
}

.gb-rte-toolbar button {
    font-family: var(--gb-font);
    background: #fff;
    border: 1px solid rgba(0, 159, 178, .35);
    color: var(--gb-text);
    border-radius: 6px;
    padding: .2rem .7rem;
    cursor: pointer;
    font-size: .95rem;
}

.gb-rte-toolbar button:hover { box-shadow: 0 0 8px rgba(0, 213, 232, .4); }

.gb-rte-editor {
    min-height: 110px;
    background: #fff;
    border: 1px solid rgba(0, 159, 178, .3);
    border-radius: 8px;
    padding: .7rem .9rem;
    outline: none;
    line-height: 1.6;
}

.gb-rte-editor:focus {
    border-color: var(--gb-cyan-bright);
    box-shadow: 0 0 10px rgba(0, 213, 232, .3);
}

.gb-rte-editor a { color: var(--gb-cyan); text-decoration: underline; }

/* Uploader */
.gb-uploader { margin-bottom: .6rem; }

.gb-uploader-pick {
    position: relative;
    overflow: hidden;
    display: inline-block;
    cursor: pointer;
}

.gb-uploader-pick input[type=file] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.gb-uploader-fields {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    align-items: flex-end;
    margin-top: .7rem;
}

.gb-uploader-fields label {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    font-family: var(--gb-mono);
    color: var(--gb-text-dim);
    flex: 1;
    min-width: 220px;
}

/* Event-Verwaltung */
.gb-admin-event {
    background: var(--gb-panel);
    border: 1px solid var(--gb-panel-line);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: var(--gb-shadow);
}

.gb-admin-event-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .8rem 1.2rem;
    cursor: pointer;
}

.gb-admin-event-head:hover { background: rgba(255, 46, 151, .06); }

.gb-admin-event-head h2 {
    font-family: var(--gb-display);
    font-size: 1.3rem;
    margin: 0;
    flex: 1;
    color: var(--gb-text);
}

.gb-admin-event-count { color: var(--gb-text-dim); font-size: 1rem; }

.gb-admin-event-url { font-family: var(--gb-mono); color: var(--gb-cyan); }

.gb-admin-event-body { padding: 0 1.2rem 1.2rem; }

.gb-admin-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: .8rem;
    margin-top: 1rem;
}

.gb-admin-thumb {
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.gb-admin-thumb img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--gb-panel-line);
}

.gb-admin-thumb .gb-btn { align-self: flex-end; }

/* ============================================================ Diverses */
#components-reconnect-modal { color-scheme: light; }

.gb-main-blank { min-height: 100vh; }

/* JS-Kategorie-Filter: ausgeblendete Karten */
.gb-hide { display: none !important; }

/* Zurück-Button oben im Beitrag */
.gb-post-back { margin: 0 0 .8rem; }

/* Kategorien-Mehrfachauswahl im Editor */
.gb-cat-picker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}

.gb-cat-check {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-family: var(--gb-font);
    font-size: .95rem;
    color: var(--gb-text);
    background: #fff;
    border: 1px solid rgba(0, 159, 178, .35);
    border-radius: 999px;
    padding: .2rem .8rem;
    cursor: pointer;
}

.gb-cat-check-on {
    border-color: var(--gb-pink);
    background: rgba(255, 46, 151, .08);
    color: var(--gb-pink-deep);
}

.gb-cat-new {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.gb-cat-new .gb-input { width: 180px; }

@media (max-width: 640px) {
    .gb-logo img { height: 42px; }
    .gb-nav a { font-size: 1.05rem; letter-spacing: .08em; }
    .gb-header { gap: .6rem; padding: .6rem .8rem; }
}

/* ============================================================ Startseiten-Sidebar: Event-Galerien */
.gb-home-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
}

.gb-home-main { min-width: 0; }

.gb-home-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 90px;
}

.gb-side-title {
    font-family: var(--gb-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: 1.35rem;
    color: var(--gb-cyan);
    margin: 0 0 .2rem;
}

.gb-side-gallery {
    display: block;
    background: var(--gb-panel);
    border: 1px solid var(--gb-panel-line);
    border-radius: 12px;
    padding: .6rem;
    box-shadow: var(--gb-shadow);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.gb-side-gallery:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 46, 151, .5);
    box-shadow: 0 0 18px rgba(255, 46, 151, .22), 0 12px 30px rgba(120, 40, 90, .16);
    color: inherit;
}

.gb-side-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .35rem;
}

.gb-side-thumbs img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.gb-side-gallery-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .6rem;
    font-family: var(--gb-display);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--gb-text);
    padding: .5rem .2rem 0;
}

.gb-side-gallery:hover .gb-side-gallery-title { color: var(--gb-pink-deep); }

.gb-side-gallery-count {
    font-family: var(--gb-mono);
    font-weight: 400;
    font-size: .95rem;
    color: var(--gb-cyan);
    white-space: nowrap;
}

@media (max-width: 1000px) {
    .gb-home-layout { grid-template-columns: 1fr; }
    .gb-home-side { position: static; }
}
