/*
 * Aviatis base theme (CI 1.4)
 *
 * All colours, fonts and spacings are CSS variables in :root.
 * A customer theme only overrides these variables; the layout rules below stay the same.
 */

/* ---------------------------------------------------------------------------
   Fonts (served locally, no external font service)
   --------------------------------------------------------------------------- */

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Regular.9897b7f5ce95.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-SemiBold.cb2dd6cbd028.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Bold.b54b12f49a94.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------------------------------------------------------
   Design tokens
   --------------------------------------------------------------------------- */

:root {
  /* Colours */
  --color-primary: #1025a1;      /* Aviatis Blau */
  --color-accent: #b62e2b;       /* Aviatis Rot, sparingly */
  --color-background: #ffffff;
  --color-surface: #f4f6fa;      /* helle Fläche */
  --color-text: #171a24;
  --color-text-muted: #4a4f5e;
  --color-border: #dde1ea;
  --color-on-primary: #ffffff;
  /* derived from the colours above, so a site's own colours carry through */
  --color-primary-dark: color-mix(in srgb, var(--color-primary) 80%, black);
  --color-primary-soft: color-mix(in srgb, var(--color-primary) 10%, white);

  /* Fonts */
  --font-heading: "Poppins", Arial, sans-serif;
  --font-body: "Inter", Arial, sans-serif;

  /* Spacing scale: 8, 16, 24, 32, 48 */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;

  /* Rhythm between sections (house style: clearly larger than any gap inside a section) */
  --space-section: clamp(80px, 10vw, 160px);

  /* Type scale: few sizes, big contrast */
  --text-small: 0.9375rem;
  --text-body: 1.0625rem;
  --text-lead: clamp(1.0625rem, 1.3vw, 1.25rem);
  --text-h3: var(--text-lead);
  --text-statement: clamp(1.5rem, 3vw, 2.25rem);
  --text-h2: clamp(1.875rem, 3.2vw, 2.75rem);
  --text-display: clamp(2.5rem, 6vw, 5.5rem);

  /* Layout */
  --content-width: 1240px;
  --text-width: 680px;
  --gutter: clamp(16px, 3vw, 32px);
  --radius: 0; /* decided once: square corners for buttons, pictures and surfaces */
  /* Einstellungen → Website → Ecken "Abgerundet" sets these (site_style.html); square by default */
  --radius-small: 0;
  --radius-button: 0;
  --radius-band: 0;
  --band-inset: 0px;
}

/* ---------------------------------------------------------------------------
   Base
   --------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  min-height: 100svh;
  overflow-x: clip; /* full-bleed sections use 100vw */
  display: flex;
  flex-direction: column;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 var(--space-3);
  text-wrap: balance;
}
h1 { font-size: var(--text-display); line-height: 0.98; letter-spacing: -0.035em; }
h2 { font-size: var(--text-h2); line-height: 1.05; letter-spacing: -0.025em; }
h3 { font-size: var(--text-h3); line-height: 1.25; letter-spacing: -0.01em; margin-bottom: var(--space-1); }

p { margin: 0 0 var(--space-2); }

a {
  color: var(--color-primary);
  text-underline-offset: 3px;
}
a:hover { color: var(--color-accent); }

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

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -100px;
  background: var(--color-primary);
  color: var(--color-on-primary);
  padding: var(--space-1) var(--space-2);
  z-index: 10;
}
.skip-link:focus { top: var(--space-2); }

.container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* A section that runs to both edges of the window while its content stays on the grid */
.bleed {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: max(var(--gutter), calc(50vw - var(--content-width) / 2 + var(--gutter)));
  padding-right: max(var(--gutter), calc(50vw - var(--content-width) / 2 + var(--gutter)));
}

/* ---------------------------------------------------------------------------
   Header and navigation
   --------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--color-background);
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}
/* js/nav.js: away while scrolling down, back on scrolling up */
.site-header--away { transform: translateY(-100%); }
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  min-height: 80px;
  flex-wrap: wrap;
}
.site-logo { margin-right: auto; min-width: 0; flex: 0 1 auto; } /* gives way first on narrow screens */
/* The original logo is square. CI minimum for the full logo is 200px digital;
   a horizontal logo variant for the header is an open point (see README). */
.site-logo img {
  width: auto;
  height: auto;
  max-width: 180px;
  max-height: 96px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-button);
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  color: var(--color-text);
  transition: background-color 160ms ease, color 160ms ease;
}
.site-nav a:hover { background: var(--color-surface); color: var(--color-text); }
.site-nav a[aria-current="page"] { background: var(--color-primary-soft); color: var(--color-primary); font-weight: 600; }
.site-nav__search svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
}
/* Desktop: the magnifier alone; the word returns in the folded menu */
.site-nav__search-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* taste-skill-ignore: visually hidden text */

/* Main action: stays in the header on every screen width */
.site-header .site-header__action {
  flex-shrink: 0;
  padding: 16px var(--space-3);
  white-space: nowrap;
}

/* Menu button (js/nav.js removes [hidden]; shown only below the breakpoint) */
.site-header__toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  gap: var(--space-1);
  min-height: 48px;
  padding: 0 var(--space-2);
  border: 0;
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  font: 600 var(--text-body)/1 var(--font-body);
  cursor: pointer;
}
.site-header__toggle-icon,
.site-header__toggle-icon::before,
.site-header__toggle-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), opacity 120ms ease;
}
.site-header__toggle-icon { position: relative; }
.site-header__toggle-icon::before,
.site-header__toggle-icon::after { content: ""; position: absolute; left: 0; }
.site-header__toggle-icon::before { transform: translateY(-6px); }
.site-header__toggle-icon::after { transform: translateY(6px); }
.is-open .site-header__toggle-icon { background: transparent; }
.is-open .site-header__toggle-icon::before { transform: rotate(45deg); }
.is-open .site-header__toggle-icon::after { transform: rotate(-45deg); }

/* js/nav.js: one row while everything fits; .site-header--compact as soon as it does not
   (depends on logo, number of menu items and button text, so no fixed breakpoint) */
