/* ============================================================
   Oekumenisches Europa-Centrum Frankfurt (Oder) e.V. — Stylesheet
   ============================================================ */

:root {
  --blue: #00a1e3;
  --green: #80af2b;
  --gradient: linear-gradient(120deg, var(--blue), var(--green));

  /* Abgedunkelte Markentöne für Text und für Schrift auf dem Verlauf —
     die kräftigen Originalfarben oben halten bei Fließtext-Größe nicht die
     nötigen Kontrastwerte (WCAG AA) ein, deshalb eine zweite, dunklere Stufe.
     Der Verlauf bekommt zusätzlich einen türkisen Mittelton für den
     mehrfarbigen Textverlauf in den Überschriften. */
  --blue-deep: #0a6ea6;
  --teal-deep: #1f8a7a;
  --green-deep: #5c7f1f;
  --gradient-deep: linear-gradient(90deg, var(--blue-deep) 0%, var(--teal-deep) 52%, var(--green-deep) 100%);

  --ink: #16232d;
  --ink-soft: #3c4a53;
  --paper: #ffffff;
  --mist: #f3f7f6;
  --line: #d7dfe0;
  --line-soft: #e7ecec;
  --focus: #0d6fb0;

  --font-main: "Nunito Sans", "Segoe UI", Arial, sans-serif;

  /* Einheitliche Schriftgrößen-Skala */
  --fs-h1: clamp(2.3rem, 4.4vw, 3.3rem);
  --fs-h2: clamp(2.3rem, 2.6vw, 2.35rem); /*1.9rem, 2.6vw, 2.35rem: Schriftgrößen-Angabe: Minimum (rem), bevorzugter Wert (vw), Maximum*/
  --fs-body: 1.15rem;
  --fs-quote: 1.45rem;
  --fs-sub1: 1.35rem;
  --fs-sub2: 1.05rem;

  --max-width: 1180px;
  --radius: 0px; /* alle Kästen mit spitzen Ecken */

  --header-h: 84px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

html { overflow-x: hidden; } /* Sicherheitsnetz für die randlos auslaufende Überschriften-Linie */

body {
  margin: 0;
  font-family: var(--font-main);
  font-size: var(--fs-body); /* bewusst größer als der Browser-Standard, Barrierefreiheit */
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 { font-family: var(--font-main); line-height: 1.2; margin: 0 0 0.6em; color: var(--ink); }
h1 { font-size: var(--fs-h1); font-weight: 400; }
h2 { font-size: var(--fs-h2); font-weight: 400; }

p { margin: 0 0 1.1em; max-width: 42em; }
ul { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: 0.4em; }

address { font-style: normal; }

/* Zwischenüberschriften 1 — z. B. „Friedenskirche“, Kontakt-Organisationsnamen */
.subhead-1 {
  font-size: var(--fs-sub1);
  font-weight: 400;
  /*color: var(--blue-deep); --> Farbe in ZÜ muss raus, sonst überschreibt es den Verlauf, der auf Üs liegt*/
  margin: 0 0 0.5em;
}
/* Zwischenüberschriften 2 — z. B. „Zu unseren Formaten gehören:“, „Kontakt“, „Anschrift“, Partnernamen */
.subhead-2 {
  font-size: var(--fs-sub2);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.4em;
  max-width: none;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--ink);
  color: #fff;
  padding: 0.7em 1.2em;
  z-index: 200;
}
.skip-link:focus { left: 0; top: 0; }

/* Mehrfarbiger Textverlauf für Hauptüberschriften (h1 + die vier h2) */
.grad-text {
  background: var(--gradient-deep);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 0; }
.section.alt-bg { background: var(--mist); }

/* Überschriften-Block: dünne Verlaufslinie LÄUFT ÜBER der Überschrift und
   reicht bis zum rechten Rand der Browser-Ansicht (nicht nur des Inhalts). */
.heading-block { position: relative; padding-top: 1.5rem; }
.heading-rule {
  position: absolute;
  top: 0; left: 0;
  height: 3px;
  background: var(--gradient);
  /*right: 0; /* Standard: Bildschirm schmaler als --max-width — endet wie der Fließtext */
  right: 0;
  max-width: 62em; /*max-width: 62em;*/
}

/* Ab hier ist der Bildschirm breiter als --max-width (1180px, siehe :root) —
   die Linie zieht sich dann bis kurz vor den Browserrand, mit demselben
   1.5rem-Abstand wie links. Wert 1180px muss zu --max-width passen. */
@media (min-width: 1180px) {
  .heading-rule { right: calc(-1 * (100vw - 1180px) / 2); }
}
.heading-block h2 { margin: 1.1rem 0 0.5em; }

/* ============================================================
   Header / Navigation
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  /*background: rgba(255, 255, 255, 0.97);  --> leichte Transparenz unter Menü*/
  background: #ffffff; /* --> ohne Transparenz */
  box-shadow: 0 2px 6px rgba(0,0,0,0.06); /* --> leichter Schatten unter Menüzeile */
  z-index: 100;
  transition: transform 0.35s ease;
}
/* Wird nur auf Mobile per JS umgeschaltet (siehe script.js) */
.site-header.is-hidden { transform: translateY(-100%); }

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  align-self: flex-start;   /* ← aus der neuen Regel übernommen */
  padding-top: 12px;         /* ← aus der neuen Regel übernommen */
}

