/* ===========================================================
   DARK STEEL – FULL METALLIC CSS (NO YELLOW)
   =========================================================== */

* { box-sizing: border-box; }

:root {
    --bg: #0d0d0d;
    --panel: #161616;
    --panel2: #1f1f1f;
    --text: #f2f2f2;
    --muted: #9a9a9a;

    /* Metallische Akzente */
    /*--accent: #7f8b94;           Stahlgrau */
    /* --accent-strong: #b4c0c9;   helleres Metall für Glow */

    --danger: #ff6565;
    --max: 1250px;
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: radial-gradient(circle at 20% 20%, #121212, #0d0d0d 60%),
                radial-gradient(circle at 85% 85%, #121212, #0d0d0d 60%);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

/* Links generell: keine Unterstriche */
a {
    color: inherit;
    text-decoration: none;
}

/* ===========================
   HEADER
   =========================== */

.site-header { background: #050505; }

.logo-wrap {
    text-align: center;
    padding: 45px 20px 30px;
}

.logo-wrap img {
    width: min(420px, 80vw);
    max-height: 160px;
}

/* ===========================
   NAVIGATION
   =========================== */

.main-nav {
    display: flex;
    justify-content: center;
    gap: 34px;
    flex-wrap: wrap;
    padding: 18px 20px;
    border-top: 1px solid #2a2a2a;
    border-bottom: 1px solid #2a2a2a;
}

.main-nav a {
    font-weight: 700;
}

/* Neuer Hover – Dark Steel */
.main-nav a:hover {
    color: #ffffff;
    transform: translateY(-2px);
    filter: brightness(1.25);
}
.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #444, #777);
    opacity: 0;
    transform: scaleX(0);
    transition: all 0.25s ease;
}

.main-nav a:hover::after {
    opacity: 1;
    transform: scaleX(1);
}
/* ===========================
   CONTAINER
   =========================== */

.container {
    width: min(var(--max), calc(100% - 40px));
    margin: auto;
    padding: 55px 0;
    min-height: 65vh;
}

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

.hero-intro {
    margin-top: -20px;   
    margin-bottom: 10px;  
    padding: 0;            
    text-align: center;
}

.hero-intro .eyebrow {
    margin-bottom: 4px;    
}

.hero-intro .hero-sub {
    margin-top: 6px;       
    margin-bottom: 0;      
}

.hero-intro::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 6px;
    border-radius: 50px;
    background: var(--accent);
    opacity: .7;
    box-shadow: 0 0 18px var(--accent-strong);
}

.hero-intro h1,
section > h1 {
    font-size: clamp(38px, 6vw, 64px);
}

h1, h2 { line-height: 1.1; }

/* ===========================
   PAST SECTION
   =========================== */

.past-section {
    margin-top: 3rem;
    padding: 2rem 0;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.section-heading .eyebrow {
    display: block;
    margin-bottom: 0.6rem;
}

.section-heading .button.secondary {
    padding: 0.55rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    backdrop-filter: blur(6px);
}

@media (max-width: 700px) {
    .section-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
}

@media (max-width: 600px) {
    .section-heading .eyebrow {
        margin-bottom: 1rem;
    }

    .section-heading .button.secondary {
        width: 100%;
        text-align: center;
    }
}

/* ===========================
   Helfer GRID
   =========================== */

.helper-info {
    margin-bottom: 40px;
    color: var(--muted);
}

.helper-info h1 {
    margin-bottom: 20px;
}

.helper-list {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.helper-list li {
    margin-bottom: 12px;
    padding-left: 0;
    font-size: 1.05rem;
    line-height: 1.55;
}

.helper-list strong {
    color: var(--accent);
    text-shadow: 0 0 6px rgba(180,192,201,0.25);
}

/* ===========================
   EVENT GRID
   =========================== */

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 29px;
    padding-bottom: 40px;
}

/* ===========================
   EVENT CARD
   =========================== */

.event-card {
    background: linear-gradient(135deg,
        #1a1a1a 0%,
        #202020 45%,
        #1a1a1a 100%
    );
    background-size: 400% 400%;
    animation: metalFlow 12s ease infinite;

    border: 1px solid #2d2d2d;
    border-radius: 20px;
    padding: 16px;
    overflow: hidden;
    position: relative;
    transition: transform .35s, box-shadow .35s, border-color .35s;
}

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

.event-card a {
    text-decoration: none;
}

.event-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-strong);
    box-shadow:
        0 18px 40px rgba(0,0,0,0.45),
        0 0 22px rgba(180,192,201,0.35),
        inset 0 0 12px rgba(255,255,255,0.15);
}

.event-card::before {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle,
        rgba(180,192,201,0.35),
        transparent 70%
    );
    filter: blur(40px);
    opacity: 0;
    transition: opacity .4s ease;
}

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

