/* ──────────────────────────────────────────────────────────────
   event.felixplehn.de – Styles
   Bewusst nur helles Erscheinungsbild (Vorgabe: hell, reduziert).
   ────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('fonts/schibsted-grotesk.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/ibm-plex-mono-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Farben */
  --paper: #fcfbf9;       /* Seitengrund, kaum warm */
  --surface: #ffffff;     /* Preis-Karte, Eingabefelder */
  --band: #f3f1ed;        /* Hintergrund Anfragebereich */
  --ink: #191816;         /* Text */
  --ink-2: #57534c;       /* Sekundärtext (≈7:1 auf --paper) */
  --line: #e2ddd5;        /* Haarlinien */
  --field-line: #8a847a;  /* Feldränder (≥3:1) */
  --slot: #ece8e1;        /* Vorschau-Bildflächen */
  --accent: #e0533d;      /* Sucherecken, kleine Marker */
  --accent-ink: #b23a25;  /* Akzent als Text/große Ziffern */
  --error: #b3261e;
  --error-bg: #fbeeec;
  --ok: #2f6b3a;

  /* Schrift */
  --font: 'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Maße */
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;
  --header-h: 64px;
  --radius: 4px;
  --section-space: clamp(4rem, 9vw, 7.5rem);

  /* Bewegung */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-feature-settings: 'ss01' 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

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

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── Typo-Bausteine ───────────────────────────────────────── */

h1, h2, h3 { text-wrap: balance; font-weight: 600; }

h2 {
  font-size: clamp(1.9rem, 1.35rem + 2.1vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
p { text-wrap: pretty; }

.label, .eyebrow {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.opt {
  font-weight: 400;
  color: var(--ink-2);
  font-size: 0.875rem;
}

/* ── Skip-Link ────────────────────────────────────────────── */

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
}
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 8px); }

/* ── Buttons & Links ──────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: #000; }
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: var(--line);
  transition: text-decoration-color 160ms ease;
}
.link-arrow:hover { text-decoration-color: currentColor; }
.link-arrow__icon { display: inline-block; transition: transform 160ms var(--ease-out); }
.link-arrow:hover .link-arrow__icon { transform: translateX(3px); }

/* ── Header ───────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
  min-width: 0;
  white-space: nowrap;
}
.brand__name { font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; }
.brand__sub { font-size: 0.9375rem; color: var(--ink-2); }

.nav { display: flex; gap: 4px; }
.nav a {
  padding: 10px 10px;
  font-size: 0.9375rem;
  color: var(--ink-2);
  text-decoration: none;
  border-radius: var(--radius);
  transition: color 160ms ease;
}
.nav a:hover { color: var(--ink); }

.header__actions { display: flex; align-items: center; gap: 12px; }

.lang {
  display: flex;
  align-items: center;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
}
.lang a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  min-width: 32px;
  justify-content: center;
  color: var(--ink-2);
  text-decoration: none;
  border-radius: var(--radius);
}
.lang a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.lang a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.lang__sep { color: var(--line); padding-inline: 1px; }

@media (max-width: 860px) {
  .nav { display: none; }
}
@media (max-width: 520px) {
  .brand__sub { display: none; }
  .header__inner { gap: 12px; }
  .header__actions { gap: 6px; }
}

/* ── Einstieg ─────────────────────────────────────────────── */

.hero {
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4.5rem);
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.eyebrow { display: flex; align-items: center; gap: 10px; }

.hero__title {
  font-size: clamp(2.5rem, 1.35rem + 5vw, 5.25rem);
  line-height: 1.0;
  letter-spacing: -0.035em;
  max-width: 17ch;
}
.hero__title-2 {
  display: block;
  margin-top: 0.3em;
  font-size: 0.5em;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink-2);
}

