/*
Theme Name: Mainfrankensäle
Theme URI: https://www.mainfrankensaele.de
Description: Auftritt der Mainfrankensäle Veitshöchheim. Kongresse, Messen und Tagungen am Tag, Konzerte und Fastnacht in Franken am Abend.
Author: Friedrich Kemper
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
Text Domain: mfs
*/

/* ===================================================================
   CI TOKENS
   Die gesamte Hausfarbwelt liegt hier. Um das Corporate Design
   zu tauschen, reicht es, diese Werte zu ersetzen.
   =================================================================== */

:root {
  /* Farben */
  --mfs-bg:          #FBF7F9;
  --mfs-surface:     #FFFFFF;
  --mfs-ink:         #191016;
  --mfs-accent:      #E4007F;
  --mfs-accent-deep: #9E0058;
  --mfs-accent-soft: #FCE4F1;
  --mfs-muted:       #6E5C66;
  --mfs-line:        #E8DDE3;
  --mfs-night:       #140A10;

  /* Schrift */
  --mfs-font-head: "Bricolage Grotesque", "Segoe UI", Roboto, sans-serif;
  --mfs-font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  /* Raster */
  --mfs-xs: 8px;
  --mfs-sm: 16px;
  --mfs-md: 32px;
  --mfs-lg: 64px;
  --mfs-xl: 112px;

  --mfs-radius:      10px;
  --mfs-radius-sm:   4px;
  --mfs-radius-pill: 999px;

  --mfs-container: 1200px;
  --mfs-measure:   66ch;

  /* Typoskala, fluid */
  --mfs-t-display: clamp(2.75rem, 1.4rem + 5.6vw, 6rem);
  --mfs-t-h1:      clamp(2.25rem, 1.4rem + 3.6vw, 4.25rem);
  --mfs-t-h2:      clamp(1.75rem, 1.25rem + 2.1vw, 2.875rem);
  --mfs-t-h3:      clamp(1.25rem, 1.05rem + 0.85vw, 1.625rem);
  --mfs-t-lead:    clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
  --mfs-t-body:    1.0625rem;
  --mfs-t-small:   0.875rem;
  --mfs-t-label:   0.75rem;
  --mfs-t-stat:    clamp(3rem, 1.6rem + 5.4vw, 6.5rem);
}

/* ===================================================================
   BASIS
   =================================================================== */

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--mfs-bg);
  color: var(--mfs-ink);
  font-family: var(--mfs-font-body);
  font-size: var(--mfs-t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--mfs-font-head);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 var(--mfs-sm);
  text-wrap: balance;
}

h1 { font-size: var(--mfs-t-h1); }
h2 { font-size: var(--mfs-t-h2); }
h3 { font-size: var(--mfs-t-h3); line-height: 1.18; letter-spacing: -0.01em; }
h4 { font-size: 1.0625rem; line-height: 1.3; letter-spacing: 0; }

p { margin: 0 0 var(--mfs-sm); max-width: var(--mfs-measure); }

a { color: var(--mfs-accent-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--mfs-accent); }

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

strong, b { font-weight: 600; }

ul, ol { padding-left: 1.15em; }
li { margin-bottom: 0.4em; max-width: var(--mfs-measure); }

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

