/* ============================================================
   Ladenburger Literaturtage 2026 – mobile-first stylesheet
   ============================================================ */

/* ---------- Self-hosted fonts (OFL-licensed) ---------- */
/* Inter */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url('../fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url('../fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url('../fonts/inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url('../fonts/inter-700.woff2') format('woff2');
}

/* Cormorant Garamond */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('../fonts/cormorant-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: block;
  src: url('../fonts/cormorant-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: block;
  src: url('../fonts/cormorant-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: block;
  src: url('../fonts/cormorant-500-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: block;
  src: url('../fonts/cormorant-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 600;
  font-display: block;
  src: url('../fonts/cormorant-600-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 700;
  font-display: block;
  src: url('../fonts/cormorant-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 700;
  font-display: block;
  src: url('../fonts/cormorant-700-italic.woff2') format('woff2');
}

:root {
  --orange: #e89b3d;
  --orange-deep: #d8862a;
  --orange-soft: #f7e7cf;
  --aubergine: #4a1f44;
  --aubergine-deep: #2f1330;
  --aubergine-soft: #6b3a64;
  --ink: #1f1422;
  --paper: #fdf8ef;
  --paper-warm: #f6ecd9;
  --line: #ead7b5;
  --muted: #6b5f5a;
  --danger: #b03020;
  --danger-soft: #f9ece9;
  --green-wa: #1a6e35;
  --shadow: 0 18px 40px -22px rgba(74, 31, 68, .35);

  --font-serif: "Cormorant Garamond", "Source Serif Pro", "Iowan Old Style", "Apple Garamond", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --maxw: 1080px;
  --radius: 14px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; overflow-y: scroll; }

body {
  margin: 0;
  padding-top: 62px;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--aubergine); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange-deep); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.1;
  margin: 0 0 .6em;
  color: var(--aubergine-deep);
}

h1 { font-size: clamp(2.2rem, 7vw, 4rem); }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3.5vw, 1.5rem); }
h4 { font-size: 1.05rem; font-family: var(--font-sans); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--aubergine); }

p { margin: 0 0 1em; }
.lead { font-size: 1.1rem; color: var(--muted); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.2rem; }

/* ----- Header & Nav ----- */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgb(253,248,239);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: .7rem 1.2rem;
  max-width: var(--maxw);
  margin: 0 auto;
  gap: 1rem;
}
.brand {
  display: flex; align-items: center; gap: .55rem;
  text-decoration: none;
  color: var(--aubergine-deep);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1.1;
}
.brand-mark {
  width: 38px; height: 38px;
  flex: 0 0 auto;
}
.brand small { display: block; font-size: .65rem; font-family: var(--font-sans); font-style: normal; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-deep); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--aubergine);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

.main-nav {
  display: none;
  position: fixed;
  inset: 0 0 0 0;
  top: 64px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 1.4rem 1.2rem 2rem;
  overflow-y: auto;
}
.main-nav.open { display: block; animation: fadeIn .2s ease-out; }
.main-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .25rem; transform: translateZ(0); }
.main-nav a {
  display: block;
  padding: .9rem .6rem;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  text-decoration: none;
  color: var(--aubergine-deep);
  border-bottom: 1px solid var(--line);
}
.main-nav a:hover, .main-nav a.active { color: var(--orange-deep); }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .main-nav { display: block !important; position: static; padding: 0; background: transparent; border: none; flex-shrink: 0; }
  .brand { flex-shrink: 1; min-width: 0; overflow: hidden; }
  .brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .main-nav ul { flex-direction: row; gap: .05rem; align-items: center; flex-wrap: nowrap; justify-content: flex-end; }
  .main-nav a {
    padding: .45rem .4rem;
    font-family: var(--font-sans);
    font-size: .8rem;
    border: none;
    border-radius: 999px;
    white-space: nowrap;
    background: transparent;
    transition: background .15s, color .15s;
  }
  .main-nav a:hover { background: var(--orange-soft); color: var(--aubergine-deep); }
  .main-nav a.active { background: var(--aubergine); color: var(--paper); }
  .main-nav a.active:hover { background: var(--aubergine-soft); color: var(--paper); }
}
@media (min-width: 1000px) {
  .main-nav a { padding: .5rem .6rem; font-size: .9rem; }
  .main-nav ul { gap: .1rem; }
}
@media (min-width: 1080px) {
  .main-nav a { padding: .55rem .85rem; font-size: .98rem; }
  .main-nav ul { gap: .25rem; }
}

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

.hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(232,155,61,.85) 0%, rgba(216,134,42,.85) 100%),
    url('../img/stock/hero-festival.jpg') center / cover no-repeat;
  color: var(--aubergine-deep);
  overflow: hidden;
  padding: 3rem 0 0;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(74,31,68,.0) 40%, rgba(74,31,68,.2) 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 1rem 0 0;
}
.hero .eyebrow {
  display: inline-block;
  padding: .35rem .9rem;
  background: var(--aubergine-deep);
  color: var(--orange-soft);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.hero h1 {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(3rem, 14vw, 6.5rem);
  line-height: .95;
  margin: 0 0 .35em;
  color: var(--aubergine-deep);
}
.hero .subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  font-weight: 500;
  margin: 0 0 .4em;
  color: var(--aubergine-deep);
}
.hero .dates {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: 1.5rem;
}
.hero .free-badge {
  position: absolute;
  top: 56px; left: -55px;
  background: var(--aubergine-deep);
  color: var(--orange-soft);
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: .35rem 5rem;
  transform: rotate(-35deg);
  font-size: .75rem;
  z-index: 5;
}

.countdown {
  display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center;
  width: fit-content;
  margin: 1.2rem auto 2rem;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(74,31,68,.18);
  padding: .8rem 1rem;
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
}
.countdown .unit {
  text-align: center;
  min-width: 56px;
}
.countdown .num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--aubergine-deep);
}
.countdown .label {
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--aubergine);
  font-weight: 600;
}

.hero-cta {
  display: inline-flex; gap: .7rem; flex-wrap: wrap; justify-content: center;
  margin-bottom: 2.5rem;
}

.skyline {
  display: block;
  width: 100%;
  margin-top: 1rem;
}
.skyline svg { width: 100%; height: auto; display: block; }

/* ----- Buttons ----- */

.btn {
  display: inline-block;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease;
  letter-spacing: .02em;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--aubergine-deep); color: var(--orange-soft); }
.btn-primary:hover { background: var(--aubergine); color: #fff; }
.btn-ghost { background: transparent; color: var(--aubergine-deep); border-color: var(--aubergine-deep); }
.btn-ghost:hover { background: var(--aubergine-deep); color: var(--orange-soft); }
.btn-orange { background: var(--orange); color: var(--aubergine-deep); }
.btn-orange:hover { background: var(--orange-deep); color: var(--aubergine-deep); }
.btn-sm { padding: .55rem .9rem; font-size: .85rem; }

/* ----- Sections ----- */

section { padding: 3rem 0; }
section.alt { background: var(--paper-warm); }
section.dark { background: var(--aubergine); color: var(--orange-soft); }
section.dark h2, section.dark h3 { color: var(--paper); }
section.dark a:not(.btn) { color: var(--orange); }
/* Buttons in dunklen Sektionen behalten ihre eigenen Farben */
section.dark .btn-orange { color: var(--aubergine-deep); }
section.dark .btn-primary { color: var(--orange-soft); }
section.dark .btn-ghost { color: var(--orange-soft); border-color: var(--orange-soft); }
section.dark .btn-ghost:hover { background: var(--orange-soft); color: var(--aubergine-deep); }

.section-title {
  display: flex; flex-direction: column; gap: .3rem;
  margin-bottom: 2rem;
}
.kicker,
.section-title .kicker {
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange-deep);
  font-weight: 700;
  font-family: var(--font-sans);
}

/* ----- Highlights grid ----- */

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .cards.cols-3 { grid-template-columns: 1fr 1fr 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card .when {
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--orange-deep);
  font-weight: 700;
  margin-bottom: .4rem;
}
.card h3 {
  font-size: 1.25rem;
  margin: 0 0 .3em;
}
.card p { color: var(--muted); margin-bottom: .8em; flex: 1; }
.card .meta {
  font-size: .85rem;
  color: var(--aubergine);
  margin-top: auto;
  display: flex; gap: .8rem; flex-wrap: wrap;
  border-top: 1px dashed var(--line);
  padding-top: .8rem;
}
.card .meta .icon { display: inline-flex; align-items: center; gap: .3rem; }

/* ----- Filter bar ----- */

.filter-bar {
  display: flex; flex-wrap: wrap; gap: .4rem;
  margin-bottom: 1.5rem;
  background: #fff;
  padding: .8rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  position: sticky; top: 64px; z-index: 10;
  box-shadow: var(--shadow);
}
.filter-bar .label {
  font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; align-self: center; margin-right: .3rem;
}
.chip {
  display: inline-block;
  padding: .4rem .85rem;
  border-radius: 999px;
  background: var(--paper-warm);
  color: var(--aubergine-deep);
  font-size: .85rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background .15s ease;
}
.chip:hover { background: var(--orange-soft); }
.chip.active { background: var(--aubergine-deep); color: var(--orange-soft); }
.chip.active:hover { background: var(--aubergine); }
.chip-group { display: flex; flex-wrap: wrap; gap: .3rem; }