.hero__row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px clamp(16px, 2vw, 32px);
  align-items: end;
  margin-top: clamp(0.5rem, 2vw, 1.5rem);
}
.hero__text { grid-column: 1 / span 6; display: grid; gap: 14px; }
.hero__lead {
  font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.4375rem);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 34ch;
}
.hero__offer {
  grid-column: 8 / span 5;
  display: grid;
  gap: 6px;
}
.hero__price {
  font-size: 1.0625rem;
  color: var(--ink-2);
}
.hero__price strong {
  font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-left: 4px;
}
html[lang='en'] .hero__price strong { margin-left: 6px; }
.hero__note { font-size: 0.9375rem; color: var(--ink-2); }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  margin-top: 14px;
}
.hero__base {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

@media (max-width: 860px) {
  .hero__text, .hero__offer { grid-column: 1 / -1; }
  .hero__offer { gap: 4px; }
}

/* ── Sektionen allgemein ──────────────────────────────────── */

.section { padding-block: var(--section-space); }
.section--work { padding-top: clamp(1rem, 3vw, 2rem); }

.section__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px clamp(16px, 2vw, 32px);
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.section__head h2 { grid-column: 1 / span 6; }
.section__head p {
  grid-column: 8 / span 5;
  color: var(--ink-2);
  max-width: 44ch;
}
@media (max-width: 860px) {
  .section__head h2, .section__head p { grid-column: 1 / -1; }
}

/* ── Bildbereich ──────────────────────────────────────────── */

.preview-note {
  font-size: 0.875rem;
  color: var(--ink-2);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.gallery { display: grid; gap: clamp(10px, 1.2vw, 16px); }

/* Kachel: Bild füllt die Fläche, Überschrift liegt auf dem Bild */
.tile {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--slot);
  min-width: 0;
  isolation: isolate;
}
.tile__media { position: absolute; inset: 0; }
.tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 900ms var(--ease-out);
}
.tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 13, 12, 0.66) 0%, rgba(14, 13, 12, 0.28) 32%, rgba(14, 13, 12, 0) 58%);
  pointer-events: none;
}
.tile__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  display: grid;
  gap: 6px;
  padding: clamp(18px, 2.4vw, 32px);
  color: #fff;
}
.tile__title {
  font-size: clamp(1.75rem, 1.2rem + 1.7vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 600;
  text-wrap: balance;
}
.tile__text {
  font-size: 0.9375rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.86);
  max-width: 34ch;
}
.tile__placeholder {
  position: absolute;
  left: clamp(18px, 2.4vw, 32px);
  top: clamp(18px, 2.4vw, 32px);
  font-size: 0.875rem;
  color: var(--ink-2);
}
@media (hover: hover) {
  .tile:hover .tile__media img { transform: scale(1.035); }
}

/* Der Stand: so breit wie das Raster, höher als die anderen Bilder */
.tile--stand {
  aspect-ratio: 4 / 3;
  max-width: 100%;
  background: #2a2724;
}
.tile--stand .tile__media img { object-position: 50% 0; transform-origin: 50% 0; }
.tile--stand .tile__caption {
  padding: clamp(20px, 3vw, 48px);
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  align-items: end;
}
.tile--stand .tile__title {
  grid-column: 1 / span 8;
  font-size: clamp(3.5rem, 1.6rem + 7.4vw, 9.5rem);
  line-height: 0.88;
  letter-spacing: -0.05em;
}
.tile--stand .tile__text {
  grid-column: 9 / span 4;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem);
  padding-bottom: 0.5em;
  justify-self: end;
}
.tile--stand::after {
  background: linear-gradient(to top, rgba(14, 13, 12, 0.72) 0%, rgba(14, 13, 12, 0.3) 30%, rgba(14, 13, 12, 0) 55%);
}

/* Raster darunter */
.mosaic {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(2, clamp(240px, 26vw, 390px));
  gap: clamp(10px, 1.2vw, 16px);
  margin-top: clamp(0px, 0.4vw, 4px);
}
.tile--tall  { grid-column: 1 / span 5; grid-row: 1 / span 2; }
.tile--wide1 { grid-column: 6 / span 7; grid-row: 1; }
.tile--wide2 { grid-column: 6 / span 4; grid-row: 2; }
.tile--side  { grid-column: 10 / span 3; grid-row: 2; }
.tile--side .tile__title, .tile--wide2 .tile__title { font-size: clamp(1.625rem, 1.1rem + 1.4vw, 2.5rem); }

