:root {
  --bg: #0b0b0c;
  --bg2: #141415;
  --text: #e9e4d8;
  --muted: #9b9484;
  --gold: #c9a45c;
  --gold-light: #e6cd8f;
  --line: rgba(201, 164, 92, .28);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  background:
    linear-gradient(115deg, transparent 38%, rgba(255,255,255,.045) 50%, transparent 62%) 0 0 / 250% 100% fixed,
    linear-gradient(160deg, #2b2d31 0%, #1a1b1e 45%, #26282c 100%) fixed;
  color: var(--text);
  line-height: 1.75;
  animation: shimmer 14s ease-in-out infinite alternate;
}
@keyframes shimmer { from { background-position: 100% 0, 0 0; } to { background-position: 0% 0, 0 0; } }
a { color: var(--gold); text-decoration-color: var(--line); }
a:hover { color: var(--gold-light); }
header.site {
  position: sticky; top: 0; z-index: 10;
  background: rgba(24, 25, 28, .92); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  padding: 0 16px;
}
header.site nav {
  max-width: 920px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px; padding: 14px 0;
}
.logo {
  font-size: 1.15rem; letter-spacing: .32em; text-transform: uppercase;
  text-decoration: none; color: var(--gold);
}
nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; flex-wrap: wrap; }
nav ul a {
  text-decoration: none; color: var(--muted);
  font-size: .85rem; letter-spacing: .18em; text-transform: uppercase;
}
nav ul a:hover { color: var(--gold); }
.hero {
  text-align: center; padding: 88px 16px 72px;
  background: radial-gradient(ellipse at top, rgba(201,164,92,.10) 0%, transparent 70%);
}
.crest { display: block; margin: 0 auto 28px; max-height: 340px; width: auto; max-width: 70%; }
.hero h1 {
  font-size: clamp(2.6rem, 9vw, 4.6rem); margin: 0 0 10px; font-weight: normal;
  letter-spacing: .22em; text-transform: uppercase; color: var(--gold-light);
}
.hero p { color: var(--muted); font-style: italic; font-size: 1.1rem; max-width: 540px; margin: 0 auto; }
.ornament {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 28px auto 0; max-width: 260px; color: var(--gold);
}
.ornament::before, .ornament::after { content: ""; flex: 1; height: 1px; background: var(--line); }
main { max-width: 920px; margin: 0 auto; padding: 0 16px 72px; }
section { padding: 52px 0; border-top: 1px solid var(--line); }
section:first-child { border-top: 0; }
h2 {
  font-weight: normal; font-size: 1.5rem; margin: 0 0 20px;
  letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
}
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 20px; }
.card {
  background: rgba(12, 12, 14, .55); border: 1px solid var(--line);
  padding: 24px; position: relative;
}
.card::before {
  content: ""; position: absolute; inset: 5px;
  border: 1px solid rgba(201, 164, 92, .1); pointer-events: none;
}
.card h3 { margin: 0 0 6px; font-weight: normal; font-size: 1.2rem; color: var(--gold-light); }
.card p { margin: 0; color: var(--muted); }
footer {
  text-align: center; padding: 36px 16px; color: var(--muted);
  border-top: 1px solid var(--line); font-size: .9rem; letter-spacing: .06em;
}
footer a { margin: 0 8px; }

.menu { position: relative; }
.menu summary {
  list-style: none; cursor: pointer; color: var(--gold);
  font-size: .85rem; letter-spacing: .22em; text-transform: uppercase;
  border: 1px solid var(--line); padding: 7px 16px;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: " ▾"; }
