:root {
  --bg: #f5efe3;
  --paper: #fffdf8;
  --card: #ffffff;
  --text: #2f2a23;
  --muted: #6b6459;
  --green: #45603a;
  --green-dark: #304729;
  --gold: #c99635;
  --gold-light: #f2dfb2;
  --border: #e6dac6;
  --shadow: 0 14px 34px rgba(53, 40, 21, 0.11);
  --radius: 24px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 2%, rgba(255, 246, 218, 0.9), transparent 30rem),
    linear-gradient(180deg, #fbf7ef 0%, var(--bg) 100%);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.container {
  width: min(var(--max-width), calc(100% - 36px));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(230, 218, 198, 0.9);
  background: rgba(255, 252, 246, 0.92);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  color: var(--green-dark);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 700;
}

.brand-subtitle {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.88rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  padding: 10px 13px;
  border-radius: 999px;
  font-size: 0.96rem;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--green-dark);
  background: #f0e7d6;
  outline: none;
}

.main-nav .nav-cta {
  margin-left: 5px;
  color: white;
  background: var(--green);
}

.main-nav .nav-cta:hover,
.main-nav .nav-cta:focus-visible {
  color: white;
  background: var(--green-dark);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 45px;
  height: 42px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--paper);
  cursor: pointer;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: var(--green-dark);
}

/* Typography */

section {
  padding: 58px 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.15;
}

h1 {
  margin-bottom: 20px;
  color: var(--green-dark);
  font-size: clamp(2.15rem, 4.6vw, 3.75rem);
}

h2 {
  margin-bottom: 13px;
  color: var(--green-dark);
  font-size: clamp(1.75rem, 3.2vw, 2.55rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.45rem;
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 13px;
  padding: 7px 12px;
  color: #654d1e;
  background: #f3e5c6;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.section-head {
  max-width: 780px;
  margin-bottom: 30px;
}

/* Hero */

.hero {
  padding-top: 42px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: center;
}

.hero-media {
  overflow: hidden;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 22px;
}

.hero-copy {
  padding: clamp(4px, 2vw, 18px);
}

.hero-copy p {
  margin-bottom: 15px;
}

.hero-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 26px;
  padding: 0;
  list-style: none;
}

.hero-list li {
  position: relative;
  padding-left: 25px;
}

.hero-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Buttons */

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: white;
  color: var(--green-dark);
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  outline: none;
  box-shadow: 0 8px 20px rgba(53, 40, 21, 0.1);
}

.btn-primary {
  border-color: var(--green);
  color: white;
  background: var(--green);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--green-dark);
}

/* Worlds */

.worlds-section {
  background: rgba(255, 253, 248, 0.58);
  border-top: 1px solid rgba(230, 218, 198, 0.65);
  border-bottom: 1px solid rgba(230, 218, 198, 0.65);
}

.world-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
}

.world-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  transition:
    transform 240ms ease,
    box-shadow 240ms ease;
}

.world-card:hover,
.world-card:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(53, 40, 21, 0.16);
}

.world-link {
  display: block;
  height: 100%;
}

.world-image-wrap {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.world-image-wrap img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition:
    transform 520ms cubic-bezier(.2,.75,.25,1),
    filter 420ms ease;
}

.world-glow {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 55% 48%, rgba(255, 222, 123, 0.22), transparent 34%),
    linear-gradient(180deg, transparent 55%, rgba(25, 19, 8, 0.08));
  opacity: 0;
  transition: opacity 350ms ease;
}

.world-card:hover img,
.world-card:focus-within img {
  transform: scale(1.045);
  filter: saturate(1.06) brightness(1.025);
}

.world-card:hover .world-glow,
.world-card:focus-within .world-glow {
  opacity: 1;
}

.world-card.is-opening {
  transform: translateY(-7px) scale(1.012);
}

.world-card.is-opening .world-image-wrap img {
  transform: scale(1.08);
  filter: saturate(1.12) brightness(1.09);
}

.world-card.is-opening .world-glow {
  opacity: 1;
  animation: worldPulse 550ms ease both;
}

@keyframes worldPulse {
  0%   { background-color: rgba(255, 225, 132, 0); }
  45%  { background-color: rgba(255, 225, 132, 0.13); }
  100% { background-color: rgba(255, 225, 132, 0); }
}



/* Welt-Einladungen als Sprechblasen */
.world-teaser {
  position: absolute;
  left: 18px;
  top: 50%;
  z-index: 5;
  width: min(78%, 330px);
  padding: 13px 16px;
  border: 2px solid rgba(69, 96, 58, 0.22);
  border-radius: 20px;
  color: #2f2a23;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 28px rgba(30, 25, 17, 0.22);
  text-align: left;
  font-size: clamp(0.98rem, 1.5vw, 1.08rem);
  font-weight: 700;
  line-height: 1.35;
  opacity: 0;
  transform: translate(-34px, -50%);
  transition:
    opacity 220ms ease,
    transform 300ms cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}

