/* SVU – Website (Entwurf B: klar & ruhig) */
@font-face { font-family: "Figtree"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/figtree-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/figtree-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/figtree-latin-800-normal.woff2") format("woff2"); }

:root {
  --green: #1a7a3c;
  --green-dark: #125a2c;
  --ink: #1b2a22;
  --muted: #4a5c51;
  --muted-2: #5b6e62;
  --line: #e1e8e3;
  --soft: #f4f7f5;
  --tint: #eaf1ec;
  --radius: 12px;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.55; color: var(--ink); background: #fff; }
img { max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: 2px; }
a:hover { color: var(--green-dark); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; }
:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.muted { color: var(--muted-2); }
.small { font-size: 14px; }
.lead { font-size: 19px; color: var(--muted); max-width: 680px; }
.notice { background: #fff6d6; border: 1px solid #f1dc8c; padding: 10px 14px; border-radius: 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; background: var(--green); color: #fff; border: 0; text-decoration: none; font: inherit; font-weight: 700; padding: 10px 20px; border-radius: 8px; cursor: pointer; }
.btn:hover { background: var(--green-dark); color: #fff; }

/* Kopfbereich */
.topbar { background: var(--soft); border-bottom: 1px solid var(--line); font-size: 14px; }
.topbar-inner { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 24px; padding-top: 8px; padding-bottom: 8px; color: var(--muted); }
.topbar a { color: var(--muted); }
.topbar .topbar-strong { color: var(--green); font-weight: 700; }

.site-header { border-bottom: 1px solid var(--line); background: #fff; position: relative; z-index: 5; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; }
.brand-logo { width: 46px; height: 46px; object-fit: contain; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 20px; }
.brand-sub { font-size: 14px; color: var(--muted-2); }

.nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nav-list { display: flex; flex-wrap: wrap; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-list a { display: block; color: var(--ink); text-decoration: none; font-weight: 600; padding: 10px 12px; border-radius: 8px; }
.nav-list a:hover, .nav-list a[aria-current] { color: var(--green); background: var(--soft); }
.nav-list .sub { display: none; position: absolute; top: 100%; left: 0; min-width: 260px; list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(20, 40, 28, .12); }
.nav-list .sub a { font-weight: 500; padding: 8px 12px; }
.nav-list .has-sub:hover > .sub, .nav-list .has-sub:focus-within > .sub { display: block; }
.nav-search { display: flex; align-items: center; border: 1px solid #d3ddd6; border-radius: 999px; padding: 2px 4px 2px 14px; }
.nav-search input { border: 0; font: inherit; font-size: 15px; width: 120px; padding: 8px 0; background: transparent; }
.nav-search input:focus { outline: none; }
.nav-search:focus-within { border-color: var(--green); }
.nav-search button { width: 38px; height: 38px; border: 0; background: transparent; color: var(--ink); cursor: pointer; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.nav-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; font: inherit; font-weight: 600; background: #fff; border: 1px solid #d3ddd6; border-radius: 8px; color: var(--ink); cursor: pointer; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 8px; }
  .nav.open { display: flex; }
  .nav-list { flex-direction: column; }
  .nav-list a { padding: 12px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-list .sub { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 0 16px; min-width: 0; }
  .nav-list .sub a { font-size: 15px; padding: 9px 8px; }
  .nav-search { margin-top: 12px; }
  .nav-search input { width: 100%; flex: 1; }
}

img.brand-logo { width: auto; height: 58px; }
@media (max-width: 480px) { img.brand-logo { height: 48px; } }

/* Startseite */
.hero-inner { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: center; padding-top: 20px; padding-bottom: 24px; }
.wa-card { flex: 0 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 8px 12px; border-radius: 10px; background: #e9f8ee; border: 1px solid #bfe6cb; color: var(--ink); text-decoration: none; }
.wa-card:hover { border-color: #1fa855; color: var(--ink); }
.wa-icon { width: 26px; height: 26px; flex: none; border-radius: 999px; background: #1fa855; color: #fff; display: flex; align-items: center; justify-content: center; }
.wa-text { display: flex; flex-direction: column; gap: 4px; }
.wa-text strong { font-size: 13px; font-weight: 800; line-height: 1.2; }
.wa-text span { color: var(--muted); }
.wa-btn { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px; border-radius: 6px; background: #157a3c; color: #fff; font-size: 13px; font-weight: 700; }
.wa-card:hover .wa-btn { background: #0f5e2d; }
.hero-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.hero h1 { margin: 0; font-weight: 800; font-size: clamp(30px, 3.8vw, 48px); line-height: 1.05; letter-spacing: -0.02em; }
.hero .lead { margin: 0; }
.kicker { color: var(--green); font-weight: 700; font-size: 19px; letter-spacing: 0.02em; }
.hero-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.quick { flex: 1 1 320px; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 0; display: flex; flex-direction: column; }
.quick-title { padding: 12px 22px 6px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-2); }
.quick a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 22px; color: var(--ink); text-decoration: none; font-weight: 600; border-top: 1px solid #eef2ef; }
.quick a:hover { background: var(--soft); }
.arrow { color: var(--green); }

.band { border-top: 1px solid var(--line); padding: 24px 0 48px; }
.band-soft { background: var(--soft); border-top: 0; }
.layout { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.layout-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.layout-aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.layout-page { padding-bottom: 72px; }

.section-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 4px; }
.section-head h2 { margin: 0; font-weight: 800; font-size: clamp(27px, 3.6vw, 45px); letter-spacing: -0.02em; }
.section-head a { font-weight: 600; }
.section-head-sm { margin-top: 24px; }
.section-head-sm h2 { font-size: 24px; }

.meta { font-size: 14px; color: var(--muted-2); }
.tag { color: var(--green); font-weight: 700; }

.feature { display: flex; flex-direction: column; gap: 12px; color: var(--ink); text-decoration: none; }
.feature-img { display: block; aspect-ratio: 16 / 8; border-radius: var(--radius); overflow: hidden; background: var(--tint); }
.feature-img img, .feature-img .img-ph { width: 100%; height: 100%; object-fit: cover; display: flex; }
.feature-title { font-weight: 800; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.15; letter-spacing: -0.01em; }
.feature:hover .feature-title { color: var(--green); }
.feature-teaser { color: var(--muted); }

.rows { display: flex; flex-direction: column; }
.row { display: flex; gap: 20px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.row:hover .row-title { color: var(--green); }
.row-img { flex: 0 0 140px; width: 140px; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--tint); display: block; }
.row-img img, .row-img .img-ph { width: 100%; height: 100%; object-fit: cover; }
.row-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.row-title { font-weight: 700; font-size: 20px; line-height: 1.25; }
.rows-list { margin-top: 8px; }
@media (max-width: 560px) {
  .row { gap: 14px; }
  .row-img { flex-basis: 96px; width: 96px; }
  .row-title { font-size: 17px; }
}

.img-ph { display: flex; align-items: center; justify-content: center; color: #8aa093; background: var(--tint); }

.aside-block { display: flex; flex-direction: column; }
.aside-block h2, .box h2 { margin: 0 0 8px; font-weight: 800; font-size: 22px; }
.event-mini { display: flex; flex-direction: column; padding: 12px 0; border-top: 1px solid var(--line); }
.event-when { font-size: 14px; color: var(--green); font-weight: 700; }
.event-title { font-weight: 600; }
.more { font-weight: 600; margin-top: 10px; }
.box { border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.box-soft { background: var(--soft); }
.box-line { border: 1px solid var(--line); }
.box .btn { align-self: flex-start; margin-top: 8px; }
.box p { margin: 0; }

.dept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 0 40px; margin-top: 16px; }
.dept-grid a { display: flex; flex-direction: column; padding: 16px 0; border-top: 1px solid #dbe4de; color: var(--ink); text-decoration: none; }
.dept-grid a:hover .dept-name { color: var(--green); }
.dept-name { font-weight: 700; font-size: 19px; }
.dept-grid-page { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

/* Unterseiten */
.page-head { padding-top: 16px; padding-bottom: 16px; }
.page-head h1 { margin: 8px 0 8px; font-weight: 800; font-size: clamp(27px, 3.6vw, 45px); letter-spacing: -0.02em; }
.page-head .lead { margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted-2); }
.crumbs a { color: var(--muted-2); }
.back { font-weight: 600; font-size: 15px; text-decoration: none; }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; }
.subnav a, .chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border: 1px solid #d3ddd6; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.subnav a[aria-current], .chips a[aria-current] { background: var(--green); border-color: var(--green); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.child-list { padding-left: 20px; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 24px 0 64px; font-weight: 600; }

/* Fließtext aus dem Editor */
.prose { overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 26px; margin: 1.6em 0 .5em; clear: both; }
.prose h3 { font-size: 21px; margin: 1.4em 0 .4em; }
.prose h4, .prose h5, .prose h6 { font-size: 18px; margin: 1.2em 0 .4em; }
.prose img { border-radius: 8px; }
.prose .float-left { float: left; margin: 4px 20px 12px 0; max-width: 50%; }
.prose .float-right { float: right; margin: 4px 0 12px 20px; max-width: 50%; }
.prose .align-center { text-align: center; }
.prose .align-right { text-align: right; }
.prose .align-justify { text-align: justify; }
.prose blockquote { margin: 1.2em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--green); color: var(--muted); }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; display: block; overflow-x: auto; }
.prose td, .prose th { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { font-weight: 700; background: var(--soft); }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 8px; }
.prose::after { content: ""; display: block; clear: both; }
.prose-small { font-size: 15px; }
.prose-small p { margin: .3em 0; }
@media (max-width: 560px) {
  .prose .float-left, .prose .float-right { float: none; margin: 12px 0; max-width: 100%; }
}

.article { max-width: 860px; padding-top: 16px; padding-bottom: 64px; }
.article-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.article-head h1 { margin: 0; font-weight: 800; font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.02em; }
.article-img { margin: 0 0 28px; }
.article-img img { width: 100%; border-radius: var(--radius); }
.article-img figcaption { font-size: 14px; color: var(--muted-2); margin-top: 6px; }
.byline { margin-top: 32px; }
.gallery-head { margin-top: 40px; font-size: 24px; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 200px), 1fr)); gap: 8px; padding-bottom: 64px; }
.gallery-grid a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: var(--tint); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.gallery-grid a:hover img { transform: scale(1.04); }
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 24px; padding-bottom: 64px; }
.album { display: flex; flex-direction: column; gap: 6px; color: var(--ink); text-decoration: none; font-weight: 700; }
.album img, .album .img-ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.album:hover > span:first-of-type { color: var(--green); }

.event-list { padding-bottom: 64px; }
.month { font-size: 22px; margin: 32px 0 8px; }
.event { display: flex; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.event-date { flex: 0 0 64px; height: 64px; border-radius: 10px; background: var(--tint); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.event-date .d { font-size: 24px; font-weight: 800; color: var(--green-dark); }
.event-date .w { font-size: 13px; color: var(--muted); font-weight: 600; }
.event-body h3 { margin: 4px 0; font-size: 20px; }
.event-body p { margin: 4px 0; }

.search-big { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; max-width: 680px; }
.search-big input { flex: 1 1 260px; min-height: 48px; font: inherit; padding: 10px 14px; border: 1px solid #c8d4cc; border-radius: 8px; }
.search-results { padding-bottom: 64px; display: flex; flex-direction: column; }
.result { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.result:hover .row-title { color: var(--green); }

/* Fuß */
.site-footer { border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-top: 36px; padding-bottom: 36px; }
.footer-inner strong { color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--muted); }

/* Bildbetrachter */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(8, 16, 12, .92); display: flex; align-items: center; justify-content: center; padding: 56px 16px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.lightbox button { position: absolute; width: 48px; height: 48px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font-size: 26px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox button:hover { background: rgba(255, 255, 255, .28); }
.lightbox .lb-close { top: 12px; right: 12px; }
.lightbox .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-caption { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #e7efe9; font-size: 15px; padding: 0 70px; }

@media print {
  .topbar, .site-header nav, .nav-toggle, .site-footer, .layout-aside { display: none !important; }
}

@media (max-width: 480px) {
  .nav-toggle span { display: none; }
  .nav-toggle { padding: 8px 11px; }
  .header-inner { flex-wrap: nowrap; }
  .header-inner .nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; padding: 0 24px 16px; border-bottom: 1px solid var(--line); }
  .brand-name { font-size: 18px; }
}