.event-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: contain;
    background: linear-gradient(135deg, #1f1f1f, #2a2a2a);
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 0 22px rgba(0,0,0,0.25);
    transition: transform .35s, box-shadow .35s;
}

.event-card:hover img {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(180,192,201,0.35);
}

/* ===========================
   TYPOGRAPHY
   =========================== */

.event-card h2 {
    font-size: 1.55rem;
    margin: 12px 0 6px;
    letter-spacing: .5px;
    font-weight: 700;
}

.date {
    color: var(--accent);
    font-weight: 800;
    font-size: .95rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.eyebrow {
    color: var(--accent);
    font-size: .85rem;
    font-weight: 800;
    letter-spacing: .18em;
    margin: 0 0 10px;
}

.date,
.eyebrow {
    text-shadow:
        0 0 6px rgba(180,192,201,0.25),
        0 0 2px rgba(255,255,255,0.25);
}

/* ===========================
   SINGLE EVENT
   =========================== */

.single-event {
    max-width: 950px;
    margin: auto;
    position: relative;
}

.single-event::before {
    content: "";
    position: absolute;
    top: 120px;
    right: -60px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle,
        rgba(180,192,201,0.35),
        transparent 70%
    );
    filter: blur(60px);
    opacity: 0.7;
    pointer-events: none;
}

.single-event h1 {
    font-size: clamp(38px, 5vw, 60px);
    margin-bottom: 10px;
    letter-spacing: .5px;
    font-weight: 800;
}

.event-meta {
    font-size: 1rem;
    padding: 18px;
    background: linear-gradient(135deg,
        #1a1a1a 0%,
        #202020 45%,
        #1a1a1a 100%
    );
    background-size: 400% 400%;
    animation: metalFlow 12s ease infinite;

    border-radius: 18px;
    border: 1px solid #2d2d2d;
    margin-bottom: 20px;
    box-shadow: 0 0 22px rgba(0,0,0,0.25);
}

.event-meta strong,
.event-meta a {
    text-decoration: none;
    border: none;
}

.single-event-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: contain;
    background: linear-gradient(135deg, #1f1f1f, #2a2a2a);
    border-radius: 22px;
    padding: 16px;
    box-shadow: 0 0 32px rgba(0,0,0,0.35);
    margin: 30px 0;
    transition: transform .35s, box-shadow .35s;
}

.single-event-image:hover {
    transform: scale(1.03);
    box-shadow: 0 0 40px rgba(180,192,201,0.35);
}

.event-description {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: var(--muted);
}

.single-event .button.secondary {
    margin-top: 10px;
}

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