.logo img {
  height: 100px;    /* ← der neue Wert, ersetzt die alte 60px-Zeile komplett */
  width: auto;
  flex-shrink: 0;
}
.logo-schmal {
  display: none;
}

@media (min-width: 861px) {
  .main-nav {
    align-self: flex-end;   /* setzt NUR die Navigation ans untere Ende des Balkens, statt zentriert */
    padding-bottom: 0.1rem; /* Feintuning: kleinerer Wert = näher an der Unterkante, größerer Wert = näher an der Mitte */
  }
}

.main-nav ul {
  display: flex;
  gap: 2.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 1.02rem;
  position: relative;
  padding: 0.3em 0.1em;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -3px;
  height: 3px;
  background: var(--gradient);
  transition: right 0.25s ease;
}
.main-nav a:hover::after,
.main-nav a:focus-visible::after { right: 0; }

.menu-toggle {
  display: none;
  border: none;
  background: none;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  position: relative;
}
.menu-icon,
.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 8px; right: 8px;
  height: 3px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
}
.menu-icon { top: 21px; }
.menu-icon::before { top: -9px; }
.menu-icon::after { top: 9px; }

.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { top: 0; transform: rotate(45deg); background: var(--ink); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { top: 0; transform: rotate(-45deg); background: var(--ink); }

/* ============================================================
   Hero — direkt unter dem Menü, ohne Abstand oder Trennlinie;
   Bild ist auf die Inhaltsbreite begrenzt, die Kirchtürme sitzen
   IM Bild oben links.
   ============================================================ */
.hero, .section { scroll-margin-top: var(--header-h); }

.hero { padding-top: var(--header-h); }

/* Bild ist auf die Inhaltsbreite begrenzt — links/rechts läuft der weiße
   Seitenhintergrund weiter, sobald der Bildschirm breiter als --max-width ist. */
.hero-media {
  position: relative;
  overflow: hidden;
  height: 56vh;
  min-height: 450px;
  max-height: 560px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: bottom; }

.hero-content {
  display: grid;
  grid-template-columns: 1fr 2fr; /* 1/3 Illustration, 2/3 Überschrift+Text — Verhältnis hier anpassen */
  gap: 2rem;
  align-items: start;
  padding-top: 0.1rem;
  padding-bottom: 1rem;
} /* links/rechts kommt von .section-inner (1.5rem) */

.hero-badge { width: 100%; }
.hero-badge img /*{ width: 100%; height: auto; }*/{ width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

.hero-text h1 { margin-bottom: 0.5em; }
.hero-text .lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 46em; }

/* ============================================================
   Über uns
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3.5rem;
}

/* Zitat: zentriert, mit Rahmen und Farbfläche */
.quote {
  margin: 0.4rem 0 0;
  padding: 1.8rem 2rem;
  text-align: center;
  background: var(--gradient);
  color: #fff;
}
.quote p {
  font-size: var(--fs-quote);
  font-style: italic;
  font-weight: 400;
  color: inherit;
  margin: 0 auto 0.5em;
  max-width: none;
}
.quote cite { display: block; color: inherit; opacity: 0.85; font-size: 0.95rem; }
.quote-illu img { width: 100%; height: 350px; object-fit: cover; display: block; margin-top: 1.5rem; }

.locations-list { display: flex; flex-direction: column; gap: 2.6rem; }
.location-row { display: grid; grid-template-columns: 1fr 2fr; gap: 1.8rem; align-items: start; }
.location-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.location-text address p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* ============================================================
   Veranstaltungen
   ============================================================ */
.events-list { list-style: none; margin: 0; padding: 0; max-width: 52em/*Linien verlängern sich*/; }
.event-item { padding: 1.6rem 0; border-top: 1px solid var(--line); }
.events-list li:last-child { padding-bottom: 0; } /* ← neu: kein Extra-Abstand nach dem letzten Termin */
.events-list li:first-child { border-top: 1px solid var(--line); }
.event-meta { margin: 0 0 0.3em; font-size: 1rem; color: var(--ink-soft); font-weight: 500; letter-spacing: 0.01em; max-width: none; }
.event-title { margin: 0 0 0.3em; font-size: 1.25rem; color: var(--blue-deep); font-weight: 500; }
.event-info { margin: 0; color: var(--ink-soft); }
.events-empty { padding: 1.6rem 0; border-top: 1px solid var(--line); color: var(--ink-soft); }

/* ============================================================
   Fotobalken
   ============================================================ */
.photo-strip-section { padding: 3rem 0 0.1rem; }
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.photo-strip figure { margin: 0; }
.photo-strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-strip figcaption {
  margin-top: 0.6rem;
  padding: 0 1rem; /*oben/unten="0", links/rechts="1rem"*/
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-align: center; /*Diese Zeile weglassen, wenn Text nicht mittig unter Bild stehen soll*/
}

/* ============================================================
   Partner
   ============================================================ */
.partner-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.partner-card { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.4rem; background: var(--paper); border: 1px solid var(--line-soft); }
.partner-logo {
  flex-shrink: 0;
  width: 96px;
  height: 64px;           /* einheitliche Höhe für alle vier Logos */
  display: flex;
  align-items: center;
  justify-content: flex-start;   /* ← geändert: linksbündig statt zentriert: justify-content: center; */
}

.partner-card:nth-child(2) .partner-logo { width: 200px; }  /* Europa-Universität Viadrina */
.partner-card:nth-child(4) .partner-logo { width: 200px; }  /* Stadt Frankfurt (Oder) */

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;    /* zeigt das ganze Logo, ohne es zu beschneiden */
}
.partner-card p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }
.partner-card a { color: var(--blue-deep); text-decoration: none; /*text-decoration: underline;*/ }

