/* Nautiland Sonneberg, site stylesheet (design C)
   One ocean-blue world with light-blue text. Tools (ticket, calendar, price calculator) sit on
   blue gradient panels, content on translucent cards. Torn paper menu bar, coral column and reef
   from the original site. */

/* Nunito & Baloo 2: SIL Open Font License, see fonts/OFL-*.txt */
@font-face {
  font-family: Nunito;
  src: url("../fonts/nunito-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

@font-face {
  font-family: "Baloo 2";
  src: url("../fonts/baloo2-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ocean: #02508e;        /* page blue */
  --ocean-deep: #013a68;   /* footer */
  --indigo: #020070;       /* menu and logo indigo */
  --sun: #ffd60a;          /* logo yellow */
  --starfish: #ffa36c;     /* orange highlight */
  --ink: #ffffff;
  --ink-soft: #c5e5ff;     /* body text */
  --line: rgba(197, 229, 255, .35);
  --line-strong: rgba(197, 229, 255, .45);
  --panel: rgba(255, 255, 255, .07);
  --chip: rgba(255, 255, 255, .13);
  --tool: linear-gradient(160deg, #0b67b0 0%, #02508e 100%);
  --tool-surface: #0a5c9e;
  --ok: #4ade80;
  --closed: #ff8770;
  --mint-text: linear-gradient(120deg, #9fe3ff 0%, #8ff0cf 100%);

  --display: "Baloo 2", Nunito, "Trebuchet MS", Arial, sans-serif;
  --body: Nunito, "Trebuchet MS", Arial, sans-serif;

  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: 2.2rem;
  --step-4: clamp(2.4rem, 6vw, 4rem);
  --radius: 16px;
  --wrap: 1100px;
  --header-h: 64px;
}

/* ---------- Base ---------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  color: var(--ink-soft);
  background: var(--ocean) linear-gradient(180deg, var(--ocean) 0, var(--ocean) 70%, #013e70 100%);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}

/* height:auto keeps the width/height attributes (reserved space) from fixing the rendered height */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.1;
  text-wrap: balance;
  margin: 0;
  color: var(--ink);
}

/* subpages use an h1 that looks like the section headings */
h2,
.page-title {
  font-size: var(--step-3);
  text-decoration: underline;
  text-decoration-color: var(--sun);
  text-decoration-thickness: 3px;
  text-underline-offset: 7px;
}

h2::before,
.page-title::before {
  content: "» ";
}

h2::after,
.page-title::after {
  content: " «";
}

h3 {
  font-size: var(--step-1);
}

p {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

main,
footer {
  position: relative;
  z-index: 1;
}

main {
  padding-bottom: 40px;
}

section {
  padding-block: 64px;
}

/* sections that follow another section directly */
section.section-tight {
  padding-top: 0;
}

.lead {
  color: var(--ink-soft);
  font-size: var(--step-1);
  max-width: 60ch;
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.eyebrow {
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--starfish);
}

.eyebrow-sun {
  color: var(--sun);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  background: var(--sun);
  color: var(--indigo);
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 999px;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 0;
  font: 800 1rem var(--body);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-sun {
  background: var(--sun);
  color: var(--indigo);
}

.btn-sun:hover {
  background: #ffe14d;
}

.btn-ghost {
  background: transparent;
  color: #ffffff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .75);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .12);
}

/* ---------- Background decoration ---------- */
/* coral column with shark (left) and reef (right) from the original, peeking in at the page edges */
.decor img {
  position: fixed;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  height: min(70vh, 700px);
  width: auto;
}

.decor-left {
  left: -120px;
}

.decor-right {
  right: -40px;
}

@media (max-width: 1180px) {
  .decor {
    display: none;
  }
}

/* bubbles rising behind the whole page */
.page-bubbles {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.page-bubbles i {
  position: absolute;
  bottom: -30px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .06);
  animation: rise-page linear infinite;
}

@keyframes rise-page {
  to {
    transform: translate(var(--drift, 10px), -115vh);
    opacity: 0;
  }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  /* the original strip is 40 % white; two layers make it ~65 % opaque and keep the torn edge */
  background:
    url("../images/top_bg.png") repeat-x top / auto 100%,
    url("../images/top_bg.png") repeat-x top / auto 100%;
}

.site-header .wrap {
  height: var(--header-h);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  height: 96px;
  width: auto;
  margin-top: 6px;
  filter: drop-shadow(0 2px 4px rgba(2, 0, 112, .35));
  transition: height .25s ease;
}

/* the logo hangs over the hero; once the page scrolls it shrinks into the bar */
.site-header.is-scrolled .logo {
  height: 50px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding-top: 8px;
}

.nav a:not(.btn) {
  color: var(--indigo);
  font-family: var(--display);
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-shadow: 0 0 6px rgba(255, 255, 255, .9), 0 0 2px #ffffff;
  padding: 8px 10px;
  white-space: nowrap;
}

.nav a:not(.btn):hover,
.nav a[aria-current="page"] {
  text-decoration: underline;
}

.nav .btn {
  margin-left: 8px;
}

.nav-toggle {
  display: none;
}

@media (max-width: 900px) {
  .logo {
    height: 72px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 2px solid var(--indigo);
    background: rgba(255, 255, 255, .85);
    color: var(--indigo);
    font: 800 .95rem var(--body);
    cursor: pointer;
  }

  .nav {
    display: none;
  }

  .site-header.nav-open .nav {
    display: grid;
    position: absolute;
    top: calc(var(--header-h) + 4px);
    right: 20px;
    left: 20px;
    gap: 4px;
    padding: 12px;
    background: #ffffff;
    border-radius: var(--radius);
    box-shadow: 0 16px 40px rgba(0, 20, 60, .35);
  }

  .site-header.nav-open .nav a:not(.btn) {
    text-shadow: none;
    padding: 10px 12px;
  }

  .site-header.nav-open .nav .btn {
    margin: 6px 0 0;
    justify-content: center;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #01365f url("../images/meeresaquarium.jpg") center / cover no-repeat;
  margin-top: calc(var(--header-h) * -1);
  padding-block: 140px 116px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(1, 30, 60, .82) 0%, rgba(1, 40, 80, .45) 55%, rgba(1, 40, 80, .15) 100%);
}

.hero .wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: var(--step-4);
  text-shadow: 0 3px 12px rgba(0, 20, 60, .6);
}

.hero h1 span {
  color: var(--sun);
}

.hero .lead {
  color: #d8ecfa;
  margin-top: 14px;
}

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

.hero-bubbles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-bubbles i {
  position: absolute;
  bottom: -20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .08);
  animation: rise linear infinite;
}

@keyframes rise {
  to {
    transform: translate(var(--drift, 10px), -760px);
    opacity: 0;
  }
}

.wave,
.footer-wave {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  height: 70px;
}

.wave {
  bottom: -1px;
  z-index: 3;
}

.wave path {
  fill: var(--ocean);
}

@media (max-width: 820px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-block: 120px 96px;
  }
}

/* ---------- "Heute" ticket: entrance-ticket shape with punched notches ---------- */
.ticket {
  --tear: 92px;
  color: var(--ink);
  background: var(--tool);
  border-radius: var(--radius);
  -webkit-mask:
    radial-gradient(circle 13px at left var(--tear), #0000 97%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 13px at right var(--tear), #0000 97%, #000) right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle 13px at left var(--tear), #0000 97%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 13px at right var(--tear), #0000 97%, #000) right / 51% 100% no-repeat;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}

.ticket-head {
  height: var(--tear);
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 2px dashed var(--line-strong);
}

.ticket-head .eyebrow {
  color: var(--ink-soft);
}

.status {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 800 var(--step-2) var(--display);
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex: none;
  background: var(--ok);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--ok) 22%, transparent);
}

.status.is-closed .dot {
  background: var(--closed);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--closed) 22%, transparent);
}

.ticket-body {
  padding: 18px 24px 22px;
  display: grid;
  gap: 14px;
}

.ticket-sub {
  color: var(--ink-soft);
  font-size: .95rem;
}

.next-feed {
  background: var(--chip);
  border-radius: 12px;
  padding: 12px 14px;
  display: grid;
  gap: 2px;
}

.next-feed b {
  font: 700 var(--step-1) var(--display);
}

.next-feed span {
  color: var(--ink-soft);
  font-size: .95rem;
}

.feed-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: .95rem;
}