.menu[open] summary, .menu summary:hover { background: rgba(201,164,92,.1); }
.menu ul {
  position: absolute; left: 0; top: calc(100% + 6px); min-width: 160px;
  flex-direction: column; gap: 0; background: #1a1b1e; border: 1px solid var(--line);
}
.menu ul li a { display: block; padding: 11px 18px; }
.menu ul li a:hover { background: rgba(201,164,92,.1); }
.hero h1 { margin: 0 0 14px; line-height: 1; }
.titel { display: block; margin: 0 auto; height: clamp(70px, 14vw, 110px); width: auto; max-width: 90%; filter: drop-shadow(0 2px 10px rgba(201,164,92,.25)); }
body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; width: 100%; }
.legal { max-width: 720px; padding: 48px 16px 72px; }
.legal h1 { font-weight: normal; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); font-size: 1.8rem; margin: 0 0 24px; }
.legal h2 { font-size: 1.05rem; margin: 32px 0 10px; }
.formular label { display: block; margin-bottom: 18px; color: var(--muted); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; }
.formular input, .formular textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; font-size: 1rem; letter-spacing: normal; text-transform: none; color: var(--text); background: rgba(12,12,14,.6); border: 1px solid var(--line); }
.formular input:focus, .formular textarea:focus { outline: none; border-color: var(--gold); }
.formular button { cursor: pointer; font: inherit; letter-spacing: .22em; text-transform: uppercase; color: var(--bg); background: var(--gold); border: 0; padding: 12px 34px; }
.formular button:hover { background: var(--gold-light); }
.falle { position: absolute; left: -9999px; }
.klein { font-size: .85rem; color: var(--muted); }
.hinweis { border: 1px solid var(--gold); padding: 12px 16px; color: var(--gold-light); }
.hinweis.fehler { border-color: #b5483a; color: #e0a39a; }

.kontakt { max-width: 680px; }
.kontakt .intro { color: var(--muted); font-style: italic; margin: -8px 0 28px; }
.kontakt .formular { background: rgba(12,12,14,.55); border: 1px solid var(--line); padding: 32px; position: relative; margin-bottom: 28px; }
.kontakt .formular::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(201,164,92,.12); pointer-events: none; }
.formular .zeile { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .formular .zeile { grid-template-columns: 1fr; gap: 0; } .kontakt .formular { padding: 22px 18px; } }
.formular input, .formular textarea { background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 10px 2px; border-radius: 0; }
.formular input:focus, .formular textarea:focus { border-bottom-color: var(--gold); }
.formular textarea { border: 1px solid var(--line); padding: 12px; resize: vertical; }
.formular textarea:focus { border-color: var(--gold); }
.pflicht { color: var(--gold); }
.formular label.zustimmung { display: flex; gap: 12px; align-items: flex-start; text-transform: none; letter-spacing: normal; font-size: .9rem; color: var(--text); }
.formular label.zustimmung input { width: 18px; height: 18px; margin: 4px 0 0; flex: none; accent-color: #c9a45c; }
.formular button { margin-top: 6px; }

/* Familien-Portal */
.portal { max-width: 980px; }
.portal .intro { color: var(--muted); font-style: italic; margin: -8px 0 24px; }
.portal h2 { color: var(--gold); letter-spacing: .18em; text-transform: uppercase; font-size: 1.05rem; margin: 36px 0 14px; }
.portal-nav { align-items: center; }
form.inline { display: inline; margin: 0; }
.linkbutton { background: none; border: 0; padding: 0; margin: 0; cursor: pointer; font: inherit; color: var(--gold); text-decoration: underline; text-decoration-color: var(--line); }
.portal-nav .linkbutton { color: var(--muted); font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; }
.portal-nav .linkbutton:hover { color: var(--gold); }
.linkbutton:hover { color: var(--gold-light); }
.linkbutton.gefahr { color: #d58b80; }
.reiter { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.reiter a { padding: 10px 22px; text-decoration: none; color: var(--muted); letter-spacing: .16em; text-transform: uppercase; font-size: .85rem; border: 1px solid transparent; border-bottom: 0; }
.reiter a.aktiv { color: var(--gold-light); border-color: var(--line); background: rgba(12,12,14,.55); }
.formular.schmal { max-width: 420px; padding: 28px; background: rgba(12,12,14,.55); border: 1px solid var(--line); }
.formular.upload { background: rgba(12,12,14,.55); border: 1px solid var(--line); padding: 22px; margin-bottom: 8px; }
.formular input[type=file] { border: 1px dashed var(--line); padding: 16px; color: var(--text); }
.leer { color: var(--muted); font-style: italic; margin-top: 28px; }
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.galerie figure { margin: 0; background: rgba(12,12,14,.55); border: 1px solid var(--line); }
.galerie figure a { display: block; }
.galerie img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #141415; }
.galerie figcaption { padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; font-size: .9rem; }
.galerie .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--gold-light); }
.aktionen { display: flex; gap: 14px; flex-wrap: wrap; font-size: .85rem; }
.dokumente { list-style: none; margin: 0; padding: 0; }
.dokumente li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: rgba(12,12,14,.55); border: 1px solid var(--line); margin-bottom: 8px; flex-wrap: wrap; }
.dokumente .symbol { flex: none; width: 42px; text-align: center; border: 1px solid var(--gold); color: var(--gold); font-size: .75rem; letter-spacing: .1em; padding: 6px 0; }
.dokumente .info { flex: 1; min-width: 160px; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.tabelle { width: 100%; border-collapse: collapse; margin: 12px 0 18px; }
.tabelle th, .tabelle td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tabelle th { color: var(--gold); font-weight: normal; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; }
.tabelle .aktionen { justify-content: flex-end; }
code { background: rgba(255,255,255,.07); padding: 2px 7px; }
code.gross { font-size: 1.3rem; letter-spacing: .08em; display: inline-block; margin: 8px 0; }
@media (max-width: 640px) { .tabelle th:nth-child(3), .tabelle td:nth-child(3), .tabelle th:nth-child(4), .tabelle td:nth-child(4) { display: none; } .reiter a { padding: 10px 14px; } }

/* Responsive Feinschliff */
.textblock { border: 0; padding: 0; }
.legal h1 { font-size: clamp(1.3rem, 6.2vw, 1.8rem); letter-spacing: .14em; overflow-wrap: anywhere; hyphens: auto; }
h1, h2, h3, p, li, td { overflow-wrap: break-word; }
img { max-width: 100%; height: auto; }
@media (max-width: 480px) {
  header.site { padding: 0 12px; }
  header.site nav { padding: 10px 0; }
  .hero { padding: 48px 12px 40px; }
  .crest { max-height: 260px; margin-bottom: 20px; }
  .logo { letter-spacing: .22em; font-size: 1rem; }
  .portal-nav { gap: 14px; }
  .portal-nav a, .portal-nav .linkbutton { letter-spacing: .1em; font-size: .75rem; }
  main.legal { padding: 32px 14px 56px; }
  .formular.schmal, .kontakt .formular { padding: 22px 16px; }
  .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tabelle th, .tabelle td { padding: 8px 6px; font-size: .9rem; }
  .tabelle .aktionen { justify-content: flex-start; }
}
@media (min-width: 481px) and (max-width: 900px) { .hero { padding: 64px 24px 56px; } .galerie { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); } }
@media (min-width: 1400px) { .crest { max-height: 400px; } }
.galerie figure { min-width: 0; }
.galerie figcaption { min-width: 0; }
@media (max-width: 560px) {
  .tabelle, .tabelle tbody, .tabelle tr, .tabelle td { display: block; width: 100%; }
  .tabelle tr:first-child { display: none; }
  .tabelle tr { border: 1px solid var(--line); background: rgba(12,12,14,.55); padding: 10px 12px; margin-bottom: 10px; }
  .tabelle td { border: 0; padding: 3px 0; }
  .tabelle td.aktionen { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-top: 8px; }
}
footer a { display: inline-block; padding: 8px 6px; }