/* ============================================================
   Kontakt
   ============================================================ */
.kontakt-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; }
.kontakt-info { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; align-items: start; }
.kontakt-illu img { width: 100%; height: auto; }
.kontakt-grid .subhead-1 { margin-top: 1.6rem; }
.kontakt-grid .subhead-1:first-of-type { margin-top: 0; }
.kontakt-grid address p { margin: 0 0 0.2em; color: var(--ink-soft); }

/* Spendenkonto: helle Verlaufsfläche, wechselt beim Hover zur dunkleren,
   besser lesbaren Variante (Textfarbe wechselt passend mit). */
.donation-card {
  background: var(--gradient);
  /*color: var(--ink);*/
  color: #fff;
  padding: 1.8rem 2rem;
  transition: background 0.3s ease, color 0.3s ease;
}
/*.donation-card:hover, .donation-card:focus-within { background: var(--gradient-deep); color: #fff; }*/
.donation-card .subhead-1 { color: inherit; margin-top: 0; }
.donation-card p { color: inherit; opacity: 0.92; margin-bottom: 0.3em; }

/* ============================================================
   Footer — farbige Verlaufsfläche, dunkelt beim Hover ab.
   Impressum/Datenschutz in einem eigenen, abgesetzten Farbstreifen.
.site-footer { background: var(--gradient); color: var(--ink); transition: background 0.3s ease, color 0.3s ease; }
.site-footer:hover, .site-footer:focus-within { background: var(--gradient-deep); color: #fff; }
   ============================================================ */