.feed-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 6px;
}

.feed-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.feed-list time {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
}

.ticket-link {
  font-weight: 800;
  color: var(--sun);
  justify-self: start;
}

/* ---------- Key points ---------- */
.facts {
  padding-block: 8px 0;
}

.facts ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), 1fr);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .08);
}

.facts li {
  padding: 18px 16px;
  display: grid;
  gap: 2px;
}

.facts li + li {
  border-left: 2px dashed var(--line);
}

.facts b {
  font: 800 var(--step-2) var(--display);
  font-variant-numeric: tabular-nums;
  background: var(--mint-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.facts span {
  font-size: .95rem;
}

@media (max-width: 720px) {
  .facts ul {
    grid-template-columns: 1fr 1fr;
  }

  .facts li:nth-child(odd) {
    border-left: 0;
  }

  .facts li:nth-child(n+3) {
    border-top: 2px dashed var(--line);
  }
}

/* ---------- Optional text between facts and animals (admin area) ---------- */
section.intro {
  padding-block: 56px 0;
}

.intro h2 {
  margin-bottom: 14px;
}

.intro-text {
  display: grid;
  gap: 12px;
  max-width: 70ch;
  font-size: var(--step-1);
}

/* ---------- Announcement (switched on in the admin area) ---------- */
.notice {
  padding-block: 32px 0;
}

.notice-card {
  border: 2px solid var(--sun);
  border-radius: var(--radius);
  background: rgba(255, 214, 10, .1);
  padding: 20px 24px;
  color: var(--ink);
}

/* ---------- News ---------- */
/* equal cards: upcoming events first, then news; posters keep their own aspect ratio */
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 40px;
}

.news-grid.is-single {
  grid-template-columns: minmax(0, 560px);
}

.news-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.news-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 2px solid var(--line-strong);
  box-shadow: 0 6px 18px rgba(1, 30, 60, .35);
}