@media (max-width: 860px) {
  .tile--stand { aspect-ratio: 1 / 1; }
  .tile--stand .tile__caption { grid-template-columns: 1fr; row-gap: 10px; }
  .tile--stand .tile__title, .tile--stand .tile__text { grid-column: 1 / -1; justify-self: start; }
  .tile--stand .tile__text { padding-bottom: 0; }
  .mosaic { grid-template-columns: 1fr; grid-template-rows: none; }
  .mosaic > .tile { grid-column: 1 / -1; grid-row: auto; }
  .tile--tall, .tile--side { aspect-ratio: 4 / 5; }
  .tile--wide1, .tile--wide2 { aspect-ratio: 4 / 3; }
}

/* Weitere Bilder (Eventseite): ohne Beschriftung */
.gallery-more {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 16px);
}
.gallery-more > .tile { aspect-ratio: 4 / 5; }
.gallery-more > .tile::after { content: none; }
.gallery-more > .tile--landscape { grid-column: span 2; aspect-ratio: auto; }
@media (max-width: 860px) {
  .gallery-more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-more > .tile--landscape { aspect-ratio: 3 / 2; }
}

/* Über-mich-Porträt */
.frame {
  position: relative;
  aspect-ratio: var(--ratio);
  width: 100%;
  max-width: 100%;
  background: var(--slot);
  overflow: hidden;
}
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame--placeholder { display: flex; align-items: flex-end; padding: clamp(14px, 2vw, 22px); }
.frame__tag { font-size: 0.875rem; color: var(--ink-2); }

/* ── Band durch die Seite (site.config.mjs → ribbon) ─────── */

