:root {
  /* Zentrale Farben, Größen und wiederverwendbare Designwerte */
  --wine: #1f5f8f;
  --wine-dark: #123b5a;
  --rose: #3f83b5;
  --cream: #edf5fa;
  --paper: #fbfdff;
  --ink: #172733;
  --muted: #617482;
  --line: #d6e4ee;
  --green: #174e72;
  --green-light: #d7e9f4;
  --shadow: 0 18px 45px rgba(24, 64, 92, 0.14);
  --radius: 1.5rem;
  --shell: min(1160px, calc(100% - 2rem));
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

/* Grundelemente und barrierefreie Fokusdarstellung */

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

a {
  color: inherit;
}

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

:focus-visible {
  outline: 3px solid #2e8bc0;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: white;
  background: var(--wine-dark);
  border-radius: 0.5rem;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.section-shell {
  width: var(--shell);
  margin-inline: auto;
}

/* Fixierter Seitenkopf und Desktop-Navigation */
.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(31, 95, 143, 0.12);
  background: rgba(251, 253, 255, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--shell);
  min-height: 5rem;
  margin-inline: auto;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  line-height: 1.1;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  color: white;
  background: var(--wine);
  border-radius: 50% 50% 50% 16%;
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.brand strong {
  display: block;
  color: var(--wine-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.main-nav a {
  padding: 0.6rem 0.8rem;
  border-radius: 999px;
  color: #3f5361;
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--wine);
  background: var(--cream);
}

.menu-button {
  display: none;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.75rem;
  color: var(--wine-dark);
  background: var(--cream);
  border: 0;
  border-radius: 0.65rem;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  transition: transform 180ms ease;
}

.menu-icon {
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  position: absolute;
  left: 0;
  content: "";
}

.menu-icon::before { top: -5px; }
.menu-icon::after { top: 5px; }

/* Startseiten-Hero mit organisch zugeschnittenem Familienfoto */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(24rem, 1.1fr);
  align-items: center;
  width: var(--shell);
  min-height: min(540px, calc(100vh - 10rem));
  margin-inline: auto;
  padding-block: clamp(1.75rem, 4vw, 3.25rem);
  gap: clamp(1.5rem, 4vw, 3rem);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-copy::before {
  position: absolute;
  z-index: -1;
  top: -4rem;
  left: -5rem;
  width: 14rem;
  height: 14rem;
  background: #dcecf6;
  border-radius: 50%;
  content: "";
  filter: blur(2px);
  opacity: 0.65;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--rose);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

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

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

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--wine-dark);
}

h1 {
  max-width: 10ch;
  margin-bottom: 1.4rem;
  font-size: clamp(2.4rem, 4.8vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.25rem, 4.3vw, 3.65rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}

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

.hero-lead {
  max-width: 37rem;
  margin-bottom: 2rem;
  color: #425b6b;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem;
}

.hero-actions .button {
  flex: 0 0 12rem;
  width: 12rem;
  min-height: 3.25rem;
  height: 3.25rem;
  padding: 0.6rem 0.65rem;
  font-size: 0.9rem;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.15rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: white;
  background: var(--wine);
  box-shadow: 0 10px 25px rgba(31, 95, 143, 0.22);
}

.button-secondary {
  color: var(--wine);
  border-color: #b8d4e6;
  background: rgba(255, 255, 255, 0.6);
}

.hero-media {
  position: relative;
  width: min(100%, 25rem);
  justify-self: end;
  margin: 0;
}

.hero-media::before,
.hero-media::after {
  position: absolute;
  z-index: -1;
  content: "";
}

.hero-media::before {
  inset: 6% -4% -5% 8%;
  background: var(--green-light);
  border-radius: 45% 55% 48% 52% / 55% 42% 58% 45%;
  transform: rotate(3deg);
}

.hero-media::after {
  right: -0.8rem;
  bottom: 3.5rem;
  width: 4.5rem;
  height: 4.5rem;
  border: 1rem solid #78bce4;
  border-radius: 50%;
  opacity: 0.8;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 1.05 / 1;
  border-radius: 46% 54% 48% 52% / 55% 42% 58% 45%;
  box-shadow: var(--shadow);
  object-fit: cover;
  object-position: center;
}

.hero-media figcaption {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  padding: 0.7rem 1rem;
  color: white;
  background: rgba(18, 59, 90, 0.9);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 750;
  backdrop-filter: blur(8px);
}

/* Lokales Widget für den täglich wechselnden Spruch */
.daily-quote {
  position: relative;
  display: grid;
  overflow: hidden;
  grid-template-columns: auto 1fr;
  align-items: center;
  margin-top: 1rem;
  padding: clamp(0.8rem, 2vw, 1.15rem) clamp(1rem, 3vw, 1.5rem);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(24, 64, 92, 0.08);
  gap: clamp(0.75rem, 2vw, 1.25rem);
}

.daily-quote::after {
  position: absolute;
  right: -5rem;
  bottom: -7rem;
  width: 16rem;
  height: 16rem;
  background: #d8eaf5;
  border-radius: 50%;
  content: "";
  opacity: 0.55;
}

.quote-mark {
  position: relative;
  z-index: 1;
  color: var(--wine);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.25rem, 7vw, 4.75rem);
  line-height: 0.65;
}

.quote-content {
  position: relative;
  z-index: 1;
}

.quote-content h2 {
  margin-bottom: 0.3rem;
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
}

.quote-content blockquote {
  margin: 0;
}

.quote-content blockquote p {
  max-width: 43rem;
  margin-bottom: 0.35rem;
  color: #344f61;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-style: italic;
  line-height: 1.45;
}

.quote-date {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 750;
}

/* Jimmy-und-Faxe-Text sowie ausklappbares Gedicht */
.intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  padding-block: clamp(4.5rem, 9vw, 8rem);
  gap: clamp(2rem, 7vw, 6rem);
}

