/* EuWe Website – Grundgestaltung. Keine Fremd-Schriften, keine CDN-Abhängigkeit. */

:root {
  --brand: #003f81;
  --brand-dark: #002a57;
  --brand-mid: #567fab;
  --brand-light: #e9eff7;
  --text: #1c2430;
  --muted: #5a6472;
  --line: #dbe2ea;
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --focus: #ffbf47;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 32, 64, .06), 0 6px 20px rgba(16, 32, 64, .08);
  --wrap: 1200px;
  --measure: 820px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; outline: none; }
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--brand); text-underline-offset: .18em; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.01em; color: var(--brand-dark); margin: 1.6em 0 .5em; }
h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); margin-top: 0; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); }
h3 { font-size: 1.25rem; }
p, ul, ol { margin: 0 0 1em; }
address { font-style: normal; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--focus); color: #000; padding: .6rem 1rem; border-radius: 6px; font-weight: 600;
}
.skip:focus { top: 1rem; }

/* ---------- Kopf ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); box-shadow: 0 1px 0 var(--line); }
.topbar { background: var(--brand-dark); color: #fff; font-size: .875rem; }
.topbar__inner { display: flex; justify-content: flex-end; align-items: center; gap: 1.5rem; min-height: 2.25rem; }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; }
.topbar a { color: #fff; text-decoration: none; opacity: .9; }
.topbar a:hover, .topbar a[aria-current] { opacity: 1; text-decoration: underline; }
.langnav ul { gap: .25rem; }
.langnav a { display: inline-block; padding: .1rem .45rem; border-radius: 4px; font-weight: 600; letter-spacing: .03em; }
.langnav a[aria-current] { background: #fff; color: var(--brand-dark); text-decoration: none; }

.mainbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.5rem; }
.logo img { width: clamp(200px, 26vw, 300px); height: auto; }
.mainnav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.mainnav__item { position: relative; }
.mainnav__link {
  display: block; padding: .75rem .9rem; font-weight: 600; text-decoration: none; color: var(--text);
  border-radius: 6px;
}
.mainnav__link:hover, .mainnav__item.is-active > .mainnav__link { color: var(--brand); background: var(--brand-light); }
.subnav {
  list-style: none; margin: 0; padding: .5rem; min-width: 15rem;
  position: absolute; left: 0; top: 100%;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.mainnav__item:hover > .subnav, .mainnav__item:focus-within > .subnav { opacity: 1; visibility: visible; transform: none; }
.subnav a { display: block; padding: .5rem .75rem; border-radius: 6px; text-decoration: none; color: var(--text); }
.subnav a:hover, .subnav a[aria-current] { background: var(--brand-light); color: var(--brand); }
.navtoggle { display: none; }

@media (max-width: 1000px) {
  .navtoggle {
    display: inline-flex; align-items: center; gap: .5rem;
    font: inherit; font-weight: 600; color: var(--brand-dark);
    background: var(--brand-light); border: 0; border-radius: 6px; padding: .55rem .9rem; cursor: pointer;
  }
  .navtoggle__icon, .navtoggle__icon::before, .navtoggle__icon::after {
    display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: "";
  }
  .navtoggle__icon::before { position: absolute; top: -6px; }
  .navtoggle__icon::after { position: absolute; top: 6px; }
  .mainnav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-top: 1px solid var(--line); box-shadow: var(--shadow);
    max-height: calc(100vh - 7rem); overflow-y: auto;
  }
  .mainnav.is-open { display: block; }
  .mainnav__list { flex-direction: column; padding: .5rem clamp(16px, 4vw, 32px) 1rem; }
  .subnav { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 .5rem 1rem; }
  .mainbar { position: relative; }
  .topbar__inner { justify-content: space-between; }
}
@media (max-width: 560px) {
  .metanav { display: none; }
  .topbar__inner { justify-content: flex-end; }
}

/* ---------- Startseite ---------- */
.hero { position: relative; background: var(--brand-dark); overflow: hidden; }
.hero__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hero__track::-webkit-scrollbar { display: none; }
.hero__slide { position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.hero__slide img { width: 100%; height: clamp(300px, 46vw, 620px); object-fit: cover; }
.hero__caption {
  position: absolute; inset: auto 0 0 0; color: #fff; padding: 4rem 0 2.5rem;
  background: linear-gradient(to top, rgba(0, 20, 45, .78), rgba(0, 20, 45, 0));
}
.hero__title { font-size: clamp(1.4rem, 1rem + 2vw, 2.3rem); font-weight: 700; margin: 0 0 .4rem; line-height: 1.2; }
.hero__text { max-width: 46rem; margin: 0 0 1rem; font-size: clamp(1rem, .9rem + .4vw, 1.2rem); }
.hero__controls { position: absolute; right: clamp(16px, 4vw, 32px); bottom: 1.25rem; display: flex; gap: .5rem; }
.hero__btn {
  width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .8);
  background: rgba(0, 20, 45, .35); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.hero__btn:hover { background: rgba(0, 20, 45, .65); }
.home__intro { text-align: center; padding-block: clamp(2rem, 5vw, 3.5rem) 1rem; }
.home__title { margin-bottom: .25rem; }
.claim { font-weight: 700; color: var(--brand); font-size: 1.15rem; margin-bottom: 1rem; }
.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--muted); max-width: var(--measure); margin-inline: auto; }