.site-header--foldable .site-header__inner,
.site-header--foldable .site-nav ul { flex-wrap: nowrap; }
.site-header--measuring .site-header__inner > *,
.site-header--measuring .site-nav ul { flex-shrink: 0; flex-wrap: nowrap; }
.site-header--measuring .site-nav__sub { display: none !important; } /* a hidden sub-menu must not count as overflow */
.site-header--compact .site-header__toggle:not([hidden]) { display: inline-flex; order: 2; }
.site-header--compact .site-header__action { order: 1; }
/* The open menu lies over the page below the header bar, which stays as it is */
.site-header--compact .site-header__nav {
  display: none;
  position: fixed;
  top: var(--header-bottom, 80px);
  bottom: 0;
  left: 0;
  right: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-3);
  padding: var(--space-2) var(--gutter) var(--space-5);
  background: var(--color-background);
}
html.nav-open { overflow: hidden; }
.site-header--compact.is-open .site-header__nav {
  display: flex;
  transition: opacity 220ms ease-out, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
@starting-style {
  .site-header--compact.is-open .site-header__nav { opacity: 0; transform: translateY(-8px); }
}
.site-header--compact .site-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
.site-header--compact .site-nav a {
  display: flex;
  min-height: 52px;
  padding: 0 var(--space-2);
  font-size: 1.1875rem;
  font-weight: 600;
}
.site-header--compact .site-nav .has-children { flex-wrap: wrap; }
.site-header--compact .site-nav .has-children > a { flex: 1; }
.site-header--compact .site-nav__open { width: 52px; height: 52px; }
/* Phone: sub-items fold open below their item */
.site-header--compact .site-nav__sub {
  position: static;
  flex-basis: 100%;
  display: none;
  min-width: 0;
  padding: 0 0 var(--space-1) var(--space-2);
  box-shadow: none; /* taste-skill-ignore: removes the floating shadow on phones */
  visibility: visible;
  opacity: 1;
  transform: none;
}
.site-header--compact .is-sub-open > .site-nav__sub { display: flex; }
.site-header--compact .site-nav__sub a { min-height: 44px; font-size: var(--text-body); font-weight: 500; }
.site-header--compact .site-nav__search-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
@media (min-width: 701px) {
  .site-header--compact .site-header__nav { padding-left: max(var(--gutter), calc(50vw - var(--content-width) / 2 + var(--gutter))); }
}
@media (max-width: 600px) {
  .site-logo img { max-width: min(132px, 100%); max-height: 64px; }
  .site-header__inner { min-height: 72px; gap: var(--space-2) var(--space-1); }
  .site-header .site-header__action { padding: 16px 14px; font-size: var(--text-small); }
  .site-header__toggle { width: 48px; justify-content: center; padding: 0; }
  .site-header__toggle span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } /* taste-skill-ignore: label for screen readers */
}
@media (prefers-reduced-motion: reduce) {
  .site-header,
  .site-nav__sub,
  .site-nav__open svg,
  .site-header--compact.is-open .site-header__nav,
  .site-header__toggle-icon,
  .site-header__toggle-icon::before,
  .site-header__toggle-icon::after { transition: none; }
}

/* ---------------------------------------------------------------------------
   Main content and blocks
   --------------------------------------------------------------------------- */

.site-main {
  flex: 1;
  padding: var(--space-4) 0 var(--space-section);
}

.page-intro {
  max-width: 1000px;
  margin: var(--space-5) 0 var(--space-section);
}
.page-intro p {
  max-width: var(--text-width);
  font-size: var(--text-lead);
}

.block {
  max-width: var(--text-width);
  margin-bottom: var(--space-4);
}
.block--image {
  max-width: none;
}
.block--image figure { margin: 0; }
.block--image img { border-radius: var(--radius); }
.block--image figcaption {
  margin-top: var(--space-1);
  font-size: var(--text-small);
  color: var(--color-text-muted);
}
.rich-text ul,
.rich-text ol { padding-left: var(--space-3); margin: 0 0 var(--space-2); }

.button {
  display: inline-block;
  font: 600 var(--text-body)/1 var(--font-body);
  color: var(--color-on-primary);
  background: var(--color-primary);
  border: 0;
  border-radius: var(--radius-button);
  padding: 20px var(--space-4);
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}
.button:active { transform: scale(0.97); }
.button--large { padding: 24px var(--space-5); }
.button:hover {
  color: var(--color-on-primary);
  background: var(--color-primary-dark);
}
/* Secondary: a tinted surface instead of an outline */
.button--secondary {
  color: var(--color-primary);
  background: var(--color-primary-soft);
}
.button--secondary:hover {
  color: var(--color-on-primary);
  background: var(--color-primary);
}

/* ---------------------------------------------------------------------------
   Account pages (login, password reset)
   --------------------------------------------------------------------------- */

.account {
  max-width: 440px;
  margin: 0 auto;
  padding: var(--space-4);
  background: var(--color-surface);
  border-radius: var(--radius);
}
.form-field { margin-bottom: var(--space-3); }
.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.form-field input {
  width: 100%;
  font: inherit;
  padding: 14px var(--space-2);
  border: 0;
  border-radius: var(--radius);
  background: var(--color-background);
}
.form-help { font-size: var(--text-small); color: var(--color-text-muted); margin-top: var(--space-1); }
.form-help ul { margin: 0; padding-left: var(--space-2); }
.form-error,
.form-errors { color: var(--color-accent); }

/* ---------------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------------- */

.site-footer {
  background: var(--color-surface);
  padding: var(--space-5) 0 var(--space-4);
  font-size: var(--text-small);
  color: var(--color-text);
}
/* The name returns large as the close of the page */
.site-footer__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-h2);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-primary);
  margin: 0 0 var(--space-4);
}
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.site-footer a { color: inherit; }
.site-footer form { display: inline; }
.site-footer p { margin: 0 0 var(--space-1); }
.site-footer__links ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer__copy {
  margin-top: var(--space-3);
  font-size: var(--text-small);
}
.link-button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
}

/* ---------------------------------------------------------------------------
   Projektraum (protected project area)
   --------------------------------------------------------------------------- */

.pr-subnav {
  margin: 0 0 var(--space-4);
  background: var(--color-surface);
  padding: var(--space-2) var(--space-3);
}
.pr-subnav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0 0 var(--space-1);
}
.pr-subnav a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-weight: 600;
}
.pr-subnav a[aria-current="page"],
.pr-subnav a:hover { color: var(--color-primary); }

.pr-section { margin-bottom: var(--space-5); }

.pr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.pr-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: var(--space-3);
}
.pr-card h2 { font-size: var(--text-lead); }

.pr-list {
  list-style: none;
  margin: 0 0 var(--space-2);
  padding: 0;
}
.pr-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 0;
}
.pr-list li + li { margin-top: var(--space-1); }
.pr-list a { font-weight: 600; }
.pr-list p { margin: 4px 0 0; }
.pr-date { font-size: var(--text-small); color: var(--color-primary); font-weight: 600; }
.pr-meta { font-size: var(--text-small); color: var(--color-text-muted); }
.pr-empty { color: var(--color-text-muted); }

.pr-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}
.pr-tile {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  height: 100%;
  padding: var(--space-3);
  background: var(--color-surface);
  text-decoration: none;
  color: var(--color-text);
  transition: background-color 160ms ease;
}
.pr-tile:hover { background: var(--color-primary-soft); color: var(--color-text); }
.pr-tile strong { font-family: var(--font-heading); color: var(--color-primary); font-size: var(--text-lead); }

