@font-face {
  font-family: 'Orbitron';
  src: url('../Orbitron/Orbitron-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --card-bg: #5b9fd4;
  --acc-bg: #4a8ec4;
  --teal: #1b5c9e;
  --text-main: #0f3d70;
  --text-muted: rgba(15, 61, 112, 0.65);
  --border: rgba(15, 61, 112, 0.2);
  --font-arcade: 'Orbitron', 'Rockwell Extra Bold', Georgia, serif;
}

html { scroll-behavior: smooth; }

.site-logo {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 52px;
  height: auto;
  z-index: 10;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.4));
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

body {
  font-family: var(--font-arcade);
  background: url('../img/Himmel2.jpg') center / cover fixed;
  color: var(--text-main);
  overflow-x: hidden;
  min-height: 100dvh;
}

/* ── SPLIT LAYOUT ── */
.layout {
  display: flex;
  min-height: 100dvh;
  align-items: stretch;
  padding: 16px 16px 16px 16px;
  gap: 16px;
}

.content-col {
  flex: 1;
  min-width: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: transparent;
}

.content-col > * { position: relative; z-index: 1; }

/* Right: sticky photo column */
.photo-col {
  width: 55%;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow: hidden;
  padding: 12px 12px 12px 6px;
  background: transparent;
}

.photo-col > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 18px;
  border: 3px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 12px 40px rgba(27, 92, 158, 0.15), 0 4px 12px rgba(27, 92, 158, 0.10);
  opacity: 0.82;
  animation: cardShimmer 6s ease-in-out infinite;
  animation-delay: 1s;
  transform-style: preserve-3d;
  transition: transform 0.08s ease-out;
}


/* ── SLIDE-IN ANIMATION ── */
@keyframes cardShimmer {
  0%, 100% {
    box-shadow:
      0 12px 40px rgba(27, 92, 158, 0.15),
      0 4px 12px rgba(27, 92, 158, 0.10),
      inset 0 1px 0 rgba(255,255,255,0.9),
      inset 0 -1px 0 rgba(27, 92, 158, 0.08);
    border-color: rgba(255,255,255,0.75);
  }
  50% {
    box-shadow:
      0 16px 50px rgba(27, 92, 220, 0.28),
      0 4px 16px rgba(27, 92, 220, 0.18),
      inset 0 1px 0 rgba(255,255,255,1),
      inset 0 -1px 0 rgba(27, 92, 220, 0.15),
      0 0 30px rgba(180, 210, 255, 0.25);
    border-color: rgba(255,255,255,1);
  }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(50px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-anim {
  opacity: 0;
  animation: slideUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-title-img.hero-anim { animation-delay: 0.15s; }
.hero-socials.hero-anim   { animation-delay: 0.45s; }

/* ── PHOTO OVERLAY (Titel + Socials über dem Foto) ── */
.photo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 2rem 1.2rem 2.2rem;
  gap: 0.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 50%);
  border-radius: 18px;
}

.hero-logo {
  display: none;
}

.hero-title-link {
  display: block;
  width: 100%;
  cursor: pointer;
}

/* Centered title on photo (mouth height) */
.hero-title-centered {
  position: absolute;
  top: calc(50% + 100px);
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: 80%;
  max-width: 624px;
  display: block;
  cursor: pointer;
}

.hero-title-centered-img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 2417 / 166;
  filter: drop-shadow(0 0 12px rgba(255,255,255,0.5)) drop-shadow(0 0 24px rgba(100,180,255,0.3));
}

.hero-title-img {
  width: 100%;
  display: block;
  height: auto;
}

.hero-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  align-items: center;
  margin-top: auto;
}

.hero-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  opacity: 0.92;
  transition: opacity 0.2s, transform 0.2s;
}

.hero-socials a:hover { opacity: 1; transform: scale(1.1); }

.hero-socials a img,
.hero-socials a svg {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
}

/* ── CARDS WRAPPER ── */
.cards-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 12px 14px 20px;
  transition: gap 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.cards-wrapper.flunky-expanded { gap: 0; }

/* ── SINGLE CARD ── */
@keyframes cardGlow {
  0%, 100% { box-shadow: none; }
  50%       { box-shadow: none; }
}