/* ---------- Seitenkopf ---------- */
.pagehead { background: var(--bg-alt); border-bottom: 1px solid var(--line); margin-bottom: 2.5rem; }
.pagehead__media img { width: 100%; height: clamp(160px, 26vw, 360px); object-fit: cover; }
.pagehead__text { padding-block: 2rem 2.25rem; }
.pagehead__text h1 { margin-bottom: .3rem; }
.pagehead .lead { margin-inline: 0; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0 0 .75rem; display: flex; flex-wrap: wrap; gap: .25rem; font-size: .875rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin-right: .35rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }

/* ---------- Inhalt ---------- */
.content { padding-bottom: 4rem; }
.content > * { max-width: var(--measure); margin-inline: auto; }
.content > .wide { max-width: var(--wrap); }
.content > :first-child { margin-top: 0; }
.rte ul, .rte ol { padding-left: 1.3rem; }
.rte li { margin-bottom: .3rem; }
.rte hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.content table { width: 100%; border-collapse: collapse; margin: 1.5rem auto; font-size: .95rem; }
.content th, .content td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.content th { background: var(--bg-alt); }

.figure { margin: 2rem auto; }
.figure img { border-radius: var(--radius); }
.figure figcaption, .gallery__caption { font-size: .9rem; color: var(--muted); margin-top: .5rem; }

.highlight {
  font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); font-weight: 700; color: var(--brand);
  border-left: 5px solid var(--brand); padding: .25rem 0 .25rem 1.1rem; margin: 2rem auto;
}

.gallery { margin: 2.5rem auto; }
.gallery__grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.gallery__item { margin: 0; }
.gallery__item img { border-radius: 8px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform .2s; }
.gallery__item a:hover img { transform: scale(1.02); }

.imagetext { display: grid; gap: clamp(1.25rem, 3vw, 2.5rem); align-items: center; margin: 3rem auto; grid-template-columns: 1fr 1fr; }
.imagetext--left .imagetext__media { order: -1; }
.imagetext--right .imagetext__media { order: 2; }
.imagetext__media img { border-radius: var(--radius); }
@media (max-width: 800px) { .imagetext { grid-template-columns: 1fr; } .imagetext__media { order: -1 !important; } }

.facts { margin: 3rem auto; }
.facts__grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.fact { background: var(--brand); color: #fff; border-radius: var(--radius); padding: 1.5rem 1.25rem; }
.fact__value { display: block; font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.5rem); font-weight: 800; line-height: 1.1; }
.fact__label { display: block; margin-top: .35rem; opacity: .92; }