.news-body {
  padding: 0 8px 8px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.news-card > img + .news-body {
  padding-top: 2px;
}

.news-body p,
.news-body ul {
  margin: 0;
}

.news-body ul {
  padding-left: 1.2em;
  display: grid;
  gap: 2px;
}

.news-body li::marker {
  color: var(--starfish);
}

/* event banner: big day + month, then title and time, all on orange; dark text for contrast */
.news-head {
  background: var(--starfish);
  color: var(--indigo);
  border-radius: 12px;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
}

.news-head-text {
  display: grid;
  gap: 2px;
}

.news-head h3 {
  margin: 0;
  color: var(--indigo);
}

.news-when {
  margin: 0;
  font-weight: 700;
}

.news-link {
  font-weight: 700;
  color: var(--sun);
}

.date-block {
  min-width: 52px;
  padding-right: 16px;
  border-right: 2px solid rgba(2, 0, 112, .25);
  text-align: center;
  font-family: var(--display);
  line-height: 1;
  display: grid;
  gap: 2px;
}

.date-block b {
  font-size: 2.4rem;
}

.date-block span {
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .08em;
}

/* divider between rows: the markup has one after every card, at two columns only every second one shows
   (cards and dividers alternate, so the divider after card 2, 4, … is child 4, 8, …) */
.news-sep {
  grid-column: 1 / -1;
  position: relative;
  margin-inline: 8%;
  border-top: 2px dashed var(--line);
  display: none;
}

.news-sep:nth-child(4n) {
  display: block;
}

.news-sep::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -7px;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--ocean);
}

@media (max-width: 720px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-sep {
    display: block;
  }
}

/* ---------- Animals ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.chip {
  border: 2px solid var(--line);
  background: transparent;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 999px;
  font: 700 .95rem var(--body);
  cursor: pointer;
}

.chip[aria-pressed="true"] {
  background: var(--sun);
  border-color: var(--sun);
  color: var(--indigo);
}

.animals {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.animal {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* the gallery JPGs have a 1-3 px white frame baked in; a slight zoom inside a clipped box hides it */
.animal-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.animal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
}

.animal-body {
  padding: 14px 16px 16px;
  display: grid;
  gap: 8px;
  flex: 1;
  align-content: start;
}

.animal .world {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--starfish);
}

.fact-btn {
  justify-self: start;
  border: 0;
  background: var(--chip);
  color: #ffffff;
  font: 800 .9rem var(--body);
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.fact-btn[aria-expanded="true"] {
  background: var(--sun);
  color: var(--indigo);
}

.fact {
  font-size: .95rem;
}

/* ---------- Plan your visit ---------- */
.plan {
  background: rgba(2, 0, 112, .18);
  border-block: 1px solid var(--ink-soft);
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.plan-col {
  display: grid;
  gap: 14px;
  align-content: start;
}

.plan-col h3 {
  font-size: var(--step-2);
}

.hours {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.hours td {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.hours td:last-child {
  text-align: right;
  font-weight: 700;
  white-space: nowrap;
  padding-left: 12px;
  color: var(--ink);
}

.small {
  font-size: .92rem;
}

.address {
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
}

.perks {
  border-top: 2px dashed var(--line);
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  padding-top: 15px;
  margin-top: 5px;
}

.perks li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
}

.perks svg {
  width: 34px;
  height: 34px;
}

.perks svg * {
  fill: none;
  stroke: var(--sun);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.perks b {
  color: var(--ink);
}

/* tappable phone number below the perks */
.call-card {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--tool);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  transition: transform .15s ease, border-color .15s ease;
}

.call-card:hover,
.call-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--sun);
}

.call-icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--sun);
  display: grid;
  place-items: center;
}