.badge {
  align-self: flex-start;
  display: inline-block;
  font-size: var(--text-small);
  font-weight: 600;
  padding: 2px var(--space-1);
  background: var(--color-background);
  color: var(--color-text-muted);
}
.badge--laufend { background: var(--color-primary-soft); color: var(--color-primary); }
.badge--abgeschlossen { background: #e9f3ec; color: #24613a; }

.hinweis {
  background: var(--color-primary-soft);
  padding: var(--space-3);
  margin-bottom: var(--space-2);
  max-width: var(--text-width);
}
.hinweis--wichtig { background: color-mix(in srgb, var(--color-accent) 12%, white); }
.hinweis .rich-text p:last-child { margin-bottom: 0; }

.faq {
  max-width: var(--text-width);
  background: var(--color-surface);
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-1);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: var(--text-body);
  color: var(--color-primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-heading);
  font-size: var(--text-lead);
  line-height: 1;
  transition: transform 200ms ease;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq .rich-text { margin-top: var(--space-1); }

.pr-filter {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.pr-filter select {
  font: inherit;
  padding: 12px var(--space-2);
  border: 0;
  border-radius: var(--radius);
  background: var(--color-surface);
}

/* ---------------------------------------------------------------------------
   Website blocks
   Sections (hero, text with image, cards, quote, call to action, FAQ) are
   spaced by --space-section; text blocks inside a section flow closer.
   --------------------------------------------------------------------------- */

.block--section { margin-top: var(--space-section); margin-bottom: var(--space-section); max-width: none; }
.block--section + .block--section { margin-top: 0; }
.page-content .site-main > .container > .block--section:first-child { margin-top: 0; }

/* Hero ------------------------------------------------------------------- */

.hero__inner {
  display: grid;
  gap: var(--space-4);
  align-items: end;
}
.hero__title {
  font-size: var(--text-display);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-3);
  max-width: 14ch;
}
.hero__lead { font-size: var(--text-lead); max-width: 34ch; margin-bottom: var(--space-4); }
.hero__media { overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* Field of the main colour, picture to the right running to the edge */
.hero--color {
  background: var(--color-primary);
  color: var(--color-on-primary);
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
}
.hero--color .hero__title { color: var(--color-on-primary); }
.hero--color.hero--with-image { padding-top: 0; padding-bottom: 0; padding-right: 0; }
.hero--color.hero--with-image .hero__text { padding: var(--space-section) 0; }
@media (min-width: 900px) {
  .hero--color.hero--with-image .hero__inner { grid-template-columns: 1fr 1fr; align-items: stretch; gap: var(--space-5); }
  .hero--color.hero--with-image .hero__text { align-self: end; }
  .hero--color.hero--with-image .hero__media { min-height: min(80svh, 760px); }
}
@media (max-width: 899px) {
  .hero--color.hero--with-image { padding-right: var(--gutter); padding-bottom: var(--gutter); }
  .hero--color.hero--with-image .hero__text { padding-bottom: 0; }
  .hero--color.hero--with-image .hero__media { aspect-ratio: 4 / 5; }
}

/* Light: headline on the ground, wide picture below across the full width */
.hero--light { padding-top: var(--space-4); }
.hero--light .hero__media {
  margin-left: calc(-1 * max(var(--gutter), calc(50vw - var(--content-width) / 2 + var(--gutter))));
  margin-right: calc(-1 * max(var(--gutter), calc(50vw - var(--content-width) / 2 + var(--gutter))));
  aspect-ratio: 21 / 9;
}
@media (max-width: 600px) { .hero--light .hero__media { aspect-ratio: 4 / 3; } }

.button--on-primary {
  background: var(--color-on-primary);
  color: var(--color-primary);
}
.button--on-primary:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
}
.hero--light .button--on-primary { background: var(--color-primary); color: var(--color-on-primary); }
.hero--light .button--on-primary:hover { background: var(--color-primary-dark); }

/* Text with picture -------------------------------------------------------- */

.text-image__inner {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}
@media (min-width: 900px) {
  .text-image__inner { grid-template-columns: 5fr 7fr; }
  .text-image--left .text-image__inner { grid-template-columns: 7fr 5fr; }
  .text-image--left .text-image__media { order: -1; }
}
.text-image__text { max-width: 52ch; }
.text-image__text p { font-size: var(--text-lead); }
.text-image__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.text-image--surface {
  background: var(--color-surface);
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
}

/* Cards: no boxes; with three or more the first one leads ------------------ */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-5) var(--space-4);
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
}
@media (min-width: 900px) {
  .cards--featured { grid-template-columns: repeat(3, 1fr); }
  .cards--featured .card:first-child { grid-column: span 2; grid-row: span 2; }
  .cards--featured .card:first-child .card__title { font-size: var(--text-h2); line-height: 1.05; letter-spacing: -0.025em; }
  .cards--featured .card:first-child p { font-size: var(--text-lead); }
}
.card__title { font-size: var(--text-h3); line-height: 1.25; letter-spacing: -0.01em; margin-bottom: var(--space-1); }
.card__link { display: block; color: inherit; text-decoration: none; }
.card__media { overflow: hidden; margin-bottom: var(--space-3); background: var(--color-surface); }
.card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1); }
.card__link:hover .card__media img { transform: scale(1.04); }
.card p { margin-bottom: var(--space-2); }
.card__more { font-weight: 600; color: var(--color-primary); }
.card__more [aria-hidden] { display: inline-block; transition: transform 200ms ease; }
.card__link:hover .card__more [aria-hidden],
.card__link:focus-visible .card__more [aria-hidden] { transform: translateX(4px); }

/* Quote: a statement set large -------------------------------------------- */

.quote { margin-left: 0; margin-right: 0; max-width: 1000px; }
.quote blockquote { margin: 0 0 var(--space-3); }
.quote blockquote p {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-statement);
  font-size: clamp(1.375rem, 6cqi, 2.25rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  margin: 0;
}
.quote blockquote p::before { content: "„"; }
.quote blockquote p::after { content: "“"; }
.quote figcaption { font-size: var(--text-body); }

/* Call to action: field of the main colour ---------------------------------- */

.cta {
  background: var(--color-primary);
  color: var(--color-on-primary);
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
}
.cta h2 { color: var(--color-on-primary); max-width: 16ch; }
.cta p { font-size: var(--text-lead); max-width: 40ch; }
.cta__inner { display: grid; gap: var(--space-4); align-items: end; }
@media (min-width: 900px) { .cta__inner { grid-template-columns: 1fr auto; } }
.site-main > .container > .cta:last-child { margin-bottom: calc(-1 * var(--space-section)); }

/* FAQ: heading beside the questions, items separated by tone, not lines ----- */

@media (min-width: 900px) {
  .faq-block { display: grid; grid-template-columns: 4fr 8fr; gap: var(--space-5); align-items: start; }
}
.faq-block__items { display: grid; gap: var(--space-1); }
.faq-block .faq { max-width: none; background: var(--color-surface); padding: 0; }
.faq-block .faq summary { padding: var(--space-3); }
.faq-block .faq .rich-text { padding: 0 var(--space-3) var(--space-3); margin: 0; }

/* Video ---------------------------------------------------------------------- */

.video-block { margin-left: 0; margin-right: 0; }
.video-block__frame { position: relative; background: var(--color-surface); }
.video-block video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.video-block__toggle {
  position: absolute;
  right: var(--space-2);
  bottom: var(--space-2);
  font: 600 var(--text-small)/1 var(--font-body);
  color: var(--color-text);
  background: var(--color-background);
  border: 0;
  padding: 12px var(--space-2);
  cursor: pointer;
}
.video-block figcaption { margin-top: var(--space-1); font-size: var(--text-small); color: var(--color-text-muted); }

