:root {
  --paper: #ffffff;
  --ink: #2a2216;          /* Espresso */
  --brown: #46381c;        /* Button-Braun der alten Seite */
  --muted: #6e6455;
  --line: #e6dfd3;
  --sage: #e9f0e7;         /* helles Salbeigrün */
  --sage-deep: #8fb695;
  --sky: #e6edf4;
  --basil: #24382b;        /* Italienreise */
  --raspberry: #d4145a;    /* nur Logo & Akzente */
  --sun: #ffcc00;
  --olive: #3d6b4a;        /* freie Plätze */
  --body: 'Sora', system-ui, sans-serif;
  --script: 'Damion', 'Brush Script MT', cursive;
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.7 var(--body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brown); text-underline-offset: .2em; }
a:hover { color: var(--raspberry); }
:focus-visible { outline: 3px solid var(--raspberry); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -.025em; font-weight: 700; }
p { margin: 0 0 1em; }
.script { font-family: var(--script); font-weight: 400; letter-spacing: 0; line-height: 1; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 40px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 30; background: var(--paper); padding: 8px 12px; }

/* ─── Buttons & Formulare ───────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 .95rem/1 var(--body);
  padding: 1em 1.6em; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--brown); color: #fff; }
.btn-primary:hover { background: var(--ink); color: #fff; }
.btn-primary:disabled { opacity: .6; cursor: progress; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--basil); }
.btn-light:hover { background: var(--sun); color: var(--ink); }
.btn-block { width: 100%; }

.form { display: grid; gap: 14px; }
.form label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; font-weight: 600; font-size: .9rem; }
.form label > input, .form label > textarea, .form label > select { flex-basis: 100%; }
.form .hint { font-weight: 400; color: var(--muted); }
.form input, .form textarea, .form select {
  font: 400 1rem/1.4 var(--body); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; width: 100%;
}
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--brown); outline: none; box-shadow: 0 0 0 3px rgba(70, 56, 28, .14); }
.form-error { color: #b00020; font-weight: 600; margin: 0; }
.form-note { font-size: .8rem; color: var(--muted); margin: 0; }
.hp { position: absolute !important; left: -9999px; }

/* ─── Kopf & Logo-Hand ─────────────────────────────── */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.scrolled { border-bottom-color: var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: block; }
.brand > img { width: 230px; }
.logo { width: 250px; height: auto; display: block; overflow: visible; }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; }
.nav a:hover { color: var(--raspberry); }
@media (max-width: 640px) {
  .logo { width: 200px; }
  .nav a:not(:first-child) { display: none; }
}

/* „Ma che vuoi?“ – die Hand wippt aus dem Handgelenk */
.logo-hand { transform-box: view-box; transform-origin: 470px 118px; animation: ma-che-vuoi 6s var(--ease) 1.2s infinite; }
.brand:hover .logo-hand { animation-duration: 1.4s; animation-delay: 0s; }
.gesture { transform-origin: 30% 30%; animation: ma-che-vuoi 6s var(--ease) 2s infinite; }
@keyframes ma-che-vuoi {
  0%, 36%, 100% { transform: rotate(0); }
  6% { transform: rotate(-14deg) translateY(-3px); }
  12% { transform: rotate(4deg); }
  18% { transform: rotate(-14deg) translateY(-3px); }
  24% { transform: rotate(4deg); }
  30% { transform: rotate(-6deg); }
}

