/* ============================================================
   HPM — Buch- und Druckkunst-Messe Frauenfeld
   Gemeinsames Stylesheet für alle statischen Seiten
   Tokens exakt aus dem Gridbox-CSS extrahiert
   ============================================================ */

:root {
  /* Farb-Tokens */
  --primary: rgba(58, 115, 186, 0.95);
  --secondary: rgba(239, 238, 233, 1);
  --accent: #ff735e;
  --title: rgba(83, 50, 34, 1);
  --subtitle: rgba(149, 138, 134, 1);
  --text: rgba(0, 0, 0, 1);
  --title-inverse: #ffffff;
  --text-inverse: rgba(255, 255, 255, 1);
  --bg-primary: rgba(255, 233, 207, 0.78);
  --bg-secondary: rgba(234, 220, 215, 1);
  --bg-dark: rgba(69, 80, 63, 1);
  --bg-dark-accent: rgba(185, 157, 135, 1);
  --border: rgba(208, 190, 183, 1);
  --shadow: rgba(0, 0, 0, 0.15);
  --overlay: rgba(0, 0, 0, 0.5);
  --card: rgba(255, 252, 247, 1);
  --hover: rgba(236, 228, 216, 1);
  --green: #7a9a6a;

  /* Typo-Tokens */
  --font-serif: 'Bodoni Moda', 'Georgia', serif;
  --font-display: 'Italiana', 'Georgia', serif;
  --font-sans: 'Open Sans', 'Helvetica', -apple-system, sans-serif;

  /* Layout-Tokens */
  --max-content: 1100px;
  --max-text: 720px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 14px;
}

/* --- Reset & Basis --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  line-height: 1.6;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  /* Hintergrundbild — exakt wie Gridbox: fixed, auto-size, center top, no-repeat
     Beige-Token füllt die Bereiche, in denen das Bild den Viewport nicht abdeckt. */
  background-color: var(--secondary);
  background-image: url('/images/headers/geometrischmusterblauorange.jpg');
  background-attachment: fixed;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: auto;
}

@media (max-width: 720px) {
  body {
    background-image: url('/images/headers/geometrischmusterblauorangeschmal.jpg');
  }
}

/* JS setzt has-parallax-bg → JPG-Fallback ausblenden */
body.has-parallax-bg {
  background-image: none;
  background-color: transparent;
}

/* ============================================================
   PLAKAT-HINTERGRUND  <hpm-bg class="plakat-bg">
   Vier große überlappende Flächen in CI-Farben, zufällig angeordnet
   pro Page-Load (JS in hpm-shell.js), sanftes Driften via CSS-Animation.
   ============================================================ */

hpm-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  display: block;
  background-color: #f7eedb;
}

hpm-bg span {
  position: absolute;
  display: block;
  mix-blend-mode: multiply;
  --rot-start: 0deg;
  --rot-end: 0deg;
  --tx-start: 0vw;
  --ty-start: 0vh;
  --tx-end: 0vw;
  --ty-end: 0vh;
  will-change: transform;
  animation: drift 100s ease-in-out infinite alternate;
}
hpm-bg .shape-1 { background: rgba(58, 115, 186, 0.28); }
hpm-bg .shape-2 { background: rgba(255, 115, 94, 0.22); }
hpm-bg .shape-3 { background: rgba(83, 50, 34, 0.12); }
hpm-bg .shape-4 { background: rgba(122, 154, 106, 0.18); }

@keyframes drift {
  0%   { transform: rotate(var(--rot-start)) translate3d(var(--tx-start), var(--ty-start), 0); }
  100% { transform: rotate(var(--rot-end))   translate3d(var(--tx-end),   var(--ty-end),   0); }
}

@media (prefers-reduced-motion: reduce) {
  hpm-bg span { animation: none !important; }
}