/* Key figures: the numbers are the picture ---------------------------------- */

.stats__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-5) var(--space-4);
  margin: var(--space-4) 0 0;
}
.stat { display: flex; flex-direction: column-reverse; }
.stat__value {
  margin: 0 0 var(--space-1);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-h2);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
}
.stat__suffix { margin-left: 0.08em; }
.stat__label { font-size: var(--text-body); }
.stats--primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
}
.stats--primary h2,
.stats--primary .stat__value { color: var(--color-on-primary); }

/* Team ------------------------------------------------------------------------ */

@media (min-width: 900px) {
  .team__head { display: grid; grid-template-columns: 5fr 7fr; gap: var(--space-5); align-items: end; }
}
.team__head p { font-size: var(--text-lead); max-width: 52ch; }
.team__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-5) var(--space-3);
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
}
.person__photo { aspect-ratio: 4 / 5; background: var(--color-surface); margin-bottom: var(--space-2); overflow: hidden; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__role { margin-bottom: var(--space-1); }
.person__contact { font-size: var(--text-small); }

/* Gallery: the first picture leads, the others follow in a grid ------------ */

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-1);
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
}
@media (min-width: 900px) {
  .gallery__grid { grid-template-columns: repeat(4, 1fr); }
  .gallery__grid li:first-child { grid-column: span 2; grid-row: span 2; }
}
.gallery__grid li:first-child { grid-column: span 2; }
.gallery__grid a { display: block; overflow: hidden; height: 100%; }
.gallery__grid img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1); }
.gallery__grid a:hover img { transform: scale(1.04); }
/* Exactly four pictures: the first large, two beside it, the fourth across below them (no empty cell) */
@media (min-width: 700px) {
  .gallery__grid:has(> li:nth-child(4):last-child) { grid-template-columns: 2fr 1fr 1fr; }
  .gallery__grid:has(> li:nth-child(4):last-child) li:first-child { grid-column: auto; grid-row: span 2; }
  .gallery__grid:has(> li:nth-child(4):last-child) li:last-child { grid-column: span 2; }
  .gallery__grid:has(> li:nth-child(4):last-child) li:first-child img { aspect-ratio: auto; }
  .gallery__grid:has(> li:nth-child(4):last-child) li:last-child img { aspect-ratio: 2 / 1; }
}

.lightbox {
  width: 100vw;
  height: 100svh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: var(--space-5) var(--space-4);
  border: 0;
  background: var(--color-text);
}
.lightbox::backdrop { background: var(--color-text); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__image { max-width: 100%; max-height: calc(100svh - 2 * var(--space-5)); width: auto; height: auto; }
.lightbox button {
  position: absolute;
  font: 600 var(--text-body)/1 var(--font-body);
  color: var(--color-text);
  background: var(--color-background);
  border: 0;
  padding: 14px var(--space-2);
  cursor: pointer;
}
.lightbox__close { top: var(--space-2); right: var(--space-2); }
.lightbox__prev { left: var(--space-2); top: 50%; }
.lightbox__next { right: var(--space-2); top: 50%; }

/* Timeline: the date leads each entry; order shown by position, no numbers -- */

.timeline__list { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; gap: var(--space-5); }
@media (min-width: 900px) {
  .timeline__entry { display: grid; grid-template-columns: 4fr 8fr; gap: var(--space-5); }
}
.timeline__date {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-statement);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  margin: 0 0 var(--space-1);
}
.timeline__body { max-width: var(--text-width); }
.timeline__image { margin-top: var(--space-3); }
.timeline__image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* ---------------------------------------------------------------------------
   Form pages
   --------------------------------------------------------------------------- */

.site-form { max-width: var(--text-width); }
.site-form textarea,
.site-form select,
.site-form input[type="text"],
.site-form input[type="email"],
.site-form input[type="url"],
.site-form input[type="number"],
.site-form input[type="date"],
.site-form input[type="tel"] {
  width: 100%;
  font: inherit;
  padding: 14px var(--space-2);
  border: 0;
  border-radius: var(--radius);
  background: var(--color-surface);
}
.site-form textarea { min-height: 160px; }
.form-field--checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-1);
  align-items: start;
}
.form-field--checkbox input { margin-top: 5px; width: 18px; height: 18px; }
.form-field--checkbox label { font-weight: 400; }
.form-field--checkbox .form-error { grid-column: 1 / -1; }
.form-hp {
  position: absolute;
  left: -10000px;
  width: 1px; /* taste-skill-ignore: invisible honeypot field, not a rule */
  height: 1px; /* taste-skill-ignore */
  overflow: hidden;
}

/* ---------------------------------------------------------------------------
   Header navigation group and language switcher
   --------------------------------------------------------------------------- */

.site-header__nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.language-switcher ul {
  display: flex;
  gap: var(--space-1);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--text-small);
  font-weight: 600;
}
.language-switcher a { color: var(--color-text-muted); text-decoration: none; }
.language-switcher a:hover { color: var(--color-primary); }
.language-switcher [aria-current] { color: var(--color-primary); }

/* ---------------------------------------------------------------------------
   Entrance animation (js/reveal.js). Hidden only while the script is pending or
   running; with reduced motion or without the script everything stays visible.
   --------------------------------------------------------------------------- */

.motion-pending [data-reveal] > *,
.motion-ready [data-reveal] > * { opacity: 0; }
.hero__media img { will-change: transform; }

/* Functional areas (account pages, project area): headings one step smaller than on websites */
.account h1,
.projektraum h1 { font-size: var(--text-h2); line-height: 1.05; letter-spacing: -0.025em; }
.projektraum h2 { font-size: var(--text-lead); letter-spacing: -0.01em; }
.projektraum .page-intro { margin: var(--space-4) 0 var(--space-5); }

/* ---------------------------------------------------------------------------
   Blog
   --------------------------------------------------------------------------- */

.blog-filter { margin: calc(-1 * var(--space-4)) 0 var(--space-5); }
.blog-filter ul { display: flex; flex-wrap: wrap; gap: var(--space-1); list-style: none; margin: 0; padding: 0; }
.blog-filter a {
  display: inline-block;
  padding: 10px var(--space-2);
  background: var(--color-surface);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
}
.blog-filter a[aria-current] { background: var(--color-primary); color: var(--color-on-primary); }

.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-5) var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}
.post-teaser a { display: block; color: inherit; text-decoration: none; }
.post-teaser h2 { font-size: var(--text-lead); letter-spacing: -0.01em; margin-bottom: var(--space-1); }
.post-teaser h3 { margin-bottom: 0; }
.post-teaser a:hover h2,
.post-teaser a:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.post-teaser__media { overflow: hidden; margin-bottom: var(--space-2); }
.post-teaser__media img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1); }
.post-teaser a:hover img { transform: scale(1.03); }
@media (min-width: 900px) {
  .post-teaser--lead { grid-column: 1 / -1; }
  .post-teaser--lead a { display: grid; grid-template-columns: 7fr 5fr; gap: var(--space-5); align-items: center; }
  .post-teaser--lead .post-teaser__media { margin: 0; }
  .post-teaser--lead h2 { font-size: var(--text-h2); line-height: 1.05; letter-spacing: -0.025em; }
}
.post-list--three { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.post-meta { font-size: var(--text-small); color: var(--color-text-muted); margin-bottom: var(--space-1); }
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-top: var(--space-5); }
.post-feed { margin-top: var(--space-5); font-size: var(--text-small); }

