:root {
  --sea-deep: #040d1f;
  --sea-mid: #0b2d5f;
  --foam: #dbe6f7;
  --sand: #f1dec6;
  --sand-soft: #f8eddc;
  --ink: #10233a;
  --rope: #b59d7d;
  --card: rgba(247, 236, 220, 0.58);
  --card-border: rgba(12, 36, 68, 0.24);
}

* {
  box-sizing: border-box;
}

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

body {
  color: var(--ink);
  font-family: "EB Garamond", Georgia, serif;
  background-color: var(--sea-deep);
}

/* Coming-soon sticker */
.coming-soon-sticker {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-6deg);
  z-index: 9999;
  background: var(--sea-deep);
  border: 4px solid var(--rope);
  border-radius: 8px;
  padding: 2rem 2.8rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.65), inset 0 0 0 2px rgba(181,157,125,0.25);
  pointer-events: none;
}
.cs-rune {
  font-size: 2.4rem;
  display: block;
}
.cs-title {
  font-family: 'Pirata One', serif;
  font-size: 2.8rem;
  color: var(--rope);
  letter-spacing: 0.08em;
  line-height: 1;
}
.cs-sub {
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  color: var(--foam);
  opacity: 0.85;
  line-height: 1.5;
}

/* Blur the page behind the sticker */
.page-wrap > header,
.page-wrap > .header-wave,
.page-wrap > main,
.page-wrap > footer {
  filter: blur(3px);
  pointer-events: none;
  user-select: none;
}

/* Preview mode: remove blur and hide sticker */
html.preview-mode .page-wrap > header,
html.preview-mode .page-wrap > .header-wave,
html.preview-mode .page-wrap > main,
html.preview-mode .page-wrap > footer {
  filter: none;
  pointer-events: auto;
  user-select: auto;
}
html.preview-mode .coming-soon-sticker {
  display: none;
}