.page-card {
  flex: 1;
  min-width: 0;
  border-radius: 22px;
  overflow: clip;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px) saturate(1.6) brightness(1.05);
  -webkit-backdrop-filter: blur(20px) saturate(1.6) brightness(1.05);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow:
    0 12px 40px rgba(27, 92, 158, 0.15),
    0 4px 12px rgba(27, 92, 158, 0.10),
    inset 0 1px 0 rgba(255,255,255,0.9),
    inset 0 -1px 0 rgba(27, 92, 158, 0.08);
  animation: cardShimmer 6s ease-in-out infinite;
  display: flex;
  flex-direction: column;
  animation: cardGlow 5s ease-in-out infinite;
  transition: translate 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              flex-grow 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              flex-basis 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s ease;
}


/* Video-Quader wird nach unten rausgeschoben wenn Flunky offen */
.cards-wrapper.flunky-expanded .page-card--videos {
  max-height: 0 !important;
  opacity: 0;
  translate: 0 60px;
  pointer-events: none;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

/* ── ACCORDION ── */
.accordion { background: transparent; flex: 1; }

.acc-item { border-top: 1px solid var(--border); }
.acc-item:first-child { border-top: none; }

.acc-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.4rem;
  background: rgba(220, 238, 255, 0.45);
  border: none;
  color: var(--text-main);
  font-family: var(--font-arcade);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
  letter-spacing: 0.04em;
}

.acc-header:active { background: #a8bebb; }

.acc-header--shop {
  background: transparent;
  cursor: default !important;
}

.acc-arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--teal);
}

.acc-arrow.open { transform: rotate(180deg); }

.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  background: transparent;
}

.acc-body.open { max-height: 1400px; }

.acc-content {
  padding: 1.3rem;
  position: relative;
}

.acc-content--shop {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  padding: 1.2rem 1rem;
  flex-wrap: wrap;
}

/* ── FLUNKY HEADING ── */
.flunky-heading {
  font-family: var(--font-arcade);
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--teal);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.5rem 0 1.1rem;
  line-height: 1.6;
}

/* ── CLOSE BUTTON ── */
.close-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1.2rem;
  padding: 0.6rem 1.3rem;
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
  border-radius: 99px;
  font-family: var(--font-arcade);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
  letter-spacing: 0.05em;
}

.close-btn svg { width: 14px; height: 14px; }
.close-btn:hover { background: var(--teal); color: #fff; }
.close-btn:active { transform: scale(0.96); }

/* ── BACK BUTTON ── */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1.2rem;
  padding: 0.6rem 1.3rem;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 99px;
  font-family: var(--font-arcade);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s;
  -webkit-tap-highlight-color: transparent;
  letter-spacing: 0.05em;
}

.back-btn svg { width: 14px; height: 14px; }
.back-btn:active { transform: scale(0.96); }