/* ----- Programm list ----- */

.program-day {
  margin-bottom: 2.5rem;
}
.program-day .day-head {
  display: flex; align-items: baseline; gap: 0;
  border-bottom: 2px solid var(--aubergine-deep);
  padding-bottom: .4rem;
  margin-bottom: 1rem;
}
.program-day .day-head .day-num {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--orange-deep);
  line-height: 1;
}
.program-day .day-head .day-name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--aubergine-deep);
}
.program-day .day-head .day-name::before {
  content: ", ";
}
.program-day .day-head .day-month {
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
  margin-left: auto;
}

.event {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 1rem;
  padding: 1.1rem 8rem 1.1rem 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.event:last-child { border-bottom: none; }
.event:has(h3 a) { cursor: pointer; }
.event:has(h3 a) > div:not(.time):not(.cover-mini) > p:last-of-type::after,
.event-cover:has(h3 a) > div:not(.time):not(.cover-mini) > p:last-of-type::after {
  content: " →";
  color: var(--orange);
  font-weight: 600;
  display: inline-block;
  transition: transform .2s ease;
}
.event:has(h3 a):hover > div:not(.time):not(.cover-mini) > p:last-of-type::after,
.event-cover:has(h3 a):hover > div:not(.time):not(.cover-mini) > p:last-of-type::after {
  transform: translateX(4px);
}
.event:has(h3 a):hover {
  background-color: rgba(232,155,61,.07);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px -6px rgba(74,31,68,.14);
  border-radius: var(--radius-sm);
  z-index: 1;
}
.event h3 a {
  color: inherit;
  text-decoration: none;
}
.event h3 a:hover { color: var(--orange-deep); }
/* Stretched link: turn the headline link into a click target spanning the whole event card */
.event h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
/* Keep secondary links (ticket button, tags etc) clickable above the stretch */
.event .ticket-mini,
.event .tag,
.event a:not(h3 a) {
  position: relative;
  z-index: 2;
}
.event .time {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--aubergine-deep);
}
.event .time small { display: block; font-family: var(--font-sans); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.event h3 { font-size: 1.35rem; margin: 0 0 .25em; }
.event .who { color: var(--orange-deep); font-weight: 600; font-size: .92rem; margin-bottom: .3em; }
.event .where { font-size: .85rem; color: var(--muted); margin-bottom: .4em; }
.event .where::before { content: "↳ "; color: var(--orange-deep); }
.event .tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .5em; }
.event .tag {
  display: inline-block;
  padding: .15rem .55rem;
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--aubergine-deep);
  font-weight: 600;
}
.event .tag.eroffnung { background: var(--aubergine-deep); color: var(--orange-soft); }
.event .tag.musik { background: #e8d4f0; color: #4a1f44; }
.event .tag.sport { background: #d8eed4; color: #2e4a26; }
.event .tag.kids { background: #ffd9b8; color: #6b3010; }
.event .ticket-mini {
  display: inline-block;
  margin-top: .5em;
  padding: .35em .85em;
  font-size: .82rem;
  background: var(--orange);
  color: var(--aubergine-deep);
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  font-weight: 600;
  transition: background .15s, color .15s;
}
.event .ticket-mini:hover { background: var(--orange-deep); color: var(--aubergine-deep); }

/* ----- E-Mail-Button ----- */
a.eml {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .4em;
  padding: .35rem .8rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--aubergine-deep);
  border: 1.5px solid var(--aubergine-deep);
  background: transparent;
  transition: background .18s ease, color .18s ease;
}
a.eml::before { content: "✉️ "; font-style: normal; }
a.eml:hover { background: var(--aubergine-deep); color: var(--orange-soft); }
section.dark a.eml { color: var(--orange-soft); border-color: var(--orange-soft); }
section.dark a.eml:hover { background: var(--orange-soft); color: var(--aubergine-deep); }

/* ----- Google Maps Link ----- */
.maps-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .5em;
  padding: .35rem .8rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  color: #1a6e35;
  border: 1.5px solid #1a6e35;
  background: transparent;
  transition: background .18s ease, color .18s ease;
}
.maps-link:hover { background: #1a6e35; color: #fff; }

/* ----- Freund:in einladen buttons ----- */
.byf-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .5em;
}
.byf-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: 0;
  padding: .35em .85em;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--aubergine-deep);
  border: 1.5px solid var(--aubergine-deep);
  background: transparent;
  transition: background .15s, color .15s;
  cursor: pointer;
}
.byf-btn:hover {
  background: var(--aubergine-deep);
  color: var(--orange-soft);
}
.byf-btn--wa {
  color: var(--green-wa);
  border-color: var(--green-wa);
}
.byf-btn--wa:hover {
  background: var(--green-wa);
  color: #fff;
}
.byf-icon { font-size: .9em; line-height: 1; }

