/* ==========================================================================
   Solidarität Europa e.V. — Institutional stylesheet
   Palette: navy #002B55 / #003A70 · link #00437E · gold #B98D2F
   Type:    Source Sans 3 (self-hosted) · Source Serif 4 (documents)
   ========================================================================== */

@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/SourceSans3-Regular.otf.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/SourceSans3-It.otf.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/SourceSans3-Semibold.otf.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/SourceSans3-Bold.otf.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/SourceSerif4-Regular.otf.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/SourceSerif4-Semibold.otf.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --navy-900: #001F3F;
  --navy-800: #002B55;
  --navy-700: #003A70;
  --link:     #00437E;
  --gold:     #B98D2F;
  --gold-soft:#C29B4A;
  --ink:      #1B2430;
  --gray-700: #46515E;
  --gray-500: #6B7684;
  --line:     #CBD5DF;
  --line-soft:#DDE4EB;
  --panel:    #F4F6F8;
  --panel-blue:#EBF1F7;
  --white:    #FFFFFF;
  --focus:    #B98D2F;
  --maxw:     1120px;
}

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

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-text-size-adjust: 100%;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* --- Skip link ------------------------------------------------------------ */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--navy-900);
  padding: .5rem 1rem; z-index: 100; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* --- Focus ---------------------------------------------------------------- */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* --- Meta bar ------------------------------------------------------------- */