main { flex: 1; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================================
   TOPBAR + NAVIGATION (geliefert von <hpm-header>)
   Live-Site-Verhalten: Topbar ist auf jeder Seite blau-translucent
   mit Frosted-Glass-Effekt. Burger öffnet ein Fullscreen-Overlay.
   ============================================================ */

.hpm-topbar {
  /* Transparenz ist hier zentral — Pattern muss bläulich durchscheinen */
  background: rgba(58, 115, 186, 0.42);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  padding: 0.7rem 2rem;
  /* 3-Spalten-Grid: Logo links, Burger zentriert, leerer Spacer rechts (für Symmetrie) */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 252, 247, 0.25);
}
.hpm-topbar .hpm-logo {
  display: block;
  justify-self: start;
}
.hpm-topbar .hpm-logo img { height: 42px; display: block; }

.hpm-topbar .hpm-burger { justify-self: center; }
.hpm-topbar-spacer { display: block; }

.hpm-burger {
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 110;
  pointer-events: auto;
  transition: opacity 0.15s;
}
.hpm-burger * { pointer-events: none; }

.hpm-burger-icon,
.hpm-burger-icon::before,
.hpm-burger-icon::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--title);
  position: relative;
  transition: transform 0.3s ease, top 0.3s ease, background 0.2s ease;
}
.hpm-burger-icon::before,
.hpm-burger-icon::after {
  content: '';
  position: absolute;
  left: 0;
}
.hpm-burger-icon::before { top: -7px; }
.hpm-burger-icon::after  { top: 7px; }

/* Burger → X-Animation, wenn Menü geöffnet ist */
hpm-header.is-menu-open .hpm-burger-icon { background: transparent; }
hpm-header.is-menu-open .hpm-burger-icon::before {
  top: 0;
  transform: rotate(45deg);
}
hpm-header.is-menu-open .hpm-burger-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

/* --- Fullscreen-Overlay-Menü --- */

.hpm-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;  /* unter Topbar, damit Burger sichtbar bleibt */
  background: rgba(255, 233, 207, 0.92);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  padding: 5.5rem 2rem 2.5rem;  /* oben Platz für Topbar-Höhe */
  border-bottom: 1px solid rgba(83, 50, 34, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
/* Sichtbarkeitssteuerung — display:none wenn [hidden], sonst Flex */
.hpm-nav-overlay[hidden] { display: none; }
.hpm-nav-overlay:not([hidden]) { display: block; }
.hpm-nav-overlay.is-open { transform: translateY(0); }

.hpm-nav-overlay .hpm-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  text-align: center;
}
.hpm-nav-overlay .hpm-nav a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--title);
  text-decoration: none;
  padding: 0.3rem 0;
  transition: color 0.15s;
}
.hpm-nav-overlay .hpm-nav a:hover,
.hpm-nav-overlay .hpm-nav a[aria-current="page"] {
  color: var(--primary);
  text-decoration: none;
}

@media (max-width: 600px) {
  .hpm-nav-overlay { padding: 5rem 1.5rem 2rem; }
  .hpm-nav-overlay .hpm-nav a { font-size: 1.25rem; letter-spacing: 3px; }
}

/* ============================================================
   HERO (pro Seite individuell, gemeinsame Klassen)
   ============================================================ */

.hero {
  /* Kein eigenes Hintergrundbild — das Pattern kommt vom fixed body-background. */
  background: transparent;
  color: var(--title);
  padding: 3rem 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 38vh;
}
.hero > * { position: relative; z-index: 1; }

@media (max-width: 720px) {
  .hero { min-height: 28vh; padding: 2rem 1.5rem; }
}

.hero h1 {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 900;
  font-size: clamp(3.4rem, 7vw, 6.4rem);
  letter-spacing: -0.03em;
  color: var(--title);
  line-height: 1;
  text-align: center;
  margin-bottom: 0.4rem;
}
/* Oranger Akzentstrich unter Hero-Titel — als gemeinsames Element aller Seiten */
.hero h1::after {
  content: "";
  display: block;
  width: clamp(60px, 8vw, 100px);
  height: 3px;
  background: #ff735e;
  margin: 1rem auto 0;
}
.hero .subtitle {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--title);
  opacity: 0.7;
  margin-top: 0.6rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
}
.hero .date {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--title);
  opacity: 0.85;
  margin-top: 0.4rem;
  text-align: center;
}