/* ----- Author grid ----- */

.author-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 640px) { .author-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .author-grid { grid-template-columns: repeat(4, 1fr); } }

.author {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
  display: block;
  text-decoration: none;
  color: var(--ink);
}
.author:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--aubergine-deep); }
a.author { text-decoration: none; }
a.author:hover h3 { color: var(--orange-deep); }
.author .avatar {
  width: 110px; height: 110px;
  border-radius: 50%;
  margin: 0 auto .8rem;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%);
  color: var(--aubergine-deep);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: .02em;
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 1px var(--line);
  overflow: hidden;
}
.author .avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.author h3 { font-size: 1rem; margin: 0 0 .25em; }
.author .book { font-size: .82rem; color: var(--muted); font-style: italic; }
.author .when-mini { font-size: .72rem; color: var(--orange-deep); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-top: .5em; }

/* ----- Quotes / pull ----- */

.pull {
  background: var(--orange-soft);
  border-left: 4px solid var(--orange);
  padding: 1.4rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--aubergine-deep);
  margin: 1.5rem 0;
}
.pull cite { display: block; font-size: .82rem; font-style: normal; color: var(--muted); letter-spacing: .04em; margin-top: .6em; font-family: var(--font-sans); }

/* ----- Locations ----- */

.locations {
  display: grid; grid-template-columns: 1fr; gap: .8rem;
}
@media (min-width: 720px) { .locations { grid-template-columns: 1fr 1fr; } }

.location {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  display: flex; gap: 1rem; align-items: flex-start;
}
.location .num {
  flex: 0 0 42px;
  width: 42px; height: 42px;
  background: var(--aubergine-deep);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
}
.location h3 { font-size: 1rem; margin: 0 0 .15em; }
.location .addr { font-size: .85rem; color: var(--muted); }

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

.form { display: grid; gap: .8rem; max-width: 520px; }
.form label { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; display: block; margin-bottom: .3em; }
.form input, .form textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
}
.form input:focus, .form textarea:focus {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
}
.form textarea { min-height: 140px; resize: vertical; }

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

.site-footer {
  background: var(--aubergine-deep);
  color: var(--orange-soft);
  padding: 2.5rem 0 1.5rem;
}
.site-footer h4 { color: var(--orange); }
.site-footer a { color: var(--orange-soft); }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 1rem;
  font-size: .82rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  color: rgba(247,231,207,.7);
}

/* ----- Sponsors ----- */

.sponsor-row {
  display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: center;
  margin-top: 1rem;
}
.sponsor-row .sponsor {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .6rem 1rem;
  font-size: .85rem;
  color: var(--aubergine-deep);
  font-weight: 600;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.sponsor-row a.sponsor {
  text-decoration: none;
  cursor: pointer;
}
.sponsor-row a.sponsor:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px -6px rgba(74,31,68,.18);
  border-color: var(--orange);
}

/* ----- Utility ----- */
.hidden { display: none !important; }
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-1 { margin-top: 1rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.flex { display: flex; gap: 1rem; flex-wrap: wrap; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Inline figure */
.figure-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0;
}
.figure-grid .signers { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; display: flex; gap: .8rem; align-items: center; }
.figure-grid .signers img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.figure-grid .signers strong { display: block; font-family: var(--font-serif); font-size: 1.1rem; color: var(--aubergine-deep); margin-bottom: .2em; }
.figure-grid .signers small { font-size: .8rem; color: var(--muted); }

/* ----- Card with cover image ----- */
.card-with-cover {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 1rem;
  align-items: start;
}
.card-with-cover .cover {
  width: 84px; height: 110px;
  background: var(--paper-warm);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  flex: 0 0 auto;
}
.card-with-cover .cover img {
  width: 100%; height: 100%; object-fit: cover;
}

/* ----- Highlight card with cover backdrop ----- */
.card-cover {
  position: relative;
  overflow: hidden;
}
a.card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
a.card-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 50px -22px rgba(74, 31, 68, .45);
  color: inherit;
}
a.card-link:hover h3 { color: var(--orange-deep); }
.card-cover .cover-bg {
  position: absolute; right: -40px; bottom: -40px;
  width: 180px; height: 180px;
  opacity: .15;
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  pointer-events: none;
}
.card-cover > * { position: relative; z-index: 1; }

/* ----- Author card with photo ----- */
.author .avatar.has-photo {
  background: var(--paper-warm);
  border-color: var(--orange-soft);
}