.landing { position: relative; isolation: isolate; }
.ribbon {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.ribbon[hidden] { display: none !important; }
.ribbon__svg { display: block; overflow: visible; }
.ribbon__band { stroke: var(--accent); }
.ribbon__text {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.22em;
  fill: rgba(255, 255, 255, 0.92);
}
@media (max-width: 860px) {
  .ribbon { display: none; }
}

/* ── Über mich: Messe-Ausweis am Band ──────────────────────── */

.section--about { position: relative; overflow: hidden; }
.about {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 40px clamp(16px, 2vw, 32px);
  align-items: center;
}
.about__text { grid-column: 7 / span 6; display: grid; gap: 16px; }
.about__text h2 {
  font-size: clamp(2.25rem, 1.4rem + 3vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 8px;
}
.about__text p { color: var(--ink-2); max-width: 46ch; }
.about__text .about__lead {
  color: var(--ink);
  font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.4375rem);
  line-height: 1.4;
}

/* Band und Ausweis hängen vom oberen Rand des Abschnitts */
.badge-wrap {
  --strap: calc(var(--section-space) + clamp(36px, 5vw, 70px));
  grid-column: 1 / span 5;
  justify-self: center;
  position: relative;
  margin-top: calc(-1 * var(--section-space));
  padding-top: var(--strap);
  transform-origin: 50% 0;
  width: min(330px, 84vw);
}
.badge__strap {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--strap-w, 30px);
  height: calc(var(--strap) + 6px);
  transform: translateX(-50%);
  background: var(--accent);
  overflow: hidden;
  display: flex;
  justify-content: center;
  box-shadow: inset 2px 0 0 rgba(0, 0, 0, 0.08), inset -2px 0 0 rgba(0, 0, 0, 0.08);
}
.badge__strap span {
  writing-mode: vertical-rl;
  white-space: nowrap;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.92);
  padding-top: 8px;
}
.badge__hang { position: relative; transform-origin: 50% 0; }
.badge-wrap.has-ribbon .badge__strap { display: none; }
.badge__clip {
  position: absolute;
  left: 50%;
  top: -4px;
  width: 22px;
  height: 30px;
  transform: translateX(-50%);
  border-radius: 5px 5px 8px 8px;
  background: #bdb8b0;
  box-shadow: inset 0 0 0 2px #a6a098, inset 0 -8px 0 #aaa49c, 0 2px 3px rgba(25, 24, 22, 0.25);
  z-index: 2;
}
.badge {
  position: relative;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(25, 24, 22, 0.05), 0 22px 44px -16px rgba(25, 24, 22, 0.35), 0 3px 8px rgba(25, 24, 22, 0.08);
}
.badge__slot {
  width: 58px;
  height: 10px;
  margin: 16px auto 0;
  border-radius: 5px;
  background: var(--paper);
  box-shadow: inset 0 1px 2px rgba(25, 24, 22, 0.3);
}
.badge__body { display: grid; gap: 14px; padding: 14px 22px 18px; }
.badge__event {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.badge__photo .frame { border-radius: 8px; }
.badge__name {
  font-size: clamp(2.25rem, 1.9rem + 1.4vw, 2.875rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin-top: 4px;
}
.badge__role { font-size: 0.9375rem; color: var(--ink-2); margin-top: -6px; }
.badge__facts {
  margin: 0;
  display: grid;
  border-top: 1px solid var(--line);
}
.badge__facts > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}
.badge__facts dt {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  align-self: center;
}
.badge__facts dd { margin: 0; font-weight: 600; }
.badge__code { display: grid; gap: 4px; }
.badge__code svg { width: 100%; height: 34px; fill: var(--ink); display: block; }
.badge__code span { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.1em; color: var(--ink-2); }
.badge__category {
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 11px 12px 12px;
}

@keyframes fp-swing {
  0%   { transform: rotate(0deg); }
  14%  { transform: rotate(5deg); }
  36%  { transform: rotate(-3.4deg); }
  56%  { transform: rotate(2deg); }
  74%  { transform: rotate(-1deg); }
  89%  { transform: rotate(0.4deg); }
  100% { transform: rotate(0deg); }
}
@keyframes fp-nudge {
  0%   { transform: rotate(0deg); }
  25%  { transform: rotate(2.2deg); }
  55%  { transform: rotate(-1.2deg); }
  80%  { transform: rotate(0.4deg); }
  100% { transform: rotate(0deg); }
}
@media (prefers-reduced-motion: no-preference) {
  .badge-wrap.is-swinging:not(.has-ribbon),
  .badge-wrap.has-ribbon.is-swinging .badge__hang { animation: fp-swing 2600ms cubic-bezier(0.37, 0, 0.63, 1) both; }
  .badge-wrap.is-nudged:not(.has-ribbon),
  .badge-wrap.has-ribbon.is-nudged .badge__hang { animation: fp-nudge 1400ms cubic-bezier(0.37, 0, 0.63, 1) both; }
}

@media (max-width: 860px) {
  .badge-wrap, .about__text { grid-column: 1 / -1; }
}

/* ── Leistungen und Preise ────────────────────────────────── */

.pricing {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto 1fr;
  gap: clamp(28px, 3vw, 40px) clamp(16px, 2vw, 32px);
  align-items: start;
}

.plan {
  grid-column: 1 / span 7;
  grid-row: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3.2vw, 44px);
  display: grid;
  gap: 22px;
}
.plan__head {
  display: grid;
  gap: 8px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.plan__head h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -0.02em; }
.plan__note { font-size: 0.9375rem; color: var(--ink-2); }

.price { color: var(--ink-2); font-size: 0.9375rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price__num { color: var(--ink); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; }
.price--large .price__num { font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); letter-spacing: -0.035em; line-height: 1; }
.price--large .price__from { font-size: 1.0625rem; margin-right: 2px; }
.price__vat { font-size: 0.875rem; }

.list { display: grid; gap: 10px; }
.list li {
  position: relative;
  padding-left: 22px;
}
.list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.72em;
  width: 10px; height: 1.5px;
  background: var(--ink);
}

.addons { grid-column: 9 / span 4; grid-row: 1 / span 2; display: grid; }
.addons > .label { margin-bottom: 4px; }
.addon {
  display: grid;
  gap: 14px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
}
.addon:last-child { border-bottom: 1px solid var(--line); }
.addon__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.addon .list { gap: 8px; font-size: 0.9688rem; }
.addon__cond { font-size: 0.875rem; color: var(--ink-2); }