.post__head { max-width: 960px; margin: var(--space-5) 0 var(--space-4); }
.post__head h1 { font-size: var(--text-h2); line-height: 1.05; letter-spacing: -0.025em; }
.post__lead { font-size: var(--text-lead); max-width: var(--text-width); }
.post__image { margin: 0 0 var(--space-5); }
.post__image img { width: 100%; }
.post__body > .block:not(.block--section) { max-width: var(--text-width); }
.post__foot { max-width: var(--text-width); margin-top: var(--space-5); }
.post-tags { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-2); list-style: none; margin: 0 0 var(--space-3); padding: 0; }
.post-share { font-size: var(--text-small); }
.latest-posts__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-2); }
.latest-posts .post-list { margin-top: var(--space-4); }

/* ---------------------------------------------------------------------------
   Navigation: sub-menus, breadcrumbs, search
   --------------------------------------------------------------------------- */

.site-nav li { position: relative; }
.site-nav .has-children { display: flex; align-items: center; }
.site-nav .has-children > a { padding-right: 6px; }
/* The small button beside an item with sub-items (js/nav.js shows it) */
.site-nav__open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-button);
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  transition: background-color 160ms ease;
}
.site-nav__open:hover { background: var(--color-surface); }
.site-nav__open svg { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms ease; }
.site-nav__open[aria-expanded="true"] svg { transform: rotate(180deg); }
/* Desktop: a floating panel below the item */
.site-nav__sub {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  min-width: 220px;
  padding: var(--space-1);
  border-radius: var(--radius);
  background: var(--color-background);
  box-shadow: 0 16px 40px rgb(23 26 36 / 0.14); /* taste-skill-ignore: the open sub-menu floats over the page */
  visibility: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms;
}
.site-nav__sub a { display: flex; justify-content: flex-start; width: 100%; text-align: start; }
/* Hover opens it on desktops; the keyboard uses the button (focus alone would keep it open after Escape) */
.site-header:not(.site-header--compact) .has-children:hover > .site-nav__sub,
html:not(.js) .site-nav .has-children:focus-within > .site-nav__sub, /* without script: open while a link inside has focus */
.site-nav .is-sub-open > .site-nav__sub {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.breadcrumbs { margin: var(--space-2) 0 calc(-1 * var(--space-4)); font-size: var(--text-small); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: var(--space-1); list-style: none; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: var(--space-1); color: var(--color-text-muted); }
.breadcrumbs a { color: var(--color-text-muted); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* taste-skill-ignore */
.search-form { display: flex; gap: var(--space-1); max-width: var(--text-width); }
.search-form input {
  flex: 1;
  font: inherit;
  font-size: var(--text-lead);
  padding: 16px var(--space-3);
  border: 0;
  border-radius: var(--radius);
  background: var(--color-surface);
}
.search-count { color: var(--color-text-muted); }
.search-results { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); max-width: var(--text-width); }
.search-results a { display: block; padding: var(--space-3); background: var(--color-surface); color: inherit; text-decoration: none; }
.search-results a:hover h2 { text-decoration: underline; }
.search-results h2 { font-size: var(--text-lead); margin-bottom: var(--space-1); }
.search-results p { margin: 0; color: var(--color-text-muted); }

/* ---------------------------------------------------------------------------
   Columns, table, logos, downloads, pricing, location
   --------------------------------------------------------------------------- */

.columns { display: grid; gap: var(--space-5) var(--space-4); }
@media (min-width: 900px) {
  .columns--2 { grid-template-columns: 1fr 1fr; }
  .columns--3 { grid-template-columns: repeat(3, 1fr); }
}
.columns__column > .block { margin-bottom: var(--space-3); max-width: none; }

/* Section ("Abschnitt"): band with background and columns in fixed proportions --------- */

.section--small { margin-top: var(--space-5); margin-bottom: var(--space-5); }
.section--large { margin-top: calc(var(--space-section) * 1.5); margin-bottom: calc(var(--space-section) * 1.5); }
/* With a background the band runs to the edges (.bleed) and the spacing moves inside */
.section--light,
.section--primary { margin-top: 0; margin-bottom: 0; padding-top: var(--space-section); padding-bottom: var(--space-section); }
.section--light.section--small,
.section--primary.section--small { padding-top: var(--space-5); padding-bottom: var(--space-5); }
.section--light.section--large,
.section--primary.section--large { padding-top: calc(var(--space-section) * 1.5); padding-bottom: calc(var(--space-section) * 1.5); }
.section--light { background: var(--color-surface); }
.section--primary { background: var(--color-primary); color: var(--color-on-primary); }
.section--primary :is(h2, h3, a:not(.button)) { color: var(--color-on-primary); }
.section--primary .button { background: var(--color-on-primary); color: var(--color-primary); }
.section--primary .button:hover { background: var(--color-primary-soft); color: var(--color-primary-dark); }

/* Stacked columns (narrow screens) are separate statements: clearly more room between them than inside */
.section__grid { display: grid; gap: clamp(72px, 10vw, 96px) var(--space-4); }
@media (min-width: 900px) {
  .section__grid--1-1 { grid-template-columns: 1fr 1fr; }
  .section__grid--1-2 { grid-template-columns: 1fr 2fr; }
  .section__grid--2-1 { grid-template-columns: 2fr 1fr; }
  .section__grid--1-1-1 { grid-template-columns: repeat(3, 1fr); }
  .section__grid--1-1-1-1 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 600px) and (max-width: 899px) {
  .section__grid--1-1-1-1 { grid-template-columns: 1fr 1fr; }
}
/* Blocks inside a column flow closely and use the column's full width */
.section__column > .block { max-width: none; margin-top: 0; margin-bottom: var(--space-3); }
/* …but running text keeps a readable line length, also in a wide column */
.section__column > .rich-text,
.columns__column > .rich-text { max-width: 68ch; }
/* Statements size themselves to their column (a quote in a narrow column stays at two or three lines) */
.section__column,
.columns__column { container-type: inline-size; }
.section__column > .block:last-child { margin-bottom: 0; }

.table-block__scroll { overflow-x: auto; }
.table-block table { width: 100%; border-collapse: collapse; font-size: var(--text-body); }
.table-block th,
.table-block td { text-align: left; padding: 12px var(--space-2); border-bottom: 1px solid var(--color-border); vertical-align: top; } /* taste-skill-ignore: real data table */
.table-block thead th { background: var(--color-surface); font-weight: 600; }

.logos__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-5);
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
}
.logos__list img { max-height: 56px; width: auto; filter: grayscale(1); opacity: 0.8; transition: filter 200ms ease, opacity 200ms ease; }
.logos__list a:hover img { filter: none; opacity: 1; }

