:root {
    --bg: #0b1026;
    --accent1: #22d3ee;   /* Türkis */
    --accent2: #a78bfa;   /* Lila */
    --accent3: #fde047;   /* Gelb */
    --card: #161b3a;
    --text: #f8fafc;
}

body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: var(--text);
    min-height: 100vh;

    background-color: #343b50;

    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("nebel.jpg");
    background-size: cover;
    background-position: center;
    opacity: 0.35;
    pointer-events: none;
    z-index: -1;
}

.top-right-logo {
  position: absolute; /* Löst das Bild aus dem normalen Textfluss */
  top: 50px;          /* Abstand von oben */
  right: 50px;        /* Abstand von rechts */
  width: 250px;       /* Deine gewünschte Breite */
  height: auto;       /* Behält das Seitenverhältnis bei */
  opacity: 0.6;
  z-index: 1000;      /* Sorgt dafür, dass es über anderen Inhalten liegt */
}

@media screen and (max-width: 768px) {
  /* Hier die Klasse oder das Element deines Logos ansprechen */
  .top-right-logo { 
    max-width: 100px; /* Hier den Wert anpassen, bis es passt */
    height: auto;     /* Damit die Proportionen erhalten bleiben */
    margin-right: 10px; /* Optional: Etwas Abstand zum Rand */
  }
}

header {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 10px;
    background: linear-gradient(90deg, var(--accent1), var(--accent2), var(--accent3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    font-size: 1.2rem;
    opacity: 0.95;
}

section {
    max-width: 1100px;
    margin: auto;
    padding: 70px 20px;
}

h2 {
    color: var(--accent1);
    margin-bottom: 25px;
    font-size: 2rem;
}

.cards {
    display: grid;
    align-items: flex-start; /* WICHTIG: Verhindert, dass alle Karten gleich hoch werden */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.card {
    position: relative;
    background: var(--card);
    padding: 25px;
    border-radius: 16px;
    border: 2px solid transparent;
    transition: z-index 0.3s;
    z-index: 1;
    height: auto;
}

/* Grundzustand der Beispiele: Unsichtbar und ohne Höhe */
.card-examples {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.1s ease, opacity 0.3s ease;
}

/* Hover-Effekt */
@media (hover: hover) {
  .card:hover {
    z-index: 10; /* Karte liegt über dem nachfolgenden Content */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    /* Falls die Karte optisch wachsen soll, ohne die Zeile zu sprengen: */
    position: relative; 
  }

  .card:hover .card-examples {
    max-height: 500px; /* Genug Platz für die Beispiele */
    opacity: 1;
    margin-top: 15px;
  }
}

/* Mobil-Klasse (wird per JS gesteuert) */
.card.is-active {
  z-index: 10;
}
.card.is-active .card-examples {
  max-height: 500px;
  opacity: 1;
  margin-top: 15px;
}

.card:hover {
    border-color: var(--accent2);
    transform: translateY(-6px);
}

.calendar {
    background: var(--card);
    border-radius: 16px;
    padding: 25px;
}

.event {
    border-left: 5px solid var(--accent3);
    padding-left: 15px;
    margin-bottom: 18px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.img-box {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 200px;
}

.gallery img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 14px;
    cursor: pointer;
    transition: 0.3s;
}

.img-box img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(34,211,238,0.5);
}

#lightboxOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#lightboxOverlay img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
}

#lightboxText {
    color: white;
    margin-top: 15px;
    font-size: 18px;
    text-align: center;
    max-width: 80%;
}

.lightbox-bild {
    cursor: pointer;
    transition: transform 0.2s;
}

.lightbox-bild:hover {
    transform: scale(1.05);
}

a.button {
    display: inline-block;
    margin-top: 25px;
    padding: 14px 26px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
    color: #020617;
    text-decoration: none;
    font-weight: bold;
}
a.link { 
	text-decoration: none;
	color: #ff0000; 
}
a.link:hover { 
	text-decoration: underline;
}

footer {
    text-align: center;
    padding: 35px 10px;
    opacity: 0.7;
    font-size: 0.9rem;
}