/* ============================================================
   CONTENT
   ============================================================ */

.content {
  max-width: var(--max-text);
  margin: 3rem auto 4rem;
  padding: 0 2rem;
  color: var(--title);
}
.content--wide {
  max-width: var(--max-content);
}

/* Zwei-Spalten-Layout — wiederholbar: jede Section besteht aus einer
   Display-Headline links und Fließtext rechts. Mehrere Paare hintereinander
   ergeben das gestaffelte Layout der Live-Site. */
.content--two-col {
  max-width: var(--max-content);
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 4rem;
  row-gap: 3rem;
  align-items: start;
}
.content-col-greeting {
  grid-column: 1;
}
.content-col-greeting h2 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--title);
  line-height: 1.25;
  margin: 0;
  font-size: 2.8rem;
}

.content-col-body {
  grid-column: 2;
  color: var(--text);  /* SCHWARZ — wie Live-Site */
  font-size: 1.22rem;
  line-height: 1.75;
}

/* Modifier: visuelle Oberkante des ersten Buchstabens auf Bildkante ausrichten.
   Gemessen: h2-Box = 3.5rem, minus leading-Offset (≈0.22rem) → 3.28rem */
.content-col-body--align-img {
  padding-top: 3.28rem;
}
/* Wenn das figure direkt nach dem h2 in der Greeting-Spalte steht,
   bleibt die margin-top des figure 0, damit es exakt auf h2-Unterkante beginnt. */
.content-col-greeting > .img-fold:first-of-type {
  margin-top: 0;
}
@media (max-width: 720px) {
  .content-col-body--align-img { padding-top: 0; }
}
.content-col-body p { color: var(--text); margin-bottom: 1.1rem; }
.content-col-body a { color: var(--primary); }
.content-col-body strong { color: var(--text); font-weight: 600; }
.content-col-body em { font-style: italic; }
.content-col-body .signature {
  color: var(--text);
  font-style: italic;
  margin-top: 2.5rem;
  text-align: right;
}

@media (max-width: 720px) {
  .content--two-col {
    grid-template-columns: 1fr;
    row-gap: 1rem;
  }
  .content-col-greeting,
  .content-col-body { grid-column: 1; }
  .content-col-greeting h2 { font-size: 1.7rem; }
}

/* Direct-child combinator (>): gilt nur für h2/h3 unmittelbar in .content,
   nicht für die Headlines tief in .content-col-greeting / .content-col-body */
.content > h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--title);
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
  line-height: 1.3;
}
.content > h2:first-child { margin-top: 0; }

.content > h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--title);
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}

.content p {
  margin-bottom: 1.1rem;
  /* font-size + line-height erben vom Container, damit
     .content-col-body (1.22rem) auf p durchschlägt */
}

.content a {
  color: var(--primary);
  border-bottom: 1px dotted var(--border);
  transition: border-color 0.15s;
}
.content a:hover {
  border-bottom-color: var(--primary);
  text-decoration: none;
}

.content em { font-style: italic; }
.content strong { font-weight: 600; color: var(--title); }

.content ul, .content ol {
  margin: 0.5rem 0 1.2rem 1.5rem;
}
.content li {
  margin-bottom: 0.4rem;
  line-height: 1.7;
}