.downloads__list { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; gap: var(--space-1); max-width: var(--text-width); }
.downloads__list a {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--color-surface);
  color: var(--color-text);
  text-decoration: none;
}
.downloads__list a:hover .downloads__title { text-decoration: underline; }
.downloads__title { font-weight: 600; color: var(--color-primary); }
.downloads__meta { color: var(--color-text-muted); white-space: nowrap; }

.pricing__list { display: grid; gap: var(--space-3); list-style: none; margin: var(--space-4) 0 0; padding: 0; }
@media (min-width: 900px) {
  .pricing__list--2 { grid-template-columns: repeat(2, 1fr); }
  .pricing__list--3 { grid-template-columns: repeat(3, 1fr); }
  .pricing__list--4 { grid-template-columns: repeat(4, 1fr); }
}
.plan { background: var(--color-surface); padding: var(--space-4); display: flex; flex-direction: column; }
.plan__price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-h2);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-primary);
  margin: var(--space-2) 0 var(--space-1);
}
.plan__period { color: var(--color-text-muted); margin-bottom: var(--space-3); }
.plan__features { padding-left: var(--space-3); margin: 0 0 var(--space-3); flex: 1; }
.plan__features li + li { margin-top: var(--space-1); }
.plan--highlight { background: var(--color-primary); color: var(--color-on-primary); }
.plan--highlight h3,
.plan--highlight .plan__price,
.plan--highlight .plan__period { color: var(--color-on-primary); }
.pricing__note { margin-top: var(--space-2); font-size: var(--text-small); color: var(--color-text-muted); }

@media (min-width: 900px) { .location { display: grid; grid-template-columns: 5fr 7fr; gap: var(--space-5); align-items: center; } }
.location address { font-style: normal; font-size: var(--text-lead); margin-bottom: var(--space-2); }
.location__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------------------------------------------------------------------------
   Events
   --------------------------------------------------------------------------- */

.event-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); }
.event-teaser a {
  display: grid;
  grid-template-columns: minmax(120px, 2fr) 10fr;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-3);
  background: var(--color-surface);
  color: var(--color-text);
  text-decoration: none;
}
.event-teaser__date { font-weight: 600; font-size: var(--text-lead); color: var(--color-primary); }
@media (max-width: 600px) {
  /* Date above the title: two narrow columns would break both into many lines */
  .event-teaser a { grid-template-columns: 1fr; gap: var(--space-1); }
}
.event-teaser__title { display: block; font-family: var(--font-heading); font-weight: 700; font-size: var(--text-lead); color: var(--color-primary); }
.event-teaser a:hover .event-teaser__title { text-decoration: underline; }
.event-teaser--past a { background: var(--color-background); }
.event-teaser--past .event-teaser__date,
.event-teaser--past .event-teaser__title { color: var(--color-text-muted); }
.event__facts { display: grid; gap: var(--space-2); margin: 0 0 var(--space-4); max-width: var(--text-width); }
@media (min-width: 700px) { .event__facts { grid-template-columns: 1fr 1fr; } }
.event__facts dt { font-weight: 600; color: var(--color-text-muted); }
.event__facts dd { margin: 0; font-size: var(--text-lead); }
.event__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-5); }

/* ---------------------------------------------------------------------------
   Hero "Karte": a large photograph across the window, a printed card with a
   stripe band in the site's accent colour lying on its lower left corner.
   On a phone the photograph comes first and the card overlaps its bottom.
   --------------------------------------------------------------------------- */

.hero--card {
  --hero-gap: 12px;
  padding: 0 var(--hero-gap) var(--hero-gap);
}
.hero--card .hero__inner {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(calc(100svh - 100px), 920px);
  padding: clamp(16px, 3vw, 40px);
}
.hero--card .hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--radius-band);
}
.hero--card .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(600px, 52%);
  min-width: 0; /* the stripe is longer than the card and is cut off, it must not widen it */
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-background);
}
.stripe {
  display: flex;
  flex: none;
  height: 40px;
  overflow: hidden;
  min-width: 0;
}
.stripe span { flex: 0 0 28px; }
.stripe span:nth-child(odd) { background: var(--color-accent); }
.hero--card .hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(24px, 3vw, 40px) clamp(24px, 3vw, 44px) var(--space-3);
}
.hero--card .hero__title {
  font-size: clamp(2.25rem, 3.6vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 12ch;
  margin-bottom: var(--space-3);
}
.hero--card .hero__lead { max-width: 34ch; color: var(--color-text); margin-bottom: var(--space-4); }
.hero--card .hero__text p:last-child { margin-bottom: 0; }
.hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  margin: 0;
  padding: var(--space-2) clamp(24px, 3vw, 44px) clamp(24px, 3vw, 36px);
  font-size: var(--text-small);
}
.hero__links a { color: var(--color-text); font-weight: 600; text-decoration-thickness: 2px; text-decoration-color: var(--color-accent); }
.hero__links a:hover { color: var(--color-primary); }

@media (max-width: 799px) {
  .hero--card .hero__inner { flex-direction: column; align-items: stretch; min-height: 0; padding: 0; }
  .hero--card .hero__media { position: relative; order: -1; height: 56svh; min-height: 300px; }
  .hero__card { width: auto; margin: -48px var(--hero-gap) 0; }
  .stripe { height: 32px; }
  .hero--card .hero__title { font-size: clamp(2.125rem, 9vw, 2.75rem); }
}

/* ---------------------------------------------------------------------------
   Ticket: one offer on a flat ground. Main part and stub are split by a
   perforation (round dots) with a notch bitten out at both ends. The chosen
   option's price shows on the stub via :has(); without it the first one shows.
   --------------------------------------------------------------------------- */

