:root{
  --wine:#4b0f1a;
  --wine-light:#6c1b2b;
  --cream:#f6f3ef;
  --text:#111111;
  --muted:#6f6a67;
  --line:rgba(255,255,255,0.12);
  --shadow:0 18px 50px rgba(0,0,0,0.18);
  --radius:22px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: Arial, sans-serif;
  color:var(--text);
  background:var(--cream);
  overflow-x:hidden;
}
button,input,video{font:inherit}
.topbar{
  position:fixed;
  inset:0 0 auto 0;
  height:72px;
  display:flex;
  align-items:center;
  gap:18px;
  padding:0 20px;
  z-index:40;
  background:linear-gradient(to bottom, rgba(0,0,0,0.52), rgba(0,0,0,0.08));
  color:#fff;
}
#menuBtn{
  border:1px solid rgba(255,255,255,0.25);
  background:rgba(255,255,255,0.08);
  color:#fff;
  width:44px;
  height:44px;
  border-radius:50%;
  cursor:pointer;
  transition:.25s ease;
}
#menuBtn:hover{transform:scale(1.05); background:rgba(255,255,255,0.14)}
.brand-logo{
  height:52px;
  width:auto;
  object-fit:contain;
}
.install-btn{
  margin-left:auto;
  border:1px solid rgba(255,255,255,.45);
  background:rgba(255,255,255,.08);
  color:#fff;
  padding:10px 16px;
  border-radius:999px;
  cursor:pointer;
  transition:.25s ease;
}
.install-btn:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.14);
}
.sidebar{
  position:fixed;
  top:0;
  left:-300px;
  width:300px;
  height:100dvh;
  background:rgba(34,10,14,.96);
  backdrop-filter: blur(8px);
  z-index:45;
  transition:left .35s ease;
  padding:96px 22px 24px;
  box-shadow:var(--shadow);
}
.sidebar.open{left:0}
.sidebar nav{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.sidebar a{
  color:#fff;
  text-decoration:none;
  padding:14px 16px;
  border-radius:14px;
  border:1px solid transparent;
  transition:.25s ease;
  letter-spacing:.04em;
}
.sidebar a:hover{
  background:rgba(255,255,255,0.07);
  border-color:var(--line);
}
#backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.4);
  opacity:0;
  visibility:hidden;
  transition:.25s ease;
  z-index:44;
}
#backdrop.show{
  opacity:1;
  visibility:visible;
}
main{min-height:100dvh}
.page{display:none}
.page.active{display:block}

.hero{
  position:relative;
  min-height:100dvh;
  display:grid;
  place-items:center;
  overflow:hidden;
}
.hero-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.hero-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.42), rgba(0,0,0,.56)),
    radial-gradient(circle at center, rgba(255,255,255,.04), transparent 44%);
}
.hero-content{
  position:relative;
  z-index:2;
  color:#fff;
  text-align:center;
  padding:120px 24px 80px;
  max-width:980px;
  animation:fadeUp 1.2s ease both;
}
.hero-k-logo{
  width:220px;
  height:auto;
  margin:0 auto 18px;
  display:block;
  filter: drop-shadow(0 8px 30px rgba(0,0,0,.32));
}
.hero h1{
  font-family: Georgia, "Times New Roman", serif;
  font-size:clamp(2.4rem, 7vw, 5rem);
  margin:0 0 10px;
  letter-spacing:.03em;
  color:#fff;
}
.hero p{
  font-size:clamp(1rem, 2vw, 1.22rem);
  color:rgba(255,255,255,.86);
  margin:0 auto 28px;
}
.hero-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:12px;
}
.ghost-btn{
  border:1px solid rgba(255,255,255,.45);
  background:rgba(255,255,255,.08);
  color:#fff;
  padding:14px 20px;
  border-radius:999px;
  cursor:pointer;
  transition:.25s ease;
}
.ghost-btn:hover{transform:translateY(-2px); background:rgba(255,255,255,.14)}
.scroll-indicator{
  position:absolute;
  bottom:24px;
  left:50%;
  transform:translateX(-50%);
  color:#fff;
  font-size:3rem;
  opacity:.9;
  animation:bounce 1.8s infinite;
}

.content-page{
  padding:120px 22px 72px;
  max-width:1240px;
  margin:0 auto;
}
.video-shell {
  max-width: 1000px;
  margin: 0 auto;
}

.video-shell iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}
.section-head{
  max-width:760px;
  margin:0 0 36px;
}
.eyebrow{
  display:inline-block;
  margin-bottom:10px;
  color:var(--wine);
  letter-spacing:.2em;
  font-size:.78rem;
  font-weight:700;
}
h2{
  margin:0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size:clamp(2rem, 5vw, 3rem);
}
.section-head p,
.about-box p,
.timeline-content p,
.info-card p{color:var(--muted); line-height:1.7}

.video-shell{
  background:#121212;
  padding:14px;
  border-radius:28px;
  box-shadow:var(--shadow);
}
.video-shell video{
  width:100%;
  display:block;
  border-radius:18px;
}