.call-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--indigo);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.call-text {
  display: grid;
  line-height: 1.2;
}

.call-text span {
  font-size: .85rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.call-text b {
  font: 800 var(--step-1) var(--display);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  white-space: nowrap;
}

@media (max-width: 920px) {
  .plan-grid {
    grid-template-columns: 1fr 1fr;
  }

  .plan-col:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .plan-grid {
    grid-template-columns: 1fr;
  }
}

/* tools: blue gradient panels like the ticket */
.cal,
.calc {
  --surface: var(--tool-surface);
  color: var(--ink);
  background: var(--tool);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
}

/* round buttons: outlined, fill slightly lighter than the panel */
.cal-nav,
.stepper button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  border: 2px solid #9fe3ff;
  color: #9fe3ff;
  font: 800 1.2rem var(--body);
  line-height: 1;
  cursor: pointer;
}

.cal-nav:not(:disabled):hover,
.stepper button:hover {
  background: rgba(255, 255, 255, .22);
  color: #ffffff;
  border-color: #ffffff;
}

.cal-nav:disabled {
  opacity: .3;
  cursor: default;
}

/* opening calendar: colour + strike-through encode open/closed, a sun dot marks exceptions */
.cal {
  padding: 16px;
  max-width: 380px;
}

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cal-head h4 {
  margin: 0;
  font: 700 var(--step-1) var(--display);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-wd {
  text-align: center;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--ink-soft);
  padding-bottom: 2px;
}

.day {
  position: relative;
  aspect-ratio: 1;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font: 700 .95rem var(--body);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  background: color-mix(in srgb, var(--ok) 30%, var(--surface));
}

.day.closed {
  background: color-mix(in srgb, var(--closed) 22%, var(--surface));
  color: var(--ink-soft);
  text-decoration: line-through;
}

.day.special::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 1.5px var(--ink);
}

.day.past {
  opacity: .4;
}

.day.today {
  box-shadow: inset 0 0 0 2px #9fe3ff;
}

.day[aria-pressed="true"] {
  outline: 3px solid var(--sun);
  outline-offset: 1px;
}

.cal-detail {
  background: rgba(255, 255, 255, .1);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: .95rem;
  min-height: 3.2em;
}

.cal-detail b {
  display: block;
}

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: .85rem;
  color: var(--ink-soft);
}

.cal-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sw {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  display: inline-block;
}

.sw.open {
  background: color-mix(in srgb, var(--ok) 30%, var(--tool-surface));
  box-shadow: inset 0 0 0 1px var(--ok);
}

.sw.closed {
  background: color-mix(in srgb, var(--closed) 22%, var(--tool-surface));
  box-shadow: inset 0 0 0 1px var(--closed);
}

.sw.special {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 1.5px var(--ink);
}

/* price calculator */
.calc {
  padding: 18px;
}

.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stepper .who {
  display: grid;
  line-height: 1.3;
}

.stepper .who small {
  color: var(--ink-soft);
}

.stepper .ctrl {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stepper output {
  min-width: 2ch;
  text-align: center;
  font: 800 var(--step-1) var(--display);
  font-variant-numeric: tabular-nums;
}

.total {
  border-top: 2px dashed var(--line-strong);
  padding-top: 12px;
  display: grid;
  gap: 6px;
}

.total-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.total-line b {
  font: 800 var(--step-3) var(--display);
  font-variant-numeric: tabular-nums;
  color: var(--sun);
}

.breakdown {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .92rem;
  color: var(--ink-soft);
  display: grid;
  gap: 2px;
}

.breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-variant-numeric: tabular-nums;
}

.saving {
  color: var(--ok);
  font-weight: 800;
  font-size: .95rem;
}

/* ---------- Birthday ---------- */
.birthday-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* transparent cut-out photo, anchored to the bottom edge, with the free-entry sticker above */
.birthday-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 16px 0;
  min-height: 280px;
}

.birthday-media img {
  width: 100%;
  max-width: 560px;
  height: auto;
}

.sticker {
  background: var(--sun);
  color: var(--indigo);
  font: 800 var(--step-2) var(--display);
  line-height: 1.1;
  text-align: center;
  padding: 16px 24px;
  border-radius: 20px;
  border: 3px solid #ffffff;
  transform: rotate(-4deg);
  max-width: 15ch;
}