.ticket-block {
  --ticket-ground: var(--color-surface);
  --ticket-paper: var(--color-background);
  margin-top: 0;
  margin-bottom: 0;
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
  background: var(--ticket-ground);
}
.ticket {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(280px, 3fr); /* the stub keeps room for its button */
  grid-template-areas: "main stub" "details stub";
  grid-template-rows: 1fr auto;
  max-width: 1040px;
  margin: 0 auto;
}
.ticket__main,
.ticket__details,
.ticket__stub { background: var(--ticket-paper); }
.ticket__main {
  grid-area: main;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-5) var(--space-4);
}
.ticket__title {
  font-size: var(--text-h2);
  line-height: 1.05;
  margin: 0;
  max-width: 18ch;
}
.ticket__choice { border: 0; margin: 0; padding: 0; min-width: 0; }
.ticket__legend { padding: 0; margin-bottom: var(--space-2); font-weight: 600; }
.ticket__options { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.ticket__option {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 var(--space-3);
  background: var(--ticket-ground);
  color: var(--color-text);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.ticket__option:active { transform: scale(0.97); }
.ticket__option input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ticket__option:hover { background: var(--color-primary-soft); }
.ticket__option:has(input:checked) { background: var(--color-primary); color: var(--color-on-primary); }
.ticket__option:has(input:focus-visible) { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.ticket__details {
  grid-area: details;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-1) var(--space-4);
  margin: 0;
  padding: 0 var(--space-5) var(--space-5);
  list-style: none;
}
.ticket__stub {
  grid-area: stub;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-3) var(--space-3);
  border-left: 6px dotted var(--ticket-ground); /* the perforation: round dots in the ground colour */
  text-align: center;
}
/* Notches where main part and stub meet */
.ticket__stub::before,
.ticket__stub::after {
  content: "";
  position: absolute;
  left: -17px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ticket-ground);
}
.ticket__stub::before { top: -14px; }
.ticket__stub::after { bottom: -14px; }
.ticket__slot { display: none; }
.ticket__slot[data-option="0"] { display: block; }
.ticket:has(input[data-index]:checked) .ticket__slot { display: none; }
.ticket:has(input[data-index="0"]:checked) .ticket__slot[data-option="0"],
.ticket:has(input[data-index="1"]:checked) .ticket__slot[data-option="1"],
.ticket:has(input[data-index="2"]:checked) .ticket__slot[data-option="2"],
.ticket:has(input[data-index="3"]:checked) .ticket__slot[data-option="3"] { display: block; }
.ticket__price {
  margin: 0 0 var(--space-1);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.25rem, 3.6vw, 3.5rem); /* the hero's size: one display step on the page */
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
}
.ticket__detail { margin: 0; }
.ticket__button {
  width: 100%;
  min-height: 56px;
  padding: 0 var(--space-2);
  border: 0;
  border-radius: var(--radius);
  background: var(--color-primary);
  color: var(--color-on-primary);
  font: 600 var(--text-body)/1 var(--font-body);
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}
.ticket__button:hover { background: var(--color-primary-dark); }
@media (max-width: 999px) {
  .ticket__stub { padding-inline: var(--space-2); }
  .ticket__button { font-size: var(--text-small); white-space: nowrap; }
}
.ticket__button:active { transform: scale(0.98); }
.ticket-block__note {
  max-width: 1040px;
  margin: var(--space-3) auto 0;
  font-size: var(--text-small);
  color: var(--color-text-muted);
}

/* Phone: the ticket stands upright, the perforation runs across; price and button come right after the choice */
@media (max-width: 639px) {
  .ticket__option { font-size: var(--text-body); padding: 0 var(--space-2); min-height: 48px; }
  .ticket { grid-template-columns: 1fr; grid-template-areas: "main" "stub" "details"; grid-template-rows: auto; }
  .ticket__main { padding: var(--space-4) var(--space-3); }
  .ticket__details { grid-template-columns: 1fr; padding: var(--space-4) var(--space-3); }
  .ticket__stub { border-left: 0; border-top: 6px dotted var(--ticket-ground); padding: var(--space-4) var(--space-3); }
  .ticket__stub::before,
  .ticket__stub::after { top: -17px; bottom: auto; }
  .ticket__stub::before { left: -14px; }
  .ticket__stub::after { left: auto; right: -14px; }
  .ticket__price { font-size: clamp(2.5rem, 12vw, 3.25rem); }
}

/* ---------------------------------------------------------------------------
   Stationery details shared by the blocks below: a thin stripe, and teeth
   cut into a bottom edge (filled squares in the ground colour, no gradient).
   --------------------------------------------------------------------------- */

.stripe--thin { height: 8px; }
.stripe--thin span { flex-basis: 24px; }
.teeth {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  display: flex;
  height: 18px;
  overflow: hidden;
}
.teeth span {
  flex: 0 0 18px;
  height: 18px;
  background: var(--teeth-colour, var(--color-background));
  transform: rotate(45deg) scale(0.72);
}

/* Photo tiles: prints with their tag ------------------------------------- */

.photo-tiles__grid {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 700px) {
  .photo-tiles__grid--2,
  .photo-tiles__grid--4 { grid-template-columns: repeat(2, 1fr); }
  .photo-tiles__grid--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) { .photo-tiles__grid--4 { grid-template-columns: repeat(4, 1fr); } }
.tile { --strip-bg: var(--color-surface); --strip-ink: var(--color-text); }
.tile:nth-child(4n + 2) { --strip-bg: var(--color-primary); --strip-ink: var(--color-on-primary); }
.tile:nth-child(4n + 3) { --strip-bg: var(--color-accent); --strip-ink: var(--color-text); }
.tile:nth-child(4n + 4) { --strip-bg: var(--color-text); --strip-ink: var(--color-background); }
.tile__link { display: block; color: inherit; text-decoration: none; }
.tile__media { overflow: hidden; aspect-ratio: 4 / 5; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1); }
.tile__link:hover .tile__media img { transform: scale(1.04); }
.tile__strip {
  display: grid;
  gap: var(--space-1);
  min-height: 96px;
  padding: var(--space-2) 20px;
  background: var(--strip-bg);
  color: var(--strip-ink);
}
.tile__title { margin: 0; font-family: var(--font-heading); font-weight: 700; font-size: var(--text-lead); line-height: 1.1; letter-spacing: -0.01em; }
.tile__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-1) var(--space-2);
  margin: 0;
  font-size: var(--text-small);
  font-variant-numeric: tabular-nums;
}
.tile__link:focus-visible { outline-offset: 4px; }

/* Itinerary: a slip on the main colour ------------------------------------ */

.itinerary {
  --teeth-colour: var(--color-primary);
  margin-top: 0;
  margin-bottom: 0;
  padding-top: var(--space-section);
  padding-bottom: calc(var(--space-section) + 9px);
  background: var(--color-primary);
  color: var(--color-on-primary);
}
.itinerary h2 { color: var(--color-on-primary); }
.itinerary__inner { display: grid; gap: var(--space-5); align-items: start; max-width: var(--content-width); margin: 0 auto; }
@media (min-width: 900px) { .itinerary__inner { grid-template-columns: 5fr 7fr; } }
.itinerary__intro p { font-size: var(--text-lead); max-width: 30ch; }
.itinerary__slip {
  position: relative;
  justify-self: end;
  width: min(100%, 480px);
  padding: var(--space-4) var(--space-4) var(--space-5);
}
.itinerary__slip:has(.itinerary__result) { padding-bottom: var(--space-2); }
.itinerary__slip {
  background: var(--color-background);
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}
.itinerary__group { margin: var(--space-4) 0 var(--space-1); font-family: var(--font-body); font-size: var(--text-body); font-weight: 600; color: var(--color-text); }
.itinerary__group:first-child { margin-top: 0; }
.itinerary__rows { list-style: none; margin: 0; padding: 0; }
.itinerary__rows li { display: flex; align-items: baseline; gap: var(--space-1); padding: 6px 0; }
.itinerary__leader { flex: 1; min-width: var(--space-3); border-bottom: 4px dotted var(--color-surface); transform: translateY(-4px); }
.itinerary__time { white-space: nowrap; }
.itinerary__result {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  margin: var(--space-4) calc(-1 * var(--space-4)) 0;
  padding: 12px var(--space-4);
  background: var(--color-text);
  color: var(--color-background);
  font-weight: 600;
}
.itinerary__result span:last-child { white-space: nowrap; }
/* The slip's last line must not read as a label of the next heading */
.itinerary + .block--section { margin-top: var(--space-5); }
@media (max-width: 899px) { .itinerary__slip { justify-self: stretch; width: 100%; } }

