@import url("https://fonts.googleapis.com/css2?family=Noticia+Text:ital,wght@0,400;0,700;1,400&family=Open+Sans:wght@400;600;700&display=swap");

:root {
  --blue: #48aecb;
  --blue-dark: #2f8fab;
  --navy: #324157;
  --gold: #a99061;
  --gold-dark: #8f784e;
  --ink: #171717;
  --muted: #5f6672;
  --line: #d9d9d9;
  --bg: #ffffff;
  --soft: #f4f6f8;
  --foot: #a4a4a4;
  --ok: #3f7d3a;
  --warn: #b0602e;
  --serif: "Noticia Text", Georgia, serif;
  --sans: "Open Sans", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.6; }
a { color: var(--blue-dark); }
img { display: block; max-width: 100%; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }

.site-head { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.head-inner { max-width: 1100px; margin: 0 auto; padding: 0 20px; min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { font-family: var(--serif); font-style: italic; font-size: 28px; color: var(--blue); text-decoration: none; white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.main-nav > a, .has-sub > a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; padding: 10px 14px; display: block; }
.main-nav > a:hover, .has-sub > a:hover, .main-nav a[aria-current="page"], .has-sub.is-active > a { color: var(--blue); }
.has-sub { position: relative; }
.has-sub .sub { display: none; position: absolute; left: 0; top: 100%; min-width: 240px; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 20px rgba(22,45,61,.12); padding: 6px 0; }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.has-sub .sub a { display: block; padding: 9px 16px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.has-sub .sub a:hover, .has-sub .sub a[aria-current="page"] { color: var(--blue); background: var(--soft); }
.member-slot { display: flex; align-items: center; gap: 4px; margin-left: 10px; padding-left: 14px; border-left: 1px solid var(--line); }
.login-link { color: var(--navy); font-weight: 600; font-size: 14px; text-decoration: none; padding: 8px 10px; }
.login-link:hover { color: var(--blue); }
.who { font-size: 13px; color: var(--muted); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linklike { background: none; border: 0; font: inherit; cursor: pointer; }
.nav-skel { display: inline-block; width: 110px; height: 12px; border-radius: 3px; background: #eee; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); padding: 8px 14px; font: inherit; font-weight: 700; cursor: pointer; }

.hero { position: relative; height: 560px; overflow: hidden; background: #3a3a3a; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,0) 55%); }
.hero-text { position: absolute; right: 6%; bottom: 60px; z-index: 1; color: #fff; text-align: right; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.hero-text .t1 { font-family: var(--serif); font-style: italic; font-size: clamp(44px, 8vw, 78px); line-height: 1; }
.hero-text .t2 { font-family: var(--sans); font-size: clamp(18px, 3vw, 30px); margin-top: 8px; }

.page { padding: 48px 0 72px; }
.page-title { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--blue); font-size: clamp(32px, 5vw, 48px); line-height: 1.15; text-align: center; margin: 0 0 12px; }
.page-lead { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 36px; }
.welcome { text-align: center; max-width: 760px; margin: 0 auto; }
.welcome p { margin: 0 0 16px; }
.welcome strong { color: var(--blue); }
.btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--gold); color: #fff; border: 0; padding: 11px 26px; font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--gold-dark); }
.btn[disabled] { opacity: .6; cursor: default; }
.btn.blue { background: var(--blue); }
.btn.blue:hover { background: var(--blue-dark); }
.btn.full { width: 100%; margin-top: 20px; }
.btn-outline { display: inline-block; border: 1px solid var(--navy); color: var(--navy); padding: 6px 16px; font-size: 13px; text-decoration: none; background: #fff; margin-top: 14px; }
.btn-outline:hover { background: var(--navy); color: #fff; }

.ev-list { display: grid; gap: 24px; }
.ev-card { display: grid; grid-template-columns: 300px 1fr; gap: 28px; border: 1px solid #c9c9c9; padding: 14px; background: #fff; }
.ev-img img, .ev-img .ph { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.ph { background: linear-gradient(150deg, var(--blue), var(--navy)); display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px; }
.ph span { font-family: var(--serif); font-style: italic; color: #fff; font-size: 26px; opacity: .9; }
.ev-body { padding: 8px 8px 8px 0; min-width: 0; }
.ev-body h2 { margin: 0 0 10px; font-size: 26px; line-height: 1.25; font-weight: 700; overflow-wrap: anywhere; }
.ev-body h2 a { color: var(--blue); text-decoration: none; }
.ev-body h2 a:hover { text-decoration: underline; }
.ev-date { font-weight: 700; font-size: 18px; margin-bottom: 10px; }
.ev-line { display: grid; grid-template-columns: 110px 1fr; gap: 10px; font-size: 14px; padding: 2px 0; }
.ev-line span:first-child { color: var(--muted); }
.ev-pending { display: inline-block; margin-top: 8px; font-size: 12px; color: var(--warn); border: 1px solid var(--warn); padding: 1px 10px; border-radius: 20px; }
.ev-card.past .ev-img img, .ev-card.past .ph { filter: grayscale(.35); }
.year-head { font-family: var(--serif); font-style: italic; color: var(--navy); font-size: 26px; margin: 26px 0 0; border-bottom: 1px solid var(--line); padding-bottom: 6px; }

.skel { background: linear-gradient(90deg, #eee 25%, #f6f6f6 50%, #eee 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.skel-card { height: 220px; }
.empty, .notice { border: 1px dashed #c9c9c9; padding: 30px; text-align: center; color: var(--muted); background: var(--soft); }
.error { background: #fbeeea; border: 1px solid #e6c2b6; color: #7a3a26; padding: 12px 14px; font-size: 14px; }
.success { background: #edf4ea; border: 1px solid #c3d9bb; color: #2f5a26; padding: 12px 14px; font-size: 14px; }

.detail-top { display: grid; grid-template-columns: 380px 1fr; gap: 36px; align-items: start; }
.detail-top .ev-img img, .detail-top .ph { aspect-ratio: 4 / 3; }
.detail-title { font-family: var(--serif); font-style: italic; color: var(--blue); font-weight: 400; font-size: clamp(30px, 4.5vw, 44px); line-height: 1.15; margin: 0 0 8px; }
.detail-date { font-weight: 700; font-size: 19px; margin-bottom: 14px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
.fact { background: var(--soft); padding: 10px 14px; }
.fact .k { font-size: 12px; color: var(--muted); }
.fact .v { font-weight: 700; }
.block h3 { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--navy); font-size: 24px; margin: 32px 0 10px; }
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 190px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.row .k { color: var(--muted); }
.back-link { display: inline-block; margin-bottom: 18px; font-size: 14px; color: var(--navy); }

.panel { border: 1px solid #c9c9c9; padding: 26px; background: #fff; }
.narrow { max-width: 460px; margin: 0 auto; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin: 14px 0 5px; }
input, textarea, select { width: 100%; padding: 10px 12px; border: 1px solid #c9c9c9; font: inherit; font-size: 15px; background: #fff; color: var(--ink); border-radius: 0; }
input:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
textarea { min-height: 86px; resize: vertical; }
.tabs { display: flex; border-bottom: 1px solid var(--line); margin: -6px 0 8px; }
.tabs button { flex: 1; background: none; border: 0; padding: 12px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; }
.tabs button.active { color: var(--blue); border-bottom-color: var(--blue); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.fieldset { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 4px; }
.fieldset h3 { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--blue); font-size: 22px; margin: 14px 0 0; }
.readonly { display: flex; flex-wrap: wrap; gap: 8px 22px; background: var(--soft); border-left: 4px solid var(--gold); padding: 12px 16px; font-size: 14px; }
.hint { font-size: 13px; color: var(--muted); }
.sticky-save { position: sticky; bottom: 0; background: linear-gradient(to top, #fff 70%, rgba(255,255,255,0)); padding: 16px 0 4px; margin-top: 10px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.mine { display: grid; gap: 12px; }
.mine-item { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; border: 1px solid #c9c9c9; padding: 14px 18px; text-decoration: none; color: inherit; background: #fff; }
.mine-item:hover { border-color: var(--blue); }
.mine-item h3 { margin: 0; color: var(--blue); font-size: 19px; }
.mine-item .d { font-weight: 700; font-size: 14px; }
.tag { display: inline-block; font-size: 12px; padding: 1px 10px; border-radius: 20px; border: 1px solid; white-space: nowrap; }
.tag.ok { color: var(--ok); }
.tag.open { color: var(--warn); }

.site-foot { background: var(--foot); color: var(--navy); text-align: center; font-size: 13px; padding: 28px 0; }

@media (max-width: 820px) {
  .head-inner { min-height: 72px; flex-wrap: wrap; }
  .menu-toggle { display: block; }
  .main-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 12px; }
  .site-head.open .main-nav { display: flex; }
  .main-nav > a, .has-sub > a { padding: 10px 0; border-top: 1px solid var(--line); }
  .has-sub .sub { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 6px 14px; }
  .has-sub .sub a { padding: 6px 0; }
  .member-slot { margin: 8px 0 0; padding: 8px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .hero { height: 380px; }
  .ev-card, .detail-top { grid-template-columns: 1fr; gap: 16px; }
  .ev-body { padding: 0 4px 6px; }
  .row { grid-template-columns: 1fr; gap: 2px; }
  .two { grid-template-columns: 1fr; }
  .ev-line { grid-template-columns: 96px 1fr; }
}

/* Eingebettet in eine andere Webseite */
.embedded .site-head, .embedded .site-foot { display: none; }
.embedded .page { padding: 16px 0 32px; }