.page-wrap {
  max-width: 780px;
  margin: 0 auto;
  background-color: var(--sand);
  background-image: url("/static/img/sand-texture.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  min-height: 100vh;
  overflow: hidden;
}

body::before {
  content: none;
}

body::after {
  content: none;
}

.hero {
  position: sticky;
  top: 0;
  height: 290px;
  display: grid;
  align-items: end;
  justify-items: center;
  text-align: center;
  padding: 0.25rem 1rem 0.35rem;
  background-color: var(--sea-deep);
  background-image: url("/static/img/Header_IMG_4186.jpg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center center;
  border-bottom: 1px solid rgba(180, 205, 236, 0.18);
  overflow: hidden;
  z-index: 30;
}

.hero::after {
  content: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1000px, 100%);
  height: 100%;
  padding-bottom: 0;
}

h1,
h2,
h3 {
  font-family: "Pirata One", "Cinzel", "Times New Roman", serif;
  letter-spacing: 0.04em;
  margin-top: 0;
}

.section-nav {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  padding: 0.55rem 1rem;
  background: transparent;
}

.section-nav a {
  color: #d8e8f5;
  text-decoration: none;
  border: 1px solid rgba(180, 210, 240, 0.35);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.9rem;
  background: var(--sea-deep);
  transition: transform 160ms ease, filter 160ms ease;
}

.section-nav a:hover {
  transform: translateY(-1px);
  filter: brightness(1.3);
}

.header-wave {
  position: sticky;
  top: 290px;
  height: 72px;
  background-image: url("/static/img/wave-transition-wide.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  z-index: 29;
  pointer-events: none;
}

main {
  width: calc(100% - 3.3rem);
  margin: 1rem auto 4rem;
  display: grid;
  gap: 1.1rem;
}

.content-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  backdrop-filter: blur(2px);
  padding: 1.2rem;
  box-shadow: 0 14px 28px rgba(13, 35, 67, 0.14);
}

.rope-divider {
  width: 100%;
  aspect-ratio: 1493 / 160;
  background-image: url("/static/img/divider.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.grid {
  display: grid;
  gap: 0.9rem;
}

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

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

.note {
  border: 1px solid rgba(17, 34, 56, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.3);
  padding: 0.9rem;
}

.voting-intro {
  margin-bottom: 0.9rem;
}

.rune-hint {
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 0;
}

.vote-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vote-card {
  border: 1px solid rgba(17, 34, 56, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.45);
  padding: 0.85rem;
  display: grid;
  gap: 0.35rem;
  box-shadow: 0 8px 16px rgba(7, 25, 49, 0.16);
}

.vote-card h3 {
  margin-bottom: 0;
}

.vote-card p {
  margin: 0;
}

.vote-status {
  font-weight: 700;
}

.vote-card.is-open {
  border-color: rgba(32, 118, 55, 0.48);
  background: linear-gradient(145deg, rgba(214, 246, 220, 0.9), rgba(190, 235, 200, 0.88));
}

.vote-card.is-open .vote-status {
  color: #14612e;
}

.vote-card button[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

.vote-feedback {
  min-height: 1.2rem;
  margin-top: 0.8rem;
  margin-bottom: 0;
  font-weight: 700;
}

.drink-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.drink-card {
  display: grid;
  grid-template-columns: 55px 1fr;
  gap: 0.85rem;
  border: 1px solid rgba(17, 34, 56, 0.19);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.3);
  padding: 0.8rem;
  align-items: center;
}

.drink-image {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 6px 16px rgba(5, 18, 39, 0.3);
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  width: min(920px, calc(100% - 2rem));
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: rgba(4, 13, 31, 0.94);
  color: #e8f2ff;
  border: 1px solid rgba(188, 206, 228, 0.35);
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  padding: 0.9rem 1rem;
  z-index: 100;
}

.cookie-banner p {
  margin: 0;
}

.cookie-banner button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.cookie-banner.is-hidden {
  display: none;
}

.price {
  margin-bottom: 0;
  font-weight: 700;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.event-card {
  border: 1px solid rgba(17, 34, 56, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.32);
  overflow: hidden;
}

.event-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.event-card h3,
.event-card p,
.event-card a {
  margin-left: 0.8rem;
  margin-right: 0.8rem;
}

.event-card a {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: #0f3f75;
  font-weight: 700;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.team-card {
  border: 1px solid rgba(17, 34, 56, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
}

.team-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.team-card h3,
.team-card p {
  margin-left: 0.8rem;
  margin-right: 0.8rem;
}

.contact-form {
  display: grid;
  gap: 0.45rem;
}

#kontakt a {
  color: #0f3f75;
  font-weight: 700;
}

.meta-symbol {
  display: inline-block;
  width: 1.35rem;
}

#kontakt .grid.two > div p {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}

.impressum-accordion {
  margin-top: 1rem;
  border: 1px solid rgba(12, 36, 68, 0.25);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
}

.impressum-accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 0.8rem 0.9rem;
  font-family: "Pirata One", "Cinzel", "Times New Roman", serif;
  letter-spacing: 0.03em;
  background: rgba(11, 45, 95, 0.15);
}

.impressum-accordion summary::-webkit-details-marker {
  display: none;
}

.impressum-accordion summary::after {
  content: " +";
  font-weight: 700;
}

.impressum-accordion[open] summary::after {
  content: " -";
}

.impressum-body {
  padding: 0.9rem;
}

.impressum-body h3 {
  margin-bottom: 0.3rem;
}

.impressum-body p {
  margin-top: 0;
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  border: 1px solid rgba(15, 40, 72, 0.32);
  border-radius: 8px;
  padding: 0.6rem;
  background: rgba(255, 255, 255, 0.72);
}

button {
  border: 0;
  border-radius: 999px;
  padding: 0.6rem 1rem;
  background: linear-gradient(120deg, #12396a, #1d5b9b);
  color: #f5fbff;
  cursor: pointer;
}

footer {
  text-align: center;
  padding: 1.2rem 1rem 2rem;
  color: #102f52;
}

.footer-rope {
  width: 100%;
  aspect-ratio: 1493 / 160;
  background-image: url("/static/img/divider.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  margin-bottom: 0.95rem;
}

@media (max-width: 850px) {
  .grid.two,
  .grid.three,
  .drink-grid,
  .event-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    height: 210px;
  }

  main {
    width: calc(100% - 1.6rem);
  }

  .section-nav a {
    font-size: 0.76rem;
    padding: 0.28rem 0.58rem;
  }

  .header-wave {
    top: 210px;
    height: 62px;
  }

  .rope-divider {
    height: 32px;
  }

  .footer-rope {
    height: 32px;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}
