/* Basis-Styles – keine externen Schriften, um Datenschutz zu vereinfachen */
:root {
  --bg: #050816;
  --bg-alt: #0b1020;
  --card-bg: #101727;
  --accent: #f39c12;
  --accent-soft: rgba(243, 156, 18, 0.12);
  --text: #f5f7ff;
  --text-muted: #a7b0d0;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.6);
  --radius-xl: 18px;
  --radius-xxl: 26px;
  --max-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #192a56 0, #050816 55%);
  color: var(--text);
  line-height: 1.6;
}

/* Layout */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(5, 8, 22, 0.96), rgba(5, 8, 22, 0.75));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.logo-icon {
  font-size: 1.3rem;
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.03em;
}

.logo-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.main-nav a:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.02);
}

.hero {
  max-width: var(--max-width);
  margin: 2.5rem auto 2rem;
  padding: 1.75rem 1.25rem 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.75rem;
}

.hero-text h1 {
  font-size: clamp(2.1rem, 3vw, 2.7rem);
  margin: 0 0 0.75rem;
}

.hero-text p {
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 36rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.25rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #f39c12, #f1c40f);
  color: #1b1b1b;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(243, 156, 18, 0.45);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 38px rgba(243, 156, 18, 0.55);
}

.hero-photo {
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.photo-placeholder {
  border-radius: var(--radius-xxl);
  border: 1px dashed rgba(255, 255, 255, 0.25);
  background: radial-gradient(circle at top left, rgba(243, 156, 18, 0.12), rgba(5, 8, 22, 0.9));
  min-height: 220px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  box-shadow: var(--shadow-soft);
}

.photo-placeholder span {
  font-weight: 500;
}

.photo-placeholder small {
  margin-top: 0.35rem;
  font-size: 0.78rem;
}

.photo-placeholder.small {
  min-height: 110px;
  border-radius: var(--radius-xl);
  box-shadow: none;
}

.section {
  padding: 1.5rem 1.25rem;
}

.section-alt {
  background: radial-gradient(circle at top, rgba(243, 156, 18, 0.04), transparent 60%);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.section p {
  font-size: 0.97rem;
  color: var(--text-muted);
}

.two-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: flex-start;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.9rem;
}

.pill-list {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.note {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.9;
}

.table-wrapper {
  margin-top: 1rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  background: rgba(5, 8, 22, 0.8);
  box-shadow: var(--shadow-soft);
}

.dates-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.dates-table th,
.dates-table td {
  padding: 0.6rem 0.8rem;
  text-align: left;
}

.dates-table th {
  background: rgba(255, 255, 255, 0.03);
  font-weight: 500;
}

.dates-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.dates-table tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.media-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 1.5rem;
  align-items: flex-start;
  margin-top: 0.75rem;
}

.video-placeholder {
  border-radius: var(--radius-xl);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: radial-gradient(circle at top left, var(--accent-soft), rgba(5, 8, 22, 0.9));
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-top: 0.75rem;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.code-hint {
  margin-top: 0.75rem;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  padding: 0.7rem;
  overflow: auto;
  font-size: 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.code-hint code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Kontakt */
.contact-section {
  align-items: stretch;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.contact-list a {
  color: var(--accent);
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

.icon {
  width: 1.3rem;
  text-align: center;
}

.card {
  padding: 1rem 1rem 1.1rem;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at top left, rgba(243, 156, 18, 0.12), #050816);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  font-size: 0.9rem;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

/* Footer */
.footer {
  margin-top: 2rem;
  padding: 1.1rem 1.25rem 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--text);
}

/* Impressum/Datenschutz Grundlayout */
.page {
  max-width: 820px;
  margin: 2rem auto;
  padding: 0 1.25rem 3rem;
}

.page h1 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.page h2 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.page p,
.page li {
  font-size: 0.93rem;
  color: var(--text-muted);
}

.page small {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .two-columns,
  .media-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .hero {
    margin-top: 1.75rem;
  }
}

@media (max-width: 480px) {
  .main-nav {
    gap: 0.4rem;
    font-size: 0.8rem;
  }
  .hero-text h1 {
    font-size: 1.8rem;
  }
}


/* Bildanpassung in den Platzhalter-Kästen */
.photo-placeholder {
  position: relative;
  overflow: hidden;
  padding: 0;
  display: block;
}

.photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.photo-placeholder.small {
  min-height: 110px; /* behält ungefähre Höhe wie vorher */
}

/* Lightbox-Styles */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.lightbox.is-visible {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  margin: 0;
  padding: 0;
  z-index: 1;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
  display: block;
}

.lightbox-close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === Fix: Kleine Vorschau-Bilder sollen immer den Kasten füllen === */

/* Kasten-Größe für kleine Thumbnails */
.photo-grid .photo-placeholder.small {
  position: relative;
  width: 100%;
  height: 140px;      /* Höhe der kleinen Kästen – kannst du anpassen (z.B. 120/160) */
  padding: 0;         /* kein Innenabstand, damit das Bild wirklich den ganzen Kasten bekommt */
  overflow: hidden;   /* alles, was übersteht, wird abgeschnitten */
}

/* Bild im Kasten: skaliert & zugeschnitten */
.photo-grid .photo-placeholder.small img {
  width: 100%;
  height: 100%;
  object-fit: cover;  /* wichtig: füllt den Rahmen, ggf. beschnitten */
  display: block;
  border-radius: inherit;
}