.pricing__foot {
  grid-column: 1 / span 7;
  grid-row: 2;
  display: grid;
  gap: 10px;
  padding: clamp(18px, 2.2vw, 26px) clamp(24px, 3.2vw, 44px);
  background: var(--band);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: calc(-1 * clamp(28px, 3vw, 40px) + 12px);
}
.pricing__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 16px;
  flex-wrap: wrap;
  color: var(--ink);
  font-weight: 500;
}
.pricing__total .price { font-variant-numeric: proportional-nums; }
.pricing__total .price__num { font-size: 1.5rem; }
.pricing__notes { font-size: 0.875rem; color: var(--ink-2); }

@media (max-width: 1020px) {
  .plan, .pricing__foot { grid-column: 1 / span 7; }
  .addons { grid-column: 8 / span 5; }
}
@media (max-width: 860px) {
  .plan, .addons, .pricing__foot { grid-column: 1 / -1; grid-row: auto; }
  .pricing__foot { margin-top: 0; }
}

/* ── Ablauf ───────────────────────────────────────────────── */

.section--process { padding-top: 0; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px clamp(16px, 2vw, 32px);
  counter-reset: none;
}
.step {
  display: grid;
  align-content: start;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--ink);
}
.step__num {
  font-size: clamp(2.5rem, 2rem + 1.5vw, 3.25rem);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
  margin-bottom: 14px;
}
.step p { color: var(--ink-2); max-width: 34ch; }

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .step { grid-template-columns: 3rem 1fr; column-gap: 12px; }
  .step__num { grid-row: span 2; margin-bottom: 0; font-size: 2.25rem; }
}

/* ── Anfrage ──────────────────────────────────────────────── */

.section--enquiry { background: var(--band); }
.enquiry {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px clamp(16px, 2vw, 32px);
  align-items: start;
}
.enquiry__intro {
  grid-column: 1 / span 4;
  display: grid;
  gap: 16px;
  position: sticky;
  top: calc(var(--header-h) + 32px);
}
.enquiry__intro > p { color: var(--ink-2); max-width: 36ch; }
.form { grid-column: 6 / span 7; display: grid; gap: 22px; }

@media (max-width: 960px) {
  .enquiry__intro { grid-column: 1 / -1; position: static; }
  .form { grid-column: 1 / -1; }
}

.notice {
  font-size: 0.9375rem;
  line-height: 1.45;
  padding: 12px 14px;
  border: 1px dashed var(--ink-2);
  border-radius: var(--radius);
  color: var(--ink);
  max-width: 40ch;
}

.form__req { font-size: 0.875rem; color: var(--ink-2); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px; align-items: start; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }

.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .field legend { font-weight: 600; font-size: 0.9688rem; }
.field__hint { font-size: 0.875rem; line-height: 1.4; color: var(--ink-2); margin-top: -2px; }

.field input[type='text'],
.field input[type='email'],
.field input[type='date'],
.field input[type='number'],
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--field-line);
  border-radius: var(--radius);
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field input[type='date'] { min-height: 48px; line-height: 1.5; }
.field input[type='date']::-webkit-date-and-time-value { text-align: left; }
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field input:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus-visible, .field textarea:focus-visible {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}
.field input:disabled { background: var(--band); color: var(--ink-2); border-style: dashed; }
.field input::-webkit-outer-spin-button,
.field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field input[type='number'] { -moz-appearance: textfield; }

.field.is-invalid input,
.field.is-invalid textarea { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.field__error {
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--error);
  font-weight: 500;
  display: flex;
  gap: 6px;
}
.field__error::before { content: '!'; font-family: var(--mono); font-weight: 500; }