.content blockquote {
  border-left: 3px solid var(--bg-dark-accent);
  padding: 0.5rem 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--subtitle);
  background: var(--bg-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Signatur (z.B. „ihr Messe-Team") — dunkel und rechtsbündig */
.signature {
  margin-top: 2.5rem;
  font-style: italic;
  color: var(--text);
  font-size: 0.95rem;
  text-align: right;
}

/* ============================================================
   FOOTER (geliefert von <hpm-footer>)
   Live-Site: geometric pattern als Hintergrund, translucent
   Overlay, Italiana-Headlines in Akzentfarbe, Newsletter-Form.
   ============================================================ */

.hpm-footer {
  position: relative;
  padding: 3.5rem 3rem 1.5rem;
  font-size: 1rem;          /* von 0.88rem → mehr Lesbarkeit */
  line-height: 1.75;
  margin-top: auto;
  /* Footer "schwebt" — seitliche Abstände, das Pattern bleibt links/rechts/unten sichtbar */
  margin-left: 1.5rem;
  margin-right: 1.5rem;
  margin-bottom: 1.5rem;
  max-width: calc(100% - 3rem);
  color: #fff;              /* alle „normalen" Texte weiß auf blauem Hintergrund */
  /* Gleicher blau-translucenter Look wie die Topbar — beide rahmen die Seite. */
  background: rgba(58, 115, 186, 0.42);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  /* 1 px heller Rand wie auf Live-Site */
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.hpm-footer-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.hpm-footer-news h3 {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--title);
  margin-bottom: 1.4rem;
}

.hpm-footer h4 {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.55rem;          /* von 1.25rem → großzügiger */
  letter-spacing: 0;
  color: var(--accent);
  margin-bottom: 1.3rem;
  text-transform: none;
  font-weight: 400;
  /* Startzustand für Fade-In-Up-Animation, JS triggert .is-visible */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.hpm-footer h4.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .hpm-footer h4 { opacity: 1; transform: none; transition: none; }
}

.hpm-footer a {
  color: #fff;
  text-decoration: none;
}
.hpm-footer a:hover { text-decoration: underline; }
.hpm-footer ul { list-style: none; padding: 0; }
.hpm-footer li { margin-bottom: 0.4rem; }
.hpm-footer p { margin-bottom: 0.4rem; }

/* Newsletter-Form im Footer */
.hpm-newsletter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 1.5rem;
  row-gap: 1.4rem;
  align-items: end;
}
.hpm-newsletter input {
  background: transparent;
  border: 0;
  /* Weiß auf blauem Footer — analog zur Live-Site */
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  padding: 0.5rem 0;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: #fff;
  outline: none;
  width: 100%;
  transition: border-color 0.15s;
}
.hpm-newsletter input:focus { border-bottom-color: #fff; }
.hpm-newsletter input::placeholder { color: rgba(255, 255, 255, 0.75); }
.hpm-newsletter input[type="email"] { grid-column: 1 / 2; }
.hpm-newsletter button {
  grid-column: 2 / 3;
  grid-row: 2;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
  padding: 0.7rem 0;
  cursor: pointer;
  color: #fff;
  font-size: 1.2rem;
  font-family: var(--font-sans);
  transition: background 0.15s, border-color 0.15s;
}
.hpm-newsletter button:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.hpm-footer-bottom {
  max-width: var(--max-content);
  margin: 3rem auto 0;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #fff;
}

@media (max-width: 720px) {
  .hpm-footer { padding: 3rem 1.5rem 1.5rem; }
  .hpm-footer-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hpm-newsletter { grid-template-columns: 1fr; }
  .hpm-newsletter input[type="email"],
  .hpm-newsletter button { grid-column: 1; grid-row: auto; }
  .hpm-footer-bottom {
    flex-direction: column;
    gap: 0.6rem;
    text-align: center;
  }
}

/* ============================================================
   HERO-Erweiterung: optionaler Subtitle/Name unter h1
   ============================================================ */

.hero-name {
  font-family: var(--font-display);
  font-size: 1.9rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 1.2rem;
  font-weight: 400;
}

@media (max-width: 720px) {
  .hero-name { font-size: 1.3rem; letter-spacing: 4px; margin-top: 0.8rem; }
}

/* ============================================================
   IMG-FOLD — eingefärbtes Bild mit "Faltlinien"-Overlay,
   das beim Hover wegglättet, Bild geht zu S/W
   Wiederverwendbare Komponente, auch für Aussteller-Portraits
   ============================================================ */

.img-fold {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  isolation: isolate;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
  background: var(--bg-secondary);
  margin: 0.5rem 0 1.5rem;
}
.img-fold img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Default: warme Sepia-Tönung, leicht entsättigt */
  filter: sepia(0.32) saturate(0.78) brightness(1.04) contrast(0.98);
  transition: filter 0.6s ease, transform 0.7s ease;
}
/* Caption-Layer — wird beim Hover sichtbar */
.img-fold::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  z-index: 2;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(83, 50, 34, 0.10) 100%);
  opacity: 0.5;
}
.img-fold:hover img,
.img-fold:focus-within img {
  filter: grayscale(1) contrast(1.05);
  transform: scale(1.02);
}
.img-fold:hover::after,
.img-fold:focus-within::after {
  opacity: 0;
}
.img-fold figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.6rem 0.9rem;
  font-size: 0.78rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
  font-style: italic;
  z-index: 3;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.img-fold:hover figcaption,