.mfs-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--mfs-ink);
  color: #fff;
  padding: 12px 20px;
  z-index: 999;
  border-radius: 0 0 var(--mfs-radius) 0;
}
.mfs-skip:focus { left: 0; color: #fff; }

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

/* ===================================================================
   LAYOUT
   =================================================================== */

.mfs-wrap {
  width: min(100% - 2 * var(--mfs-sm), var(--mfs-container));
  margin-inline: auto;
}

@media (min-width: 700px) {
  .mfs-wrap { width: min(100% - 2 * var(--mfs-md), var(--mfs-container)); }
}

.mfs-section { padding-block: clamp(56px, 9vw, 112px); }
.mfs-section--tight { padding-block: clamp(40px, 6vw, 72px); }

.mfs-section--soft  { background: var(--mfs-accent-soft); }
.mfs-section--paper { background: var(--mfs-surface); }

.mfs-section--night {
  background: var(--mfs-night);
  color: #F7EDF3;
}
.mfs-section--night h1,
.mfs-section--night h2,
.mfs-section--night h3 { color: #fff; }
.mfs-section--night a { color: #FF7FC4; }
.mfs-section--night .mfs-lead,
.mfs-section--night .mfs-meta { color: #D8C2CE; }
.mfs-section--night .mfs-rule { background: rgba(255,255,255,0.16); }

.mfs-lead {
  font-size: var(--mfs-t-lead);
  line-height: 1.5;
  color: var(--mfs-muted);
  max-width: 54ch;
}

.mfs-meta {
  font-size: var(--mfs-t-small);
  color: var(--mfs-muted);
}

.mfs-label {
  font-size: var(--mfs-t-label);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mfs-accent);
  display: block;
  margin-bottom: var(--mfs-xs);
}

.mfs-rule {
  height: 1px;
  background: var(--mfs-line);
  border: 0;
  margin: 0;
}

/* Zweispaltige Splits mit ungleichem Verhaeltnis */
.mfs-split {
  display: grid;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
@media (min-width: 900px) {
  .mfs-split { grid-template-columns: 1.15fr 0.85fr; }
  .mfs-split--reverse { grid-template-columns: 0.85fr 1.15fr; }
  .mfs-split--reverse > :first-child { order: 2; }
  .mfs-split--even { grid-template-columns: 1fr 1fr; }
}

/* ===================================================================
   BUTTONS
   =================================================================== */

.mfs-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--mfs-font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 15px 28px;
  border-radius: var(--mfs-radius-pill);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.08s ease;
}

.mfs-btn--primary {
  background: var(--mfs-accent);
  color: #fff;
}
.mfs-btn--primary:hover { background: var(--mfs-accent-deep); color: #fff; }
.mfs-btn--primary:active { transform: translateY(1px); }

.mfs-btn--ghost {
  background: transparent;
  color: var(--mfs-ink);
  border-color: var(--mfs-ink);
}
.mfs-btn--ghost:hover { background: var(--mfs-ink); color: #fff; }

.mfs-section--night .mfs-btn--ghost { color: #fff; border-color: rgba(255,255,255,0.55); }
.mfs-section--night .mfs-btn--ghost:hover { background: #fff; color: var(--mfs-night); }

.mfs-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--mfs-sm);
  margin-top: var(--mfs-md);
}

.mfs-textlink {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--mfs-accent);
  padding-bottom: 2px;
  color: var(--mfs-ink);
}
.mfs-textlink:hover { color: var(--mfs-accent); }
.mfs-section--night .mfs-textlink { color: #fff; }

/* ===================================================================
   HEADER UND NAVIGATION
   =================================================================== */

.mfs-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 249, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--mfs-line);
}

.mfs-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--mfs-md);
  min-height: 76px;
}

.mfs-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--mfs-ink);
  flex-shrink: 0;
}
.mfs-brand img { max-height: 44px; width: auto; }
.mfs-brand__text {
  font-family: var(--mfs-font-head);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.mfs-brand__text span { color: var(--mfs-accent); }

.mfs-nav { display: none; }

@media (min-width: 1060px) {
  .mfs-nav { display: block; }
  .mfs-nav ul {
    display: flex;
    align-items: center;
    gap: clamp(14px, 1.8vw, 26px);
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .mfs-nav li { margin: 0; }
  .mfs-nav a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--mfs-ink);
    text-decoration: none;
    white-space: nowrap;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
  }
  .mfs-nav a:hover,
  .mfs-nav .current-menu-item > a {
    color: var(--mfs-accent);
    border-bottom-color: var(--mfs-accent);
  }
}

.mfs-header__cta { display: none; }
@media (min-width: 1060px) { .mfs-header__cta { display: inline-flex; } }

.mfs-burger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--mfs-line);
  border-radius: var(--mfs-radius-pill);
  padding: 10px 16px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--mfs-ink);
  cursor: pointer;
}
@media (min-width: 1060px) { .mfs-burger { display: none; } }

.mfs-burger__bars { display: grid; gap: 3px; }
.mfs-burger__bars i {
  display: block;
  width: 17px;
  height: 2px;
  background: var(--mfs-ink);
  border-radius: 2px;
}

.mfs-mobilenav {
  display: none;
  border-top: 1px solid var(--mfs-line);
  background: var(--mfs-surface);
  padding-block: var(--mfs-sm) var(--mfs-md);
}
.mfs-mobilenav[data-open="true"] { display: block; }
@media (min-width: 1060px) { .mfs-mobilenav { display: none !important; } }

