/* Arbeitskreis EINE WELT – mobile-first Stylesheet */
:root {
  --navy: #1d2558;
  --navy-2: #2c3778;
  --red: #c4122f;
  --red-dark: #9e0e26;
  --ink: #1d2030;
  --muted: #5b5f72;
  --bg: #fbf9f5;
  --surface: #ffffff;
  --line: #e6e1d8;
  --sand: #f3ede2;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 24, 50, .06), 0 6px 20px rgba(20, 24, 50, .06);
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 72rem;
  --gutter: 1rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  font: 400 1.0625rem/1.65 var(--sans);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); text-underline-offset: .18em; }
a:hover { color: var(--red); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; color: var(--navy); margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 6vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4.4vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 46rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--navy); min-width: 0; }
.brand img { width: 2.6rem; height: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: clamp(.92rem, 4.1vw, 1.05rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub { font-size: clamp(.7rem, 3.2vw, .78rem); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid var(--line); background: var(--surface); color: var(--navy);
  border-radius: 999px; padding: .5rem .9rem; font: 600 .95rem var(--sans); cursor: pointer;
  min-height: 44px;
}
.nav-toggle .bars { width: 18px; height: 12px; position: relative; display: inline-block; }
.nav-toggle .bars::before, .nav-toggle .bars::after, .nav-toggle .bars span {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s;
}
.nav-toggle .bars::before { top: 0; }
.nav-toggle .bars span { top: 5px; }
.nav-toggle .bars::after { bottom: 0; }
.nav-open .nav-toggle .bars::before { transform: translateY(5px) rotate(45deg); }
.nav-open .nav-toggle .bars span { opacity: 0; }
.nav-open .nav-toggle .bars::after { transform: translateY(-5px) rotate(-45deg); }
.nav-toggle { flex: none; }
/* Auf schmalen Handys nur das Menü-Symbol zeigen, damit der Titel Platz hat */
@media (max-width: 30rem) {
  .nav-label { display: none; }
  .nav-toggle { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .brand img { width: 2.3rem; }
}

.main-nav { display: none; }
.nav-open .main-nav {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  max-height: calc(100vh - 4rem); overflow-y: auto;
}
.main-nav ul { list-style: none; margin: 0; padding: .5rem var(--gutter) 1rem; }
.main-nav a {
  display: block; padding: .8rem .25rem; text-decoration: none; color: var(--ink);
  font-weight: 600; border-bottom: 1px solid var(--line);
}
.main-nav li:last-child a { border-bottom: 0; }
.main-nav a[aria-current="page"] { color: var(--red); }
.main-nav .nav-cta a {
  margin-top: .75rem; text-align: center; background: var(--red); color: #fff; border-radius: 999px; border: 0;
}

@media (min-width: 60rem) {
  .nav-toggle { display: none; }
  .main-nav, .nav-open .main-nav { display: block; position: static; box-shadow: none; border: 0; background: none; max-height: none; }
  .main-nav ul { display: flex; align-items: center; gap: .25rem; padding: 0; }
  .main-nav a { border: 0; padding: .5rem .7rem; border-radius: 999px; font-size: .95rem; }
  .main-nav a:hover { background: var(--sand); color: var(--navy); }
  .main-nav .nav-cta a { margin: 0 0 0 .4rem; padding: .5rem 1.1rem; }
  .main-nav .nav-cta a:hover { background: var(--red-dark); color: #fff; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 20, 50, .35) 0%, rgba(16, 20, 50, .55) 40%, rgba(16, 20, 50, .88) 100%); }
.hero h1, .hero p { text-shadow: 0 1px 12px rgba(0, 0, 0, .45); }
.hero .container { position: relative; z-index: 1; padding-top: 7rem; padding-bottom: 2.5rem; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero p { font-size: 1.12rem; max-width: 36rem; color: rgba(255, 255, 255, .92); }
.eyebrow { display: inline-block; font: 700 .75rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: .8rem; }
.hero .eyebrow { color: #ffd1d8; }
@media (min-width: 48rem) { .hero .container { padding-top: 12rem; padding-bottom: 4rem; } }

.page-hero { background: var(--sand); padding: 2.25rem 0 1.75rem; border-bottom: 1px solid var(--line); }
.page-hero p.lead { font-size: 1.1rem; color: var(--muted); max-width: 42rem; margin: 0; }
.page-hero h1 { margin-bottom: .3em; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 48px; padding: .7rem 1.35rem; border-radius: 999px;
  font: 700 1rem var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ---------- Sections ---------- */
section { padding: 2.75rem 0; }
@media (min-width: 48rem) { section { padding: 4rem 0; } }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 1.75rem; max-width: 44rem; }
.section-head p { color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 48rem) { .stats { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1rem; }
.stat b { display: block; font: 700 clamp(1.6rem, 6vw, 2.2rem)/1.1 var(--serif); color: var(--red); margin-bottom: .25rem; }
.stat span { font-size: .92rem; color: var(--muted); line-height: 1.35; display: block; }

.cards { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .cards.three { grid-template-columns: repeat(3, 1fr); } }
.card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit;
}
a.card:hover { border-color: var(--navy-2); color: inherit; }
.card img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.card-body { padding: 1.1rem 1.15rem 1.3rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.card-body h3 { margin: 0; }
.card-body p { margin: 0; color: var(--muted); font-size: .98rem; }
.card-link { margin-top: auto; padding-top: .6rem; font-weight: 700; color: var(--red); }

.split { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 56rem) { .split { grid-template-columns: 1.1fr 1fr; gap: 3rem; } .split.reverse > :first-child { order: 2; } }
.figure { margin: 0; }
.figure img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.figure figcaption { font-size: .88rem; color: var(--muted); margin-top: .5rem; }

.prose { max-width: 44rem; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1em; }
.prose li { margin-bottom: .35rem; }

.callout {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--red);
  border-radius: var(--radius); padding: 1.1rem 1.2rem; margin: 1.25rem 0;
}
.callout.navy { border-left-color: var(--navy); }
.callout p:last-child { margin-bottom: 0; }
.note { font-size: .9rem; color: var(--muted); }
.date-badge { display: inline-block; background: var(--navy); color: #fff; border-radius: 999px; padding: .2rem .75rem; font: 700 .8rem var(--sans); margin-bottom: .75rem; }

/* ---------- Bank details ---------- */
.bank { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 1.35rem 1.25rem; box-shadow: var(--shadow); }
.bank h3 { color: #fff; margin-bottom: .75rem; }
.bank dl { margin: 0; display: grid; gap: .55rem; }
.bank dt { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #b9c0ea; }
.bank dd { margin: 0 0 .25rem; font-weight: 600; overflow-wrap: anywhere; }
.iban { display: block; color: #fff; font: 700 1.12rem/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }
.bank a, .iban a { color: #fff !important; text-decoration: none !important; pointer-events: none; }
/* iOS erkennt Zahlenfolgen sonst als Telefonnummer und verlinkt sie */
a[x-apple-data-detectors] { color: inherit !important; text-decoration: none !important; font: inherit !important; }
.copy-btn { margin-top: .6rem !important; }
.copy-btn {
  margin-top: .3rem; background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px; padding: .45rem .95rem; font: 600 .9rem var(--sans); cursor: pointer; min-height: 40px;
}
.copy-btn:hover { background: rgba(255, 255, 255, .22); }
.bank .note { color: #cdd2f2; margin: .9rem 0 0; }

/* ---------- Gallery & lightbox ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 40rem) { .gallery { grid-template-columns: repeat(3, 1fr); gap: .75rem; } }
@media (min-width: 64rem) { .gallery.dense { grid-template-columns: repeat(5, 1fr); } }
.gallery li { margin: 0; }
.gallery button { all: unset; display: block; cursor: zoom-in; border-radius: 10px; overflow: hidden; position: relative; width: 100%; }
.gallery button:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .25s; background: var(--sand); }
.gallery.portrait img { aspect-ratio: 3 / 4; }
.gallery button:hover img { transform: scale(1.03); }
.gallery .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.2rem .6rem .45rem; font-size: .82rem; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); }

.lightbox { border: 0; padding: 0; background: rgba(10, 12, 25, .96); max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.lightbox::backdrop { background: rgba(10, 12, 25, .92); }
.lightbox-inner { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3.5rem .5rem 1rem; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 7rem); object-fit: contain; border-radius: 6px; }
.lightbox p { color: #e9eaf2; margin: .75rem 0 0; text-align: center; font-size: .95rem; }
.lb-btn {
  position: fixed; background: rgba(40, 44, 70, .85); color: #fff; border: 0; border-radius: 999px;
  width: 48px; height: 48px; font-size: 1.5rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.lb-btn:hover { background: rgba(255, 255, 255, .28); }
.lb-close { top: .75rem; right: .75rem; }
.lb-prev { left: .5rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .5rem; top: 50%; transform: translateY(-50%); }

/* ---------- Documents ---------- */
.doc-group { margin-bottom: 2rem; }
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
@media (min-width: 48rem) { .doc-list { grid-template-columns: repeat(2, 1fr); } }
.doc-list a {
  display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); min-height: 56px;
}
.doc-list a:hover { border-color: var(--navy-2); }
.doc-icon { flex: none; width: 2.2rem; height: 2.6rem; border-radius: 4px; background: var(--red); color: #fff; font: 700 .62rem/2.6rem var(--sans); text-align: center; }
.doc-meta { display: block; font-size: .82rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 1rem; }
@media (min-width: 48rem) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.2rem; }
.contact-card address { font-style: normal; }
.contact-line { display: flex; gap: .6rem; align-items: baseline; margin-bottom: .4rem; overflow-wrap: anywhere; }
.contact-line span { min-width: 4.6rem; color: var(--muted); font-size: .9rem; }

/* ---------- Legal ---------- */
.legal h2 { font-size: 1.3rem; margin-top: 1.8rem; }
.legal table { border-collapse: collapse; width: 100%; }
.legal td { padding: .45rem 0; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal td:first-child { width: 38%; color: var(--muted); padding-right: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #d8dcf3; padding: 2.5rem 0 1.5rem; margin-top: 0; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 1.5rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { color: #fff; font-size: 1.05rem; font-family: var(--sans); letter-spacing: .04em; margin-bottom: .6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 2rem; padding-top: 1rem; font-size: .85rem; color: #aab1dc; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; justify-content: space-between; }

.to-top {
  position: fixed; right: 1rem; bottom: 1rem; width: 46px; height: 46px; border-radius: 50%;
  background: var(--red); color: #fff; display: grid; place-items: center; text-decoration: none; font-size: 1.3rem;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { color: #fff; background: var(--red-dark); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  .site-header, .to-top, .nav-toggle, .btn-row { display: none !important; }
  .hero { color: #000; background: none; }
  .hero img, .hero::after { display: none; }
}