.docs { margin: 2rem auto; }
.doclist { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.doclist__item { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.doclist__title { font-weight: 600; flex: 1 1 18rem; }
.doclist__files { display: flex; flex-wrap: wrap; gap: .4rem; }
.docbtn {
  display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px; padding: .2rem .7rem; color: var(--brand-dark); background: #fff;
}
.docbtn:hover { border-color: var(--brand); background: var(--brand-light); }
.docbtn__lang { font-weight: 700; }

.video { margin: 2.5rem auto; }
.video__frame { position: relative; aspect-ratio: 16 / 9; background: var(--brand-dark); border-radius: var(--radius); overflow: hidden; }
.video__frame img, .video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video__play {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem;
  width: 100%; border: 0; cursor: pointer; color: #fff; font: inherit; font-weight: 600;
  background: linear-gradient(rgba(0, 20, 45, .35), rgba(0, 20, 45, .55));
}
.video__icon { width: 4.5rem; height: 4.5rem; border-radius: 50%; background: rgba(255, 255, 255, .95); position: relative; }
.video__icon::after {
  content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%);
  border-style: solid; border-width: .85rem 0 .85rem 1.35rem; border-color: transparent transparent transparent var(--brand);
}
.video__play:hover .video__icon { background: #fff; transform: scale(1.05); }
.video figcaption { margin-top: .6rem; }
.video figcaption small { display: block; color: var(--muted); font-size: .85rem; }

.locations { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); margin: 2rem auto; }
.location { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.location__body { padding: 1.25rem 1.4rem 1.4rem; }
.location__name { margin-top: 0; }

.btn {
  display: inline-block; background: var(--brand); color: #fff; text-decoration: none; font-weight: 600;
  padding: .6rem 1.15rem; border-radius: 6px; border: 2px solid var(--brand);
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--brand); }
.btn--ghost:hover { background: var(--brand-light); color: var(--brand-dark); }
.linkbuttons { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem auto; }

.teasers { list-style: none; padding: 0; margin: 3rem auto 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.teaser__link {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
}
.teaser__link:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(16, 32, 64, .14); color: inherit; }
.teaser__media { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--brand), var(--brand-mid)); }
.teaser__media img { width: 100%; height: 100%; object-fit: cover; }
.teaser__body { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.teaser__title { font-size: 1.2rem; margin: 0 0 .5rem; }
.teaser__body p { color: var(--muted); font-size: .95rem; }
.teaser__more { margin-top: auto; color: var(--brand); font-weight: 600; }

.presslist, .joblist { list-style: none; padding: 0; margin: 1.5rem auto; border-top: 1px solid var(--line); }
.presslist__item { display: grid; grid-template-columns: 6rem 11rem 1fr; gap: .25rem 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.presslist__date { color: var(--muted); font-variant-numeric: tabular-nums; }
.presslist__medium { font-weight: 600; }
.filemeta { color: var(--muted); font-size: .85rem; }
@media (max-width: 700px) { .presslist__item { grid-template-columns: 1fr; } }
.joblist__item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.joblist__title { font-weight: 700; margin: 0; font-size: 1.1rem; }
.joblist__meta { margin: 0; color: var(--muted); font-size: .95rem; }
.notice { background: var(--brand-light); border-radius: var(--radius); padding: 1rem 1.25rem; }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1600px); max-height: 92vh; }
.lightbox::backdrop { background: rgba(0, 10, 25, .85); }
.lightbox img { max-height: 84vh; width: auto; margin: 0 auto; border-radius: 6px; }
.lightbox p { color: #fff; text-align: center; margin: .5rem 0 0; }
.lightbox__close {
  position: fixed; top: 1rem; right: 1rem; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0;
  background: #fff; color: var(--brand-dark); font-size: 1.5rem; cursor: pointer;
}

/* ---------- Fuß ---------- */
.site-footer { background: var(--brand); color: #fff; margin-top: auto; }
.site-footer a { color: #fff; }
.footer__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); padding-block: 2.75rem 2rem; }
.footer__name { font-weight: 700; margin-bottom: .4rem; }
.footer__nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.footer__nav a { text-decoration: none; }
.footer__nav a:hover { text-decoration: underline; }
.footer__claim { font-size: 1.3rem; font-weight: 700; align-self: end; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .25); padding-block: 1rem 1.25rem; font-size: .85rem; opacity: .85; }

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

@media print {
  .site-header, .site-footer, .hero__controls, .video__play { display: none; }
  .content > * { max-width: none; }
  a { color: #000; }
}