/* ----- Event with mini cover ----- */
.event-cover {
  display: grid;
  grid-template-columns: 70px 60px 1fr;
  gap: .8rem;
  padding: 1.1rem 8rem 1.1rem 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.event-cover:has(h3 a) { cursor: pointer; }
.event-cover:has(h3 a):hover {
  background-color: rgba(232,155,61,.07);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px -6px rgba(74,31,68,.14);
  border-radius: var(--radius-sm);
  z-index: 1;
}
.event-cover h3 a {
  color: inherit;
  text-decoration: none;
}
.event-cover h3 a:hover { color: var(--orange-deep); }
.event-cover h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.event-cover .ticket-mini,
.event-cover .tag {
  position: relative;
  z-index: 2;
}
.event-cover .time {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--aubergine-deep);
  line-height: 1.05;
  word-break: keep-all;
}
.event-cover .time.tba {
  font-size: 1rem;
  letter-spacing: .04em;
}
.event-cover .time small {
  display: block;
  font-family: var(--font-sans);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-top: .15em;
}
.event-cover .cover-mini {
  width: 60px; height: 80px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--paper-warm);
  box-shadow: 0 4px 14px -8px rgba(74,31,68,.4);
}
.event-cover .cover-mini img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
@media (max-width: 520px) {
  .event-cover { grid-template-columns: 60px 1fr; }
  .event-cover .cover-mini { display: none; }
}

/* ----- Sponsor logo grid ----- */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .8rem;
  margin-top: 1rem;
}
@media (min-width: 540px) { .logo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 800px) { .logo-grid { grid-template-columns: repeat(4, 1fr); } }
.logo-grid .logo-cell {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  min-height: 130px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.logo-grid .logo-cell:has(a):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px -6px rgba(74,31,68,.18);
}
.logo-grid .logo-cell img {
  max-height: 100px;
  max-width: 100%;
  width: auto; height: auto;
  filter: contrast(1.05);
}
/* Tall/portrait logos can use more height */
.logo-grid .logo-cell.tall img { max-height: 110px; max-width: 90%; }
/* Wide horizontal banners can use full width */
.logo-grid .logo-cell.wide img { max-height: 70px; max-width: 100%; }
/* Extra large logos */
.logo-grid .logo-cell.xl img { max-height: 140px; max-width: 90%; }

/* ----- Team grid ----- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
@media (min-width: 540px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 800px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }
.team-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .8rem;
  text-align: center;
}
.team-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: .6rem;
}
.team-card strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--aubergine-deep);
  margin-bottom: .2em;
}
.team-card small {
  font-size: .78rem;
  color: var(--muted);
}

/* ----- Hero Cover collage ----- */
.cover-collage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .6rem;
  margin: 1.5rem 0;
}
@media (min-width: 720px) { .cover-collage { grid-template-columns: repeat(7, 1fr); } }
.cover-collage img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.cover-collage img:hover { transform: translateY(-3px); }

/* ----- Donate Section (PayPal + QR) ----- */
.donate-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
@media (min-width: 640px) { .donate-grid { grid-template-columns: 2fr 1fr; } }
.donate-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.donate-card h3 {
  font-family: var(--font-serif);
  color: var(--aubergine-deep);
  margin: 0 0 .4em;
  font-size: 1.25rem;
}
.donate-card p { margin: 0 0 .6em; color: var(--muted); }
.donate-card form { margin: 0; }

/* ----- Donate Hero on Index ----- */
.donate-hero {
  background: linear-gradient(135deg, var(--aubergine-deep) 0%, var(--aubergine) 100%);
  color: var(--orange-soft);
  padding: 2.5rem 0;
  margin-top: 0;
}
.foerderer-section { background: var(--aubergine) !important; }
.donate-hero h2 { color: var(--paper); }
.donate-hero .lead { color: rgba(247,231,207,.85); }
.donate-hero .btn-ghost { color: var(--orange-soft); border-color: var(--orange-soft); }
.donate-hero .btn-ghost:hover { background: var(--orange-soft); color: var(--aubergine-deep); }
.donate-hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 720px) {
  .donate-hero-inner { grid-template-columns: 1fr 200px; }
}
.donate-hero .qr {
  width: 180px;
  height: 180px;
  background: #fff;
  padding: .6rem;
  border-radius: 8px;
  image-rendering: pixelated;
  justify-self: center;
}
.donate-hero .actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }

/* ----- Floating Donate Button ----- */
.donate-fab {
  position: fixed;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.1rem;
  background: var(--orange);
  color: var(--aubergine-deep);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .02em;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 12px 30px -8px rgba(74,31,68,.45), 0 0 0 1px rgba(74,31,68,.08);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.donate-fab:hover {
  transform: translateY(-50%) translateX(-3px);
  background: var(--orange-deep);
  color: var(--aubergine-deep);
  box-shadow: 0 16px 36px -8px rgba(74,31,68,.55);
}
.donate-fab .heart {
  display: inline-flex;
  width: 18px; height: 18px;
  background: var(--aubergine-deep);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M12 21s-7-4.5-9.5-9C.7 8.6 2.6 4 7 4c2 0 3.5 1 5 3 1.5-2 3-3 5-3 4.4 0 6.3 4.6 4.5 8-2.5 4.5-9.5 9-9.5 9z'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M12 21s-7-4.5-9.5-9C.7 8.6 2.6 4 7 4c2 0 3.5 1 5 3 1.5-2 3-3 5-3 4.4 0 6.3 4.6 4.5 8-2.5 4.5-9.5 9-9.5 9z'/></svg>") center / contain no-repeat;
  flex: 0 0 auto;
}
.donate-fab .label-full { display: inline; }
@media (max-width: 540px) {
  .donate-fab {
    bottom: 1rem; top: auto; right: 1rem;
    transform: none;
    padding: .7rem .9rem;
    font-size: .85rem;
  }
  .donate-fab:hover { transform: translateX(-2px); }
  .donate-fab .label-full { display: none; }
}

/* ----- Atmospheric Banner (full-width with quote) ----- */
.atmo-banner {
  position: relative;
  width: 100%;
  min-height: 380px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--paper);
  margin: 0;
}
.atmo-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(74,31,68,.45) 0%, rgba(74,31,68,.65) 100%);
}
.atmo-banner .container {
  position: relative;
  z-index: 1;
  padding: 4rem 1.2rem;
}
.atmo-banner blockquote {
  margin: 0 auto;
  max-width: 720px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.4rem, 3.4vw, 2.2rem);
  line-height: 1.3;
  color: var(--paper);
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.atmo-banner cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 600;
}

/* ----- Image slider ----- */
.slider {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--aubergine-deep);
  aspect-ratio: 16 / 10;
  margin: 1rem 0 1.5rem;
}
.slider .slides {
  position: relative;
  width: 100%;
  height: 100%;
}
.slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s ease-in-out;
}
.slider .slide.active { opacity: 1; }
.slider .slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.slider .slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem 1.4rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.6) 100%);
  color: var(--paper);
  font-size: .9rem;
  font-style: italic;
}
.slider button.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.85);
  color: var(--aubergine-deep);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  z-index: 2;
  transition: background .15s ease;
}
.slider button.slider-nav:hover { background: #fff; }
.slider button.slider-prev { left: .8rem; }
.slider button.slider-next { right: .8rem; }
.slider .dots {
  position: absolute;
  bottom: .8rem; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: .4rem;
  z-index: 2;
}
.slider .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  border: none;
  cursor: pointer;
  padding: 0;
}
.slider .dot.active { background: var(--orange); width: 24px; border-radius: 999px; }

/* ----- Place card with photo ----- */
.location-photo {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: .6rem;
}

/* ----- Author detail page ----- */
.detail-hero {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1.4rem;
  align-items: center;
}
@media (max-width: 540px) {
  .detail-hero { grid-template-columns: 100px 1fr; gap: 1rem; }
}
.detail-portrait {
  width: 130px; height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--paper);
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
}
@media (max-width: 540px) {
  .detail-portrait { width: 100px; height: 100px; }
}
.detail-portrait.initials {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%);
  color: var(--aubergine-deep);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 700;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 800px) {
  .detail-grid { grid-template-columns: 1fr 320px; }
}
.detail-main h2 {
  font-size: 1.4rem;
  margin-top: 1.5rem;
  border-bottom: 2px solid var(--orange-soft);
  padding-bottom: .3em;
  margin-bottom: .6em;
}
.detail-main p {
  font-size: 1.05rem;
  line-height: 1.7;
}
.detail-aside {
  position: sticky;
  top: 90px;
  align-self: start;
}
.detail-cover {
  background: var(--paper-warm);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}
