/* =========================================================
   Kampagnenseite (index.html) – IG Erft-Wevelinghoven
   Eigenständiges Stylesheet; die übrigen Seiten nutzen
   weiterhin ausschließlich assets/css/style.css.
   Farben identisch mit style.css.
   ========================================================= */

:root {
  --green-dark: #163d32;
  --green-mid: #2f6b57;
  --teal: #4f8f8a;
  --sand: #e7d8bd;
  --sand-light: #f6f0e5;
  --white: #ffffff;
  --text: #24332e;
  --muted: #63746d;
  --line: rgba(22, 61, 50, 0.16);
  --ja: #1f5c61;      /* Türkis-Tinte wie „Faktenlage“ */
  --nein: #774711;    /* warmes Ocker wie „Noch offen“ */
  --bordeaux: #922b35; /* Zeile 2 beider Botschaften */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(79, 143, 138, 0.16), transparent 70%),
    linear-gradient(180deg, #fbf7ef 0%, var(--sand-light) 45%, #eef3ef 100%);
  background-color: var(--sand-light);
  line-height: 1.65; /* wie style.css – für Header und Footer */
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

/* ---------- Grundgerüst ---------- */

.k-main {
  flex: 1 0 auto;
  line-height: 1.5; /* Kampagnen-Inhalt wie in Version 29.0 */
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding:
    clamp(44px, 7vw, 104px)
    max(16px, env(safe-area-inset-right))
    clamp(40px, 6vw, 88px)
    max(16px, env(safe-area-inset-left));
}

/* ---------- Element 1 – Hauptbotschaft ----------
   Fester Umbruch nach „Erft,“ per <br>; auf schmalen Bildschirmen
   dürfen die Zeilen zusätzlich umbrechen. */

.k-claim {
  margin: 0 auto;
  max-width: 100%;
  color: var(--green-dark);
  font-size: clamp(2.05rem, 0.9rem + 4.6vw, 5.9rem);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -0.028em;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: manual;
}

/* ---------- Element 2 – Karte ---------- */

.k-karte {
  margin: clamp(32px, 4.5vw, 64px) auto 0;
  width: min(100%, 1880px);
}

.k-karte-link {
  position: relative;
  display: block;
  border-radius: 10px;
  background: var(--white);
  box-shadow:
    0 2px 6px rgba(22, 61, 50, 0.08),
    0 28px 70px rgba(22, 61, 50, 0.20);
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.k-karte-link:hover {
  transform: translateY(-3px);
  box-shadow:
    0 2px 6px rgba(22, 61, 50, 0.08),
    0 34px 80px rgba(22, 61, 50, 0.26);
}

.k-karte-bild {
  width: 100%;
  border-radius: 10px;
}

/* Lupe als Abzeichen an der äußeren Ecke – liegt nur auf dem weißen Rand */
.k-lupe {
  position: absolute;
  top: -14px;
  right: -14px;
  width: clamp(32px, 2.6vw, 46px);
  height: clamp(32px, 2.6vw, 46px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: rgba(22, 61, 50, 0.86);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease;
}

.k-karte-link:hover .k-lupe {
  transform: scale(1.08);
}

.k-karte figcaption {
  margin-top: 14px;
}

.k-pdf {
  display: inline-block;
  padding: 6px 4px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(99, 116, 109, 0.45);
  text-underline-offset: 3px;
}

.k-pdf:hover {
  color: var(--green-dark);
  text-decoration-color: currentColor;
}

/* ---------- Element 3 – Zweite Botschaft ----------
   Fester Umbruch nach „Erft“ per <br>. */

.k-claim-2 {
  margin: clamp(33px, 4.5vw, 72px) auto 0; /* Abstand PDF-Link → Überschrift (vorher 52–112 px) */
  max-width: 100%;
  color: var(--green-dark);
  font-size: clamp(1.7rem, 0.85rem + 3.3vw, 4.1rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.022em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

/* Zweifarbige Zeilen der beiden Botschaften */
.k-claim .k-zeile-1,
.k-claim-2 .k-zeile-1 {
  color: var(--green-dark);
}

.k-claim .k-zeile-2 {
  color: var(--bordeaux);
}

.k-claim-2 .k-zeile-2 {
  color: var(--bordeaux);
}

/* ---------- Element 4 – Haltung ---------- */

.k-haltung {
  margin: clamp(22px, 2.6vw, 38px) auto 0;
  padding: 0.5em 1.1em;
  color: var(--green-dark);
  font-size: clamp(1.25rem, 0.8rem + 1.7vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-wrap: balance;
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}

.k-haltung strong {
  font-weight: 900;
  letter-spacing: 0.02em;
}

.k-ja {
  color: var(--ja);
}

.k-nein {
  color: var(--nein);
}

/* ---------- Element 5 – Weiterführung ---------- */

.k-weiter {
  margin: clamp(28px, 3.2vw, 44px) 0 0;
}

.k-button {
  display: inline-block;
  text-align: center;
  min-height: 60px;
  padding: 17px 32px;
  border-radius: 999px;
  color: var(--white);
  background: var(--green-dark);
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(22, 61, 50, 0.26);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.k-button:hover {
  background: #0f2e26;
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(22, 61, 50, 0.32);
}

.k-button span {
  display: inline-block;
  margin-left: 0.3em;
  transition: transform 0.2s ease;
}

.k-button:hover span {
  transform: translateX(4px);
}

/* ---------- Header und Footer ----------
   kommen unverändert aus style.css. Der „Nach oben“-Knopf der
   übrigen Seiten wird auf der Kampagnenseite nicht angezeigt. */

body.kampagne .back-to-top {
  display: none;
}

/* ---------- Smartphones ---------- */

@media (max-width: 560px) {
  .k-karte-link,
  .k-karte-bild {
    border-radius: 6px;
  }

  .k-lupe {
    top: -12px;
    right: -10px;
    width: 30px;
    height: 30px;
  }

  .k-lupe svg {
    width: 17px;
    height: 17px;
  }

  /* Smartphones: Buchstabenabstand etwas weniger geöffnet,
     damit „verliert Wevelinghoven“ zusammenbleibt */
  .k-claim {
    letter-spacing: -0.034em;
  }

  .k-haltung {
    padding-inline: 0.4em;
  }

  .k-button {
    width: 100%;
    max-width: 420px;
    padding: 16px 16px;
    font-size: 1rem;
  }
}

/* ---------- Kartenvergrößerung ---------- */

html.k-zoom-offen,
html.k-zoom-offen body {
  overflow: hidden;
}

.k-zoom {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 28, 23, 0.96);
  overscroll-behavior: contain;
  -webkit-user-select: none;
  user-select: none;
}

.k-zoom[hidden] {
  display: none;
}

.k-zoom-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: none;
  cursor: zoom-in;
}

.k-zoom.is-zoomed .k-zoom-stage {
  cursor: grab;
}

.k-zoom.is-dragging .k-zoom-stage {
  cursor: grabbing;
}

.k-zoom-bild {
  position: absolute;
  left: 0;
  top: 0;
  max-width: none;
  max-height: none;
  background: var(--white);
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  transform-origin: 0 0;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}

.k-zoom-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: var(--white);
  background: rgba(22, 61, 50, 0.92);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.k-zoom-btn:hover {
  background: var(--green-mid);
}

.k-zoom-btn:disabled {
  opacity: 0.38;
  cursor: default;
}

.k-zoom-close {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
}

.k-zoom-tools {
  position: absolute;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.32);
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