.section-lead,
.section-heading > p {
  color: var(--muted);
  font-size: 1.08rem;
}

.poem {
  padding: 1.25rem 1.5rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.poem summary {
  color: var(--wine-dark);
  font-weight: 800;
  cursor: pointer;
}

.poem-text {
  padding-top: 1.25rem;
  color: #496879;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-style: italic;
}

.poem-text p:last-child {
  margin-bottom: 0;
}

/* Kleines Memory-Spiel auf der Startseite */
.game-section {
  position: relative;
  overflow: hidden;
  color: white;
  background: var(--wine-dark);
}

.game-section::before {
  position: absolute;
  top: -10rem;
  left: -8rem;
  width: 28rem;
  height: 28rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 4rem rgba(255, 255, 255, 0.025), 0 0 0 8rem rgba(255, 255, 255, 0.018);
  content: "";
}

.game-layout {
  position: relative;
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  align-items: center;
  padding-block: clamp(4rem, 8vw, 7rem);
  gap: clamp(2.5rem, 8vw, 7rem);
}

.game-copy h2 {
  color: white;
}

.game-copy > p:not(.eyebrow, .game-status) {
  color: #d7e9f4;
}

.game-stats {
  display: flex;
  flex-wrap: wrap;
  margin: 1.5rem 0;
  gap: 0.65rem;
}

.game-stats span {
  padding: 0.5rem 0.8rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 0.85rem;
}

.game-reset {
  color: var(--wine-dark);
  background: #8cccf0;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.player-name {
  display: grid;
  max-width: 22rem;
  margin-bottom: 1rem;
  gap: 0.35rem;
  color: #e6f3fb;
  font-size: 0.85rem;
  font-weight: 800;
}

.player-name input {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.8rem;
  color: var(--ink);
  background: white;
  border: 2px solid transparent;
  border-radius: 0.7rem;
  font: inherit;
}

.player-name input:focus-visible {
  border-color: #8cccf0;
}

.game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.game-save {
  color: white;
  background: var(--rose);
  border: 0;
  font: inherit;
  cursor: pointer;
}

.game-save:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.game-status {
  min-height: 1.6em;
  margin: 1rem 0 0;
  color: #8cccf0;
  font-weight: 800;
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(4rem, 1fr));
  gap: clamp(0.55rem, 1.5vw, 0.9rem);
  perspective: 900px;
}

.game-area {
  display: grid;
  gap: 1.25rem;
}

.memory-card {
  position: relative;
  min-width: 0;
  aspect-ratio: 1 / 1;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 1rem;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 350ms ease;
}

.memory-card.is-open,
.memory-card.is-matched {
  transform: rotateY(180deg);
}

.memory-card.is-matched {
  cursor: default;
}

.memory-face {
  position: absolute;
  display: grid;
  inset: 0;
  place-items: center;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(10, 40, 60, 0.22);
  backface-visibility: hidden;
}

.memory-back {
  color: #8cccf0;
  background: var(--wine);
  border: 2px solid rgba(255, 255, 255, 0.14);
  font-family: Georgia, serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
}

.memory-front {
  background: var(--paper);
  border: 2px solid #8cccf0;
  font-size: clamp(2rem, 6vw, 3.5rem);
  transform: rotateY(180deg);
}

.memory-card.is-matched .memory-front {
  background: #e3f1f9;
  border-color: #75afd3;
}