.detail-cover img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}
.detail-event {
  background: var(--aubergine-deep);
  color: var(--orange-soft);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.detail-event h3 {
  color: var(--orange);
  font-size: .8rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  font-weight: 700;
  margin-bottom: .8em;
}
.detail-event p {
  font-size: .92rem;
  margin-bottom: .8em;
  line-height: 1.5;
}
.detail-event strong {
  color: var(--orange);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  display: inline-block;
  margin-bottom: .15em;
}
.detail-event small {
  display: block;
  font-size: .82rem;
  color: rgba(247,231,207,.7);
  margin-top: .2em;
}
.detail-event .tag {
  background: var(--orange);
  color: var(--aubergine-deep) !important;
  letter-spacing: .04em !important;
  text-transform: none !important;
  font-size: .8rem !important;
  margin: 0;
}

/* Fav-Btn + Einladungsbuttons in der Veranstaltungsbox */
.detail-event .fav-btn {
  position: static;
  display: block;
  width: 100%;
  text-align: center;
  margin-top: .9rem;
  background: rgba(247,231,207,.12);
  color: var(--orange-soft);
  border-color: rgba(247,231,207,.25);
  font-size: .85rem;
}
.detail-event .fav-btn:hover {
  background: rgba(232,155,61,.25);
  border-color: var(--orange);
  color: var(--orange);
}
.detail-event .fav-btn.active {
  background: var(--orange);
  color: var(--aubergine-deep);
  border-color: var(--orange-deep);
}
.detail-event .fav-btn.active:hover {
  background: var(--orange-deep);
  border-color: var(--orange-deep);
}
.detail-event .byf-wrap {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-top: .5rem;
}
.detail-event .byf-btn {
  display: block;
  width: 100%;
  text-align: center;
  font-size: .82rem;
  padding: .45rem .7rem;
  background: rgba(247,231,207,.08);
  color: var(--orange-soft);
  border: 1px solid rgba(247,231,207,.2);
  border-radius: 999px;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.detail-event .byf-btn:hover {
  background: rgba(247,231,207,.18);
  color: var(--orange);
}
.detail-event .byf-btn--wa {
  background: rgba(37,211,102,.12);
  border-color: rgba(37,211,102,.25);
  color: #7ef5b0;
}
.detail-event .byf-btn--wa:hover {
  background: rgba(37,211,102,.22);
  color: #aff9cc;
}

/* Table */
.simple-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .92rem; }
.simple-table th, .simple-table td { padding: .6rem .5rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.simple-table th { background: var(--paper-warm); font-weight: 700; color: var(--aubergine-deep); }

/* ── Mein Programm ──────────────────────────────────────────── */
.event { position: relative; }

.fav-btn {
  position: absolute;
  top: 0.75rem;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: .3em;
  margin-top: 0;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: .35em .85em;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--muted);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
  z-index: 2;
}
.fav-btn:hover { background: var(--orange-soft); color: var(--aubergine-deep); border-color: var(--orange); }
.fav-short { display: none; }
/* ----- Autor-Teaser (Random Störer) ----- */
.autor-teaser {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 200;
  width: 280px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px -8px rgba(74,31,68,.28);
  padding: 1rem 1rem .9rem;
  transform: translateX(calc(-100% - 2rem));
  transition: transform .45s cubic-bezier(.34,1.3,.64,1);
  will-change: transform;
}
.autor-teaser.visible { transform: translateX(0); cursor: pointer; }
.autor-teaser.hiding {
  transform: translateX(calc(-100% - 2rem));
  transition: transform .35s ease-in;
}
.autor-teaser-close {
  position: absolute;
  top: .55rem; right: .7rem;
  background: none; border: none;
  font-size: 1.1rem; color: var(--muted);
  cursor: pointer; line-height: 1; padding: .2rem;
  transition: color .15s;
}
.autor-teaser-close:hover { color: var(--aubergine-deep); }
.autor-teaser-head {
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: .55rem;
}
.autor-teaser-img {
  width: 52px; height: 52px;
  border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--orange-soft);
}
.autor-teaser-kicker {
  display: block;
  font-size: .62rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--orange-deep); font-weight: 700; margin-bottom: .2rem;
}
.autor-teaser-name {
  display: block;
  font-family: var(--font-serif); font-size: 1.05rem; font-weight: 600;
  color: var(--aubergine-deep); line-height: 1.1;
}
.autor-teaser-book {
  display: block;
  font-size: .78rem; color: var(--muted); font-style: italic; margin-top: .15rem;
}
.autor-teaser-when {
  font-size: .72rem; color: var(--orange-deep);
  font-weight: 600; letter-spacing: .03em;
  margin-bottom: .55rem;
}
.autor-teaser-link {
  font-size: .82rem; font-weight: 600;
  color: var(--aubergine); text-decoration: none;
  transition: color .15s;
}
.autor-teaser-link:hover { color: var(--orange-deep); }
@media (max-width: 400px) {
  .autor-teaser { width: calc(100vw - 2rem); left: 1rem; bottom: 1rem; }
}

@media (max-width: 600px) {
  .fav-long { display: none; }
  .fav-short { display: inline; }

  .filter-bar {
    padding: .5rem .6rem;
    gap: .3rem;
  }
  .filter-bar .label { display: none; }
  .chip {
    padding: .28rem .65rem;
    font-size: .78rem;
  }
  .chip-group { gap: .25rem; }
}
.fav-btn.active {
  color: var(--aubergine-deep);
  border-color: var(--orange);
  background: var(--orange-soft);
}
.fav-btn.active:hover { background: var(--orange); border-color: var(--orange-deep); }