.img-fold:focus-within figcaption {
  opacity: 1;
  transform: translateY(0);
}

/* Hero-Variante (groß, eckig im Greeting-Bereich) */
.img-fold--hero { aspect-ratio: 4/5; max-width: 380px; }
/* Body-Variante (Standardgröße im Fließtext) */
.img-fold--body { aspect-ratio: 3/2; }
/* Quadratische Werk-Bilder */
.img-fold--square { aspect-ratio: 1/1; }
/* Panorama (Werkstatt) */
.img-fold--wide { aspect-ratio: 3/2; }
/* Full-bleed über beide Spalten (Highlight) */
.content--two-col > .img-fold--full {
  grid-column: 1 / -1;
  aspect-ratio: 21/9;
  max-height: 60vh;
}

@media (prefers-reduced-motion: reduce) {
  .img-fold img { transition: filter 0.2s ease; transform: none !important; }
  .img-fold::before, .img-fold::after { transition: opacity 0.2s ease; }
}

@media (max-width: 720px) {
  .img-fold--full { aspect-ratio: 16/9; }
  .img-fold--hero { max-width: 100%; }
}

/* Kontakt-Block am Anfang/Ende der Ehrengast-Seite */
.ehrengast-meta {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  margin-top: 1.2rem;
}
.ehrengast-meta a { color: var(--primary); }
.ehrengast-credits {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(83, 50, 34, 0.2);
  font-size: 0.85rem;
  color: var(--subtitle);
  font-style: italic;
}

/* ============================================================
   KONTAKT
   ============================================================ */

/* 1/3–2/3 Layout-Variante */
.content--third-two {
  grid-template-columns: 1fr 2fr;
}

/* Team-Fotogrid — 3 Spalten in der 2/3-Spalte */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem 1.2rem;
  margin-bottom: 0.5rem;
}
.team-member { text-align: center; }

/* img-fold hat global margin-bottom: 1.5rem — hier aufheben */
.team-member .img-fold { margin: 0; }

.team-member figcaption {
  margin-top: 0.5rem;
  padding: 0 0.25rem;
}
.team-member figcaption strong {
  display: block;
  color: var(--title);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
}
.team-member figcaption span {
  display: block;
  color: var(--text);        /* schwarz — lesbar auf jedem Hintergrund */
  font-style: italic;
  font-size: 0.82rem;
  margin-top: 0.1rem;
  opacity: 0.72;
}

/* Kontaktformular — gerahmte Felder auf hellem Hintergrund */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 0.5rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(255, 252, 247, 0.9);
  border: 1.5px solid rgba(255, 252, 247, 0.95);
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text);
  outline: none;
  padding: 0.7rem 0.9rem;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: 0 1px 3px rgba(50, 30, 18, 0.08);
}
.contact-form input:hover,
.contact-form textarea:hover {
  border-color: #fff;
  background: rgba(255, 252, 247, 1);
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  background: rgba(255, 252, 247, 1);
  box-shadow: 0 0 0 3px rgba(58, 115, 186, 0.2);
}
.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(83, 50, 34, 0.55); }

