/* ==========================================================================
   1. FC Hoffnungsvoll – Mitgliederbereich
   Shared stylesheet
   ========================================================================== */

@font-face {
  font-family: 'Akira Expanded';
  src: url('../fonts/AkiraExpanded-SuperBold.woff') format('woff');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/PlusJakartaSans-Variable.woff') format('woff');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #1e5b3a;
  --green-dark: #123724;
  --cream: #f7f2e8;
  --bordeaux: #7d2340;
  --ink: #171717;
  --rose: #f2b8c6;

  --header-height: 80px;
  --max-content: 1200px;
}

* {
  box-sizing: border-box;
}

/* Das hidden-Attribut gewinnt immer (sonst überschreiben display-Regeln es). */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3 {
  overflow-wrap: anywhere;
  hyphens: manual;
  font-family: 'Akira Expanded', 'Plus Jakarta Sans', sans-serif;
  font-weight: 400;
  margin: 0;
}

.eyebrow {
  font-weight: 600;
  font-size: 14px;
  color: var(--bordeaux);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ----------------------------- Layout helpers ---------------------------- */

.wrap {
  max-width: var(--max-content);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.page-intro {
  padding-top: 56px;
  padding-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-intro h1 {
  font-size: 44px;
  color: var(--ink);
}

.page-intro p {
  margin: 0;
  font-size: 16px;
  color: #555;
  max-width: 640px;
  line-height: 1.5;
}

main {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Ohne das schrumpfen zentrierte Blöcke in der Flex-Spalte auf ihre Inhaltsbreite
   und die Überschriften sitzen auf jeder Seite an einer anderen Stelle. */
main > .wrap {
  width: 100%;
}

/* --------------------------------- Header -------------------------------- */

.site-header {
  background: var(--green);
  height: var(--header-height);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  height: 50px;
  width: 50px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand-text .name {
  font-family: 'Akira Expanded', 'Plus Jakarta Sans', sans-serif;
  font-weight: 400;
  font-size: 20px;
  color: var(--cream);
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-text .sub {
  font-size: 12px;
  color: #bfd8c9;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 26px;
}

.site-nav a {
  text-decoration: none;
  color: var(--cream);
  font-weight: 600;
  font-size: 15px;
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-bottom: 2px solid var(--rose);
}

.site-nav a[aria-current="page"] {
  border-bottom: 2px solid var(--rose);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------- Buttons -------------------------------- */

.btn {
  display: inline-block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: var(--bordeaux);
  color: var(--cream);
}

.btn:hover {
  filter: brightness(1.08);
}

.btn-rose {
  background: var(--rose);
  color: var(--green-dark);
}

.btn[disabled],
.btn[aria-disabled="true"] {
  background: #5a4c3d;
  color: #b8ac98;
  cursor: not-allowed;
}

/* ---------------------------------- Hero ---------------------------------- */

.hero {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  flex-shrink: 0;
}

.hero img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(18, 55, 36, 0.94) 0%, rgba(18, 55, 36, 0.55) 45%, rgba(18, 55, 36, 0.12) 75%);
}

.hero-content {
  position: relative;
  min-height: 420px;
  box-sizing: border-box;
  padding-top: 48px;
  padding-bottom: 56px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 20px;
}

.hero-content .eyebrow {
  color: var(--rose);
}

.hero-content h1 {
  font-size: 60px;
  line-height: 1.02;
  color: var(--cream);
  max-width: 820px;
}

.hero-content p {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  color: #eaf3ed;
  max-width: 560px;
}

.leo-divider {
  width: 100%;
  height: 56px;
  object-fit: cover;
  display: block;
}

/* ------------------------------ Quick access grid -------------------------- */

.quick-grid-section {
  padding-top: 64px;
  padding-bottom: 64px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.quick-card {
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #e3dccb;
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quick-card .eyebrow { font-size: 12px; letter-spacing: 1px; }
.quick-card .title { font-family: 'Akira Expanded', 'Plus Jakarta Sans', sans-serif; font-weight: 400; font-size: 22px; }
.quick-card .desc { font-size: 14px; color: #555; line-height: 1.5; }
.quick-card .cta { margin-top: 8px; font-weight: 700; font-size: 14px; color: var(--green); }

.quick-card.soon {
  background: #f0ecdf;
  border: 1px dashed #c9c0a6;
}
.quick-card.soon .eyebrow,
.quick-card.soon .title,
.quick-card.soon .desc,
.quick-card.soon .cta { color: #8a8370; }

.quick-card.highlight {
  background: var(--bordeaux);
  justify-content: center;
}
.quick-card.highlight .title { color: var(--cream); }
.quick-card.highlight .desc { color: var(--rose); }

/* --------------------------------- Spotify -------------------------------- */

.spotify-section {
  padding-top: 8px;
  padding-bottom: 72px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-grow: 1;
}

.spotify-box {
  background: var(--green);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 32px;
  color: var(--cream);
}

.presave-cover {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}

.presave-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.spotify-box p {
  margin: 0;
  max-width: 520px;
  font-size: 16px;
  line-height: 1.6;
  color: #dcebe1;
}

.spotify-box iframe {
  width: 100%;
  height: 352px;
  border: 0;
  border-radius: 12px;
}

.spotify-box.loaded {
  padding: 0;
  background: transparent;
  display: block;
}

/* --------------------------------- Footer --------------------------------- */

.site-footer {
  background: var(--green);
  padding: 20px 0;
  flex-shrink: 0;
}

.site-footer .top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer .top-row span {
  font-size: 13px;
  color: #bfd8c9;
}

.footer-links {
  display: flex;
  gap: 24px;
  border-top: 1px solid rgba(191, 216, 201, 0.25);
  padding-top: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 12px;
  color: #9fc4ae;
  text-decoration: none;
}
.footer-links a:hover { color: var(--cream); }

/* ---------------------------------- Forms ---------------------------------- */

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #4a4a4a;
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid #d8d0bc;
  background: #fcfbf7;
  color: var(--ink);
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}

.field-dark label { color: #dcebe1; }

.form-status {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}
.form-status.success { color: var(--green); }
.form-status.success.on-dark { color: var(--rose); }
.form-status[hidden] { display: none; }

/* ------------------------------- Contest cards ------------------------------ */

.contest-card {
  background: #fff;
  border: 1px solid #e3dccb;
  border-radius: 20px;
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contest-card.has-media {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: row;
}

.contest-card.has-media .vip-media {
  width: 320px;
  flex-shrink: 0;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contest-card.has-media .vip-media {
  position: relative;
}

.contest-card.has-media.poster .vip-media {
  width: 440px;
  min-height: 440px;
}

.contest-card.has-media.poster .vip-media img {
  object-position: 50% 0;
}

.contest-card.has-media .vip-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.contest-card.has-media .vip-body { min-width: 0; }

.contest-card.has-media .vip-media span {
  font-size: 14px;
  color: var(--cream);
  text-align: center;
  padding: 24px;
}

.contest-card.has-media .vip-body {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
}

.contest-card.dark {
  background: var(--green);
  color: var(--cream);
}
.contest-card.dark h2 { color: var(--cream); }
.contest-card.dark .eyebrow { color: var(--rose); }
.contest-card.dark p { color: #dcebe1; }

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 480px;
  margin-top: 8px;
}
.field-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 640px;
}

.prize-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.prize-item {
  background: var(--cream);
  border: 1px solid #e3dccb;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.prize-item span:first-child { font-weight: 700; font-size: 15px; }
.prize-item span:last-child { font-size: 13px; color: #666; }

.gewinnen-list {
  padding-top: 32px;
  padding-bottom: 64px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

form[data-contest-form] {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* --------------------------------- Gallery --------------------------------- */

.gallery-grid {
  padding-top: 8px;
  padding-bottom: 64px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  flex-grow: 1;
}

.gallery-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.gallery-photo {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: #e3dccb;
}

.gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover .gallery-photo img { transform: scale(1.04); }

.gallery-item:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
  border-radius: 14px;
}

.gallery-caption {
  font-size: 13px;
  color: #555;
}

.gallery-item:hover .gallery-caption { color: var(--ink); }

/* --------------------------------- Album page ------------------------------ */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  font-weight: 600;
  font-size: 15px;
  color: var(--green);
  text-decoration: none;
  margin-bottom: 8px;
}

.back-link:hover { text-decoration: underline; }

.album-grid {
  padding-top: 8px;
  padding-bottom: 64px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  align-content: start;
  flex-grow: 1;
}

.album-thumb {
  aspect-ratio: 4 / 3;
  padding: 0;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
  background: #e3dccb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
}

.album-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.album-thumb:hover img { transform: scale(1.05); }

.album-thumb:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

/* -------------------------------- Lightbox --------------------------------- */

body.lb-open { overflow: hidden; }

dialog.lightbox {
  border: none;
  padding: 0;
  margin: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  background: #080e0a;
  color: var(--cream);
}

dialog.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

dialog.lightbox::backdrop { background: transparent; }

.lb-stage {
  flex: 1;
  height: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 0;
  box-sizing: border-box;
}

.lb-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}

.lb-img[hidden], .lb-placeholder[hidden] { display: none; }

.lb-placeholder {
  width: min(100%, 900px);
  aspect-ratio: 4 / 3;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 18px;
  color: var(--cream);
}

.lb-btn {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  margin: 0 16px;
  border: none;
  border-radius: 50%;
  background: rgba(247, 242, 232, 0.12);
  color: var(--cream);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 4px;
}

.lb-btn:hover { background: rgba(247, 242, 232, 0.25); }
.lb-btn:focus-visible { outline: 3px solid var(--rose); outline-offset: 2px; }

.lb-close {
  position: absolute;
  top: 16px;
  right: 8px;
  z-index: 2;
  font-size: 32px;
}

.lb-counter {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  font-size: 14px;
  color: #dcebe1;
  pointer-events: none;
}

@media (max-width: 700px) {
  .lb-btn { width: 44px; height: 44px; margin: 0 6px; font-size: 28px; }
  .lb-stage { padding: 56px 0 48px; }
  .album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}

/* ---------------------------------- Demos ---------------------------------- */

.demo-list {
  padding-top: 16px;
  padding-bottom: 64px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
}

.demo-row {
  background: #fff;
  border: 1px solid #e3dccb;
  border-radius: 14px;
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.demo-top {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.playbtn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-grow: 1;
  height: 28px;
  min-width: 120px;
}

.waveform div {
  width: 3px;
  background: #d8d0bc;
  border-radius: 2px;
}

.demo-title {
  font-weight: 700;
  font-size: 15px;
  min-width: 140px;
}

.demo-duration {
  font-size: 13px;
  color: #888;
  min-width: 40px;
}

.demo-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--bordeaux);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 0;
  flex-wrap: wrap;
}

.rating-row .label {
  font-size: 13px;
  color: #888;
}

.stars {
  display: flex;
  gap: 4px;
}

.stars button {
  background: none;
  border: none;
  padding: 2px;
  margin: 0;
  cursor: pointer;
  display: flex;
}

.stars svg path {
  fill: #d8d0bc;
}

.stars button.filled svg path {
  fill: var(--bordeaux);
}

.demo-note {
  background: #f0ecdf;
  border: 1px dashed #c9c0a6;
  border-radius: 14px;
  padding: 20px 28px;
  color: #8a8370;
  font-size: 14px;
}

/* --------------------------------- Videos ---------------------------------- */

.video-grid {
  padding-top: 16px;
  padding-bottom: 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.video-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.video-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 100%;
}

.video-thumb.farbe-gruen { background: var(--green); }
.video-thumb.farbe-bordeaux { background: var(--bordeaux); }
.video-thumb { overflow: hidden; text-decoration: none; }
.video-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-thumb .playoverlay { position: relative; }
.video-thumb:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
.video-thumb.bald { cursor: default; }
.video-bald {
  position: relative;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(18, 55, 36, 0.55);
  padding: 8px 14px;
  border-radius: 999px;
}

.playoverlay {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(247, 242, 232, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-card h3 {
  font-size: 20px;
}

.video-card p {
  margin: 6px 0 0;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

/* ------------------------------ Simple pages -------------------------------- */

.simple-page {
  padding-top: 56px;
  padding-bottom: 96px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.simple-page h1 {
  font-size: 44px;
  color: var(--ink);
}

.simple-page p {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: #444;
  max-width: 720px;
}

/* ---------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */

@media (max-width: 1120px) {
  .site-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--green);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
    display: none;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(191, 216, 201, 0.15);
  }

  .site-nav a[aria-current="page"],
  .site-nav a:hover {
    border-bottom: 1px solid rgba(191, 216, 201, 0.15);
    color: var(--rose);
  }

  .nav-toggle {
    display: block;
  }
}

@media (max-width: 1200px) {
  .contest-card.has-media { flex-direction: column; }
  .contest-card.has-media .vip-media,
  .contest-card.has-media.poster .vip-media { width: 100%; max-width: 480px; min-height: 0; height: auto; aspect-ratio: 1 / 1; align-self: auto; }
}

@media (max-width: 860px) {
  .spotify-box { flex-direction: column; align-items: flex-start; }
  .presave-cover { width: 100%; max-width: 280px; height: auto; aspect-ratio: 1; }
  .hero-content h1 { font-size: 38px; }
  .hero-content p { font-size: 16px; }
  .hero, .hero-content { min-height: 360px; }

  .quick-grid { grid-template-columns: 1fr; }


  .field-grid,
  .field-grid.cols-3 { grid-template-columns: 1fr; }

  .prize-grid { grid-template-columns: 1fr; }

  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .video-grid { grid-template-columns: 1fr; }

  .demo-title { min-width: 100px; }
  .waveform { display: none; }
}

@media (max-width: 520px) {
  .contest-card h2 { font-size: 20px; }
  .quick-card .title { font-size: 18px; }
  .video-card h3 { font-size: 17px; }
  .brand-text .name { font-size: 13px; letter-spacing: 0; }
  .brand-text .sub { font-size: 11px; }
  .brand img { height: 42px; width: 42px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .page-intro h1,
  .simple-page h1 { font-size: 26px; }
  .hero-content h1 { font-size: 26px; }
}

/* ============================== Login-Tor (zugang.js) ============================== */

/* Solange die Karte geprüft wird oder kein Zugang besteht, bleibt der Inhalt verborgen. */
html.tor-pruefen main,
html.tor-zu main { display: none; }

.tor {
  flex-grow: 1;
  display: flex;
  align-items: center;
  padding: 72px 0 96px;
}

.tor-inner {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.tor-icon {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--green);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.tor-icon.pruefen { animation: tor-puls 1.4s ease-in-out infinite; }

@keyframes tor-puls {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.92); opacity: 0.75; }
}

@media (prefers-reduced-motion: reduce) {
  .tor-icon.pruefen { animation: none; }
}

.tor h1 { font-size: 34px; color: var(--ink); }

.tor p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: #555;
  max-width: 480px;
}

.tor .tor-warten { font-size: 14px; color: #777; }
.tor .btn { margin-top: 10px; }

.tor-noscript {
  margin: 48px auto;
  max-width: 560px;
  padding: 0 24px;
  text-align: center;
  font-weight: 600;
}

/* =========================== Status & Meldungen =========================== */

.form-hinweis {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #777;
  max-width: 640px;
}
.form-hinweis a { color: inherit; }
.form-hinweis.on-dark { color: #b9cfc1; }

.contest-dabei {
  margin: 8px 0 0;
  width: fit-content;
  padding: 12px 18px;
  border-radius: 10px;
  background: #e4efe7;
  color: var(--green);
  font-weight: 700;
  font-size: 15px;
}
.contest-dabei::before { content: "✓  "; }

.lade-fehler {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0 32px;
}
.lade-fehler p { margin: 0; font-weight: 600; }

.gallery-grid[aria-busy="true"],
.video-grid[aria-busy="true"] { min-height: 240px; }

/* --------------------------------- Demos ---------------------------------- */

.playbtn[disabled] { background: #b8ac98; cursor: not-allowed; }
.demo-row.laedt .playbtn { opacity: 0.7; }
.demo-row.spielt .waveform div { background: var(--green); }
.stars button[disabled] { cursor: wait; }

.demo-meldung {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--bordeaux);
}
.demo-meldung[hidden] { display: none; }

@media (max-width: 520px) {
  .tor { padding: 48px 0 72px; }
  .tor h1 { font-size: 24px; }
  .tor-icon { width: 80px; height: 80px; }
}

/* Fotografen-Nennung auf der Album-Seite */
.page-intro .album-fotograf {
  font-size: 13px;
  color: #777;
  margin-top: -4px;
}

/* ============================ Login ohne Karte (7g) ============================ */

.tor-email {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #e3dccb;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.tor .tor-oder { font-size: 14px; color: #777; }

.btn-zweit {
  background: transparent;
  color: var(--green);
  box-shadow: inset 0 0 0 2px var(--green);
}
.btn-zweit:hover { background: rgba(30, 91, 58, 0.06); filter: none; }

.tor-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}
.tor-form .btn { align-self: flex-start; margin-top: 0; }
.tor-form .form-status { color: var(--bordeaux); }

.tor-gesendet {
  width: 100%;
  background: #e4efe7;
  border-radius: 12px;
  padding: 18px 20px;
  text-align: left;
}
.tor .tor-gesendet p { color: var(--green); font-size: 15px; }
.tor .tor-gesendet .tor-gesendet-titel { font-weight: 700; margin-bottom: 6px; }

.footer-links .footer-abmelden {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 12px;
  color: #9fc4ae;
  cursor: pointer;
}
.footer-links .footer-abmelden:hover { color: var(--cream); }

/* Startseite: Die Hervorhebung füllt die zweite Reihe (Gewinnen, Galerie, Demos | Videos, Hervorhebung) */
.quick-card.highlight { grid-column: span 2; }

/* Demos auf dem Handy: immer Knopf | Titel | Länge, langer Titel bricht in seiner Spalte um */
@media (max-width: 860px) {
  .quick-card.highlight { grid-column: auto; }
  .demo-top {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    column-gap: 14px;
    align-items: center;
  }
  .demo-title { min-width: 0; line-height: 1.35; }
  .demo-duration { min-width: 0; }
}

/* Rechtstexte (Impressum, Datenschutz, Teilnahmebedingungen) */
.rechtstext h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  margin: 28px 0 0;
}
.rechtstext h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  margin: 18px 0 0;
}
.rechtstext .rechtstext-unter { font-weight: 600; color: var(--green); }
.rechtstext a { color: var(--green); }
.rechtstext ul {
  margin: 6px 0 0;
  padding-left: 22px;
  max-width: 720px;
  font-size: 15px;
  line-height: 1.6;
  color: #444;
}
.rechtstext li + li { margin-top: 6px; }
.rechtstext-kasten {
  margin-top: 18px;
  padding: 4px 22px 18px;
  max-width: 720px;
  border-left: 4px solid var(--green);
  background: rgba(30, 91, 58, 0.06);
  border-radius: 0 12px 12px 0;
}
.rechtstext-kasten h2 { margin-top: 14px; }
.rechtstext .rechtstext-stand { margin-top: 32px; font-size: 13px; color: #777; }
.rechtstext .kontakt-mail { font-size: 19px; font-weight: 700; overflow-wrap: anywhere; }