.field--group { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.field--group legend { padding: 0; margin-bottom: 10px; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.4;
  padding: 4px 0;
}
.check input {
  width: 20px; height: 20px;
  margin: 1px 0 0;
  accent-color: var(--ink);
  flex: none;
  cursor: pointer;
}
.check--inline { font-size: 0.9375rem; margin-top: 2px; }
.check__meta { color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__summary {
  padding: 12px 14px;
  background: var(--error-bg);
  color: var(--error);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
}
.form__summary:focus-visible { outline-color: var(--error); }

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding-top: 6px;
}
.form__privacy { font-size: 0.875rem; color: var(--ink-2); flex: 1 1 16rem; }
.form__privacy a { color: var(--ink); }

.no-js-note { font-size: 0.875rem; color: var(--error); }
.js .no-js-note { display: none; }

.result {
  padding: 16px 18px;
  border-radius: var(--radius);
  display: grid;
  gap: 4px;
  font-size: 0.9688rem;
}
.result strong { font-weight: 600; }
.result--demo { border: 1px dashed var(--ink-2); background: var(--surface); }
.result--sent { border: 1px solid var(--ok); background: var(--surface); }
.result--sent strong { color: var(--ok); }
.result--error { border: 1px solid var(--error); background: var(--error-bg); }
.result--error strong { color: var(--error); }

/* ── Footer ───────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px));
  font-size: 0.9375rem;
}
.footer__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 28px clamp(16px, 2vw, 32px);
  align-items: start;
}
.footer__inner > div { display: grid; gap: 6px; }
.footer__name { font-weight: 700; }
.footer__who p:not(.footer__name) { color: var(--ink-2); }
.footer__main a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.lang--footer { margin-left: -8px; }
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  align-self: end;
  justify-self: end;
}
.footer__legal a, .footer__legal .link-btn {
  color: var(--ink-2);
  text-underline-offset: 3px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.footer__legal a:hover, .footer__legal .link-btn:hover { color: var(--ink); }
.footer__legal a[aria-current] { color: var(--ink); text-decoration-thickness: 1.5px; }
.footer__dot { color: var(--line); }

@media (max-width: 860px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__legal { justify-self: start; grid-column: 1 / -1; }
}

.link-btn {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.btn--choice {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.btn--choice:hover { background: var(--band); }

/* ── Rechtstexte ──────────────────────────────────────────── */

.legal-page { padding-block: clamp(2rem, 5vw, 4rem) var(--section-space); }
.legal { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.legal__back { font-size: 0.9375rem; }
.legal__back--end { padding-top: 1.5rem; border-top: 1px solid var(--line); }
.link-arrow--back:hover .link-arrow__icon { transform: translateX(-3px); }

.legal__body {
  max-width: 68ch;
  overflow-wrap: break-word;
  hyphens: auto;
  font-size: 1rem;
  line-height: 1.6;
}
.legal__body > * + * { margin-top: 1em; }
.legal__body h1 {
  font-size: clamp(2.25rem, 1.6rem + 2.8vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 0.4em;
}
.legal__body h2 {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-top: 2.2em;
  padding-top: 0.2em;
}
.legal__body h3 { font-size: 1.0625rem; margin-top: 1.8em; }
.legal__body h2 + *, .legal__body h3 + * { margin-top: 0.6em; }
.legal__body ul { list-style: none; padding: 0; display: grid; gap: 6px; }
.legal__body ul li { position: relative; padding-left: 22px; }
.legal__body ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.78em;
  width: 10px; height: 1.5px;
  background: var(--ink);
}
.legal__body a { overflow-wrap: anywhere; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.legal__body a:hover { text-decoration-thickness: 1.5px; }
.legal__body strong { font-weight: 600; }
.legal__body code {
  font-family: var(--mono);
  font-size: 0.8125rem;
  background: var(--band);
  padding: 1px 5px;
  border-radius: 3px;
  white-space: nowrap;
}


.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  max-width: 100%;
}
.table-wrap:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.legal__body table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 1.45;
}
.legal__body th, .legal__body td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.legal__body th {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--paper);
}
.legal__body tbody tr:last-child td { border-bottom: 0; }

/* ── Einwilligung ─────────────────────────────────────────── */