/* ── FLUNKY RULES ── */
.rules {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.rule-block {
  border-left: 3px solid var(--teal);
  padding: 0.85rem 0.9rem;
  background: transparent;
  transition: background 0.2s;
}

.rule-block:nth-child(odd)  { background: rgba(2, 94, 85, 0.06); }
.rule-block:nth-child(even) { background: rgba(2, 94, 85, 0.02); }

.rule-block:first-child { border-radius: 6px 6px 0 0; }
.rule-block:last-child  { border-radius: 0 0 6px 6px; }

.rule-block:not(:last-child) {
  border-bottom: 1px solid rgba(2, 94, 85, 0.12);
}

.rule-title {
  font-family: var(--font-arcade);
  font-size: 0.82rem;
  font-weight: 900;
  color: var(--teal);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rule-title::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.55;
  flex-shrink: 0;
}

.rule-block p,
.rule-block ul,
.rule-block ol,
.rule-block li {
  font-family: var(--font-arcade);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.85;
  letter-spacing: 0.01em;
  color: #012f2b;
}

.rule-block ul,
.rule-block ol {
  padding-left: 1.4rem;
  margin-top: 0.5rem;
  margin-bottom: 0.4rem;
}

.rule-block ol { list-style: decimal; }
.rule-block ul { list-style: disc; }

.rule-block li { margin-bottom: 0.35rem; }
.rule-block li:last-child { margin-bottom: 0; }

/* nested list inside li */
.rule-block li > ul,
.rule-block li > ol {
  margin-top: 0.4rem;
  margin-bottom: 0;
}

.rule-block p + p { margin-top: 0.4rem; }
.rule-block strong { font-weight: 700; }
.rule-block em { opacity: 0.8; font-style: italic; }

/* ── KONTAKT ── */
.kontakt-text {
  font-family: var(--font-arcade);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
  letter-spacing: 0.04em;
  line-height: 1.7;
}

.kontakt-mail {
  color: var(--teal);
  font-size: 0.82rem;
  font-family: var(--font-arcade);
  text-decoration: none;
  word-break: break-all;
  letter-spacing: 0.02em;
}

.kontakt-mail:hover { text-decoration: underline; }

/* ── PRODUCT CARD ── */
.product-card {
  width: 240px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.3);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

/* ── GALLERY ── */
.gallery {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: rgba(255,255,255,0.2);
  clip-path: inset(0);
}

.gallery-track {
  display: flex;
  height: 100%;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-track img {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  object-fit: contain;
  padding: 8px;
  user-select: none;
  -webkit-user-drag: none;
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(2,94,85,0.18);
  border: 1px solid var(--border);
  color: var(--teal);
  font-size: 1.4rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  z-index: 2;
}

.gallery-btn:active { background: rgba(2,94,85,0.35); }
.gallery-btn--prev { left: 5px; }
.gallery-btn--next { right: 5px; }

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 0 4px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(2,94,85,0.3);
  transition: background 0.25s;
}

.dot.active { background: var(--teal); }

/* ── PRODUCT INFO ── */
.product-info {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.product-name {
  font-size: 0.72rem;
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.product-price {
  font-size: 0.9rem;
  color: var(--text-main);
  font-weight: 900;
}

.buy-btn {
  display: block;
  margin-top: 10px;
  padding: 0.6rem 1rem;
  background: var(--teal);
  color: #fff;
  border-radius: 99px;
  font-family: var(--font-arcade);
  font-size: 0.65rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  letter-spacing: 0.06em;
  transition: transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.buy-btn:active { transform: scale(0.97); }

/* ── FOOTER ── */
.site-footer {
  padding: 0.9rem 1rem;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: rgba(184, 204, 201, 0.5);
  line-height: 1.8;
}

.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--teal); text-decoration: underline; }


/* ── VIDEOS ── */
.videos-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  background: transparent;
}

.video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
}

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

.video-thumb:hover img { transform: scale(1.03); }

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

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.2rem;
  background: rgba(0, 0, 0, 0.45);
  transition: background 0.2s;
}

.video-thumb:hover .video-overlay { background: rgba(0, 0, 0, 0.58); }

.play-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
}

.video-consent-text {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.5;
  text-align: center;
}

.video-consent-text a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.video-consent-text a:hover { opacity: 0.8; }

/* ── MOBILE / TABLET (Portrait) ── */
@media (max-width: 900px) and (orientation: portrait) {
  .hero-title-centered {
    width: 80%;
    max-width: 340px;
    top: calc(50% + 80px);
  }

  /* Split layout: stapeln, Foto oben */
  .layout { flex-direction: column; }
  .photo-col {
    order: -1;
    width: 100%;
    height: 50dvh;
    position: relative;
    flex-shrink: 0;
  }

  /* Overlay: Titel + Icons unten im Foto */
  .photo-overlay { padding: 1.2rem 1rem; gap: 0.6rem; }
  .hero-title-img { width: min(92%, 340px); }
  .hero-logo { width: 40px; top: 0.7rem; left: 0.7rem; }
  .hero-socials { gap: 0.3rem; flex-wrap: nowrap; }
  .hero-socials a { width: 38px; height: 38px; }
  .hero-socials a img, .hero-socials a svg { width: 30px; height: 30px; }

  /* Karten */
  .cards-wrapper { padding: 8px 10px 16px; gap: 10px; }
  .page-card { border-radius: 18px; }

}

/* ── MOBILE LANDSCAPE ── */
@media (max-width: 900px) and (orientation: landscape) {
  .layout { flex-direction: row; }
  .photo-col {
    order: 1;
    width: 38%;
    height: 100dvh;
    position: sticky;
    top: 0;
  }
  .hero { padding: 1rem 0.75rem 0.6rem; gap: 0.4rem; }
  .hero-title-img { width: min(88%, 340px); }
  .photo-overlay { padding: 1rem 0.5rem 1.1rem; }
  .hero-socials { flex-wrap: nowrap; gap: 0.25rem; padding: 0; width: 100%; justify-content: space-evenly; }
  .hero-socials a { width: 34px; height: 34px; }
  .hero-socials a img, .hero-socials a svg { width: 26px; height: 26px; }
  .cards-wrapper { padding: 8px; gap: 8px; }
}