/* ─── Hero ─────────────────────────────────────────── */
.hero { padding: 32px 0 72px; overflow: hidden; }
.hero-inner { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-inner { grid-template-columns: 1fr 1fr; gap: 64px; } .hero { padding: 64px 0 112px; } }
.hero-script { font-size: 2.2rem; color: var(--raspberry); margin: 0 0 6px; transform: rotate(-4deg); transform-origin: left; display: inline-block; }
.hero h1 { font-weight: 800; font-size: clamp(3rem, 8.4vw, 6rem); line-height: .98; letter-spacing: -.05em; margin-bottom: 28px; }
.lead { font-size: 1.12rem; font-weight: 300; max-width: 32em; }
.hero-facts { color: var(--muted); max-width: 34em; font-size: .95rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.portrait { position: relative; margin: 0; width: 100%; max-width: 540px; justify-self: center; aspect-ratio: 4 / 4.6; border-radius: 28px; overflow: hidden; background: #fff; }
.portrait img, .portrait canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.portrait img { object-fit: cover; object-position: 64% 30%; }
.portrait canvas { background: #fff; transition: opacity .35s var(--ease); }
.portrait.sharp canvas { opacity: 0 !important; }
@media (max-width: 959px) { .portrait { aspect-ratio: 1 / 1; } }

/* ─── Was wir machen ───────────────────────────────── */
.activities-section { background: var(--sage); padding: 80px 0 88px; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 800; letter-spacing: -.045em; margin-bottom: 14px; }
.section-head p { color: var(--muted); margin: 0; }
.section-script { font-size: 2rem; color: var(--raspberry); margin: 0 0 4px; transform: rotate(-3deg); transform-origin: left; display: inline-block; }

.activity-row {
  list-style: none; margin: 0; padding: 0 16px 8px; display: grid; grid-auto-flow: column; grid-auto-columns: 74%;
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.activity-row::-webkit-scrollbar { display: none; }
@media (min-width: 700px) { .activity-row { grid-auto-columns: 40%; padding: 0 40px 8px; } }
@media (min-width: 1000px) {
  .activity-row { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); max-width: var(--wrap); margin: 0 auto; overflow: visible; gap: 24px; padding: 0 40px 8px; }
}
.activity-row li { scroll-snap-align: start; display: grid; gap: 2px; }
.activity-row img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; margin-bottom: 12px; transition: transform .5s var(--ease); }
.activity-row li:hover img { transform: scale(1.02) rotate(-.5deg); }
.activity-row .script { font-size: 1.7rem; color: var(--brown); }
.activity-row span:last-child { font-size: .9rem; color: var(--muted); }

/* ─── Kleine Italienreise (3D) ─────────────────────── */
.viaggio { background: radial-gradient(120% 90% at 50% 40%, #f7fbfc 0%, #d9eef6 55%, #bfe0ee 100%); }
.viaggio-track { height: 560vh; position: relative; }
.viaggio-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.viaggio-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.stops { position: absolute; inset: 0; pointer-events: none; }
.stop {
  position: absolute; right: 5vw; top: 50%; width: min(420px, 38vw);
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px); border-radius: 28px; padding: 28px 30px 30px;
  box-shadow: 0 30px 60px -30px rgba(31, 74, 99, .45);
  opacity: 0; visibility: hidden; transform: translateY(-40%); pointer-events: auto;
  transition: opacity .45s var(--ease), transform .6s var(--ease), visibility 0s .45s;
}
.stop.on { opacity: 1; visibility: visible; transform: translateY(-50%); transition: opacity .45s var(--ease), transform .6s var(--ease), visibility 0s; }
.where { margin: 0; font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.stop .it { font-size: clamp(2.6rem, 4.6vw, 3.8rem); line-height: 1.05; color: var(--raspberry); margin: 4px 0 10px; transform: rotate(-3deg); transform-origin: left; padding-bottom: .06em; }
.stop .de { font-size: 1rem; font-weight: 300; margin: 0; }
.vocab { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.vocab li { background: var(--sky); border-radius: 999px; padding: 5px 13px; font-size: .82rem; font-weight: 300; }
.vocab b { font-weight: 600; margin-right: 4px; }
.stop-final .btn { margin-top: 20px; }
@media (max-width: 899px) {
  .stop { left: 12px; right: 12px; top: auto; bottom: 16px; width: auto; padding: 18px 20px 20px; border-radius: 22px; transform: translateY(20px); }
  .stop.on { transform: none; }
  .stop .it { font-size: 2.3rem; margin-bottom: 6px; }
  .stop .de { font-size: .9rem; }
  .vocab { margin-top: 10px; gap: 6px; }
  .vocab li { font-size: .75rem; padding: 3px 10px; }
}

.viaggio-dots { position: absolute; left: 24px; top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.viaggio-dots li { width: 8px; height: 8px; border-radius: 50%; background: rgba(42, 34, 22, .2); transition: background .3s, transform .3s; }
.viaggio-dots li.on { background: var(--raspberry); transform: scale(1.4); }
@media (max-width: 899px) { .viaggio-dots { top: 88px; left: 50%; transform: translateX(-50%); display: flex; } }

/* Ohne Bewegung oder ohne 3D: Stationen untereinander */
.viaggio.static .viaggio-track { height: auto; }
.viaggio.static .viaggio-stage { position: static; height: auto; padding: 72px 16px; display: grid; gap: 16px; }
.viaggio.static .viaggio-canvas { position: static; height: 60vh; }
.viaggio.no3d .viaggio-canvas, .viaggio.static .viaggio-dots { display: none; }
.viaggio.static .stops { position: static; display: grid; gap: 16px; max-width: 760px; margin: 0 auto; }
.viaggio.static .stop { position: static; width: auto; opacity: 1; visibility: visible; transform: none; }

/* ─── Termine ──────────────────────────────────────── */
.events-section { padding: 88px 0 72px; }
@media (min-width: 700px) { .events-section { padding: 120px 0 96px; } }
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.events-loading, .events-empty { color: var(--muted); padding: 32px 0; }
.events-foot { color: var(--muted); margin: 36px 0 0; }

.event { display: grid; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
@media (min-width: 760px) { .event { grid-template-columns: 300px 1fr; } }
.ev-photo { position: relative; margin: 0; aspect-ratio: 16 / 9; background: var(--sage); }
@media (min-width: 760px) { .ev-photo { aspect-ratio: auto; min-height: 100%; } }
.ev-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.date {
  position: absolute; left: 14px; top: 14px; background: #fff; border-radius: 16px; padding: 10px 12px 8px;
  text-align: center; line-height: 1; min-width: 62px; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .4);
}
.date .wd { display: block; font-weight: 600; font-size: .72rem; color: var(--muted); }
.date .d { display: block; font-weight: 800; font-size: 1.9rem; letter-spacing: -.04em; margin: 3px 0 2px; color: var(--ink); }
.date .mon { display: block; font-weight: 600; font-size: .75rem; color: var(--raspberry); }

.ev-body { padding: 22px 20px 22px; }
@media (min-width: 760px) { .ev-body { padding: 30px 34px; } }
.ev-line { display: flex; align-items: baseline; gap: 10px; }
.ev-line h3 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 700; letter-spacing: -.035em; }
.ev-line .dots { flex: 1; border-bottom: 2px dotted #cbbfa9; min-width: 16px; transform: translateY(-6px); }
.ev-line .price { font-weight: 700; font-size: 1.2rem; white-space: nowrap; }
.ev-sub { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; color: var(--muted); font-size: .88rem; margin-top: 6px; }
.ev-sub .when b { color: var(--ink); font-weight: 600; }
.ev-sub .rel { display: inline-block; background: var(--sun); color: var(--ink); font-weight: 600; font-size: .75rem; padding: 1px 8px; border-radius: 99px; margin-left: 4px; }
.ev-desc { margin: 14px 0 0; max-width: 42em; font-size: .95rem; font-weight: 300; }
.ev-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); }

.seats { display: flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 600; color: var(--olive); }
.seats .pips { display: flex; gap: 4px; flex-wrap: wrap; max-width: 130px; flex-shrink: 0; }
.seats .pip { width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; }
.seats .pip.taken { border-color: transparent; background: #d8d0c2; }
.seats.few { color: var(--raspberry); }
.seats.full { color: var(--muted); }
.event.is-full .ev-photo img { filter: grayscale(1); opacity: .7; }
.ev-foot .btn { padding: .85em 1.4em; }

/* ─── So läuft's ───────────────────────────────────── */
.steps-section { background: var(--sky); padding: 80px 0; }
@media (min-width: 700px) { .steps-section { padding: 112px 0; } }
.steps-section h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 800; letter-spacing: -.045em; margin-bottom: 40px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 36px; counter-reset: s; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.steps li { counter-increment: s; position: relative; padding-top: 74px; }
.steps li::before {
  content: counter(s); position: absolute; top: 0; left: 0; width: 58px; height: 58px;
  display: grid; place-items: center;
  background: #fff; border-radius: 50%; font-weight: 800; font-size: 1.6rem; color: var(--brown);
}
.steps h3 { font-size: 1.3rem; margin-bottom: 10px; }
.steps p { color: var(--muted); max-width: 30em; font-weight: 300; }

/* ─── Kontakt ──────────────────────────────────────── */
.contact-section { background: var(--brown); color: #f3efe6; padding: 88px 0; }
@media (min-width: 700px) { .contact-section { padding: 120px 0; } }
.contact-inner { display: grid; gap: 40px; }
@media (min-width: 860px) { .contact-inner { grid-template-columns: 1fr 1.1fr; gap: 80px; } }
.contact-section .section-script { color: var(--sun); }
.contact-section h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 800; letter-spacing: -.045em; color: #fff; margin-bottom: 18px; }
.contact-section a { color: var(--sun); }
.contact-direct a { font-size: 1.5rem; font-weight: 700; text-decoration: none; color: #fff; }
.contact-hand { width: 150px; margin-top: 36px; filter: brightness(0) invert(1); opacity: .9; }
@media (max-width: 859px) { .contact-hand { display: none; } }
.contact-section .form label { color: #fff; }
.contact-section .form input, .contact-section .form textarea { border-color: transparent; }
.contact-section .form-note { color: #d9cfbd; }
.contact-section .form-error { color: #ffd0d8; }
.contact-section .btn-primary { background: #fff; color: var(--brown); }
.contact-section .btn-primary:hover { background: var(--sun); color: var(--ink); }
.contact-section .form-sent { font-size: 1.15rem; color: #fff; }

/* ─── Fuß ──────────────────────────────────────────── */
.foot { padding: 44px 0 52px; font-size: .88rem; color: var(--muted); }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-end; }
.foot-h { font-size: .95rem; color: var(--ink); margin-bottom: 8px; letter-spacing: 0; }
.foot p { margin: 0; }
.foot-links { text-align: right; }

/* ─── Dialoge (Bottom-Sheet am Handy) ──────────────── */
.sheet {
  border: 0; padding: 0; width: min(520px, 100%); max-height: 92vh; border-radius: 24px; color: var(--ink);
  box-shadow: 0 24px 60px rgba(42, 34, 22, .35);
}
.sheet::backdrop { background: rgba(42, 34, 22, .55); backdrop-filter: blur(2px); }
.sheet .form { padding: 28px 22px 24px; position: relative; }
@media (min-width: 560px) { .sheet .form { padding: 36px 36px 30px; } }
@media (max-width: 559px) {
  .sheet { margin: auto 0 0; max-width: 100%; border-radius: 24px 24px 0 0; }
}
.sheet[open] { animation: up .3s var(--ease); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.035em; padding-right: 32px; }
.sheet-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 0; background: var(--sage); border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--ink); }
.sheet-kicker { color: var(--raspberry); font-weight: 600; font-size: .9rem; margin: 0 0 4px; }
.sheet-meta { color: var(--muted); margin: 6px 0 4px; font-size: .92rem; }
.reserve-body, .reserve-done { display: grid; gap: 14px; }
.reserve-done { text-align: center; padding-top: 8px; justify-items: center; }
.reserve-done[hidden], .reserve-body[hidden] { display: none; }
.done-hand { width: 110px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ─── Sprache DE / IT ──────────────────────────────── */
.top-inner { gap: 20px; }
.nav { margin-left: auto; }
.lang { display: flex; background: var(--sage); border-radius: 999px; padding: 3px; }
.lang button {
  font: 600 .78rem/1 var(--body); letter-spacing: .03em; border: 0; background: transparent; color: var(--muted);
  padding: 7px 11px; border-radius: 999px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(42, 34, 22, .15); }
.lang-hint {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 18px;
  background: var(--sage); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .88rem;
  padding: 8px 16px 8px 10px; border-radius: 999px; transition: background .2s;
}
.lang-hint:hover { background: #dce8d9; color: var(--ink); }
.lang-hint small { font-weight: 400; color: var(--muted); font-size: .8rem; }
.tricolore { width: 22px; height: 14px; border-radius: 3px; background: linear-gradient(90deg, #009246 33.3%, #fff 33.3% 66.6%, #ce2b37 66.6%); box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.lang-it .lang-hint { display: none; }
@media (max-width: 640px) { .top-inner { gap: 12px; } .lang button { padding: 6px 9px; } }

/* ─── Ein bisschen Italien (Foto-Band vor dem Kontakt) ── */
.italia-band { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; background: #fff; }
.ib { position: relative; margin: 0; overflow: hidden; border-radius: 18px; aspect-ratio: 3 / 4; }
.ib-c { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.ib img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ib:hover img { transform: scale(1.04); }
.ib figcaption {
  position: absolute; left: 14px; bottom: 14px; background: #fff; color: var(--raspberry);
  font-size: 1.5rem; padding: 4px 14px 7px; border-radius: 999px; transform: rotate(-3deg);
}
@media (min-width: 900px) {
  .italia-band { grid-template-columns: 1fr 1.25fr 1.6fr; height: min(78vh, 720px); gap: 8px; padding: 8px; }
  .ib, .ib-c { aspect-ratio: auto; grid-column: auto; height: 100%; }
  .ib figcaption { left: 22px; bottom: 22px; font-size: 1.9rem; }
}
.ev-photo .credit { position: absolute; right: 8px; bottom: 8px; font-size: .68rem; color: #fff; background: rgba(0, 0, 0, .45); padding: 2px 8px; border-radius: 99px; }

/* ─── WhatsApp ─────────────────────────────────────── */
.wa-float {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 25;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 10px 28px -8px rgba(0, 0, 0, .35);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { color: #fff; transform: scale(1.07); box-shadow: 0 14px 32px -8px rgba(0, 0, 0, .4); }
@media (min-width: 700px) { .wa-float { right: 26px; bottom: 26px; width: 62px; height: 62px; } }
.wa-inline { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; }
.contact-section .wa-inline { color: #fff; }
.contact-section .wa-inline:hover { color: var(--sun); }
.wa-inline svg { width: 22px; height: 22px; color: #25d366; }
