/* Berner’s Hüpfburgen – Startseite
   Keine externen Schriften oder Skripte: nichts wird von Dritten geladen. */

:root {
  --blue: #1f3c8f;
  --purple: #8a1fb5;
  --pink: #ff6fb1;
  --orange: #f47b20;
  --yellow: #ffc933;
  --green: #2fb344;
  --ink: #23183f;
  --tint: #f5effa;

  --font: "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --display: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", "Segoe UI", system-ui, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
}

img, svg { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
}
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
p  { margin: 0 0 1rem; }

.lead { max-width: 40rem; font-size: 1.15rem; margin-top: 1rem; }

/* ---------- Wimpelkette ---------- */
.bunting { display: block; width: 100%; height: 54px; }

/* ---------- Kopfbereich ---------- */
.site-header { padding: 0.5rem 0 1.25rem; }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}

.brand { display: block; line-height: 0; }
.brand img { display: block; width: auto; height: clamp(96px, 16vw, 130px); }

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}
.nav a {
  display: inline-block;
  padding: 0.4rem 0;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.nav a:hover,
.nav a[aria-current="page"] { border-bottom-color: var(--orange); }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border: 3px solid transparent;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--yellow); color: var(--ink); }
.btn-green   { background: var(--green);  color: var(--ink); }
.btn-ghost   { border-color: #fff; color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--purple);
  color: #fff;
  padding: clamp(2.5rem, 7vw, 4.5rem) 0 clamp(3.5rem, 9vw, 6rem);
}
/* Wulstkante unten, wie bei einer aufgeblasenen Hüpfburg */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -24px;
  height: 24px;
  background: radial-gradient(circle at 24px 0, var(--purple) 23.5px, transparent 24px) 0 0 / 48px 24px repeat-x;
}

.hero .wrap { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 860px) {
  .hero .wrap { grid-template-columns: 1.1fr 0.9fr; }
}

.hero h1 { font-size: clamp(2.2rem, 6vw, 3.9rem); }
.hero p  { max-width: 34rem; margin: 1.25rem 0 0; font-size: 1.2rem; }

.anlaesse {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.7rem, 4.2vw, 2.6rem);
  line-height: 1.2;
}
.anlaesse li { transform: rotate(-2deg); }
.anlaesse li:nth-child(even) { transform: rotate(1.5deg); margin-left: 1.5rem; }
.anlaesse li:nth-child(1) { color: #fff; }
.anlaesse li:nth-child(2) { color: #ffd24d; }
.anlaesse li:nth-child(3) { color: #ff9fcb; }
.anlaesse li:nth-child(4) { color: #8ee79a; }
.anlaesse li:nth-child(5) { color: #ffb36b; }

/* ---------- Abschnitte ---------- */
.section { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.section-tint { background: var(--tint); }

/* ---------- Mietartikel ---------- */
.tiles { display: grid; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 640px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tile-main { grid-column: span 2; grid-row: span 2; }
}

.tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 11rem;
  padding: 1.5rem;
  border-radius: 24px;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.tile:hover { transform: translateY(-4px); }
.tile h3 { font-size: 1.45rem; margin-bottom: 0.35rem; }
.tile p  { margin: 0; }
.tile-icon { font-size: 2.4rem; line-height: 1; }

.tile-main { padding: 2rem; }
.tile-main .tile-icon { font-size: 4.5rem; }
.tile-main h3 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.tile-main p  { max-width: 30rem; font-size: 1.15rem; }

.more {
  display: inline-block;
  margin-top: 1.25rem;
  font-weight: 800;
  border-bottom: 3px solid currentColor;
}

.t-blue   { background: var(--blue);   color: #fff; }
.t-purple { background: var(--purple); color: #fff; }
.t-orange { background: var(--orange); color: var(--ink); }
.t-yellow { background: var(--yellow); color: var(--ink); }
.t-pink   { background: var(--pink);   color: var(--ink); }
.t-green  { background: var(--green);  color: var(--ink); }

.more-note { margin: 2rem 0 0; max-width: 40rem; }

/* ---------- Ablauf ---------- */
.steps {
  list-style: none;
  counter-reset: schritt;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 2rem;
}
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}
.steps li { counter-increment: schritt; position: relative; padding-top: 4.2rem; }
.steps li::before {
  content: counter(schritt);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.4rem;
  background: var(--yellow);
}
.steps li:nth-child(2)::before { background: var(--pink); }
.steps li:nth-child(3)::before { background: #7be08a; }
.steps h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.steps p  { margin: 0; max-width: 24rem; }

/* ---------- Kontakt ---------- */
.contact { background: var(--blue); color: #fff; }
.contact-line { margin: 1.75rem 0 0; font-weight: 700; }

/* ---------- Fuß ---------- */
.site-footer { padding: 1.75rem 0 2.5rem; font-size: 0.95rem; }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}
.site-footer p  { margin: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; }

@media (prefers-reduced-motion: reduce) {
  .btn, .tile { transition: none; }
  .btn:hover, .tile:hover { transform: none; }
}