/* "Mein Programm" open-button in filter bar */
/* Aktiv-Zustand wenn Einträge vorhanden – wie .chip.active */
.btn-mein:has(.mp-badge:not(:empty)) {
  background: var(--aubergine-deep);
  color: var(--orange-soft);
}
.btn-mein:has(.mp-badge:not(:empty)):hover { background: var(--aubergine); }
.btn-mein .mp-badge {
  background: var(--orange);
  color: var(--aubergine-deep);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  min-width: 1.4em;
  height: 1.4em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 .3em;
}
.btn-mein .mp-badge:empty { display: none; }

/* Panel overlay */
.mein-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30,14,26,.35);
  z-index: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.mein-overlay.open { opacity: 1; pointer-events: all; }

/* Slide-in panel */
.mein-panel {
  position: fixed;
  top: 62px;
  right: 0;
  bottom: 0;
  width: min(400px, 100vw);
  background: var(--paper);
  box-shadow: -6px 0 32px rgba(30,14,26,.2);
  z-index: 601;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.mein-panel.open { transform: none; }

.mein-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  background: var(--aubergine-deep);
  color: #fff;
  flex-shrink: 0;
}
.mein-panel-head h2 { margin: 0; font-size: 1rem; color: #fff; letter-spacing: .03em; }
.mein-panel-close {
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: .1em .3em;
  transition: color .15s;
}
.mein-panel-close:hover { color: #fff; }

.mein-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.2rem;
}
.mein-empty {
  text-align: center;
  color: var(--muted);
  margin-top: 2.5rem;
  font-size: .92rem;
  line-height: 1.6;
}
.mein-empty .mein-empty-icon { font-size: 2.2rem; display: block; margin-bottom: .5rem; }

.mein-item {
  padding: .75rem 0;
  border-bottom: 1px solid var(--line);
}
.mein-item:last-child { border-bottom: none; }
.mein-item-day {
  font-size: .72rem;
  font-weight: 800;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: .15em;
}
.mein-item-title {
  font-weight: 700;
  font-size: .92rem;
  line-height: 1.3;
  margin-bottom: .2em;
}
.mein-item-meta {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.4;
}
.mein-item-remove {
  background: none;
  border: none;
  font-size: .75rem;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  margin-top: .3rem;
  display: block;
}
.mein-item-remove:hover { color: var(--orange); }

.mein-panel-foot {
  padding: .9rem 1.2rem;
  border-top: 1px solid var(--line);
  display: flex;
  gap: .6rem;
  flex-shrink: 0;
}
.mein-panel-foot .btn,
.mein-panel-foot .btn-clear { font-size: .82rem; padding: .35em .85em; }
.btn-clear {
  background: none;
  border: 1.5px solid var(--danger);
  color: var(--danger);
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.btn-clear:hover { background: var(--danger); color: #fff; }

/* ===== Accessibility ===== */

/* Skip-to-main link – invisible until focused */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: var(--aubergine-deep);
  color: var(--orange-soft);
  padding: .65rem 1.4rem;
  border-radius: 0 0 6px 6px;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  transition: top .15s ease;
  white-space: nowrap;
}
.skip-link:focus { top: 0; outline: none; }

/* Global focus ring – keyboard only, never on mouse click */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 3px;
}
.btn:focus-visible,
button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 999px;
}
.filter-chip:focus-visible,
.chip:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
.main-nav a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 3px;
}
/* Keep form field outlines (they already had orange outline) */
.form input:focus-visible,
.form textarea:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
}


/* Print: only saved events */
@media print {
  body[data-mein-print] .site-header,
  body[data-mein-print] .filter-bar,
  body[data-mein-print] .donate-fab,
  body[data-mein-print] .byf-wrap,
  body[data-mein-print] .fav-btn,
  body[data-mein-print] .mein-panel,
  body[data-mein-print] .mein-overlay,
  body[data-mein-print] .site-footer { display: none !important; }
  body[data-mein-print] [data-event]:not([data-fav]) { display: none !important; }
  /* Overrides .hidden so gefilterte, aber gemerkte Events trotzdem erscheinen */
  body[data-mein-print] [data-event][data-fav] { display: block !important; }
  body[data-mein-print] .program-day:has([data-fav]) { display: block !important; }
  body[data-mein-print] .program-day:not(:has([data-fav])) { display: none !important; }
  body[data-mein-print] .program-day { break-inside: avoid; }
}