.consent {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: var(--surface);
  border-top: 1px solid var(--ink);
  padding-block: 18px calc(18px + env(safe-area-inset-bottom, 0px));
  max-height: 70vh;
  overflow-y: auto;
}
.consent__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 40px;
  align-items: end;
}
.consent__text { display: grid; gap: 8px; max-width: 78ch; font-size: 0.9375rem; line-height: 1.5; overflow-wrap: break-word; hyphens: auto; }
.consent__title { font-size: 1.0625rem; letter-spacing: -0.01em; }
.consent__links { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--ink-2); }
.consent__links a { color: var(--ink); text-underline-offset: 3px; }
.consent__actions { display: grid; gap: 8px; min-width: 220px; }
.consent__actions .btn { min-height: 44px; width: 100%; }

@media (max-width: 760px) {
  .consent__inner { grid-template-columns: 1fr; }
  .consent__actions { min-width: 0; grid-template-columns: 1fr 1fr; }
  .consent__actions .btn:last-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .consent { padding-block: 14px calc(14px + env(safe-area-inset-bottom, 0px)); }
  .consent__text { font-size: 0.875rem; gap: 6px; }
  .consent__inner { gap: 12px; }
}
@media (max-width: 340px) {
  .consent__actions { grid-template-columns: 1fr; }
}

.consent-dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  overflow-y: auto;
}
.consent-dialog::backdrop { background: rgba(25, 24, 22, 0.45); }
.consent-dialog__inner { display: grid; gap: 18px; padding: clamp(20px, 4vw, 28px); }
.consent-dialog__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.consent-dialog__head h2 { font-size: 1.375rem; letter-spacing: -0.015em; }
.icon-btn {
  flex: none;
  width: 40px; height: 40px;
  margin: -6px -8px 0 0;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.icon-btn:hover { background: var(--band); }

.consent-cat {
  display: grid;
  gap: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}
.consent-cat p { color: var(--ink-2); line-height: 1.5; }
.consent-cat__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.consent-cat__head h3, .consent-cat__head label { font-size: 1rem; font-weight: 600; }
.consent-cat__head label { cursor: pointer; }

.switch-wrap { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.switch {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 46px; height: 26px;
  margin: 0;
  border-radius: 13px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--field-line);
  cursor: pointer;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}
.switch::after {
  content: '';
  position: absolute;
  top: 4px; left: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--ink-2);
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.switch:checked { background: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.switch:checked::after { transform: translateX(20px); background: var(--surface); }
.switch:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.switch__state { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); min-width: 2.5em; }

.consent-dialog__actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 70;
  max-width: calc(100vw - 32px);
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.9375rem;
  line-height: 1.4;
}

/* ── Aufbau beim Scrollen (scroll-getriggerte Animationen) ───
   Nur mit Browser-Unterstützung für animation-timeline und ohne
   „Bewegung reduzieren“. Ohne Unterstützung übernimmt app.js
   (IntersectionObserver) eine einfache Einblendung. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .tile--stand .tile__media img {
      animation: fp-settle linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
    .tile--stand .tile__caption {
      animation: fp-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }
    .mosaic > .tile, .gallery-more > .tile {
      animation: fp-unveil linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 80%;
    }
    .mosaic > .tile .tile__media img, .gallery-more > .tile .tile__media img {
      animation: fp-settle linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 40%;
    }
    .mosaic > .tile .tile__caption {
      animation: fp-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }
    .section__head, .plan, .pricing__foot, .addon, .step, .about__text {
      animation: fp-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }
  }
}
@keyframes fp-unveil {
  from { clip-path: inset(14% 0 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}
@keyframes fp-settle {
  from { transform: scale(1.14); }
  to   { transform: scale(1); }
}
@keyframes fp-rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

/* Fallback ohne animation-timeline (gesteuert von app.js) */
@media (prefers-reduced-motion: no-preference) {
  .js .fp-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
    transition-delay: var(--delay, 0ms);
  }
  .js .fp-reveal.is-in { opacity: 1; transform: none; }
}

/* ── Reduzierte Bewegung ─────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Bilder nicht per Rechtsklick oder Ziehen speichern (Eventseite) */
.tile__media img, .frame img {
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