.mfs-mobilenav ul { list-style: none; margin: 0; padding: 0; }
.mfs-mobilenav li { margin: 0; border-bottom: 1px solid var(--mfs-line); }
.mfs-mobilenav a {
  display: block;
  padding: 14px 2px;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--mfs-ink);
  text-decoration: none;
}
.mfs-mobilenav a:hover { color: var(--mfs-accent); }
.mfs-mobilenav .mfs-btn { margin-top: var(--mfs-md); width: 100%; justify-content: center; }

/* ===================================================================
   HERO
   =================================================================== */

.mfs-hero {
  position: relative;
  padding-block: clamp(48px, 7vw, 96px) clamp(48px, 7vw, 88px);
  overflow: hidden;
}

.mfs-hero__grid {
  display: grid;
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}
@media (min-width: 980px) {
  .mfs-hero__grid { grid-template-columns: 1.05fr 0.95fr; }
}

.mfs-hero__title {
  font-size: var(--mfs-t-display);
  line-height: 1.0;
  letter-spacing: -0.035em;
  margin-bottom: var(--mfs-md);
}
.mfs-hero__title em {
  font-style: italic;
  color: var(--mfs-accent);
  line-height: 1.12;
  display: inline-block;
  padding-bottom: 0.06em;
}

.mfs-hero__media {
  position: relative;
  border-radius: var(--mfs-radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-width: 100%;
}
@media (min-width: 980px) {
  .mfs-hero__media {
    aspect-ratio: 3 / 4;
    margin-right: calc(-1 * clamp(0px, 6vw, 90px));
  }
}
.mfs-hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* ===================================================================
   PLATZHALTERFLAECHEN
   Werden ersetzt, sobald echtes Bildmaterial vorliegt.
   =================================================================== */

.mfs-ph {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 200px;
  background:
    radial-gradient(120% 90% at 18% 8%, rgba(228,0,127,0.30) 0%, rgba(228,0,127,0) 58%),
    linear-gradient(148deg, #2A1420 0%, #4A1130 42%, #7C0B48 100%);
  display: grid;
  place-items: center;
  border-radius: inherit;
}
.mfs-ph::after {
  content: attr(data-label);
  font-family: var(--mfs-font-head);
  font-size: var(--mfs-t-small);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
  text-align: center;
  padding: 0 var(--mfs-sm);
}
.mfs-ph--light {
  background:
    radial-gradient(110% 80% at 82% 12%, rgba(228,0,127,0.20) 0%, rgba(228,0,127,0) 60%),
    linear-gradient(150deg, #FCE4F1 0%, #F6D3E6 100%);
}
.mfs-ph--light::after { color: var(--mfs-accent-deep); }

/* ===================================================================
   KENNZAHLEN
   =================================================================== */

.mfs-stats {
  display: grid;
  gap: var(--mfs-md) clamp(24px, 4vw, 56px);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 820px) {
  .mfs-stats--4 { grid-template-columns: repeat(4, 1fr); }
  .mfs-stats--3 { grid-template-columns: repeat(3, 1fr); }
}

.mfs-stat { border-top: 2px solid var(--mfs-accent); padding-top: var(--mfs-sm); }
.mfs-stat__num {
  display: block;
  font-family: var(--mfs-font-head);
  font-size: var(--mfs-t-stat);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--mfs-accent);
}
.mfs-stat__label {
  display: block;
  margin-top: 10px;
  font-size: var(--mfs-t-small);
  line-height: 1.35;
  color: var(--mfs-muted);
  max-width: 22ch;
}
.mfs-section--night .mfs-stat { border-top-color: var(--mfs-accent); }
.mfs-section--night .mfs-stat__num { color: #fff; }
.mfs-section--night .mfs-stat__label { color: #D8C2CE; }

/* ===================================================================
   TERMINLISTE
   =================================================================== */

.mfs-events { border-top: 1px solid var(--mfs-line); }

.mfs-event {
  display: grid;
  gap: 4px var(--mfs-md);
  padding-block: clamp(20px, 2.6vw, 30px);
  border-bottom: 1px solid var(--mfs-line);
  align-items: baseline;
  text-decoration: none;
  color: inherit;
}
@media (min-width: 760px) {
  .mfs-event { grid-template-columns: 190px 1fr auto; align-items: center; }
}

.mfs-event__date {
  font-family: var(--mfs-font-head);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  color: var(--mfs-accent);
  white-space: nowrap;
}
.mfs-event__date b { font-size: 1.5rem; font-weight: 700; }

.mfs-event__title {
  font-family: var(--mfs-font-head);
  font-size: var(--mfs-t-h3);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0;
}
a.mfs-event:hover .mfs-event__title { color: var(--mfs-accent); }

.mfs-event__tag {
  font-size: var(--mfs-t-label);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--mfs-muted);
  border: 1px solid var(--mfs-line);
  border-radius: var(--mfs-radius-pill);
  padding: 6px 14px;
  white-space: nowrap;
  justify-self: start;
}

.mfs-section--night .mfs-events,
.mfs-section--night .mfs-event { border-color: rgba(255,255,255,0.14); }
.mfs-section--night .mfs-event__tag { color: #D8C2CE; border-color: rgba(255,255,255,0.24); }

/* ===================================================================
   RAUMTABELLE
   =================================================================== */

.mfs-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.mfs-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.mfs-table th, .mfs-table td {
  text-align: left;
  padding: 16px 14px;
  border-bottom: 1px solid var(--mfs-line);
}
.mfs-table th {
  font-family: var(--mfs-font-head);
  font-weight: 700;
  font-size: var(--mfs-t-label);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--mfs-ink);
  border-bottom-width: 2px;
  border-bottom-color: var(--mfs-ink);
}
.mfs-table td:first-child { font-weight: 600; }
.mfs-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.mfs-table tbody tr:hover { background: var(--mfs-accent-soft); }

/* ===================================================================
   RAUMKARTEN
   =================================================================== */

.mfs-rooms { display: grid; gap: clamp(28px, 4vw, 56px); }

.mfs-room {
  display: grid;
  gap: clamp(20px, 3vw, 44px);
  padding-top: clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--mfs-line);
  align-items: start;
}
@media (min-width: 880px) {
  .mfs-room { grid-template-columns: 0.9fr 1.1fr; }
  .mfs-room--flip > :first-child { order: 2; }
}

.mfs-room__media { border-radius: var(--mfs-radius); overflow: hidden; aspect-ratio: 16 / 11; }

.mfs-room__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--mfs-xs) var(--mfs-md);
  margin: var(--mfs-sm) 0;
  padding: 0;
  list-style: none;
}
.mfs-room__facts li {
  margin: 0;
  font-size: var(--mfs-t-small);
  color: var(--mfs-muted);
}
.mfs-room__facts b {
  display: block;
  font-family: var(--mfs-font-head);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--mfs-ink);
}