/* Bar list: one giant word over filled bars ------------------------------- */

.bar-list__inner { max-width: 640px; margin: 0 auto; }
.bar-list__head { container-type: inline-size; }
.bar-list__text { font-size: var(--text-lead); max-width: 36ch; margin-bottom: var(--space-4); }
.bar-list__media { overflow: hidden; border-radius: var(--radius); }
.bar-list__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 900px) {
  .bar-list--split .bar-list__inner {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: var(--space-5);
    align-items: start;
  }
  .bar-list--split .bar-list__head { position: sticky; top: var(--space-4); }
}
@media (max-width: 899px) { .bar-list--split .bar-list__head { margin-bottom: var(--space-4); } }
.bar-list__word {
  margin: 0 0 20px;
  font-size: min(calc(100cqw / (var(--letters, 6) * 0.66)), 5.5rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.bar { margin-bottom: 6px; background: var(--color-surface); }
.bar__summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  min-height: 56px;
  padding: 0 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.bar__summary::-webkit-details-marker { display: none; }
.bar__summary:hover { background: var(--color-primary-soft); }
.bar__sign { position: relative; width: 16px; height: 16px; flex: none; }
.bar__sign::before,
.bar__sign::after {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform 200ms ease;
}
.bar__sign::after { transform: rotate(90deg); }
.bar[open] .bar__sign::after { transform: rotate(0deg); }
.bar__rows { margin: 0; padding: 0 20px 20px; display: grid; gap: 14px; font-variant-numeric: tabular-nums; }
.bar__rows div { display: flex; justify-content: space-between; gap: var(--space-3); }
.bar__rows dt { color: var(--color-text-muted); }
.bar__rows dd { margin: 0; text-align: end; }

/* Letter: a sheet with a tear-off strip ----------------------------------- */

.letter-block {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
  background: var(--color-surface);
}
.letter { max-width: 640px; margin: 0 auto; }
.letter__sheet { padding: 60px; background: var(--color-background); }
.letter__portrait { width: 44px; height: 44px; margin-bottom: 28px; overflow: hidden; border-radius: 50%; }
.letter__portrait img { width: 100%; height: 100%; object-fit: cover; }
.letter__text p { line-height: 1.6; margin-bottom: 1.1em; }
.letter__name { margin: var(--space-4) 0 0; font-size: var(--text-lead); font-style: italic; }
.letter__role { margin: 0; font-size: var(--text-small); color: var(--color-text-muted); }
.letter__strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  min-height: 72px;
  padding: var(--space-2) 60px;
  background: var(--color-background);
  border-top: 5px dotted var(--color-surface); /* the perforation */
}
@media (max-width: 699px) {
  .letter__sheet { padding: var(--space-4) var(--space-3); }
  .letter__strip { padding: var(--space-3); flex-direction: column; align-items: stretch; text-align: center; }
}

/* Coupon: the call to action as a card to cut out ------------------------- */

.coupon {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  max-width: 1040px;
  margin: 0 auto;
  background: var(--color-primary);
  color: var(--color-on-primary);
}
.coupon h2 { color: var(--color-on-primary); max-width: 14ch; }
.coupon__main { display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-4); padding: var(--space-5); }
.coupon__main p { margin: 0; max-width: 36ch; }
.coupon__stub {
  position: relative;
  display: grid;
  align-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5);
  border-left: 5px dotted var(--color-background);
}
.coupon__stub::before,
.coupon__stub::after {
  content: "";
  position: absolute;
  left: -17px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-background);
}
.coupon__stub::before { top: -14px; }
.coupon__stub::after { bottom: -14px; }
.coupon__contact { margin: 0; font-size: var(--text-lead); line-height: 1.5; }
.coupon__contact a { color: inherit; }
.coupon__button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 var(--space-3);
  background: var(--color-background);
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}
.coupon__button:hover { background: var(--color-primary-soft); color: var(--color-primary-dark); }
.coupon__button:active { transform: scale(0.98); }
@media (max-width: 799px) {
  .coupon { grid-template-columns: 1fr; }
  .coupon__main,
  .coupon__stub { padding: var(--space-4) var(--space-3); }
  .coupon__stub { border-left: 0; border-top: 5px dotted var(--color-background); }
  .coupon__stub::before,
  .coupon__stub::after { top: -17px; bottom: auto; }
  .coupon__stub::before { left: -14px; }
  .coupon__stub::after { left: auto; right: -14px; }
}
.site-main > .container > .coupon-block:last-child { margin-bottom: var(--space-section); }

/* Footer as the back of the card: the thin stripe runs along its top edge */
.site-footer--stripe { padding-top: 0; }
.site-footer--stripe .stripe--thin { margin-bottom: var(--space-5); }

/* ---------------------------------------------------------------------------
   Rounded corners (Einstellungen → Website → Ecken "Abgerundet"). All values
   are 0 on square sites, so these rules change nothing there. Bands with
   their own ground are set in from the window edges and rounded.
   --------------------------------------------------------------------------- */

.ticket-block,
.itinerary,
.letter-block,
.cta,
.hero--color,
.section--light,
.section--primary {
  margin-left: calc(50% - 50vw + var(--band-inset));
  margin-right: calc(50% - 50vw + var(--band-inset));
  border-radius: var(--radius-band);
}
.block--section.ticket-block + .block--section,
.block--section.letter-block + .block--section { margin-top: var(--band-inset); }

/* Ticket: rounded outer corners; main part and details on the left, stub on the right */
.ticket__main { border-top-left-radius: var(--radius); }
.ticket__details { border-bottom-left-radius: var(--radius); }
.ticket__stub { border-top-right-radius: var(--radius); border-bottom-right-radius: var(--radius); }
.ticket__option,
.ticket__button,
.coupon__button { border-radius: var(--radius-button); }
@media (max-width: 639px) {
  .ticket__main { border-top-right-radius: var(--radius); }
  .ticket__details { border-bottom-right-radius: var(--radius); }
  .ticket__stub { border-radius: 0; }
}

.tile { overflow: hidden; border-radius: var(--radius); transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1); }
.tile:has(.tile__link:hover) { transform: translateY(-6px); }
.itinerary__slip { border-radius: var(--radius-small) var(--radius-small) 0 0; }
.bar { overflow: hidden; border-radius: var(--radius-small); }
.letter__sheet { border-radius: var(--radius) var(--radius) 0 0; }
.letter__strip { border-radius: 0 0 var(--radius) var(--radius); }
.coupon { border-radius: var(--radius); }
.gallery__grid a,
.hero__media,
.text-image__media,
.card__media { overflow: hidden; border-radius: var(--radius); }

/* Ruhige Bewegung: the hero photograph settles once as the page opens */
@keyframes hero-settle {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}
.hero--card .hero__media img { animation: hero-settle 1800ms cubic-bezier(0.22, 1, 0.36, 1) both; }
@media (prefers-reduced-motion: reduce) {
  .hero--card .hero__media img { animation: none; }
  .tile { transition: none; }
  .tile:has(.tile__link:hover) { transform: none; }
}