/* Transparente Frosted-Glass Buttons */
.btn-send,
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(58, 115, 186, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff !important;
  padding: 0.65rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.btn-send { margin-top: 1.2rem; }
.btn-cta { margin-top: 1rem; }
.btn-send:hover,
.btn-cta:hover {
  background: rgba(58, 115, 186, 0.8) !important;
  border-color: rgba(255, 255, 255, 0.5);
}

.kontakt-address {
  margin-top: 1.8rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text);
}
.kontakt-address a { color: var(--primary); }

@media (max-width: 720px) {
  .content--third-two { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   RESPONSIVE FEINSCHLIFF
   ============================================================ */

@media (max-width: 768px) {
  .hpm-topbar { padding: 0.6rem 1rem; }
  .hpm-topbar .hpm-logo img { height: 36px; }
  .hero { padding: 3rem 1.5rem; min-height: 32vh; }
  .hero h1 { font-size: 3.6rem; }
  .hero .date { font-size: 1.15rem; }
  .content { padding: 0 1.25rem; margin: 2rem auto 3rem; }
  .content h2 { font-size: 1.7rem; }
  .content h3 { font-size: 1.25rem; }
  .content-col-greeting h2 { font-size: 2.5rem; }
  .content-col-body { font-size: 1.15rem; line-height: 1.7; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.6rem; }
  .hero .subtitle { font-size: 0.85rem; letter-spacing: 2px; }
  .content-col-greeting h2 { font-size: 2.1rem; }
}

/* ============================================================
   LESBARKEITS-TREATMENT — auch auf Tablets greift der vereinfachte
   Hintergrund + dezente white-Tönung. Layout-Wechsel zu 1-Spalte
   bleibt davon getrennt bei 720px (siehe weiter oben).
   ============================================================ */

/* ============================================================
   ARCHIV
   ============================================================ */

/* ── Per-Jahrgang Akzentfarben ────────────────────────────────
   Bitte mit den tatsächlichen Farben aus den Originalplakaten
   / Editions-CI jedes Jahrgangs ersetzen.
   Die Variablen kaskadieren auf .archiv-label (Ehrengast-Label)
   und auf den linken Dashed-Rand der .archiv-jahr-Kacheln.      */
.archiv-2024 { --archiv-accent: #1a1a1a; } /* Dafi Kühne — Tiefschwarz aus Kreisplakat */
.archiv-2022 { --archiv-accent: #4878a8; } /* Fred Lautsch — Ozeanblau aus Wellenplakat */
.archiv-2018 { --archiv-accent: #2d6a5a; } /* Katzengraben-Presse — dunkelgrün */
.archiv-2016 { --archiv-accent: #8a4a2a; } /* Burg Gibichenstein Bleisatz — rostbraun */
.archiv-2014 { --archiv-accent: #2e7832; } /* Ingo Cesaro — Grün aus Balkenplakat */
.archiv-2012 { --archiv-accent: #e07020; } /* Gerda Ritzmann — Orange-Gelb aus Spiralplakat */
.archiv-2010 { --archiv-accent: #c42020; } /* Even Hoshen Press — Rot aus Streifenplakat */
.archiv-2008 { --archiv-accent: #6a3a2a; } /* Rixdorfer Holzschnitte — holzbraun */
.archiv-2006 { --archiv-accent: #7a2a3a; } /* Gutenberg-Museum — gutenbergrot */
.archiv-2004 { --archiv-accent: #5a7a5a; } /* François Lafranca Papier — naturgrün */
.archiv-2002 { --archiv-accent: #b83030; } /* Büchergilde Gutenberg — buchrot */
.archiv-2000 { --archiv-accent: #b07040; } /* Casiraghi & Porazzi — terrakotta */
.archiv-1998 { --archiv-accent: #8a5a40; } /* Herta Spiegel Kalligrafin — sepia */
.archiv-1996 { --archiv-accent: #3a2818; } /* Jean Vodaine Holzschnitte — druckerschwarz */
.archiv-1994 { --archiv-accent: rgba(83, 50, 34, 0.45); } /* HPM 2, kein Ehrengast */

/* Ehrengast-Label — Farbe aus dem Jahrgangsvariable */
.archiv-label {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--archiv-accent, #7b5ea7);
  margin-top: 1.4rem;
  margin-bottom: 0.35rem;
}

/* Bodoni Moda Black für Ehrengast-Name (900 weight nur in archiv.html geladen) */
.archiv-name {
  font-family: var(--font-serif);
  font-weight: 900;
  font-style: normal;
  font-size: 2.2rem;
  color: var(--title);
  line-height: 1.1;
  margin: 0 0 1.2rem;
}

/* Gestrichelte Trennlinie über die volle Grid-Breite */
.content--two-col > .archiv-divider {
  grid-column: 1 / -1;
  border: 0;
  border-top: 2px dashed rgba(83, 50, 34, 0.22);
  margin: 0;
}

/* Kleines Duo-Grid für Portrait + Werkstattbild */
.archiv-img-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.4rem;
}

/* Kompaktes Jahres-Grid für frühere Editionen */
.archiv-jahre {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1.1rem 1.6rem;
  margin-top: 0.4rem;
}

.archiv-jahr {
  position: relative;                /* Anker für ::before Grundformen */
  border-left: 2px dashed;
  border-left-color: var(--archiv-accent, rgba(83, 50, 34, 0.28));
  padding-left: 0.85rem;
  padding-top: 0.05rem;
}

/* ── Grundformen ──────────────────────────────────────────
   Jede Form-Klasse überschreibt den linken Rand.
   Farbe läuft immer über var(--archiv-accent);
   mask-image + background-color lässt Custom Properties
   durch SVG-Data-URIs hindurch wirken.                   */

/* Kreis — HPM 2024: überlappende Großkreise (Dafi Kühne) */
.archiv-form--kreis {
  border-left: none;
}
.archiv-form--kreis::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0; width: 5px;
  background-color: var(--archiv-accent, #1a1a1a);
  -webkit-mask-image: radial-gradient(circle 2.5px at 2.5px 2.5px, black 2.5px, transparent 2.5px);
  mask-image:         radial-gradient(circle 2.5px at 2.5px 2.5px, black 2.5px, transparent 2.5px);
  -webkit-mask-size: 5px 9px;
  mask-size:         5px 9px;
  -webkit-mask-repeat: repeat-y;
  mask-repeat:         repeat-y;
}

/* Welle — HPM 2022: Lithografie Meeresstreifen (Fred Lautsch) */
.archiv-form--welle {
  border-left: none;
}
.archiv-form--welle::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0; width: 5px;
  background-color: var(--archiv-accent, #4878a8);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='10'%3E%3Cpath d='M2.5,0 Q5,2.5 2.5,5 Q0,7.5 2.5,10' stroke='black' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  mask-image:         url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='10'%3E%3Cpath d='M2.5,0 Q5,2.5 2.5,5 Q0,7.5 2.5,10' stroke='black' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  -webkit-mask-size: 5px 10px;
  mask-size:         5px 10px;
  -webkit-mask-repeat: repeat-y;
  mask-repeat:         repeat-y;
}

/* Punkt — HPM 2012: Spirale, Kreisformen (Gerda Ritzmann) */
.archiv-form--punkt {
  border-left: none;
}
.archiv-form--punkt::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0; width: 5px;
  background-color: var(--archiv-accent, #e07020);
  -webkit-mask-image: radial-gradient(circle 3px at 2.5px 3px, black 3px, transparent 3px);
  mask-image:         radial-gradient(circle 3px at 2.5px 3px, black 3px, transparent 3px);
  -webkit-mask-size: 5px 14px;
  mask-size:         5px 14px;
  -webkit-mask-repeat: repeat-y;
  mask-repeat:         repeat-y;
}

/* Balken — HPM 2014: Barcode-Streifen vertikal (Ingo Cesaro) */
.archiv-form--balken {
  border-left: 4px solid var(--archiv-accent, #2e7832);
}

/* Doppellinie — HPM 2010: Streifenstruktur horizontal (Even Hoshen) */
.archiv-form--doppel {
  border-left: 4px double var(--archiv-accent, #c42020);
}

.archiv-jahr-year {
  display: block;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--title);
  line-height: 1.2;
}

.archiv-jahr-info {
  display: block;
  font-size: 0.82rem;
  color: var(--text);       /* schwarz — lesbar auf jedem Hintergrund */
  font-style: italic;
  margin-top: 0.1rem;
  line-height: 1.4;
}

/* Kacheln klickbar */
.archiv-jahr {
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.archiv-jahr:hover,
.archiv-jahr:focus-visible {
  background: rgba(255, 252, 247, 0.45);
  transform: translateX(3px);
  outline: none;
}

/* ── Modal ────────────────────────────────────────────── */
.archiv-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(30, 20, 10, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.archiv-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: all;
}
.archiv-modal {
  background: rgba(239, 238, 233, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 6px;
  padding: 2.4rem 2.4rem 2rem;
  max-width: 460px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(14px);
  transition: transform 0.25s ease;
}
.archiv-modal-backdrop.is-open .archiv-modal {
  transform: translateY(0);
}
.archiv-modal-close {
  position: absolute;
  top: 1rem; right: 1.1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--subtitle);
  padding: 0.2rem 0.4rem;
  transition: color 0.15s;
}
.archiv-modal-close:hover { color: var(--text); }

.archiv-modal-label {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  /* Farbe per JS via style="color:…" */
  margin-bottom: 0.15rem;
}
.archiv-modal-year {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 3rem;
  line-height: 1;
  margin: 0 0 0.15rem;
  /* Farbe per JS */
}
.archiv-modal-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.18rem;
  color: var(--title);
  margin: 0 0 0.4rem;
  line-height: 1.3;
}
.archiv-modal-ort {
  font-size: 0.83rem;
  color: var(--subtitle);
  font-style: italic;
  margin: 0 0 1.1rem;
}
.archiv-modal-was {
  font-size: 0.97rem;
  color: var(--text);
  line-height: 1.72;
  margin: 0;
}
@media (max-width: 720px) {
  .archiv-modal { padding: 1.8rem 1.5rem 1.5rem; }
  .archiv-modal-year { font-size: 2.2rem; }
}

@media (max-width: 720px) {
  .archiv-img-pair { grid-template-columns: 1fr; }
  .archiv-name { font-size: 1.7rem; }
  .archiv-jahre { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}

/* ============================================================
   LESBARKEITS-TREATMENT — auch auf Tablets greift der vereinfachte
   Hintergrund + dezente white-Tönung. Layout-Wechsel zu 1-Spalte
   bleibt davon getrennt bei 720px (siehe weiter oben).
   ============================================================ */

@media (max-width: 1024px) {
  /* Parallax weg ab Tablet-Größe — Performance + Lesbarkeit */
  hpm-bg { display: none !important; }

  /* Body-Background neutralisieren — das fixed Pattern kommt aus body::before */
  body,
  body.has-parallax-bg {
    background-image: none !important;
    background-color: var(--secondary) !important;
  }

  /* Pattern als position: fixed Layer — bleibt im Viewport beim Scrollen,
     auch auf iOS Safari (das kommt mit background-attachment: fixed nicht zurecht). */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background: url('/images/headers/geometrischmusterblauorangeschmal.jpg') center top / cover no-repeat;
    pointer-events: none;
  }

  /* Content bekommt dezenten white-Tint für Lesbarkeit */
  main {
    background: rgba(255, 252, 247, 0.45);
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(1.5px);
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
}