.gallery-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:20px;
}
.gallery-item{
  overflow:hidden;
  border-radius:16px;
  box-shadow:var(--shadow);
  background:#ddd;
  aspect-ratio:4 / 3;
}
.gallery-item img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  cursor:pointer;
  transition:transform .3s ease;
}
.gallery-item img:hover{
  transform:scale(1.05);
}

.card-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
  gap:20px;
}
.info-card,
.about-box,
.timeline-content,
.scanner-wrap{
  background:#fff;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.info-card{
  padding:24px;
}
.info-card h3,
.timeline-content h3{
  margin-top:0;
  font-family: Georgia, "Times New Roman", serif;
  font-size:1.45rem;
}

.timeline{
  position:relative;
  display:grid;
  gap:18px;
}
.timeline::before{
  content:"";
  position:absolute;
  left:15px;
  top:0;
  bottom:0;
  width:2px;
  background:rgba(75,15,26,.18);
}
.timeline-item{
  display:grid;
  grid-template-columns:32px 1fr;
  gap:18px;
  align-items:start;
}
.timeline-dot{
  width:32px;
  height:32px;
  border-radius:50%;
  background:var(--wine);
  box-shadow:0 0 0 8px rgba(75,15,26,.1);
  position:relative;
  z-index:1;
}
.timeline-content{
  padding:22px;
}

.scanner-wrap{
  padding:22px;
}
#reader{
  width:100%;
  max-width:440px;
  margin:0 auto;
}
.scanner-hint{
  text-align:center;
  color:var(--muted);
  margin-top:14px;
}

.lightbox{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.88);
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
  z-index:70;
}
.lightbox.show{display:flex}
.lightbox img{
  max-width:min(1100px, 92vw);
  max-height:85vh;
  border-radius:18px;
  box-shadow:var(--shadow);
}
.lightbox-close{
  position:absolute;
  top:20px;
  right:20px;
  border:none;
  width:48px;
  height:48px;
  border-radius:50%;
  font-size:2rem;
  color:#fff;
  background:rgba(255,255,255,.12);
  cursor:pointer;
}

#splash{
  position:fixed;
  inset:0;
  z-index:90;
  display:grid;
  place-items:center;
  background:#ffffff;
  animation:splashFade 3.2s ease forwards;
}
.splash-logo{
  width:350px;
  height:auto;
}

.reveal{
  opacity:0;
  transform:translateY(28px);
  transition:opacity .8s ease, transform .8s ease;
}
.reveal.visible{
  opacity:1;
  transform:translateY(0);
}

.map-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  border-radius: 15px;
}

iframe {
  filter: grayscale(0.2) contrast(1.1); /* Passt die Karte dezent an den edlen Wein-Vibe an */
  display: block;
}
/* --- NEUE ELEMENTE FÜR DIE SCHATZSUCHE --- */

.info-card {
  position: relative; 
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid transparent;
}

.poetic-content {
  display: none; 
  margin-top: 15px; 
  padding-top: 15px;
  border-top: 1px dashed var(--gold); 
  font-style: italic; 
  color: var(--wine);
}

.info-card.stamped { 
  border-color: var(--gold) !important; 
  background: #fffdfa !important; 
}

.info-card.stamped .poetic-content { 
  display: block; 
  animation: fadeIn 0.8s ease; 
}

.info-card.stamped::after {
  content: '✓'; 
  position: absolute; 
  top: -15px; 
  right: -15px;
  width: 40px; 
  height: 40px; 
  background: var(--wine); 
  color: var(--gold);
  border: 2px solid var(--gold); 
  border-radius: 50%; 
  display: grid; 
  place-items: center;
  font-weight: bold; 
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  animation: sealPop 0.6s ease forwards;
}

.confetti {
  position: fixed; 
  top: -10px; 
  width: 10px; 
  height: 10px; 
  z-index: 1000;
  pointer-events: none; 
  animation: fall linear forwards;
}

@keyframes sealPop { 0% { transform: scale(0); } 100% { transform: scale(1); } }
@keyframes fall { to { transform: translateY(110vh) rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@keyframes fadeUp{
  from{opacity:0; transform:translateY(24px)}
  to{opacity:1; transform:translateY(0)}
}
@keyframes splashFade{
  0%,72%{opacity:1; visibility:visible}
  100%{opacity:0; visibility:hidden}
}
@keyframes bounce{
  0%,100%{transform:translateX(-50%) translateY(0)}
  50%{transform:translateX(-50%) translateY(8px)}
}

@media (max-width: 840px){
  .gallery-grid{grid-template-columns:1fr 1fr}
  .hero-actions{flex-direction:column}
}
@media (max-width: 680px){
  .install-btn{display:none;}
}
@media (max-width: 560px){
  .content-page{padding-top:104px}
  .hero-k-logo{width:220px}
  .hero-content{padding-top:120px}
  .hero h1{font-size:2.4rem}
  .sidebar{width:86vw; left:-86vw}
  .brand-logo{height:52px}
  .splash-logo{width:350px}
  .gallery-grid{grid-template-columns:1fr}
}