.button {
    border-radius: 12px;
    padding: 14px 26px;
    font-weight: 800;
    background: linear-gradient(135deg, #6f7a82, #8a959d);
    color: #000;
    border: 1px solid #aab4bc;
    transition: transform .25s, box-shadow .25s;
}

.button.secondary {
    background: #333;
    color: #fff;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow:
        0 0 26px rgba(180,192,201,0.45),
        inset 0 0 12px rgba(255,255,255,0.25);
    filter: brightness(1.15);
}

/* ===========================
   FORMS
   =========================== */

.narrow { width: min(760px, 100%); margin-inline: auto; }

.form-card {
    background: linear-gradient(135deg,
        #1a1a1a 0%,
        #202020 45%,
        #1a1a1a 100%
    );
    background-size: 400% 400%;
    animation: metalFlow 12s ease infinite;

    padding: 28px;
    border-radius: 12px;
    border: 1px solid #303030;
    display: grid;
    gap: 10px;
    margin-top: 25px;
}

.form-card input,
.form-card textarea {
    width: 100%;
    background: #0e0e0e;
    color: #fff;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 13px;
    font: inherit;
    margin-bottom: 10px;
}

.form-card button { width: fit-content; }

/* ===========================
   MESSAGES
   =========================== */

.notice,
.success,
.error {
    padding: 16px 18px;
    border-radius: 7px;
    margin: 20px 0;
    background: var(--panel);
}

.success { border-left: 4px solid #5fd36a; }
.error { border-left: 4px solid var(--danger); }

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

.site-footer {
    background: #050505;
    text-align: center;
    padding: 40px;
    color: var(--muted);
}

/* ===========================
   ADMIN TABLE
   =========================== */

.admin-table-wrap {
    overflow-x: auto;
    background: var(--panel);
    border-radius: 10px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 14px;
    border-bottom: 1px solid #333;
    vertical-align: top;
}

.admin-table th { background: #252525; }

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.link-button {
    border: 0;
    background: none;
    padding: 0;
    color: #fff;
    cursor: pointer;
    font: inherit;
}

.danger-text { color: var(--danger); }

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

@media (max-width: 700px) {
    .container { width: min(100% - 24px, var(--max)); padding-top: 35px; }
    .main-nav { gap: 16px; }
    .logo-wrap { padding-top: 25px; }
    .logo-wrap img {
        width: min(300px, 75vw);
        max-height: 120px;
    }
    .section-heading,
    .admin-heading { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 600px) {
    .event-card { padding: 14px; border-radius: 18px; }
    .event-card img { padding: 8px; border-radius: 14px; }
    .event-card:hover img { transform: scale(1.03); }
    .event-card::before { width: 90px; height: 90px; filter: blur(28px); }
    .event-card h2 { font-size: 1.35rem; }

    .single-event-image {
        padding: 12px;
        border-radius: 18px;
        box-shadow: 0 0 24px rgba(0,0,0,0.3);
    }

    .event-meta {
        padding: 16px;
        border-radius: 14px;
    }
}

/* ===========================================================
   EVENT EDIT – DARK STEEL FORM FIX
   =========================================================== */

.event-edit {
    width: min(760px, 100%);
    margin: 40px auto;
    background: linear-gradient(135deg,
        #1a1a1a 0%,
        #202020 45%,
        #1a1a1a 100%
    );
    background-size: 400% 400%;
    animation: metalFlow 12s ease infinite;

    padding: 32px;
    border-radius: 14px;
    border: 1px solid #303030;
    box-shadow: 0 0 28px rgba(0,0,0,0.45);
}

.event-edit h1 {
    margin-top: 0;
    margin-bottom: 22px;
    letter-spacing: .5px;
    font-weight: 800;
}

.event-edit label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--muted);
}

.event-edit input,
.event-edit textarea,
.event-edit select {
    width: 100%;
    background: #0e0e0e;
    color: var(--text);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 12px 14px;
    font: inherit;
    margin-bottom: 18px;
    transition: border-color .25s, box-shadow .25s;
}

.event-edit input:focus,
.event-edit textarea:focus,
.event-edit select:focus {
    border-color: var(--accent-strong);
    box-shadow: 0 0 12px rgba(180,192,201,0.35);
    outline: none;
}

.event-edit button {
    background: linear-gradient(135deg, #6f7a82, #8a959d);
    color: #000;
    border: 1px solid #aab4bc;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .25s, box-shadow .25s;
}

.event-edit button:hover {
    transform: translateY(-3px);
    box-shadow:
        0 0 26px rgba(180,192,201,0.45),
        inset 0 0 12px rgba(255,255,255,0.25);
    filter: brightness(1.15);
}
/* ===========================================================
   ROTATING LOGO CUBE – DARK STEEL
   =========================================================== */

.cube-container {
    width: 180px;
    height: 180px;
    margin: 40px auto;
    perspective: 900px;
    margin-top: 10px;
    margin-bottom: 80px
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: cube-spin 12s infinite linear;
}

.face {
    position: absolute;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(135deg, #1a1a1a, #202020);
    border: 1px solid #2d2d2d;
    border-radius: 12px;
    box-shadow: 0 0 22px rgba(0,0,0,0.45);
}

.face img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(180,192,201,0.35));
}

/* Positionen */
.front  { transform: rotateY(  0deg) translateZ(90px); }
.back   { transform: rotateY(180deg) translateZ(90px); }
.left   { transform: rotateY(-90deg) translateZ(90px); }
.right  { transform: rotateY( 90deg) translateZ(90px); }
.top    { transform: rotateX( 90deg) translateZ(90px); }
.bottom { transform: rotateX(-90deg) translateZ(90px); }

/* Animation */
@keyframes cube-spin {
    from { transform: rotateX(0deg) rotateY(0deg); }
    to   { transform: rotateX(360deg) rotateY(360deg); }
}

/* MOBILE RESPONSIVE */
@media (max-width: 600px) {
    .cube-container {
        width: 120px;
        height: 120px;
        margin: 20px auto;
        margin-top: 10px;
        margin-bottom: 80px
    }

    .face {
        width: 120px;
        height: 120px;
    }

    .front  { transform: rotateY(  0deg) translateZ(60px); }
    .back   { transform: rotateY(180deg) translateZ(60px); }
    .left   { transform: rotateY(-90deg) translateZ(60px); }
    .right  { transform: rotateY( 90deg) translateZ(60px); }
    .top    { transform: rotateX( 90deg) translateZ(60px); }
    .bottom { transform: rotateX(-90deg) translateZ(60px); }
}
/* FIX: Cube Logo sichtbar machen */
.cube .face img {
    all: unset;                /* entfernt ALLE globalen img-Regeln */
    display: block;
    width: 70%;
    height: 70%;
    object-fit: contain;
    margin: 0 auto;
    filter: drop-shadow(0 0 12px rgba(255,255,255,0.85));
}