.birthday-text {
  padding: 36px;
  display: grid;
  gap: 16px;
  align-content: center;
}

.price-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  background: var(--sun);
  color: var(--indigo);
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 800;
  justify-self: start;
}

.price-tag b {
  font: 800 1.6rem var(--display);
}

.birthday-text ul {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 4px;
  color: var(--ink);
}

.birthday-text a {
  color: #ffffff;
  font-weight: 800;
}

@media (max-width: 820px) {
  .birthday-card {
    grid-template-columns: 1fr;
  }

  .birthday-text {
    padding: 26px;
  }
}

/* ---------- Sponsorship ---------- */
.paten {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
}

/* keeps the original white frame with glow */
.paten img {
  width: 260px;
  border: 3px solid #ffffff;
  border-radius: 4px;
  box-shadow: 0 0 10px var(--indigo);
}

.paten-text {
  display: grid;
  gap: 14px;
}

.paten-text .btn {
  justify-self: start;
}

@media (max-width: 640px) {
  .paten {
    grid-template-columns: 1fr;
  }

  .paten img {
    width: 200px;
  }
}

/* ---------- Subpages ---------- */
.page {
  padding-block: 120px 40px;
}

.page-card {
  background: var(--panel);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  gap: 14px;
  max-width: 860px;
}

.page-card h3 {
  margin-top: 12px;
}

.page-card h4 {
  margin: 12px 0 0;
  font: 700 1.1rem var(--display);
  color: var(--ink);
}

.page-card ul {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 2px;
}

.page-card a {
  color: #ffffff;
}

.page-card .btn-sun {
  color: var(--indigo);
}

.facts-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 24px;
  margin: 0;
}

.facts-list dt {
  font-weight: 700;
  color: var(--ink);
}

.facts-list dd {
  margin: 0;
}

.source {
  font-size: .85rem;
}

@media (max-width: 640px) {
  .page-card {
    padding: 20px;
  }

  .facts-list {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .facts-list dd {
    margin-bottom: 10px;
  }
}

.split {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: start;
}

.split > div {
  display: grid;
  gap: 12px;
}

.split img {
  width: 260px;
  border: 3px solid #ffffff;
  border-radius: 4px;
  box-shadow: 0 0 10px var(--indigo);
}

@media (max-width: 720px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.link-list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.link-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.link-logo {
  background: #ffffff;
  border-radius: 10px;
  padding: 6px;
  display: grid;
  place-items: center;
  min-height: 60px;
}

.link-logo img {
  max-height: 70px;
  width: auto;
}

.link-list h3 {
  font-size: 1.1rem;
}

@media (max-width: 520px) {
  .link-list li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .link-logo {
    justify-self: start;
    min-width: 120px;
  }
}

/* ---------- Footer ---------- */
footer {
  background: var(--ocean-deep);
  color: var(--ink-soft);
  padding-block: 44px 28px;
}

.footer-wave {
  bottom: calc(100% - 1px);
}

.footer-wave path {
  fill: var(--ocean-deep);
}

footer .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

footer h3 {
  margin-bottom: 8px;
}

footer a {
  color: #c6e5fd;
}

footer a:hover {
  color: #ffffff;
}

footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.copyright {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: .9rem;
}

@media (max-width: 720px) {
  footer .wrap {
    grid-template-columns: 1fr;
  }
}

/* ---------- Mobile action bar ---------- */
/* floating deep-blue glass bar: icon above label, "Preise" in logo yellow */
.actionbar {
  display: none;
}

@media (max-width: 720px) {
  body {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }

  .actionbar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 30;
    padding: 6px;
    background: rgba(1, 42, 78, .82);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    backdrop-filter: blur(12px) saturate(140%);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(0, 15, 40, .45);
  }

  .actionbar a {
    display: grid;
    justify-items: center;
    gap: 3px;
    padding: 8px 4px 7px;
    border-radius: 16px;
    color: var(--ink);
    text-decoration: none;
    font: 800 .8rem var(--body);
    letter-spacing: .02em;
    -webkit-tap-highlight-color: transparent;
  }

  .actionbar a:active {
    background: var(--chip);
  }

  .actionbar svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .actionbar a:last-child {
    background: var(--sun);
    color: var(--indigo);
  }

  .actionbar a:last-child:active {
    background: #ffe24d;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-bubbles,
  .page-bubbles {
    display: none;
  }

  .logo,
  .call-card {
    transition: none;
  }
}