/* Neues Goldwappen */
.crest { max-height: 400px; filter: drop-shadow(0 6px 22px rgba(201,164,92,.18)); }
@media (max-width: 480px) { .crest { max-height: 320px; } }
@media (min-width: 1400px) { .crest { max-height: 480px; } }

/* Anmeldeseite */
.anmeldung { max-width: 440px; margin: 0 auto; text-align: center; }
.anmeldung .crest { max-height: 250px; margin-bottom: 14px; }
.anmeldung h1 { margin: 0; line-height: 1; letter-spacing: normal; }
.anmeldung .titel { height: clamp(52px, 12vw, 76px); }
.anmeldung .ornament { margin: 18px auto 0; }
.anmeldung .bereich { margin: 20px 0 22px; color: var(--muted); letter-spacing: .3em; text-transform: uppercase; font-size: .8rem; }
.anmeldung .formular.schmal { text-align: left; margin: 0 auto 22px; max-width: none; }
.anmeldung .hinweis { text-align: left; }
@media (max-width: 480px) { .anmeldung .crest { max-height: 200px; } }

/* Titel in Fraktur wie im Wappenband */
.titel { height: clamp(64px, 13vw, 96px); filter: drop-shadow(0 2px 12px rgba(201,164,92,.22)); }
.anmeldung .titel { height: clamp(52px, 11vw, 72px); }

/* Titel (Gemini) */
.titel { height: clamp(70px, 15vw, 112px); filter: drop-shadow(0 2px 14px rgba(201,164,92,.2)); }
.anmeldung .titel { height: clamp(58px, 13vw, 84px); }