.metabar { background: var(--navy-900); color: #C8D4E0; font-size: .875rem; }
.metabar .container {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 2.25rem; gap: 1rem; flex-wrap: wrap; padding-top: .2rem; padding-bottom: .2rem;
}
.metabar a { color: #E4EBF2; text-decoration: none; }
.metabar a:hover { text-decoration: underline; }
.lang-switch { display: flex; gap: .25rem; align-items: center; }
.lang-switch span[aria-current] {
  font-weight: 700; color: #FFF;
  border-bottom: 2px solid var(--gold-soft); padding-bottom: 1px;
}
.lang-switch .sep { color: #5A6E84; }

/* --- Header / Amtskopf ---------------------------------------------------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line-soft); }
.site-header .container {
  display: flex; align-items: center; gap: 1rem;
  padding-top: 1.1rem; padding-bottom: 1.1rem;
}
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: inherit; }
.brand img { width: 56px; height: 56px; display: block; }
.brand-name {
  font-size: 1.35rem; font-weight: 700; color: var(--navy-800);
  line-height: 1.2; letter-spacing: .01em;
}
.brand-sub { font-size: .85rem; color: var(--gray-500); letter-spacing: .04em; }

/* --- Main navigation ------------------------------------------------------ */
.mainnav { background: var(--navy-700); }
.mainnav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap;
}
.mainnav a {
  display: block; color: #FFF; text-decoration: none;
  padding: .8rem 1.1rem; font-size: 1rem; font-weight: 600;
  border-bottom: 3px solid transparent;
}
.mainnav a:hover { background: var(--navy-800); }
.mainnav a[aria-current="page"] {
  background: var(--navy-800);
  border-bottom-color: var(--gold-soft);
}

/* --- Breadcrumbs ---------------------------------------------------------- */
.breadcrumbs { font-size: .875rem; color: var(--gray-500); margin: 1.25rem 0 0; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.breadcrumbs li + li::before { content: "›"; margin-right: .4rem; color: var(--gray-500); }
.breadcrumbs a { color: var(--link); }

/* --- Typography ----------------------------------------------------------- */
main { display: block; }
h1 {
  font-size: 2.1rem; line-height: 1.25; color: var(--navy-800);
  font-weight: 700; margin: 1.6rem 0 1.1rem;
}
h1::after {
  content: ""; display: block; width: 64px; height: 4px;
  background: var(--gold); margin-top: .65rem;
}
h2 { font-size: 1.45rem; color: var(--navy-800); font-weight: 700; margin: 2.2rem 0 .7rem; }
h3 { font-size: 1.15rem; color: var(--navy-800); font-weight: 700; margin: 1.6rem 0 .5rem; }
p { margin: 0 0 1rem; }
.lead { font-size: 1.2rem; color: var(--gray-700); }
a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--navy-800); }
ul, ol { margin: 0 0 1rem; padding-left: 1.4rem; }
li { margin-bottom: .35rem; }
main { padding-bottom: 3.5rem; }

/* --- Hero ----------------------------------------------------------------- */
.hero { background: var(--navy-800); color: #FFF; padding: 3rem 0 3.2rem; }
.hero .eyebrow {
  font-size: .85rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-soft); font-weight: 600; margin-bottom: .8rem;
}
.hero h1 { color: #FFF; font-size: 2.5rem; margin: 0 0 1rem; max-width: 44rem; }
.hero h1::after { background: var(--gold-soft); }
.hero p { font-size: 1.2rem; max-width: 44rem; color: #DDE6EF; }
.hero .actions { margin-top: 1.6rem; display: flex; gap: .8rem; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: .65rem 1.4rem; font-weight: 600;
  text-decoration: none; border-radius: 2px; font-size: 1rem;
  border: 2px solid transparent;
}
.btn-primary { background: var(--gold); color: var(--navy-900); }
.btn-primary:hover { background: #A87E24; color: var(--navy-900); }
.btn-invert { border-color: #FFF; color: #FFF; }
.btn-invert:hover { background: rgba(255,255,255,.12); color: #FFF; }
.btn-navy { background: var(--navy-700); color: #FFF; }
.btn-navy:hover { background: var(--navy-800); color: #FFF; }
.btn-outline { border-color: var(--navy-700); color: var(--navy-700); }
.btn-outline:hover { background: var(--panel-blue); }

/* --- Fact strip (register stamp) ------------------------------------------ */
.factstrip { background: var(--panel-blue); border-bottom: 1px solid var(--line-soft); }
.factstrip .container {
  display: flex; flex-wrap: wrap; gap: .5rem 2.5rem;
  padding-top: .9rem; padding-bottom: .9rem; font-size: .95rem;
}
.factstrip .fact b { color: var(--navy-800); }
.factstrip .fact { color: var(--gray-700); }

/* --- Tiles ---------------------------------------------------------------- */
.tiles {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.1rem; margin: 1.4rem 0 0;
}
.tile {
  border: 1px solid var(--line); border-top: 4px solid var(--navy-700);
  background: var(--white); padding: 1.2rem 1.2rem 1.1rem;
  display: flex; flex-direction: column;
}
.tile h3 { margin: 0 0 .5rem; }
.tile p { color: var(--gray-700); font-size: .98rem; flex: 1; }
.tile a { font-weight: 600; text-decoration: none; }
.tile a::after { content: " →"; }
.tile a:hover { text-decoration: underline; }

/* --- Sections ------------------------------------------------------------- */
.section { padding: 2.4rem 0 0; }
.section-title {
  font-size: 1.6rem; color: var(--navy-800); margin: 0 0 .4rem;
}
.section-sub { color: var(--gray-500); margin: 0 0 1rem; }

/* --- Meldungen (news) ----------------------------------------------------- */
.news { list-style: none; margin: 1.2rem 0 0; padding: 0; border-top: 1px solid var(--line-soft); }
.news li {
  display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem;
  padding: .9rem 0; border-bottom: 1px solid var(--line-soft); margin: 0;
}
.news time { font-weight: 700; color: var(--navy-700); font-size: .95rem; }
.news .title { font-weight: 600; color: var(--navy-800); }
.news p { margin: .15rem 0 0; color: var(--gray-700); font-size: .98rem; }
@media (max-width: 560px) { .news li { grid-template-columns: 1fr; gap: .1rem; } }

/* --- Boxes & tables ------------------------------------------------------- */
.box {
  border: 1px solid var(--line); background: var(--panel);
  padding: 1.3rem 1.4rem; margin: 1.4rem 0;
}
.box-blue { background: var(--panel-blue); border-color: #BCCFDF; }
.box h2, .box h3 { margin-top: 0; }
.box :last-child { margin-bottom: 0; }

.note {
  border-left: 4px solid var(--gold); background: #FBF7EE;
  padding: .9rem 1.2rem; margin: 1.4rem 0; font-size: .98rem;
}
.note :last-child { margin-bottom: 0; }

table.facts { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: 1rem; }
table.facts th, table.facts td {
  text-align: left; vertical-align: top;
  border: 1px solid var(--line); padding: .6rem .9rem;
}
table.facts th { background: var(--panel-blue); color: var(--navy-800); width: 34%; font-weight: 600; }
@media (max-width: 560px) {
  table.facts th, table.facts td { display: block; width: 100%; }
  table.facts th { border-bottom: none; }
  table.facts tr + tr th { border-top: none; }
}

/* --- Contact cards --------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; margin: 1.4rem 0; }
.card { border: 1px solid var(--line); padding: 1.2rem 1.3rem; background: var(--white); }
.card h3 { margin-top: 0; }
.card :last-child { margin-bottom: 0; }

/* --- Steps ----------------------------------------------------------------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.4rem 0; }
.steps li {
  counter-increment: step; position: relative;
  padding: 0 0 1.2rem 3.2rem; margin: 0;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--navy-700); color: #FFF; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.steps li b { color: var(--navy-800); }

/* --- Document (Satzung) ---------------------------------------------------- */
.document {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 1.05rem; line-height: 1.75;
  border: 1px solid var(--line); background: #FDFDFB;
  padding: 2.2rem 2.4rem; margin: 1.6rem 0;
}
.document h2 {
  font-family: inherit; text-align: center; font-size: 1.2rem;
  margin: 2rem 0 .8rem;
}
.document h2:first-of-type { margin-top: 0; }
.document ol[type="a"] { padding-left: 1.8rem; }
.doc-meta { text-align: center; color: var(--gray-500); font-size: .95rem; margin-bottom: 1.6rem; }
@media (max-width: 560px) { .document { padding: 1.4rem 1.1rem; } }

/* --- Footer ----------------------------------------------------------------- */
.site-footer { background: var(--navy-800); color: #C8D4E0; margin-top: 2rem; }
.site-footer .cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem; padding: 2.4rem 0 2rem;
}
.site-footer h2 {
  font-size: .95rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--gold-soft); margin: 0 0 .8rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: #E4EBF2; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.7; }
.social-links { display: flex; gap: .6rem; margin-top: 1rem; }
.social-links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: #FFFFFF;
  text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
}
.social-links a:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,.35); text-decoration: none; }
.social-links img { width: 22px; height: 22px; object-fit: contain; display: block; }
.footer-bottom { background: var(--navy-900); font-size: .875rem; }
.footer-bottom .container {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  padding-top: .8rem; padding-bottom: .8rem;
}
.footer-bottom .motto { color: #8FA3B8; font-style: italic; }

/* --- Responsive header/nav -------------------------------------------------- */
@media (max-width: 720px) {
  .brand img { width: 46px; height: 46px; }
  .brand-name { font-size: 1.12rem; }
  .hero h1 { font-size: 1.9rem; }
  h1 { font-size: 1.7rem; }
  .mainnav a { padding: .7rem .8rem; font-size: .95rem; }
}

/* --- Print ------------------------------------------------------------------ */
@media print {
  .metabar, .mainnav, .site-footer, .hero .actions, .skip-link { display: none; }
  a { color: inherit; text-decoration: none; }
  .document { border: none; padding: 0; }
}

/* --- Logo images ----------------------------------------------------------- */
.brand img { object-fit: contain; background: #FFF; }
.logo-showcase { text-align: center; margin: 1.8rem 0; }
.logo-showcase img { max-width: 420px; width: 100%; height: auto; }

/* --- Status badges ---------------------------------------------------------- */
.badge {
  display: inline-block; font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .18rem .55rem; border-radius: 2px; border: 1px solid transparent;
}
.badge-green { background: #E7F2E4; color: #1F5B2D; border-color: #BFDDBA; }
.badge-amber { background: #FBF3DE; color: #7A5A12; border-color: #E7D3A0; }
.badge-navy  { background: var(--panel-blue); color: var(--navy-700); border-color: #BCCFDF; }

/* --- Project cards ----------------------------------------------------------- */
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.1rem; margin: 1.4rem 0; }
.project {
  border: 1px solid var(--line); border-left: 4px solid var(--navy-700);
  background: var(--white); padding: 1.15rem 1.25rem; display: flex; flex-direction: column;
}
.project .meta { display: flex; gap: .45rem; flex-wrap: wrap; margin-bottom: .6rem; align-items: center; }
.project h3 { margin: 0 0 .45rem; }
.project p { color: var(--gray-700); font-size: .98rem; }
.project .rhythm { font-size: .9rem; color: var(--gray-500); margin: 0 0 .6rem; }
.project .cta { margin-top: auto; padding-top: .4rem; font-weight: 600; }

/* --- Stats row ---------------------------------------------------------------- */
.stats { display: flex; flex-wrap: wrap; gap: 1rem 3rem; margin: 1.4rem 0; }
.stats .stat b { display: block; font-size: 1.9rem; color: var(--navy-700); line-height: 1.15; }
.stats .stat span { color: var(--gray-500); font-size: .95rem; }

/* --- Newsletter / stay informed ----------------------------------------------- */
.newsletter {
  border: 1px solid #E7D3A0; background: #FBF7EE;
  padding: 1.4rem 1.5rem; margin: 2rem 0 0;
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
}
.newsletter h2 { margin: 0 0 .3rem; font-size: 1.25rem; }
.newsletter p { margin: 0; color: var(--gray-700); }