/* ===================================================================
   BENTO, ungleiche Kachelgroessen
   =================================================================== */

.mfs-bento { display: grid; gap: var(--mfs-sm); }
@media (min-width: 900px) {
  .mfs-bento { grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(190px, auto); }
  .mfs-bento__item--wide  { grid-column: span 4; }
  .mfs-bento__item--third { grid-column: span 2; }
  .mfs-bento__item--half  { grid-column: span 3; }
  .mfs-bento__item--tall  { grid-row: span 2; }
}

.mfs-bento__item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: clamp(20px, 2.4vw, 32px);
  border-radius: var(--mfs-radius);
  background: var(--mfs-surface);
  border: 1px solid var(--mfs-line);
  min-height: 190px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
a.mfs-bento__item:hover { border-color: var(--mfs-accent); transform: translateY(-2px); }

.mfs-bento__item--accent { background: var(--mfs-accent); border-color: var(--mfs-accent); color: #fff; }
.mfs-bento__item--accent .mfs-bento__text { color: rgba(255,255,255,0.86); }
a.mfs-bento__item--accent:hover { border-color: #fff; }

.mfs-bento__item--ink { background: var(--mfs-night); border-color: var(--mfs-night); color: #fff; }
.mfs-bento__item--ink .mfs-bento__text { color: #D8C2CE; }

.mfs-bento__item--image { padding: 0; min-height: 260px; }
.mfs-bento__item--image img { width: 100%; height: 100%; object-fit: cover; }

.mfs-bento__title {
  font-family: var(--mfs-font-head);
  font-size: var(--mfs-t-h3);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 0;
}
.mfs-bento__text { font-size: 0.9375rem; line-height: 1.45; color: var(--mfs-muted); margin: 0; max-width: 34ch; }

/* ===================================================================
   ZITAT
   =================================================================== */

.mfs-quote { border: 0; margin: 0; padding: 0; }
.mfs-quote p {
  font-family: var(--mfs-font-head);
  font-size: clamp(1.375rem, 1rem + 1.7vw, 2.25rem);
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin: 0 0 var(--mfs-sm);
}
.mfs-quote footer { font-size: var(--mfs-t-small); color: var(--mfs-muted); }

/* ===================================================================
   FAQ
   =================================================================== */

.mfs-faq { border-top: 1px solid var(--mfs-line); max-width: 820px; }
.mfs-faq details { border-bottom: 1px solid var(--mfs-line); }
.mfs-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 40px 20px 0;
  position: relative;
  font-family: var(--mfs-font-head);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.mfs-faq summary::-webkit-details-marker { display: none; }
.mfs-faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--mfs-accent);
}
.mfs-faq details[open] summary::after { content: "\2013"; }
.mfs-faq details > div { padding-bottom: 20px; }
.mfs-faq details > div > p:last-child { margin-bottom: 0; }

/* ===================================================================
   KONTAKTBLOCK
   =================================================================== */

.mfs-contact__list { list-style: none; margin: var(--mfs-md) 0 0; padding: 0; }
.mfs-contact__list li { margin-bottom: var(--mfs-sm); }
.mfs-contact__list a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }
.mfs-contact__list a:hover { color: var(--mfs-accent); }

/* ===================================================================
   FOOTER
   =================================================================== */

.mfs-footer {
  background: var(--mfs-night);
  color: #D8C2CE;
  padding-block: clamp(48px, 6vw, 80px) var(--mfs-md);
  font-size: 0.9375rem;
}
.mfs-footer h2, .mfs-footer h3 { color: #fff; }
.mfs-footer a { color: #F7EDF3; text-decoration: none; }
.mfs-footer a:hover { color: var(--mfs-accent); }

.mfs-footer__grid {
  display: grid;
  gap: var(--mfs-md);
  grid-template-columns: 1fr;
}
@media (min-width: 700px)  { .mfs-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .mfs-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

.mfs-footer h3 {
  font-size: var(--mfs-t-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--mfs-sm);
  color: #fff;
}
.mfs-footer ul { list-style: none; margin: 0; padding: 0; }
.mfs-footer li { margin-bottom: 10px; }

.mfs-footer__brand {
  font-family: var(--mfs-font-head);
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: var(--mfs-sm);
  display: block;
}
.mfs-footer__brand span { color: var(--mfs-accent); }

.mfs-footer__bottom {
  margin-top: clamp(36px, 5vw, 64px);
  padding-top: var(--mfs-md);
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex;
  flex-wrap: wrap;
  gap: var(--mfs-sm) var(--mfs-md);
  justify-content: space-between;
  font-size: var(--mfs-t-small);
}
.mfs-footer__bottom ul { display: flex; flex-wrap: wrap; gap: var(--mfs-md); }
.mfs-footer__bottom li { margin: 0; }

/* ===================================================================
   SEITENKOPF FUER UNTERSEITEN
   =================================================================== */

.mfs-pagehead { padding-block: clamp(44px, 6vw, 84px) clamp(28px, 4vw, 48px); }
.mfs-pagehead__title { font-size: var(--mfs-t-h1); max-width: 16ch; }
.mfs-pagehead--night { background: var(--mfs-night); color: #F7EDF3; }
.mfs-pagehead--night .mfs-pagehead__title { color: #fff; }
.mfs-pagehead--night .mfs-lead { color: #D8C2CE; }

/* Klassischer Editorinhalt */
.mfs-prose > * { max-width: var(--mfs-measure); }
.mfs-prose > h2 { margin-top: var(--mfs-lg); }
.mfs-prose > h3 { margin-top: var(--mfs-md); }
.mfs-prose img, .mfs-prose figure { max-width: 100%; border-radius: var(--mfs-radius); }

/* ===================================================================
   SANFTE EINBLENDUNG
   =================================================================== */

@media (prefers-reduced-motion: no-preference) {
  .js-on .mfs-reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .js-on .mfs-reveal.is-in { opacity: 1; transform: none; }
}

/* ===================================================================
   3D-ANSICHT
   Eingebettet als eigenes Dokument, damit die Bedienung der
   Raumansicht nicht mit dem Seitenlayout kollidiert.
   =================================================================== */

.mfs-3d {
  position: relative;
  border: 1px solid var(--mfs-line);
  border-radius: var(--mfs-radius);
  overflow: hidden;
  background: #dde1e6;
}

.mfs-3d iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.mfs-3d--frame {
  aspect-ratio: 16 / 10;
  min-height: 420px;
}

@media (max-width: 760px) {
  .mfs-3d--frame {
    aspect-ratio: 3 / 4;
    min-height: 480px;
  }
}

.mfs-3d__note {
  display: flex;
  flex-wrap: wrap;
  gap: var(--mfs-xs) var(--mfs-md);
  margin-top: var(--mfs-sm);
  font-size: var(--mfs-t-small);
  color: var(--mfs-muted);
}

.mfs-3d__note strong {
  color: var(--mfs-ink);
  font-weight: 600;
}
/* ===================================================================
   TEAM
   =================================================================== */

.mfs-team {
  display: grid;
  gap: clamp(28px, 3.5vw, 48px) clamp(20px, 2.5vw, 36px);
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.mfs-person__media {
  aspect-ratio: 3 / 4;
  border-radius: var(--mfs-radius);
  overflow: hidden;
  margin-bottom: var(--mfs-sm);
  background: var(--mfs-accent-soft);
}
.mfs-person__media img { width: 100%; height: 100%; object-fit: cover; }

.mfs-person__name {
  font-family: var(--mfs-font-head);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 2px;
}

.mfs-person__role {
  display: block;
  font-size: var(--mfs-t-small);
  color: var(--mfs-accent);
  font-weight: 600;
  margin-bottom: 10px;
}

.mfs-person__contact {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--mfs-t-small);
  line-height: 1.5;
}
.mfs-person__contact li { margin: 0 0 2px; }
.mfs-person__contact a {
  color: var(--mfs-muted);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.mfs-person__contact a:hover { color: var(--mfs-accent); }
/* ===================================================================
   VIDEO MIT EINWILLIGUNG
   Es wird nichts an YouTube gesendet, solange niemand geklickt hat.
   =================================================================== */

.mfs-video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--mfs-radius);
  overflow: hidden;
  background: var(--mfs-night);
}

.mfs-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.mfs-video__start {
  position: absolute;
  inset: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: var(--mfs-md);
  border: 0;
  cursor: pointer;
  font: inherit;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(120% 90% at 30% 15%, rgba(228,0,127,0.42) 0%, rgba(228,0,127,0) 60%),
    linear-gradient(150deg, #2A1420 0%, #4A1130 45%, #7C0B48 100%);
}

.mfs-video__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: var(--mfs-radius-pill);
  background: var(--mfs-accent);
  transition: transform 0.18s ease;
}
.mfs-video__icon svg { width: 26px; height: 26px; fill: #fff; margin-left: 3px; }
.mfs-video__start:hover .mfs-video__icon { transform: scale(1.06); }

.mfs-video__title {
  font-family: var(--mfs-font-head);
  font-size: var(--mfs-t-h3);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  max-width: 24ch;
}

.mfs-video__hint {
  font-size: var(--mfs-t-small);
  line-height: 1.45;
  color: rgba(255,255,255,0.78);
  max-width: 46ch;
}
/* Kachel mit Bildgrund. Der Verlauf haelt den Text lesbar. */
.mfs-bento__item--foto {
  border: 0;
  min-height: 300px;
  color: #fff;
  isolation: isolate;
}
.mfs-bento__item--foto img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.mfs-bento__item--foto::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(20,10,16,0.92) 0%, rgba(20,10,16,0.55) 45%, rgba(20,10,16,0.15) 100%);
}
.mfs-bento__item--foto .mfs-bento__title { color: #fff; }
.mfs-bento__item--foto .mfs-bento__text { color: rgba(255,255,255,0.84); }
a.mfs-bento__item--foto:hover::before {
  background: linear-gradient(to top, rgba(158,0,88,0.92) 0%, rgba(20,10,16,0.55) 45%, rgba(20,10,16,0.15) 100%);
}