.scoreboard {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  padding: 1.2rem 1.35rem;
  color: var(--ink);
  background: var(--paper);
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(10, 40, 60, 0.22);
}

.scoreboard-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.scoreboard-heading h3 {
  margin-bottom: 0.8rem;
  color: var(--wine-dark);
}

.scoreboard-heading .card-label {
  margin-bottom: 0.2rem;
}

.score-list {
  display: grid;
  margin: 0;
  padding-left: 1.8rem;
  gap: 0.35rem;
}

.score-list li {
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid var(--line);
}

.score-list li::marker {
  color: var(--wine);
  font-weight: 850;
}

.score-entry {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.score-entry strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-entry span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.82rem;
}

.score-empty {
  color: var(--muted);
  font-style: italic;
}

.score-error {
  color: #9d233f;
}

.score-note {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

/* Zweites Spiel: Fang den Mops */
.catch-game {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.catch-layout {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  align-items: start;
  gap: 1.25rem;
}

.catch-controls,
.catch-scoreboard {
  padding: 1.25rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.catch-stats {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  gap: 0.55rem;
}

.catch-stats span {
  padding: 0.45rem 0.7rem;
  color: var(--wine-dark);
  background: white;
  border-radius: 999px;
  font-size: 0.85rem;
}

.catch-name {
  display: grid;
  margin-bottom: 1rem;
  gap: 0.35rem;
  color: var(--wine-dark);
  font-size: 0.85rem;
  font-weight: 800;
}

.catch-name input {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.8rem;
  background: white;
  border: 1px solid #b9cedc;
  border-radius: 0.7rem;
  font: inherit;
}

.catch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.catch-actions .button {
  min-height: 2.75rem;
  padding: 0.55rem 0.85rem;
  font-size: 0.82rem;
  cursor: pointer;
}

.catch-actions .button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.catch-status {
  min-height: 1.6em;
  margin: 0.9rem 0 0;
  color: var(--wine);
  font-weight: 800;
}

.catch-arena {
  position: relative;
  overflow: hidden;
  min-height: 24rem;
  background: linear-gradient(180deg, #d9edf9 0 72%, #8cb9d3 72% 100%);
  border: 3px solid white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  touch-action: manipulation;
}

.catch-arena::before {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  width: 4rem;
  height: 4rem;
  background: #8cccf0;
  border-radius: 50%;
  content: "";
  opacity: 0.85;
}

.catch-target {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 4.25rem;
  height: 4.25rem;
  padding: 0;
  place-items: center;
  background: white;
  border: 3px solid var(--wine);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(18, 59, 90, 0.24);
  cursor: pointer;
  transition: left 100ms ease, top 100ms ease, transform 100ms ease;
  -webkit-tap-highlight-color: transparent;
}

.catch-target img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.catch-target[hidden] {
  display: none;
}

.catch-target:active {
  transform: scale(0.88);
}

.catch-scoreboard {
  grid-column: 1 / -1;
  color: var(--ink);
}

.catch-scoreboard h3 {
  color: var(--wine-dark);
}

/* Karten für Haus und Volvo Ocean Race */
.stories {
  padding-block: clamp(4.5rem, 8vw, 7rem);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  gap: 2rem;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading > p {
  max-width: 31rem;
  margin-bottom: 0.35rem;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 1.5rem;
}

.story-card {
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(24, 64, 92, 0.09);
}

.story-card-large > img {
  width: 100%;
  aspect-ratio: 1.55 / 1;
  object-fit: cover;
}

.story-content {
  padding: clamp(1.35rem, 3vw, 2rem);
}

.story-content p:not(.card-label) {
  color: var(--muted);
}

.card-label {
  margin-bottom: 0.5rem;
  color: var(--rose);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.text-link {
  color: var(--wine);
  font-weight: 850;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
}

.text-link:hover {
  color: var(--rose);
}

.photo-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 18.5rem;
  gap: 3px;
  background: var(--paper);
}

.photo-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-stack img:first-child {
  grid-row: span 2;
}

/* Dunkler Fußballbereich auf der Startseite */
.football {
  position: relative;
  overflow: hidden;
  margin-top: clamp(3rem, 7vw, 6rem);
  color: white;
  background: var(--green);
}

.football::before {
  position: absolute;
  top: -15rem;
  right: -10rem;
  width: 35rem;
  height: 35rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 5rem rgba(255, 255, 255, 0.025), 0 0 0 10rem rgba(255, 255, 255, 0.018);
  content: "";
}

.football-inner {
  position: relative;
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  padding-block: clamp(4.5rem, 8vw, 7rem);
  gap: clamp(2.5rem, 7vw, 6rem);
}

.football h2 {
  color: white;
}

.football-copy p:last-child {
  color: #c9e0ee;
  font-size: 1.05rem;
}

.eyebrow-light {
  color: #8cccf0;
}

.league-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.league-grid a {
  display: flex;
  min-height: 5.2rem;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 1rem;
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}

.league-grid a:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.league-grid strong {
  font-size: 1.03rem;
}

.league-grid span {
  color: #c9e0ee;
  font-size: 0.78rem;
}

/* Wetter-Widget und weitere nützliche Inhalte */
.useful {
  padding-block: clamp(5rem, 9vw, 8rem);
}

.useful-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.useful-card {
  display: flex;
  align-items: flex-start;
  padding: clamp(1.4rem, 4vw, 2rem);
  background: #eef5fa;
  border-radius: var(--radius);
  gap: 1.2rem;
}

.weather-widget-card {
  display: block;
}

.useful-card-heading {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}

.weather-widget {
  width: 100%;
  height: 215px;
  margin: 0.5rem 0 0.75rem;
  background: white;
  border: 0;
  border-radius: 1rem;
}

.weather-card {
  background: #e3f1f9;
}

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

.useful-card p:last-child {
  margin-bottom: 0;
}

.useful-icon {
  display: grid;
  flex: 0 0 auto;
  width: 3.4rem;
  height: 3.4rem;
  place-items: center;
  color: var(--wine);
  background: rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  font-size: 1.5rem;
}

.site-footer {
  color: #d6e4ee;
  background: #102b40;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 11rem;
  gap: 2rem;
}

.footer-inner > p {
  margin: 0;
  font-size: 0.86rem;
  text-align: right;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-brand p {
  margin: 0;
  line-height: 1.4;
}

.footer-brand strong {
  color: white;
  font-family: Georgia, serif;
  font-size: 1.2rem;
}

.footer-brand span:not(.brand-mark) {
  font-size: 0.83rem;
}

/* Gemeinsamer Aufbau aller Unterseiten */
.subpage-main {
  min-height: 70vh;
}

.page-hero {
  color: white;
  background: var(--wine-dark);
}

.page-hero-inner {
  width: var(--shell);
  margin-inline: auto;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1.25rem;
  gap: 0.45rem;
  color: #ccdfeb;
  font-size: 0.82rem;
}

.breadcrumbs a {
  text-underline-offset: 0.2em;
}

.page-hero h1 {
  max-width: 15ch;
  margin-bottom: 1rem;
  color: white;
  font-size: clamp(2.8rem, 6vw, 5rem);
}

.page-hero p:last-child {
  max-width: 44rem;
  margin-bottom: 0;
  color: #d7e9f4;
  font-size: 1.1rem;
}

.page-content {
  width: var(--shell);
  margin-inline: auto;
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

.feature-image {
  overflow: hidden;
  margin: 0;
  background: var(--cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-image img {
  width: 100%;
  max-height: 48rem;
  object-fit: cover;
}

.feature-image figcaption {
  padding: 0.8rem 1rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.content-intro {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  align-items: start;
  margin-bottom: 2.5rem;
  gap: clamp(1.5rem, 6vw, 5rem);
}

.content-intro h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.content-intro p {
  color: var(--muted);
  font-size: 1.08rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-grid figure {
  overflow: hidden;
  margin: 0;
  background: var(--cream);
  border-radius: 1.2rem;
}

.gallery-grid figure:first-child {
  grid-column: span 7;
}

.gallery-grid figure:nth-child(2) {
  grid-column: span 5;
}

.gallery-grid figure:nth-child(3) {
  grid-column: 3 / span 8;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  min-height: 19rem;
  object-fit: cover;
}

.widget-shell {
  min-height: 24rem;
  padding: clamp(1rem, 3vw, 2rem);
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.widget-note {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding: 1rem 1.15rem;
  color: #405968;
  background: var(--cream);
  border-radius: 1rem;
  gap: 0.7rem;
  font-size: 0.9rem;
}

.widget-note::before {
  content: "ⓘ";
  color: var(--wine);
  font-weight: 800;
}

.football-widget .fussballde_widget {
  width: 100% !important;
  min-height: 36rem;
}

/* Kompakter Kopf ausschließlich für die sieben Fußballseiten */
.football-page .header-inner {
  min-height: 4.25rem;
}

.football-page .page-hero-inner {
  padding-block: clamp(1.5rem, 4vw, 2.5rem);
}

.football-page .page-hero h1 {
  margin-bottom: 0.5rem;
  font-size: clamp(2.35rem, 5vw, 3.5rem);
}

.football-page .breadcrumbs {
  margin-bottom: 0.7rem;
}

.football-page .page-hero .eyebrow {
  margin-bottom: 0.35rem;
}

.league-switcher {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  gap: 0.5rem;
}

.league-switcher a {
  padding: 0.55rem 0.8rem;
  color: var(--wine);
  background: var(--cream);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.league-switcher a[aria-current="page"] {
  color: white;
  background: var(--wine);
}

.legacy-calculator {
  display: grid;
  max-width: 45rem;
  margin-inline: auto;
  gap: 1rem;
}

.legacy-calculator label,
.legacy-calculator .field-group {
  display: grid;
  gap: 0.35rem;
  font-weight: 750;
}

.legacy-calculator small {
  color: var(--muted);
  font-weight: 400;
}

.legacy-calculator input,
.legacy-calculator select {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.75rem;
  color: var(--ink);
  background: white;
  border: 1px solid #b9cedc;
  border-radius: 0.65rem;
  font: inherit;
}

.legacy-calculator button {
  min-height: 3rem;
  padding: 0.7rem 1rem;
  color: white;
  background: var(--wine);
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.provider-credit {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

/* Passwortgeschützter Administrationsbereich */
.admin-page {
  min-height: 100vh;
  padding: 2rem 1rem;
  background: var(--cream);
}

.admin-shell {
  width: min(46rem, 100%);
  margin-inline: auto;
}

.admin-panel {
  margin-top: 2rem;
  padding: clamp(1.25rem, 5vw, 2.5rem);
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.admin-panel h1 {
  max-width: none;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
}

.admin-form {
  display: grid;
  gap: 1rem;
}

.admin-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--wine-dark);
  font-weight: 800;
}

.admin-form input {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.75rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #b9cedc;
  border-radius: 0.65rem;
  font: inherit;
  font-weight: 400;
}

.admin-message,
.admin-error {
  padding: 0.8rem 1rem;
  border-radius: 0.7rem;
}

.admin-message {
  color: #164f72;
  background: #e3f1f9;
}

.admin-error {
  color: #8c243d;
  background: #fae9ed;
}

.admin-logout {
  margin-top: 1.25rem;
}

.admin-logout button {
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* Tablet-Layout */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 4rem;
  }

  .hero-copy {
    max-width: 43rem;
  }

  .hero-media {
    width: min(100%, 24rem);
    margin-inline: auto;
  }

  .hero-media img {
    aspect-ratio: 1.35 / 1;
  }

  .intro,
  .football-inner,
  .game-layout {
    grid-template-columns: 1fr;
  }

  .game-copy {
    max-width: 38rem;
  }

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


  .story-card {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
  }

  .photo-stack {
    height: auto;
    min-height: 22rem;
  }
}

/* Smartphone-Navigation und einspaltige Inhaltsbereiche */
@media (max-width: 720px) {
  .js .menu-button {
    display: inline-flex;
  }

  .header-inner {
    position: relative;
  }

  .js .main-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 1rem;
    box-shadow: var(--shadow);
  }

  .js .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 0.85rem 1rem;
  }

  .hero {
    min-height: auto;
  }

  .intro {
    padding-top: 5rem;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 1rem;
  }

  .story-card {
    display: block;
  }

  .photo-stack {
    min-height: 19rem;
  }

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

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .footer-inner > p {
    text-align: left;
  }

  /* Auf Smartphones erscheint die Bestenliste direkt vor den Spielkarten. */
  .game-area .scoreboard {
    order: -1;
  }

  .content-intro {
    grid-template-columns: 1fr;
  }

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

  .gallery-grid figure:first-child,
  .gallery-grid figure:nth-child(2),
  .gallery-grid figure:nth-child(3) {
    grid-column: auto;
  }

  .catch-layout {
    grid-template-columns: 1fr;
  }

  .catch-scoreboard {
    grid-column: auto;
  }

  .catch-arena {
    min-height: 20rem;
  }
}

/* Anpassungen für besonders schmale Smartphones */
@media (max-width: 480px) {
  :root {
    --shell: min(100% - 1.25rem, 1160px);
  }

  .brand small {
    display: none;
  }

  h1 {
    font-size: 2.75rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    flex-basis: auto;
    width: 100%;
  }

  .hero-media figcaption {
    right: 0.75rem;
    bottom: 0.75rem;
  }

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

  .memory-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }


  .useful-card {
    flex-direction: column;
  }

}

/* Bewegungen reduzieren, wenn dies im Betriebssystem gewünscht ist */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