.world-teaser::after {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  width: 22px;
  height: 22px;
  background: rgba(255, 255, 255, 0.97);
  border-left: 2px solid rgba(69, 96, 58, 0.22);
  border-bottom: 2px solid rgba(69, 96, 58, 0.22);
  transform: translateY(-50%) rotate(45deg);
}

/* Zweite Spalte fährt von rechts herein */
.world-card:nth-child(even) .world-teaser {
  left: auto;
  right: 18px;
  text-align: right;
  transform: translate(34px, -50%);
}

.world-card:nth-child(even) .world-teaser::after {
  left: auto;
  right: -12px;
  border-left: 0;
  border-bottom: 0;
  border-right: 2px solid rgba(69, 96, 58, 0.22);
  border-top: 2px solid rgba(69, 96, 58, 0.22);
}

.world-card:hover .world-teaser,
.world-card:focus-within .world-teaser,
.world-card.is-peeking .world-teaser,
.world-card.is-opening .world-teaser {
  opacity: 1;
  transform: translate(0, -50%);
}

.world-card:nth-child(even):hover .world-teaser,
.world-card:nth-child(even):focus-within .world-teaser,
.world-card:nth-child(even).is-peeking .world-teaser,
.world-card:nth-child(even).is-opening .world-teaser {
  transform: translate(0, -50%);
}

/* Auf Touch-Geräten ist die Blase etwas kompakter und immer gut antippbar. */
@media (hover: none), (pointer: coarse) {
  .world-teaser,
  .world-card:nth-child(even) .world-teaser {
    left: 14px;
    right: 14px;
    top: auto;
    bottom: 16px;
    width: auto;
    text-align: center;
    transform: translateY(22px);
    border-radius: 18px;
  }

  .world-teaser::after,
  .world-card:nth-child(even) .world-teaser::after {
    left: 50%;
    right: auto;
    top: auto;
    bottom: -11px;
    border: 0;
    border-right: 2px solid rgba(69, 96, 58, 0.22);
    border-bottom: 2px solid rgba(69, 96, 58, 0.22);
    transform: translateX(-50%) rotate(45deg);
  }

  .world-card.is-peeking .world-teaser,
  .world-card.is-opening .world-teaser,
  .world-card:nth-child(even).is-peeking .world-teaser,
  .world-card:nth-child(even).is-opening .world-teaser {
    transform: translateY(0);
  }
}

.world-content {
  padding: 20px 21px 23px;
}

.world-content h3 {
  color: var(--green-dark);
}

.world-content p {
  margin-bottom: 15px;
  color: var(--muted);
}

.world-tag {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  color: #654d1e;
  background: #f7ecd5;
  font-size: 0.83rem;
}

/* Sample tasks */

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

.task-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 23px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.task-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: white;
  background: var(--green);
  font-size: 1.2rem;
  font-weight: 700;
}

.task-label {
  display: inline-block;
  margin-bottom: 8px;
  color: #785c28;
  font-size: 0.82rem;
  font-weight: 700;
}

.task-card p {
  color: var(--muted);
}

.task-placeholder {
  display: grid;
  gap: 6px;
  margin: 18px 0;
  padding: 15px;
  border: 1px dashed #d6c49f;
  border-radius: 15px;
  color: var(--muted);
  background: #fdf8ed;
}

.task-placeholder strong {
  color: var(--text);
}

/* Adults */

.adult-section {
  padding-top: 24px;
}

.adult-box {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  align-items: center;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.94), rgba(246,238,220,0.9));
  box-shadow: var(--shadow);
}

.adult-box p {
  max-width: 720px;
  color: var(--muted);
}

.adult-placeholder {
  display: grid;
  gap: 5px;
  padding: 20px;
  border: 1px dashed #cbb98f;
  border-radius: 18px;
  background: rgba(255,255,255,0.7);
}

/* Footer */

.site-footer {
  margin-top: 50px;
  padding: 34px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  background: rgba(255, 252, 246, 0.72);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-inner nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-inner a:hover {
  color: var(--green-dark);
}

/* Toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 300;
  max-width: min(520px, calc(100% - 32px));
  padding: 12px 17px;
  border-radius: 999px;
  color: white;
  background: rgba(48, 71, 41, 0.96);
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Responsive */

@media (max-width: 930px) {
  .menu-button {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    padding: 14px 18px 18px;
    background: rgba(255, 252, 246, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 14px 24px rgba(53, 40, 21, 0.08);
  }

  .main-nav.is-open {
    display: grid;
  }

  .main-nav a {
    border-radius: 12px;
  }

  .main-nav .nav-cta {
    margin-left: 0;
    text-align: center;
  }

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

  .hero-media {
    max-width: 690px;
  }

  .adult-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(var(--max-width), calc(100% - 24px));
  }

  section {
    padding: 44px 0;
  }

  .world-grid,
  .task-grid {
    grid-template-columns: 1fr;
  }

  .task-card {
    grid-template-columns: 1fr;
  }

  .task-number {
    width: 38px;
    height: 38px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .brand-subtitle {
    display: none;
  }

  h1 {
    font-size: 2.2rem;
  }

  .hero-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .world-content {
    padding: 17px 17px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}