.site-footer { background: var(--gradient); color: #fff; }

.footer-legal-strip { background: var(--paper); padding: 1.8rem 0; }
.legal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
/* Eigenes, dezent-graues Dreieck statt des System-Markers — so ist die
   Farbe browserübergreifend zuverlässig (Safari unterstützt ::marker
   nur eingeschränkt). */
.legal-block summary {
  cursor: pointer;
  font-weight: 500;        /* ← schmaler statt fett (700) */
  font-size: 0.95rem;      /* ← kleiner statt 1.15rem */
  color: var(--ink-soft);  /* ← feste, helle Grauton-Farbe statt "inherit" */
  padding: 0.3em 0 0.3em 1.3em;
  position: relative;
  list-style: none;
}
.legal-block summary::-webkit-details-marker { display: none; }
.legal-block summary::before {
  content: "▶";
  position: absolute;
  left: 0;
  top: 0.4em;
  font-size: 0.72em;
  color: #9aa5a5;
  transition: transform 0.2s ease;
}
.legal-block[open] summary::before { transform: rotate(90deg); }
.legal-block div { padding: 0.8em 0 0.2em; color: var(--ink-soft); opacity: 1; font-size: 0.92rem; }
.legal-block div p { max-width: none; }

.footer-bottom { padding: 1.6rem 0; }
.copyright { text-align: center; margin: 0; max-width: none; font-size: 0.92rem; color: inherit; opacity: 0.75; }

/* ============================================================
   Mobile (≤ 860px)
   ============================================================ */
@media (max-width: 860px) {
  :root { --header-h: 68px; }

  .header-inner { justify-content: center; position: relative; }
  .logo .logo-text-full { display: none; }
  .logo .logo-text-short { display: inline; }
	
  .logo-breit { display: none; }
  .logo-schmal { display: block; }

  .logo { align-self: center; padding-top: 0; }  /* ← neu: kein Überstand mehr, wieder normal zentriert */
  .logo img { height: 40px; }                      /* ← neu: passt komplett in die 68px-Leiste (Wert nach Bedarf feinjustieren) */

  .menu-toggle { display: block; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); }

.main-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 110;
}
	
.main-nav.is-open {
  transform: translateX(0);
}
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: 2.4rem; }
  .main-nav a { font-size: 1.4rem; }

  .section { padding: 3.2rem 0; }
	
  .hero-media { height: 38vh; min-height: 260px; }
  .hero-media img { object-position: right bottom; }
  .hero-content { grid-template-columns: 1fr; gap: 1.2rem; } /* Illu über dem Text, statt daneben */
  .hero-badge /*{ max-width: 140px; }*/ { max-width: 260px; margin: 0 auto; }

  .about-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .about-grid .quote-block { order: -1; }

  .location-row { grid-template-columns: 1fr; }
  .location-img { max-width: 260px; margin: 0 auto; }

  .photo-strip { grid-template-columns: 1fr; gap: 1rem; }
	
  .partner-grid { grid-template-columns: 1fr; }
  .kontakt-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .kontakt-info { grid-template-columns: 1fr; gap: 1rem; }
  .kontakt-illu { max-width: 160px; margin: 0 auto; }
  .legal-grid { grid-template-columns: 1fr; gap: 1.4rem; }

  p, .lede { max-width: none; }
}