/* Anmeldeseite kompakter */
main.legal.portal:has(.anmeldung) { padding-top: 24px; }
.anmeldung { max-width: 420px; }
.anmeldung .crest { max-height: 170px; margin-bottom: 8px; }
.anmeldung .titel { height: clamp(50px, 11vw, 66px); }
.anmeldung .ornament { margin-top: 10px; }
.anmeldung .bereich { margin: 12px 0 14px; }
.anmeldung .formular.schmal { width: 100%; max-width: none; padding: 20px 24px; box-sizing: border-box; }
.anmeldung .formular label { margin-bottom: 12px; }
@media (max-width: 480px) { .anmeldung .crest { max-height: 140px; } .anmeldung .formular.schmal { padding: 18px 16px; } }

/* Startseite (Variante B): Wappen links, Anmeldung rechts, Fußzeile fest unten */
body.start { min-height: 100dvh; padding-bottom: 54px; overflow-x: hidden; }
body.start footer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 18px;
  padding: 8px 12px; background: rgba(20, 21, 24, .94); border-top: 1px solid var(--line); font-size: .8rem;
}
body.start footer p { margin: 0; }
body.start footer a { padding: 4px 6px; }
.split { flex: 1; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; width: 100%; max-width: 1000px; margin: 0 auto; padding: 18px 24px; }
.split .links { text-align: center; }
.split .links .crest { display: block; max-height: min(62vh, 520px); margin: 0 auto; }
.split .rechts { max-width: 400px; width: 100%; margin: 0 auto; text-align: center; }
.split .rechts h1 { margin: 0 0 4px; line-height: 1; }
.split .rechts .titel { height: clamp(52px, 9vh, 84px); }
.split .rechts .bereich { margin: 8px 0 16px; color: var(--muted); letter-spacing: .3em; text-transform: uppercase; font-size: .8rem; }
.split .formular.schmal { text-align: left; max-width: none; padding: 20px 24px; margin: 0 0 12px; }
.split .formular label { margin-bottom: 12px; }
.split .klein { margin: 8px 0 0; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 8px; padding: 10px 16px; align-content: center; }
  .split .links .crest { max-height: 22vh; }
  .split .rechts .titel { height: clamp(44px, 8vh, 64px); }
  .split .formular.schmal { padding: 14px 16px; }
  .split .formular label { margin-bottom: 8px; }
}
@media (max-width: 820px) and (max-height: 700px) { .split .links .crest { max-height: 15vh; } .split .rechts .bereich { margin: 2px 0 6px; } .split .rechts .klein { display: none; } .split .formular.schmal { margin-bottom: 0; } }
@media (max-width: 380px) { body.start footer { font-size: .7rem; padding: 6px 8px; gap: 0 10px; } body.start footer a { padding: 2px 4px; } body.start { padding-bottom: 46px; } }
/* Startseite: eine Spalte – Wappen oben, Titel, darunter die Anmeldung */
.split { grid-template-columns: 1fr; gap: 0; max-width: 440px; align-content: center; justify-items: center; padding: 10px 16px; }
.split .links { width: 100%; }
.split .links .crest { max-height: min(30vh, 280px); margin: 0 auto 6px; }
.split .rechts { max-width: 420px; }
.split .rechts .titel { height: clamp(46px, 8vh, 76px); }
.split .rechts .ornament { margin: 8px auto 0; }
.split .rechts .bereich { margin: 10px 0 12px; }
.split .formular.schmal { padding: 16px 22px 18px; margin: 0 0 6px; }
.split .formular label { margin-bottom: 10px; }
.split .rechts .klein { margin: 4px 0 0; display: block; }
@media (max-height: 700px) { .split .links .crest { max-height: 22vh; } .split .rechts .ornament { display: none; } .split .rechts .bereich { margin: 6px 0 8px; } .split .formular.schmal { padding: 12px 18px 14px; } .split .formular label { margin-bottom: 6px; } }
@media (max-height: 580px) { .split .links .crest { max-height: 16vh; } .split .rechts .bereich { display: none; } }
@media (max-width: 480px) { .split .links .crest { max-height: min(24vh, 220px); } }
/* Startseite: Wappen und Name größer, Anmeldefeld kleiner */
.split { max-width: 560px; }
.split .links .crest { max-height: min(38vh, 380px); margin-bottom: 4px; }
.split .rechts .titel { height: clamp(60px, 11vh, 108px); }
.split .rechts { max-width: 320px; }
.split .rechts .ornament { margin: 6px auto 0; }
.split .rechts .bereich { margin: 6px 0 10px; font-size: .72rem; }
.split .formular.schmal { padding: 12px 16px 14px; margin: 0 0 4px; }
.split .formular label { margin-bottom: 6px; font-size: .72rem; letter-spacing: .12em; }
.split .formular input { padding: 6px 2px; font-size: .95rem; margin-top: 2px; }
.split .formular button { padding: 8px 22px; font-size: .78rem; letter-spacing: .2em; margin-top: 2px; }
.split .rechts .klein { font-size: .8rem; margin: 2px 0 0; }
@media (max-height: 760px) { .split .links .crest { max-height: 30vh; } .split .rechts .titel { height: clamp(50px, 10vh, 80px); } }
@media (max-height: 640px) { .split .links .crest { max-height: 24vh; } .split .rechts .bereich { display: none; } .split .rechts .ornament { display: none; } }
@media (max-height: 540px) { .split .links .crest { max-height: 18vh; } }
@media (max-width: 480px) { .split .links .crest { max-height: min(30vh, 280px); } .split .rechts .titel { height: clamp(52px, 9.5vh, 80px); } }@media (max-height: 760px) { .split .links .crest { max-height: 36vh; } .split .rechts .titel { height: clamp(54px, 11vh, 90px); } }
@media (max-height: 640px) { .split .links .crest { max-height: 28vh; } .split .rechts .titel { height: clamp(48px, 10vh, 72px); } }
@media (max-height: 540px) { .split .links .crest { max-height: 20vh; } }
@media (max-width: 480px) and (max-height: 760px) { .split .links .crest { max-height: 30vh; } }.split .rechts { max-width: 460px; }
.split .formular.schmal { max-width: 320px; margin: 0 auto 4px; }
.split .rechts .titel { height: clamp(60px, 12vh, 120px); }
@media (max-height: 760px) { .split .rechts .titel { height: clamp(54px, 12vh, 96px); } }
@media (max-height: 640px) { .split .rechts .titel { height: clamp(48px, 11vh, 76px); } }
@media (max-width: 480px) { .split .rechts .titel { height: clamp(52px, 10.5vh, 86px); } }
/* Mail im Familienbereich */
.maillist { list-style: none; margin: 14px 0; padding: 0; border-top: 1px solid var(--line); }
.maillist li { display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; align-items: center; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.maillist .punkt { color: var(--gold); font-size: .7rem; text-align: center; }
.maillist a.betreffzeile { display: flex; flex-direction: column; text-decoration: none; min-width: 0; color: var(--muted); }
.maillist .von { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.maillist .betreff { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.maillist li.neu a.betreffzeile { color: var(--text); }
.maillist li.neu .von, .maillist li.neu .betreff { font-weight: bold; }
.maillist li.neu .betreff { color: var(--gold-light); }
.maillist a.betreffzeile:hover .betreff { text-decoration: underline; }
.maillist .datum { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.seiten { display: flex; gap: 18px; justify-content: center; color: var(--muted); }
h1.mailtitel { font-size: clamp(1.2rem, 4.5vw, 1.6rem); letter-spacing: .06em; text-transform: none; }
.mailkopf { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0 0 16px; color: var(--muted); }
.mailkopf dt { color: var(--gold); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.mailkopf dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.knopf.klein-knopf { display: inline-block; padding: 7px 16px; font-size: .75rem; cursor: pointer; background: none; }
.mailrahmen { width: 100%; height: 65vh; min-height: 320px; border: 1px solid var(--line); background: #fff; margin-top: 8px; }
.mailtext { background: rgba(12,12,14,.55); border: 1px solid var(--line); padding: 16px 18px; margin-top: 12px; overflow-wrap: anywhere; line-height: 1.6; }
.mailtext a { word-break: break-all; }
@media (max-width: 480px) { .maillist li { grid-template-columns: 14px 1fr; } .maillist .datum { grid-column: 2; font-size: .72rem; } .mailkopf { grid-template-columns: 1fr; gap: 0; } .mailkopf dd { margin-bottom: 6px; } }
.galerie img { object-fit: contain; }

/* Startseite (neu): Wappen und Name ca. drei Viertel der Höhe, darunter dezente Anmeldezeile */
body.start { padding-bottom: 54px; }
.startseite { flex: 1; display: flex; flex-direction: column; height: calc(100dvh - 54px); min-height: 0; width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.logo-bereich { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 14px; }
.wappen-box { flex: 1 1 0; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; }
.wappen-box .crest { height: 100%; width: auto; max-width: 100%; max-height: none; margin: 0; object-fit: contain; }
.logo-bereich h1 { flex: 0 0 auto; margin: 6px 0 0; line-height: 1; }
.logo-bereich .titel { height: clamp(64px, 15vh, 150px); max-width: 92vw; width: auto; }
.login-bereich { flex: 0 0 auto; min-height: 20vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px 0 10px; }
.login-zeile { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 6px 28px; width: 100%; max-width: 640px; }
.login-zeile label { flex: 1 1 220px; max-width: 280px; margin: 0; color: var(--muted); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; }
.login-zeile input { display: block; width: 100%; margin-top: 2px; padding: 5px 2px; font: inherit; font-size: .92rem; letter-spacing: normal; text-transform: none; color: var(--text); background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.login-zeile input:focus { outline: none; border-bottom-color: var(--gold); }
.login-zeile .login-knopf { flex: 0 0 100%; align-self: center; width: auto; margin: 8px auto 0; padding: 6px 26px; background: transparent; color: var(--gold); border: 1px solid var(--line); font: inherit; font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; cursor: pointer; }
.login-zeile .login-knopf:hover { border-color: var(--gold); color: var(--gold-light); }
.login-hinweis { margin: 6px 0 0; font-size: .78rem; text-align: center; }
.login-hinweis a { color: var(--muted); text-decoration-color: var(--line); }
.login-hinweis a:hover { color: var(--gold); }
@media (max-width: 560px) { .login-zeile { gap: 8px; } .login-zeile label { flex-basis: 100%; max-width: none; } .login-bereich { min-height: 0; } .logo-bereich .titel { height: clamp(52px, 11vh, 96px); } }
@media (max-width: 380px) { .startseite { height: calc(100dvh - 46px); } body.start { padding-bottom: 46px; } }.login-zeile .umbruch { flex: 0 0 100%; height: 0; }
.login-zeile .login-knopf { flex: 0 0 auto; align-self: center; margin: 6px 0 0; }/* feste Zeilenaufteilung: oben Wappen und Name (nimmt den Rest), unten Anmeldung (bekommt immer ihren Platz) */
.startseite { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.logo-bereich { min-height: 0; overflow: hidden; }
.login-bereich { min-height: 0; }
@media (max-width: 560px) { .login-bereich { padding: 4px 0 6px; } .login-zeile label { font-size: .64rem; } .login-zeile input { padding: 3px 2px; } .login-zeile .login-knopf { margin-top: 4px; padding: 5px 22px; } .login-hinweis { margin-top: 3px; } }/* Beschriftungen zentriert über dem Eingabestrich */
.login-zeile label { text-align: center; }
.login-zeile input { text-align: center; }/* Höhe der festen Fußzeile: am PC einzeilig, am Handy zweizeilig */
body.start { --fuss: 52px; padding-bottom: var(--fuss); }
.startseite { height: calc(100dvh - var(--fuss)); }
@media (min-width: 561px) { .login-bereich { min-height: 23vh; } }
@media (max-width: 560px) { body.start { --fuss: 60px; } }@media (max-width: 560px) { body.start footer { flex-direction: column; flex-wrap: nowrap; gap: 0; padding: 6px 8px; line-height: 1.35; } body.start footer a { padding: 2px 6px; } }/* Zweistufige Anmeldung: erst Benutzer, dann Passwort */
.login-zeile.einzeln { max-width: 360px; }
.login-zeile.einzeln label { flex: 1 1 100%; max-width: none; }
.login-zeile .benutzer-anzeige { flex: 1 1 100%; width: 100%; border-bottom: 0; color: var(--gold-light); font-size: .95rem; margin: 0 0 6px; pointer-events: none; }
.login-fehler { margin: 0 0 6px; font-size: .85rem; color: #e0a39a; text-align: center; }/* Benutzer-Feld mit fester Endung @dejakum.at direkt hinter der Eingabe */
.login-zeile .mailfeld { display: flex; align-items: baseline; width: 100%; border-bottom: 1px solid var(--line); margin-top: 2px; }
.login-zeile .mailfeld:focus-within { border-bottom-color: var(--gold); }
.login-zeile .mailfeld input { flex: 1 1 50%; min-width: 0; margin-top: 0; text-align: right; border-bottom: 0; padding-right: 1px; }
.login-zeile .mailfeld .suffix { flex: 1 1 50%; text-align: left; white-space: nowrap; color: var(--muted); font-size: .92rem; letter-spacing: normal; text-transform: none; padding-left: 1px; }
/* ===== Neue Struktur: Dreistreifen-Menü, erste Seite mit Wappen und Geschichte, Unterseiten mit Namenszug ===== */
.burger { position: relative; z-index: 40; }
.burger summary { list-style: none; cursor: pointer; width: 46px; height: 46px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; border: 1px solid transparent; }
.burger summary::-webkit-details-marker { display: none; }
.burger summary span { display: block; width: 24px; height: 2px; background: var(--gold); transition: background .2s; }
.burger summary:hover span, .burger[open] summary span { background: var(--gold-light); }
.burger[open] summary { border-color: var(--line); background: rgba(20, 21, 24, .92); }
.burger ul { list-style: none; margin: 4px 0 0; padding: 0; position: absolute; left: 0; top: 100%; min-width: 200px; background: #1a1b1e; border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0,0,0,.5); display: block; }
.burger ul li { display: block; }
.burger ul a { display: block; padding: 12px 20px; text-decoration: none; color: var(--gold); letter-spacing: .2em; text-transform: uppercase; font-size: .85rem; }
.burger ul a:hover { background: rgba(201,164,92,.12); color: var(--gold-light); }
.burger-fest { position: fixed; top: 8px; left: 8px; }

body.start { display: block; min-height: 100dvh; padding-bottom: 54px; }
.willkommen { width: 100%; max-width: 860px; margin: 0 auto; padding: 0 20px 40px; }
.wappen-gross { display: flex; justify-content: center; align-items: center; min-height: calc(100dvh - 54px); padding: 28px 0 20px; }
.wappen-gross .crest { height: min(78dvh, 760px); width: auto; max-width: 100%; max-height: none; margin: 0; object-fit: contain; }
.geschichte { color: #d9c28c; line-height: 1.85; font-size: 1.08rem; padding-top: 10px; }
.geschichte h1 { text-align: center; font-weight: normal; letter-spacing: .12em; text-transform: none; font-size: clamp(1.5rem, 4.5vw, 2.3rem); color: var(--gold-light); margin: 0 0 6px; line-height: 1.25; }
.geschichte .untertitel { text-align: center; margin: 0; font-style: italic; color: var(--gold); letter-spacing: .08em; }
.geschichte .ornament { margin: 22px auto 30px; }
.geschichte h2 { font-weight: normal; font-size: 1.15rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin: 44px 0 12px; text-align: center; }
.geschichte p { margin: 0 0 1.1em; text-align: justify; hyphens: auto; }
@media (max-width: 560px) { .geschichte { font-size: 1rem; line-height: 1.75; } .geschichte p { text-align: left; } .wappen-gross .crest { height: min(70dvh, 520px); } .burger-fest { top: 4px; left: 4px; } }

/* Unterseiten: Namenszug zentriert oben, Menü links */
header.kopf { position: relative; text-align: center; padding: 12px 64px 8px; border-bottom: 1px solid var(--line); background: rgba(20, 21, 24, .55); }
header.kopf .burger { position: absolute; left: 8px; top: 8px; }
header.kopf .kopf-titel { display: inline-block; line-height: 0; }
header.kopf .titel { height: clamp(46px, 9vw, 68px); width: auto; max-width: 100%; display: block; }
@media (max-width: 560px) { header.kopf { padding: 10px 58px 8px; } header.kopf .burger { left: 4px; top: 6px; } }
nav.portal-menue { border-bottom: 1px solid var(--line); padding: 6px 12px; background: rgba(20, 21, 24, .35); }
nav.portal-menue .portal-nav { justify-content: center; margin: 0 auto; max-width: 980px; flex-wrap: wrap; }

/* Anmeldeseite als Unterseite */
body.unterseite main.login-seite { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; max-width: 480px; margin: 0 auto; padding: 32px 16px; }
body.unterseite main.login-seite .login-zeile { width: 100%; }.wappen-gross { min-height: calc(100dvh - 150px); padding-bottom: 6px; position: relative; }
.wappen-gross .crest { height: min(72dvh, 720px); }
.scroll-hinweis { position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%); color: var(--gold); font-size: 1.2rem; opacity: .7; animation: hinweis 2.4s ease-in-out infinite; pointer-events: none; }
@keyframes hinweis { 0%, 100% { transform: translate(-50%, 0); opacity: .35; } 50% { transform: translate(-50%, 6px); opacity: .85; } }
@media (max-width: 560px) { .wappen-gross { min-height: calc(100dvh - 140px); } .wappen-gross .crest { height: min(64dvh, 500px); } }body.unterseite main.login-seite .bereich { margin: 0 0 14px; color: var(--muted); letter-spacing: .3em; text-transform: uppercase; font-size: .8rem; text-align: center; }
body.unterseite main.login-seite .login-fehler { margin: 0 0 10px; }
body.unterseite main.login-seite .login-hinweis { margin-top: 14px; }
.dokumente .symbol { width: auto; min-width: 46px; padding: 6px 8px; white-space: nowrap; }

/* Schimmern des Wappens: Lichtstreifen über dem Gold und kurzes Funkeln */
.glanz { position: relative; display: inline-flex; line-height: 0; max-width: 100%; }
.glanz .licht { position: absolute; inset: 0; overflow: hidden;
  -webkit-mask: url(wappen.png) center / contain no-repeat; mask: url(wappen.png) center / contain no-repeat;
  mix-blend-mode: overlay; pointer-events: none; }
.glanz .licht::before { content: ""; position: absolute; top: -10%; bottom: -10%; left: 0; width: 56%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 238, 196, 0) 12%, rgba(255, 240, 190, .95) 42%, rgba(255, 246, 214, 1) 50%, rgba(255, 240, 190, .95) 58%, rgba(255, 238, 196, 0) 88%, transparent 100%);
  transform: translateX(-120%) skewX(-14deg); animation: lichtlauf 7s ease-in-out infinite; }
@keyframes lichtlauf { 0% { transform: translateX(-120%) skewX(-14deg); } 40%, 100% { transform: translateX(260%) skewX(-14deg); } }
.glanz .funken { position: absolute; inset: 0; pointer-events: none; }
.glanz .funken i { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; opacity: 0; transform: scale(.2) rotate(0deg);
  background: radial-gradient(circle, #fffbea 0%, rgba(255, 236, 170, .85) 16%, rgba(255, 220, 120, 0) 55%);
  animation: funkeln 6.5s ease-in-out infinite; mix-blend-mode: screen; }
.glanz .funken i::before, .glanz .funken i::after { content: ""; position: absolute; left: 50%; top: 50%; background: linear-gradient(90deg, transparent, #fff6d8, transparent); }
.glanz .funken i::before { width: 150%; height: 2px; margin: -1px 0 0 -75%; }
.glanz .funken i::after { width: 2px; height: 150%; margin: -75% 0 0 -1px; background: linear-gradient(180deg, transparent, #fff6d8, transparent); }
@keyframes funkeln { 0%, 14%, 100% { opacity: 0; transform: scale(.2) rotate(0deg); } 6% { opacity: 1; transform: scale(1) rotate(35deg); } 10% { opacity: .6; transform: scale(.7) rotate(60deg); } }
.glanz .crest { animation: atmen 7s ease-in-out infinite; }
@keyframes atmen { 0%, 100% { filter: drop-shadow(0 6px 22px rgba(201,164,92,.18)) brightness(1); } 50% { filter: drop-shadow(0 6px 26px rgba(230,205,143,.32)) brightness(1.06); } }
@media (prefers-reduced-motion: reduce) { .glanz .licht::before, .glanz .funken i, .glanz .crest { animation: none; } .glanz .funken { display: none; } }
/* Wanderndes Licht: ein weicher Lichtfleck gleitet ununterbrochen über das Gold */
.glanz .licht .spot-x { position: absolute; left: 0; top: 0; width: 85%; height: 62%; animation: spotx 13s ease-in-out infinite alternate; will-change: transform; }
.glanz .licht .spot-y { display: block; width: 100%; height: 100%; will-change: transform;
  background: radial-gradient(ellipse at center, rgba(255, 248, 222, 1) 0%, rgba(255, 238, 188, .75) 22%, rgba(255, 224, 140, .32) 45%, rgba(255, 214, 120, 0) 70%);
  animation: spoty 8.5s ease-in-out infinite alternate; }
@keyframes spotx { from { transform: translateX(-32%); } to { transform: translateX(46%); } }
@keyframes spoty { from { transform: translateY(-18%); } to { transform: translateY(105%); } }
@media (prefers-reduced-motion: reduce) { .glanz .licht .spot-x, .glanz .licht .spot-y { animation: none; } .glanz .licht .spot-x { transform: translateX(10%); } }