/* Mike Müller · mike-mueller.ch · Gestaltung nach dem bestehenden Konzept von Samo Stahler */

@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ececed;
  --box: #ffffff;
  --ink: #111111;
  --muted: #555a5e;
  --line: #e2e2e4;
  --accent: #e2001a;
  --font: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { font-weight: 400; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 19px; }
strong { font-weight: 700; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 200;
}
.skip:focus { left: 12px; top: 12px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

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

/* Hintergrundbild (Startseite) */
.hero-bg { position: fixed; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 18%; }

/* Grundlayout */
.page {
  max-width: 1140px;
  margin: 0 auto;
  padding: 26px 20px 60px;
}
.page > main, .page > header, .page > .box, main > * { max-width: 680px; }
.box {
  background: var(--box);
  padding: 26px 30px;
  margin: 0 0 24px;
}
main > section.cards, .cards { background: none; padding: 0; }

/* Kopfbereich */
.header-box {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 28px;
}
.brand { margin: 0; }
.brand a { text-decoration: none; }
.brand-name, .brand-role {
  font-size: clamp(34px, 6vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 26px; }
nav a {
  display: inline-block;
  padding: 10px 0;
  font-size: 20px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
nav a:hover, nav a[aria-current="page"] { border-bottom-color: var(--ink); }

/* Hinweis Beispieldaten */
.demo-badge {
  font-size: 14px;
  color: #7a5c00;
  background: #fff;
  border-left: 4px solid #e3b341;
  padding: 12px 16px;
}

/* Kacheln */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.cards .section-label { grid-column: 1 / -1; margin: 0; padding: 16px 30px; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.card { text-decoration: none; display: block; }
.card h2 { margin-bottom: .4em; }
.card:hover h2 { text-decoration: underline; text-underline-offset: 4px; }
.card .year { color: var(--muted); font-size: .8em; }
.card-next { margin-top: .8em; font-size: 14px; color: var(--muted); }
.archive { margin-top: 8px; }

/* Termine (Darstellung nach dem Oropax-Muster, in Mikes Gestaltung) */
.month-label { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.event-list { list-style: none; margin: 0; padding: 0; }
.event-row {
  position: relative;
  display: grid;
  grid-template-columns: 82px minmax(0, .9fr) minmax(0, 1fr) auto;
  gap: 4px 18px;
  align-items: center;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.event-row:first-child { border-top: 0; }
.ev-link { text-decoration: none; display: contents; }
.ev-link::after { content: ""; position: absolute; inset: 0; }
.ev-date { display: grid; line-height: 1.15; }
.ev-wd { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ev-day { font-size: 30px; font-weight: 500; font-variant-numeric: tabular-nums; }
.ev-my { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ev-place { min-width: 0; }
.ev-city { display: block; font-size: 19px; font-weight: 700; letter-spacing: .01em; text-transform: uppercase; }
.event-row:hover .ev-city { text-decoration: underline; text-underline-offset: 3px; }
.ev-venue { display: block; color: var(--muted); font-size: 14px; }
.ev-main { min-width: 0; }
.ev-title { display: block; font-weight: 400; }
.ev-note { display: block; color: var(--muted); font-size: 13.5px; font-style: italic; }
.ev-time { display: block; color: var(--muted); font-size: 13.5px; }
.ev-canceled { display: inline-block; color: var(--accent); font-size: 13px; border: 1px solid currentColor; padding: 1px 7px; margin-top: 3px; }
.ev-canceled.big { font-size: 16px; padding: 6px 12px; }
.canceled .ev-city, .canceled .ev-title, .canceled .ev-day { text-decoration: line-through; }
.ev-actions { position: relative; z-index: 1; display: grid; gap: 6px; justify-items: stretch; min-width: 92px; }
.ev-actions .btn { text-align: center; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--ink); padding: 8px 15px; }
.btn.ghost:hover { background: #f2f2f2; }

/* Ortsfilter */
.tour-filter { margin-top: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tour-filter label { font-size: 14px; color: var(--muted); }
.tour-filter select { font: inherit; padding: 9px 12px; background: #ececec; border: 1px solid #ececec; color: var(--ink); min-width: 200px; }
.tour-filter select:focus { border-color: var(--ink); outline: none; }
.filter-empty { color: var(--muted); }
.month-box.filtered-empty { display: none; }
.event-row.filtered-out { display: none; }

/* Event-Detail als Overlay */
.event-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 18px; }
.event-modal .modal-backdrop { position: absolute; inset: 0; background: rgba(17, 17, 17, .58); }
.event-modal .modal-inner { position: relative; background: #fff; width: min(560px, 100%); max-height: 90vh; overflow: auto; padding: 34px 36px 30px; }
.ev-city-big { font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.ev-detail-title { font-size: 30px; margin-bottom: 8px; }
.ev-type { color: var(--muted); font-size: 17px; text-transform: none; }
.event-when { font-size: 17px; margin-bottom: 2px; }
.event-where { color: var(--muted); margin-bottom: 14px; }
.event-piece { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.event-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

.btn {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  border: 0;
  font: inherit;
  font-size: 14.5px;
  padding: 9px 16px;
  cursor: pointer;
}
.btn:hover { background: #000; }
.btn-big { font-size: 17px; padding: 13px 24px; }

.next-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.all-link { font-size: 14.5px; }

.past-box summary { cursor: pointer; list-style: none; }
.past-box summary::-webkit-details-marker { display: none; }
.past-box summary h2 { display: inline-block; margin: 0; }
.past-box summary::after { content: " +"; color: var(--muted); }
.past-box[open] summary::after { content: " −"; }
.past-box .event-list { margin-top: 14px; }
.past-box .ev-title { font-weight: 400; color: #3f4448; }

/* Projektseite */
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.breadcrumb a { color: inherit; }
.subtitle { color: var(--muted); font-size: 18px; margin-top: -6px; }
.teaser { font-size: 17px; }
.media-box { padding: 0; }
.media-box img { width: 100%; }
.event-detail .event-date-big { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.event-detail h1 { font-size: 34px; }
.event-venue { font-size: 18px; }
.event-time { color: var(--muted); }
.event-project { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 20px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* Portraits Biografie */
.portrait-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.portrait-grid figure { margin: 0; }
.portrait-grid figcaption { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

/* Formulare */
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; }
.req { color: var(--accent); }
input[type="text"], input[type="email"], textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #ececec;
  border: 1px solid #ececec;
  padding: 11px 12px;
}
input:focus, textarea:focus { border-color: var(--ink); outline: none; background: #f5f5f5; }
textarea { resize: vertical; }
.field-error { color: var(--accent); font-size: 14px; margin-top: 5px; }
.success { background: #eef7ee; border-left: 4px solid #3c7a3c; padding: 12px 16px; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--accent); }

.booking-cta { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.booking-hint { margin-top: 10px; font-size: 14px; }

/* Overlay-Modal Buchungsanfrage */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 14px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(17, 17, 17, .58); }
.booking-modal-inner { position: relative; background: #fff; width: min(720px, 100%); height: min(94vh, 980px); display: flex; flex-direction: column; padding: 46px 14px 10px; }
.booking-modal-inner iframe { width: 100%; flex: 1; border: 0; }
.modal-close { position: absolute; top: 6px; right: 8px; background: none; border: 0; font-size: 30px; line-height: 1; cursor: pointer; padding: 6px 12px; text-decoration: none; color: var(--ink); z-index: 2; }
.modal-fallback { font-size: 13px; color: var(--muted); margin: 8px 6px 2px; }
.modal-fallback-only { padding: 26px 18px; }
@media (max-width: 740px) {
  .modal { padding: 0; }
  .booking-modal-inner { width: 100%; height: 100dvh; }
  .event-modal { padding: 0; align-items: stretch; }
  .event-modal .modal-inner { width: 100%; max-height: none; padding: 54px 20px 30px; }
}

/* Footer */
.footer-box { margin-top: 8px; }
.newsletter h2 { font-size: 21px; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input[type="email"] { flex: 1 1 220px; }
.newsletter-status:empty { display: none; }
.newsletter-status { margin-top: 10px; font-size: 14.5px; }
.newsletter-hint { font-size: 13px; color: var(--muted); margin-top: 10px; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 22px; padding-top: 18px; }
.social { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
.footer-links { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; font-size: 14.5px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.credit { font-size: 13px; color: var(--muted); margin-top: 14px; }
.credit a { color: inherit; }

.body-text h2 { margin-top: 1.4em; }
.body-text ul { padding-left: 20px; }
.lead { font-size: 17px; }

/* Responsive */
@media (max-width: 740px) {
  .page { padding: 14px 12px 40px; }
  .box { padding: 20px 18px; }
  .cards { grid-template-columns: 1fr; gap: 14px; }
  .header-box { align-items: flex-start; flex-direction: column; }
  nav ul { gap: 2px 20px; }
  nav a { font-size: 17.5px; padding: 12px 0; }
  .event-row { grid-template-columns: 64px minmax(0, 1fr); gap: 2px 14px; align-items: start; }
  .ev-day { font-size: 26px; }
  .ev-my { white-space: normal; }
  .ev-main { grid-column: 2; }
  .ev-actions { grid-column: 2; grid-auto-flow: column; justify-content: start; margin-top: 8px; }
  .portrait-grid { grid-template-columns: 1fr; }
  .hero-bg img { object-position: 62% 12%; }
  h1 { font-size: 27px; }
  .event-detail h1 { font-size: 28px; }
}

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