/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/
@font-face {
  font-family: "Oswald";
  src: url("fonts/oswald-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Oswald";
  src: url("fonts/oswald-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Oswald";
  src: url("fonts/oswald-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   2. Design-Tokens
   ========================================================================== */

:root {
  /* --- Farben --- */
  --mp-bg: #f6f1e9; /* Papier / Seitenhintergrund */
  --mp-ink: #221f1a; /* Text, Rahmen, dunkle Flächen */
  --mp-terracotta: #c14b2a; /* Akzent, Links, Warnboxen */
  --mp-terracotta-dark: #9a3b20; /* Link-Hover, Rahmen Warnbox */
  --mp-green: #2e5f53; /* Tipp-Boxen, Zwischen-Labels */
  --mp-green-dark: #1f4a40; /* Rahmen Tipp-Box */
  --mp-sand: #edd9a3; /* Akzent auf dunklem Grund */

  /* Abgeleitete Töne */
  --mp-ink-80: rgba(34, 31, 26, 0.8); /* Untertitel */
  --mp-ink-70: rgba(34, 31, 26, 0.7);
  --mp-ink-55: rgba(34, 31, 26, 0.55); /* Meta, Captions */
  --mp-ink-25: rgba(34, 31, 26, 0.25); /* Tabellen-Trennlinien */
  --mp-ink-22: rgba(34, 31, 26, 0.22);
  --mp-paper-75: rgba(246, 241, 233, 0.75);
  --mp-paper-85: rgba(246, 241, 233, 0.85);
  --mp-terracotta-tint: rgba(193, 75, 42, 0.07); /* Contra-Karte */
  --mp-terracotta-wash: rgba(193, 75, 42, 0.14); /* Link-Hover-Fläche */
  --mp-green-tint: rgba(46, 95, 83, 0.08); /* Pro-Karte */

  /* --- Typografie --- */
  --mp-font-display: "Oswald", "Arial Narrow", sans-serif;
  --mp-font-body: "Source Sans 3", "Helvetica Neue", sans-serif;

  --mp-fs-body: 17px;
  --mp-lh-body: 1.7;
  --mp-fs-h1: 52px;
  --mp-lh-h1: 1.08;
  --mp-fs-h2: 31px;
  --mp-lh-h2: 1.15;
  --mp-fs-h3: 21px;
  --mp-lh-h3: 1.3;
  --mp-fs-untertitel: 21px;
  --mp-lh-untertitel: 1.5;
  --mp-fs-box: 15.5px;
  --mp-lh-box: 1.6;
  --mp-fs-small: 14px; /* Captions, Meta */
  --mp-fs-badge: 13px;
  --mp-ls-h1: 0.01em;
  --mp-ls-h2: 0.02em;
  --mp-ls-h3: 0.03em;
  --mp-ls-badge: 0.12em;
  --mp-ls-label: 0.08em;

  /* --- Abstände --- */
  --mp-space-xs: 8px;
  --mp-space-s: 14px; /* Absatz-Abstand */
  --mp-space-m: 22px; /* nach Listen / letzter Absatz vor H3 */
  --mp-space-l: 32px; /* Box-Außenabstand oben */
  --mp-space-xl: 48px; /* große Blöcke (mentally-packed) */
  --mp-box-pad: 26px 24px 20px;
  --mp-h2-mt: 44px;
  --mp-h2-mb: 16px;
  --mp-h3-mt: 28px;
  --mp-h3-mb: 10px;

  /* --- Rundungen & Rahmen --- */
  --mp-radius: 3px;
  --mp-radius-badge: 2px;
  --mp-border: 1.5px;
  --mp-border-strong: 2.5px;

  /* --- Schatten --- */
  --mp-shadow: 3px 6px 14px rgba(34, 31, 26, 0.14);
  --mp-shadow-box: 3px 6px 14px rgba(34, 31, 26, 0.2);
  --mp-shadow-dark: 4px 8px 18px rgba(34, 31, 26, 0.3);
  --mp-shadow-badge: 2px 3px 8px rgba(34, 31, 26, 0.3);

  /* --- Layout --- */
  --mp-content-width: 820px;
  /* Breakpoint (Referenz, in Media Queries fest 768px): --mp-bp-mobile: 768px */
}

/* ==========================================================================
   3. Basis-Typografie (GeneratePress-Elemente)
   ========================================================================== */

body {
  background-color: var(--mp-bg);
  color: var(--mp-ink);
  font-family: var(--mp-font-body);
  font-size: var(--mp-fs-body);
  line-height: var(--mp-lh-body);
}

h1,
h2,
h3,
h4 {
  font-family: var(--mp-font-display);
  text-transform: uppercase;
  color: var(--mp-ink);
  text-wrap: pretty;
}
h1 {
  font-weight: 700;
  font-size: var(--mp-fs-h1);
  line-height: var(--mp-lh-h1);
  letter-spacing: var(--mp-ls-h1);
}
h2 {
  font-weight: 700;
  font-size: var(--mp-fs-h2);
  line-height: var(--mp-lh-h2);
  letter-spacing: var(--mp-ls-h2);
  margin-top: var(--mp-h2-mt);
  margin-bottom: var(--mp-h2-mb);
}
h3 {
  font-weight: 600;
  font-size: var(--mp-fs-h3);
  line-height: var(--mp-lh-h3);
  letter-spacing: var(--mp-ls-h3);
  margin-top: var(--mp-h3-mt);
  margin-bottom: var(--mp-h3-mb);
}

h4 {
  font-weight: 600;
  font-size: var(--mp-fs-h4);
  line-height: var(--mp-lh-h3);
  letter-spacing: var(--mp-ls-label);
  margin-top: var(--mp-h3-mt);
  margin-bottom: var(--mp-h3-mb);
}

.entry-content p {
  margin-bottom: var(--mp-space-s);
}

.site-footer {
  border-top: 2px solid #221f1a;
  background: var(--mp-ink);
  color: var(--mp-paper);

  margin: 0 auto;
  padding: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14.5px;
}

/* Breadcrumbs */

.rank-math-breadcrumb {
  font-size: 14px;
  margin-bottom: 12px;
  color: rgba(34, 31, 26, 0.6);
}
.rank-math-breadcrumb a {
  color: var(--mp-terracotta);
}
.rank-math-breadcrumb .separator {
  margin: 0 6px;
}

/* Meta-Zeile unter dem Titel (Datum · Autor) */
.entry-meta,
.posted-on,
.byline {
  font-size: 14.5px;
  color: var(--mp-ink-55);
}

/* Listen */
.entry-content ul,
.entry-content ol {
  margin: 0 0 var(--mp-space-m);
  padding-left: 24px;
}
.entry-content li {
  margin-bottom: 5px;
}
.entry-content li:last-child {
  margin-bottom: 0;
}

.single .entry-content:not(:first-child) {
  margin-top: 1.2rem;
}

strong,
b {
  font-weight: 700;
}

/* Menü*/

.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current-menu-parent > a,
.main-navigation .main-nav ul li.current-post-parent > a {
  font-weight: 700;
}

/* Markierter Text — Terracotta-Highlighter wie im Titel */
mark,
.entry-content mark {
  background: linear-gradient(
    transparent 60%,
    rgba(193, 75, 42, 0.45) 60%,
    rgba(193, 75, 42, 0.45) 94%,
    transparent 94%
  );
  color: inherit;
}

/* Zitate */
blockquote,
.wp-block-quote {
  border-left: var(--mp-border-strong) solid var(--mp-terracotta);
  margin: var(--mp-space-l) 0;
  padding: 4px 0 4px 22px;
  font-style: italic;
  color: var(--mp-ink-80);
}

/* Horizontale Linie (Standard-hr ohne .trenner) */
hr,
.wp-block-separator {
  border: none;
  border-top: 2px dashed rgba(34, 31, 26, 0.4);
  margin: 40px 0;
}

/* Tabellen allgemein (außerhalb von .kosten/.ueberblick) */
.entry-content table {
  border-collapse: collapse;
  width: 100%;
  font-size: var(--mp-fs-box);
}
.entry-content th,
.entry-content td {
  border: none;
  border-bottom: 1px solid var(--mp-ink-25);
  padding: 10px 2px;
  text-align: left;
  vertical-align: top;
}
.entry-content th {
  font-family: var(--mp-font-display);
  font-weight: 600;
  font-size: var(--mp-fs-small);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: var(--mp-border-strong) solid var(--mp-ink);
}

/* Buttons (z. B. Gutenberg-Button-Block) */
.wp-block-button__link,
button,
input[type="submit"] {
  font-family: var(--mp-font-display);
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background: var(--mp-terracotta);
  color: var(--mp-bg);
  border: var(--mp-border) solid var(--mp-terracotta-dark);
  border-radius: var(--mp-radius);
  padding: 10px 22px;
  box-shadow: var(--mp-shadow-badge);
  transition: background 0.15s ease;
}
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
  background: var(--mp-terracotta-dark);
  color: var(--mp-bg);
}

a {
  color: var(--mp-terracotta);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
a:hover {
  background: var(--mp-terracotta-wash);
  color: var(--mp-terracotta-dark);
}

figcaption,
.wp-element-caption {
  font-size: var(--mp-fs-small);
  color: var(--mp-ink-55);
  margin-top: var(--mp-space-xs);
  caption-side: bottom;
}

/* Inhaltsbreite (GP-Container) */
.site-main .entry-content,
.single .inside-article {
  max-width: var(--mp-content-width);
  margin-left: auto;
  margin-right: auto;
}

.entry-content img {
  border: var(--mp-border) solid var(--mp-ink-85);
  border-radius: var(--mp-radius);
  box-shadow: var(--mp-shadow-box);
}

.badge-artikel {
  position: static;
  display: inline-block;
  margin: 0 0 10px;
}

/* ==========================================================================
   4. Komponenten (bestehende Klassennamen)
   ========================================================================== */

/* --- .untertitel — Stand-First unter der H1 --- */
.untertitel {
  font-size: var(--mp-fs-untertitel);
  line-height: var(--mp-lh-untertitel);
  color: var(--mp-ink-80);
  margin-bottom: 10px;
}

/* --- .badge — kleines rotiertes Label --- */
.badge {
  display: inline-block;
  font-family: var(--mp-font-display);
  font-weight: 700;
  font-size: var(--mp-fs-badge);
  text-transform: uppercase;
  letter-spacing: var(--mp-ls-badge);
  background: var(--mp-terracotta);
  color: var(--mp-bg);
  padding: 4px 14px;
  border-radius: var(--mp-radius-badge);
  transform: rotate(-1deg);
  margin-bottom: 18px;
}

/* Badge als Etikett auf einer Box (tipp/wichtig/mentally-packed) */
.tipp-box .badge,
.wichtig-box .badge,
.mentally-packed .badge {
  position: absolute;
  top: -14px;
  left: 22px;
  margin: 0;
  padding: 5px 14px;
  background: var(--mp-ink);
  color: var(--mp-bg);
  transform: rotate(-2deg);
  box-shadow: var(--mp-shadow-badge);
  white-space: nowrap;
}
.mentally-packed .badge {
  left: auto;
  right: 26px;
  background: var(--mp-terracotta);
  transform: rotate(2deg);
}

/* --- .inhalt — Inhaltsverzeichnis --- */
.inhalt {
  border: var(--mp-border) solid var(--mp-ink);
  border-radius: var(--mp-radius);
  background: var(--mp-bg);
  box-shadow: var(--mp-shadow);
  padding: 20px 26px;
  margin: 0 0 44px;
}
.inhalt > :first-child,
.inhalt h2,
.inhalt h3,
.inhalt h4 {
  font-family: var(--mp-font-display);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mp-green);
  margin: 0 0 10px;
}
.inhalt ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 28px;
  font-size: 15.5px;
}
.inhalt li {
  margin: 0;
}
.inhalt a {
  color: var(--mp-ink);
  text-decoration: none;
  background: none;
}
.inhalt a:hover {
  color: var(--mp-terracotta);
  background: none;
}
.inhalt a::before {
  content: "→ ";
}

/* --- .tipp-box (grün) & .wichtig-box (terracotta) --- */
.tipp-box,
.wichtig-box {
  position: relative;
  border-radius: var(--mp-radius);
  color: var(--mp-bg);
  box-shadow: var(--mp-shadow-box);
  padding: var(--mp-box-pad);
  margin: var(--mp-space-l) 0 28px;
  font-size: var(--mp-fs-box);
  line-height: var(--mp-lh-box);
}
.tipp-box {
  border: var(--mp-border) solid var(--mp-green-dark);
  background: var(--mp-green);
}
.wichtig-box {
  border: var(--mp-border) solid var(--mp-terracotta-dark);
  background: var(--mp-terracotta);
}
.tipp-box p,
.wichtig-box p {
  margin: 0;
  color: inherit;
}
.tipp-box p + p,
.wichtig-box p + p {
  margin-top: var(--mp-space-xs);
}
.tipp-box a,
.wichtig-box a {
  color: var(--mp-bg);
}
.tipp-box a:hover,
.wichtig-box a:hover {
  background: rgba(246, 241, 233, 0.18);
  color: var(--mp-bg);
}

/* --- .procon — Pro/Contra-Karten (Gutenberg-Spalten) --- */
.procon {
  display: flex;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 36px;
}
.procon > * {
  border-radius: var(--mp-radius);
  box-shadow: 3px 6px 14px rgba(34, 31, 26, 0.12);
  padding: 20px 22px;
  font-size: 15px;
  line-height: 1.55;
  flex: 1 1 0;
  min-width: 0;
}
.procon > :first-child {
  border: var(--mp-border) solid var(--mp-green-dark);
  background: var(--mp-green-tint);
}
.procon > :last-child {
  border: var(--mp-border) solid var(--mp-terracotta-dark);
  background: var(--mp-terracotta-tint);
}
.procon h3,
.procon h4,
.procon > * > :first-child {
  font-family: var(--mp-font-display);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: var(--mp-ls-label);
  margin: 0 0 12px;
}
.procon > :first-child h3,
.procon > :first-child h4,
.procon > :first-child > :first-child {
  color: var(--mp-green);
}
.procon > :last-child h3,
.procon > :last-child h4,
.procon > :last-child > :first-child {
  color: var(--mp-terracotta);
}
.procon ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.procon li {
  margin: 0;
  padding-left: 22px;
  position: relative;
}
.procon li::before {
  position: absolute;
  left: 0;
  font-weight: 700;
}
.procon > :first-child li::before {
  content: "✓";
  color: var(--mp-green);
}
.procon > :last-child li::before {
  content: "✗";
  color: var(--mp-terracotta);
}

/* --- .kosten — Kostentabelle (Gutenberg-Tabelle) --- */
.kosten {
  font-size: var(--mp-fs-box);
}
.kosten table {
  border-collapse: collapse;
  border: none;
  border-top: var(--mp-border-strong) solid var(--mp-ink);
  width: 100%;
}
.kosten th,
.kosten td {
  border: none;
  border-bottom: 1px solid var(--mp-ink-25);
  padding: 10px 10px;
  vertical-align: top;
}
.kosten td:nth-child(2) {
  text-align: right;
  font-weight: 700;
  white-space: nowrap;
}
.kosten td:nth-child(3) {
  color: var(--mp-ink-55);
  font-size: var(--mp-fs-small);
}

/* Summenzeilen: alles, was in <tfoot> steht */
.kosten tfoot td {
  font-family: var(--mp-font-display);
  font-weight: 600;
}
.kosten tfoot tr:first-child td {
  border-top: 2px solid var(--mp-ink);
}
.kosten tfoot td:first-child {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.kosten tfoot td:nth-child(2) {
  color: var(--mp-terracotta);
}
.kosten tfoot td:nth-child(3) {
  font-family: var(--mp-font-body);
  font-weight: 400;
}
.kosten tfoot tr:last-child td {
  border-bottom: var(--mp-border-strong) solid var(--mp-ink);
}

/* --- .ueberblick — "Auf einen Blick"-Karte --- */
.ueberblick {
  border: var(--mp-border) solid var(--mp-ink);
  border-radius: var(--mp-radius);
  background: var(--mp-bg);
  box-shadow: var(--mp-shadow);
  padding: 26px 30px;
  margin: 0 0 48px;
  font-size: var(--mp-fs-box);
}
.ueberblick h2,
.ueberblick h3,
.ueberblick h4 {
  font-family: var(--mp-font-display);
  font-weight: 700;
  font-size: 19px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
}
.ueberblick h2::before,
.ueberblick h3::before,
.ueberblick h4::before {
  content: "★ ";
  color: var(--mp-terracotta);
  font-size: 0.85em;
}
.ueberblick table {
  border-collapse: collapse;
  border: none;
  border-top: 2px solid var(--mp-ink);
  width: 100%;
}
.ueberblick th,
.ueberblick td {
  border: none;
  border-bottom: 1px solid var(--mp-ink-22);
  padding: 9px 2px;
  vertical-align: top;
  text-align: left;
}
.ueberblick td:first-child,
.ueberblick th:first-child {
  width: 190px;
  font-family: var(--mp-font-display);
  font-weight: 600;
  font-size: var(--mp-fs-small);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mp-green);
  padding-right: 16px;
}
.ueberblick tr:last-child td {
  border-bottom: 2px solid var(--mp-ink);
}
.ueberblick tr:last-child td:first-child {
  color: var(--mp-terracotta);
}

/* --- .trenner — Stern-Trenner zwischen Sektionen --- */
.trenner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 40px 0;
  font-size: var(--mp-fs-small);
  color: var(--mp-terracotta);
  text-align: center;
}
.trenner::before,
.trenner::after {
  content: "";
  flex: 1;
  border-top: 2px dashed rgba(34, 31, 26, 0.4);
}
/* Leerer Block (z. B. leerer Absatz mit Klasse) bekommt den Stern automatisch */
.trenner:empty::before {
  content: "★";
  flex: 0 0 auto;
  border: none;
  order: 2;
}
.trenner:empty::after {
  content: "";
  order: 3;
  border-top: 2px dashed rgba(34, 31, 26, 0.4);
}

/* --- .mentally-packed — dunkler Empfehlungs-Block --- */
.mentally-packed {
  position: relative;
  border-radius: var(--mp-radius);
  background: var(--mp-ink);
  color: var(--mp-bg);
  box-shadow: var(--mp-shadow-dark);
  padding: 36px 40px;
  margin: var(--mp-space-xl) 0;
  font-size: var(--mp-fs-box);
  line-height: var(--mp-lh-box);
}
.mentally-packed::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: var(--mp-border) dashed rgba(246, 241, 233, 0.3);
  border-radius: var(--mp-radius-badge);
  pointer-events: none;
}

/* Abschnittstitel */
.mentally-packed h2 {
  color: var(--mp-bg);
  font-size: 26px;
  letter-spacing: var(--mp-ls-h3);
  margin: 0 0 6px;
}
.mentally-packed h2::before {
  content: "★ ";
  color: var(--mp-sand);
  font-size: 0.7em;
}

/*Empfehlungen*/
.mentally-packed h3 {
  color: var(--mp-sand);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.07em;
  margin: 18px 0 3px;
}
.mentally-packed p {
  color: var(--mp-paper-85);
  margin: 0;
}

/*Einleitungssatz*/

.mentally-packed h2 + p {
  color: var(--mp-paper-75);
  font-size: 16px;
  margin-bottom: 24px;
}

/*Links*/
.mentally-packed a {
  color: var(--mp-sand);
}
.mentally-packed a:hover {
  background: rgba(237, 217, 163, 0.18);
  color: var(--mp-sand);
}

/* Überschreibung Generate Press */
.site-main .tipp-box > .wp-block-group__inner-container,
.site-main .wichtig-box > .wp-block-group__inner-container,
.site-main .mentally-packed > .wp-block-group__inner-container,
.site-main .inhalt > .wp-block-group__inner-container,
.site-main .ueberblick > .wp-block-group__inner-container {
  padding: 0;
}

.site-content {
  max-width: var(--mp-content-width);
  margin-left: auto;
  margin-right: auto;
}

/* --- .weiterlesen — kuratierte Verweise am Artikelende --- */
.weiterlesen {
  border: var(--mp-border) solid var(--mp-ink);
  border-radius: var(--mp-radius);
  background: rgb(246 241 233 / 42%);
  box-shadow: var(--mp-shadow);
  padding: 22px 26px 8px;
  margin: var(--mp-h2-mt) 0 0;
  font-size: var(--mp-fs-box);
}
.weiterlesen > :first-child,
.weiterlesen h2 {
  font-family: var(--mp-font-display);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mp-green);
  margin: 0 0 4px;
}

/* --- .verweis — ein Eintrag (wp:group) --- */
.weiterlesen .verweis {
  border-top: var(--mp-border) dashed var(--mp-ink-25);
  padding: 16px 0;
}
.weiterlesen .verweis .badge {
  position: static;
  display: inline-block;
  margin: 0 0 5px;
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  background: var(--mp-green-tint);
  color: var(--mp-green-dark);
  border: 2px solid var(--mp-green);
  transform: none;
  box-shadow: none;
}

.weiterlesen .verweis .hub-badge {
  position: static;
  display: inline-block;
  margin: 0 0 5px;
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  background: var(--mp-green-dark);
  color: var(--mp-bg);
  border: 2px solid var(--mp-green-dark);
  transform: none;
  box-shadow: none;
}

.weiterlesen .verweis h3 {
  font-weight: 600;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: var(--mp-ls-h3);
  margin: 0 0 5px;
}
.weiterlesen .verweis h3 a {
  color: var(--mp-ink);
  text-decoration: none;
  background: none;
}
.weiterlesen .verweis h3 a:hover {
  color: var(--mp-terracotta);
}
.weiterlesen .verweis p {
  margin: 0;
  line-height: 1.5;
  color: var(--mp-ink-70);
  letter-spacing: 0em;
  font-weight: 300;
  text-transform: none;
}

/* GeneratePress: Innen-Container ohne Zusatz-Padding */
.site-main .weiterlesen > .wp-block-group__inner-container,
.site-main .verweis > .wp-block-group__inner-container {
  padding: 0;
}

/* ==========================================================================
   5. Mobile — GeneratePress-Breakpoint 768px
   ========================================================================== */

@media (max-width: 768px) {
  :root {
    --mp-fs-body: 16.5px;
    --mp-lh-body: 1.65;
    --mp-fs-h1: 34px;
    --mp-lh-h1: 1.12;
    --mp-fs-h2: 26px;
    --mp-fs-h3: 19px;
    --mp-fs-untertitel: 18px;
    --mp-lh-untertitel: 1.45;
    --mp-fs-box: 15px;
    --mp-fs-small: 13.5px;
    --mp-fs-badge: 11.5px;
    --mp-ls-badge: 0.1em;
    --mp-space-s: 12px;
    --mp-space-m: 18px;
    --mp-h2-mt: 36px;
    --mp-h2-mb: 12px;
    --mp-h3-mt: 24px;
    --mp-h3-mb: 8px;
    --mp-box-pad: 24px 18px 16px;
  }

  .badge {
    padding: 4px 12px;
    margin-bottom: 14px;
  }
  .tipp-box .badge,
  .wichtig-box .badge,
  .mentally-packed .badge {
    top: -13px;
    left: 14px;
    padding: 5px 12px;
  }
  .mentally-packed .badge {
    left: auto;
    right: 18px;
  }

  .inhalt {
    padding: 18px 20px;
    margin-bottom: 36px;
  }
  .inhalt ul {
    grid-template-columns: 1fr;
    gap: 8px;
    font-size: 15px;
  }

  .procon {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-bottom: 30px;
  }
  .procon > * {
    padding: 18px;
    font-size: 14.5px;
  }
  .procon h3,
  .procon h4,
  .procon > * > :first-child {
    font-size: 15px;
  }
  .procon ul {
    gap: 9px;
  }

  @media (max-width: 781px) {
    .procon {
      flex-direction: column;
    }
  }

  .kosten td:nth-child(3) {
    font-size: 13px;
  }

  .ueberblick {
    padding: 20px 18px;
    margin-bottom: 40px;
  }
  .ueberblick h2,
  .ueberblick h3,
  .ueberblick h4 {
    font-size: 17px;
    margin-bottom: 12px;
  }
  /* Zeilen stapeln: Label über Wert */
  .ueberblick tr,
  .ueberblick td {
    display: block;
    width: 100%;
  }
  .ueberblick td {
    border-bottom: none;
    padding: 0 2px;
  }
  .ueberblick tr {
    border-bottom: 1px solid var(--mp-ink-22);
    padding: 8px 0;
  }
  .ueberblick td:first-child {
    width: auto;
    font-size: 12.5px;
    padding-bottom: 2px;
  }
  .ueberblick tr:last-child td {
    border-bottom: none;
  }
  .ueberblick tr:last-child {
    border-bottom: 2px solid var(--mp-ink);
  }

  .trenner {
    margin: 32px 0;
    font-size: 13px;
  }

  .mentally-packed {
    padding: 30px 22px 26px;
    margin: 40px 0;
  }
  .mentally-packed::before {
    inset: 8px;
  }
  .mentally-packed h2,
  .mentally-packed h3 {
    font-size: 21px;
  }
  .mentally-packed h4 {
    font-size: 14px;
    margin-top: 16px;
  }

  .weiterlesen {
    padding: 18px 18px 4px;
    margin-top: var(--mp-h2-mt);
  }
  .weiterlesen .verweis {
    padding: 14px 0;
  }
  .weiterlesen .verweis .badge {
    font-size: 10px;
    padding: 2px 8px;
  }
  .weiterlesen .verweis h3 {
    font-size: 17px;
  }
  .weiterlesen .verweis p {
    font-size: 14.5px;
  }
}

/* ==========================================================================
   6. Kategorieseite (Reiseziel-Übersicht)
   Neue Komponenten: .eckdaten, .reise / .reise-kopf, .einstieg,
   .artikel-liste / .artikelkarte, .karten-meta
   Ergänzt style.css — nutzt ausschließlich vorhandene Tokens.
   ========================================================================== */

/* --- .eckdaten — Eckdaten-Block (wp:group + wp:table) --- */
.eckdaten {
  border: var(--mp-border) solid var(--mp-ink);
  border-radius: var(--mp-radius);
  background: var(--mp-bg);
  box-shadow: var(--mp-shadow);
  padding: 24px 28px 20px;
  margin: 0 0 var(--mp-space-xl);
  font-size: var(--mp-fs-box);
}
.eckdaten h2,
.eckdaten h3 {
  font-family: var(--mp-font-display);
  font-weight: 700;
  font-size: 19px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
}
.eckdaten h2::before,
.eckdaten h3::before {
  content: "★ ";
  color: var(--mp-terracotta);
  font-size: 0.85em;
}
.eckdaten table {
  border-collapse: collapse;
  border: none;
  border-top: 2px solid var(--mp-ink);
  width: 100%;
  margin: 0;
}
/* Desktop: jede Tabellenzeile wird eine Spalte im Streifen */
.eckdaten tbody {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  padding-top: 14px;
}
.eckdaten tr {
  display: block;
  border-right: var(--mp-border) dashed var(--mp-ink-25);
  padding: 0 16px 4px;
}
.eckdaten tr:first-child {
  padding-left: 2px;
}
.eckdaten tr:last-child {
  border-right: none;
}
.eckdaten td {
  display: block;
  border: none;
  padding: 0;
}
.eckdaten td:first-child {
  font-family: var(--mp-font-display);
  font-weight: 600;
  font-size: var(--mp-fs-small);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mp-green);
  margin-bottom: 4px;
}
.eckdaten td:last-child {
  font-size: 17.5px;
  font-weight: 700;
  color: var(--mp-ink);
}

/* --- .reise — eine Reise-Gruppe (wp:group um Kopf, Einstieg, Liste) --- */
.reise {
  margin: 0 0 56px;
}

/* --- .reise-kopf — Gruppenkopf: Kicker / Titel / Meta an einer Linie --- */
.reise-kopf,
.reise-kopf > .wp-block-group__inner-container {
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.reise-kopf {
  border-bottom: 3px solid var(--mp-ink);
  padding-bottom: 10px;
  margin: 0 0 26px;
}
/* GP legt einen Inner-Container an: Flex dann dort, außen nur Linie */
.reise-kopf:has(> .wp-block-group__inner-container) {
  display: block;
}
.reise-nr {
  font-family: var(--mp-font-display);
  font-weight: 600;
  font-size: var(--mp-fs-badge);
  text-transform: uppercase;
  letter-spacing: var(--mp-ls-badge);
  color: var(--mp-terracotta);
  flex: 0 0 auto;
  margin: 0;
}
.reise-kopf h2 {
  font-size: 30px;
  line-height: 1.12;
  margin: 0;
}
.reise-meta {
  font-size: var(--mp-fs-small);
  color: var(--mp-ink-55);
  margin: 0 0 0 auto;
  flex: 0 0 auto;
}

/* --- .einstieg — hervorgehobener Überblicksartikel (wp:media-text) --- */
.einstieg {
  position: relative;
  border: var(--mp-border-strong) solid var(--mp-ink);
  border-radius: var(--mp-radius);
  background: var(--mp-bg);
  box-shadow: var(--mp-shadow-dark);
  margin: 0 0 22px;
}
.einstieg .badge {
  position: absolute;
  top: -14px;
  left: 20px;
  z-index: 1;
  margin: 0;
  padding: 5px 13px;
  background: var(--mp-ink);
  color: var(--mp-bg);
  transform: rotate(-2deg);
  box-shadow: var(--mp-shadow-badge);
  white-space: nowrap;
}
.einstieg .wp-block-media-text__media {
  margin: 0;
  border-right: var(--mp-border) solid var(--mp-ink);
  align-self: stretch;
  min-height: 0;
}
.einstieg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  border-radius: var(--mp-radius) 0 0 var(--mp-radius);
  box-shadow: none;
}
.einstieg .wp-block-media-text__content {
  padding: 26px;
}
.einstieg .kicker {
  font-family: var(--mp-font-display);
  font-weight: 600;
  font-size: var(--mp-fs-badge);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mp-green);
  margin: 0 0 4px;
}
.einstieg h3 {
  font-weight: 700;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: var(--mp-ls-h2);
  margin: 0 0 8px;
}
.einstieg h3 a {
  color: var(--mp-ink);
  text-decoration: none;
  background: none;
}
.einstieg h3 a:hover {
  color: var(--mp-terracotta);
}
.einstieg p {
  font-size: var(--mp-fs-box);
  line-height: 1.55;
  color: var(--mp-ink-80);
  margin: 0;
}

/* --- .karten-meta — Meta-Zeile in Einstieg & Artikelkarten --- */
.karten-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  font-size: var(--mp-fs-small);
  color: var(--mp-ink-55);
}
.einstieg .karten-meta {
  margin-top: 14px;
  padding-top: 10px;
  border-top: var(--mp-border) dashed var(--mp-ink-25);
}
.karten-meta strong {
  color: var(--mp-ink);
}
.karten-meta a {
  font-family: var(--mp-font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-decoration: none;
  margin-left: auto;
}

/* --- .artikel-liste — Spokes, eingerückt an gestrichelter Leitlinie --- */
.artikel-liste {
  margin: 0 0 0 10px;
  padding-left: 24px;
  border-left: 2px dashed rgba(34, 31, 26, 0.35);
}

/* --- .artikelkarte — einzelner Artikel (wp:media-text) --- */
.artikelkarte {
  border: var(--mp-border) solid var(--mp-ink);
  border-radius: var(--mp-radius);
  background: var(--mp-bg);
  box-shadow: var(--mp-shadow);
  padding: 12px;
  margin: 0 0 16px;
  transition: box-shadow 0.15s ease;
}
.artikelkarte:hover {
  box-shadow: 4px 8px 18px rgba(34, 31, 26, 0.26);
}
.artikel-liste .artikelkarte:last-child,
.artikel-liste .wp-block-group__inner-container > .artikelkarte:last-child {
  margin-bottom: 0;
}
.artikelkarte .wp-block-media-text__media {
  margin: 0;
  border: var(--mp-border) solid var(--mp-ink);
  border-radius: var(--mp-radius);
  overflow: hidden;
  min-height: 100px;
  align-self: stretch;
}
.artikelkarte img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.artikel-liste .wp-block-media-text {
  width: auto !important;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.artikelkarte .wp-block-media-text__content {
  padding: 3px 8px 3px 18px;
}
.artikelkarte .badge {
  position: static;
  display: inline-block;
  margin: 0 0 6px;
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  background: var(--mp-ink);
  color: var(--mp-bg);
  transform: none;
  box-shadow: none;
}
.artikelkarte h3 {
  font-weight: 700;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: var(--mp-ls-h2);
  margin: 0 0 8px;
}
.artikelkarte h3 a {
  color: var(--mp-ink);
  text-decoration: none;
  background: none;
}
.artikelkarte h3 a:hover {
  color: var(--mp-terracotta);
}

/* GeneratePress: Innen-Container ohne Zusatz-Padding */
.site-main .eckdaten > .wp-block-group__inner-container,
.site-main .reise > .wp-block-group__inner-container,
.site-main .reise-kopf > .wp-block-group__inner-container,
.site-main .artikel-liste > .wp-block-group__inner-container {
  padding: 0;
}

/* ==========================================================================
   Mobile — Breakpoint 768px (wie Abschnitt 5)
   ========================================================================== */
@media (max-width: 768px) {
  .eckdaten {
    padding: 20px 18px 14px;
    margin-bottom: 38px;
  }
  .eckdaten h2,
  .eckdaten h3 {
    font-size: 17px;
    margin-bottom: 12px;
  }
  /* Streifen wird zur gestapelten Liste: Label links, Wert rechts */
  .eckdaten tbody {
    display: block;
    padding-top: 0;
  }
  .eckdaten tr {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    border-right: none;
    border-bottom: 1px solid var(--mp-ink-22);
    padding: 9px 2px;
  }
  .eckdaten tr:first-child {
    padding-left: 2px;
  }
  .eckdaten tr:last-child {
    border-bottom: none;
  }
  .eckdaten td:first-child {
    margin: 0;
    font-size: 12.5px;
  }
  .eckdaten td:last-child {
    font-size: 15px;
    text-align: right;
  }

  .reise {
    margin-bottom: 44px;
  }
  /* Gruppenkopf: Kicker+Meta in einer Zeile, Titel darunter */
  .reise-kopf,
  .reise-kopf > .wp-block-group__inner-container {
    display: block;
  }
  .reise-kopf {
    padding-bottom: 8px;
    margin-bottom: 20px;
  }
  .reise-nr {
    font-size: 11.5px;
    float: left;
  }
  .reise-meta {
    font-size: 12.5px;
    text-align: right;
  }
  .reise-kopf h2 {
    font-size: 24px;
    clear: both;
    padding-top: 4px;
  }

  .einstieg {
    margin-bottom: 18px;
  }
  .einstieg .badge {
    top: -13px;
    left: 14px;
    padding: 5px 12px;
  }
  /* gestapelt (is-stacked-on-mobile greift erst bei 600px, hier ab 768px) */
  .einstieg.wp-block-media-text {
    grid-template-columns: 100% !important;
  }
  .einstieg .wp-block-media-text__media {
    grid-column: 1;
    grid-row: 1;
    border-right: none;
    border-bottom: var(--mp-border) solid var(--mp-ink);
    min-height: 130px;
  }
  .einstieg .wp-block-media-text__content {
    grid-column: 1;
    grid-row: 2;
    padding: 16px 15px 14px;
  }
  .einstieg img {
    border-radius: var(--mp-radius) var(--mp-radius) 0 0;
  }
  .einstieg h3 {
    font-size: 20px;
  }
  .einstieg p {
    font-size: 14.5px;
  }

  /* Leitlinie auf dem Handy entfernen */
  .artikel-liste {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
  }

  .artikelkarte {
    padding: 9px;
    margin-bottom: 12px;
  }

  .artikelkarte.wp-block-media-text {
    display: grid !important;
    grid-template-columns: 38% auto !important;
    grid-template-rows: auto !important;
    gap: 12px;
    align-items: center;
  }

  .artikelkarte .wp-block-media-text__media {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    align-self: stretch;
  }

  .artikelkarte img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
  }

  .artikelkarte .wp-block-media-text__content {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0;
    padding: 2px 4px;
  }
  .artikelkarte .badge {
    font-size: 10px;
    padding: 2px 8px;
  }
  .artikelkarte h3 {
    font-size: 15px;
    margin-bottom: 5px;
  }
  .karten-meta {
    gap: 4px 14px;
    font-size: 12px;
  }
}

/* ==========================================================================
   7. Startseite
   Neue Komponenten: .start-kopf, .dachzeile, .sektions-kopf / .sektions-notiz,
   .ziel-raster / .zielkarte / .ziel-fuss / .ziel-anzahl,
   .neueste-liste / .artikel-zeile, .arbeitsweise / .prinzip
   Ergänzt style.css — nutzt ausschließlich vorhandene Tokens.
   ========================================================================== */

.home .site-content {
  max-width: 1100px;
}

/* Nur Startseite: Papier-Hintergrund raus, alles weiß */
body.home {
  background-color: #fff;
}

.home .entry-content {
  max-width: 1100px;
}

/* Nur Startseite: kein Abstand zum Menü */
.home.separate-containers .site-main {
  margin-top: 0;
}

.home .inside-article {
  padding: 0px;
}

/* --- .dachzeile — Kicker-Zeile (Hero + Artikel-Zeilen) --- */
.dachzeile {
  font-family: var(--mp-font-display);
  font-weight: 600;
  font-size: var(--mp-fs-badge);
  text-transform: uppercase;
  letter-spacing: var(--mp-ls-badge);
  color: var(--mp-terracotta);
  margin: 0 0 var(--mp-space-xs);
}

/* --- .start-kopf — Hero: Dachzeile / H1 / Untertitel (wp:group) --- */
.start-kopf {
  padding: 8px 0 36px;
  margin: 0 0 8px;
}
.start-kopf h1 {
  margin: 0 0 14px;
  text-wrap: balance;
}
.start-kopf .untertitel {
  margin-bottom: 0;
  max-width: 620px;
}

/* --- .sektions-kopf — Abschnittskopf mit Balken + Notiz (wp:group) --- */
.sektions-kopf,
.sektions-kopf > .wp-block-group__inner-container {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.sektions-kopf {
  border-bottom: 3px solid var(--mp-ink);
  padding-bottom: 10px;
  margin: var(--mp-h2-mt) 0 26px;
}
/* GP legt einen Inner-Container an: Flex dann dort, außen nur Linie */
.sektions-kopf:has(> .wp-block-group__inner-container) {
  display: block;
}
.sektions-kopf h2 {
  margin: 0;
}
.sektions-notiz {
  font-style: italic;
  font-size: var(--mp-fs-small);
  color: var(--mp-ink-55);
  margin: 0;
  flex: 0 0 auto;
}

/* --- .ziel-raster — Reiseziel-Kacheln (wp:columns) --- */
.ziel-raster {
  gap: 24px;
  margin-bottom: 8em;
}

/* --- .zielkarte — eine Kachel (wp:column) --- */
.zielkarte {
  position: relative;
  border: var(--mp-border) solid var(--mp-ink);
  border-radius: var(--mp-radius);
  background: var(--mp-bg);
  box-shadow: var(--mp-shadow);
  overflow: hidden;
  transition: box-shadow 0.15s ease;
  cursor: pointer;
}
.zielkarte .ziel-fuss h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.zielkarte:hover {
  box-shadow: 4px 8px 18px rgba(34, 31, 26, 0.26);
}

.zielkarte:hover .ziel-fuss h3 a {
  color: var(--mp-terracotta);
}

.zielkarte .wp-block-image {
  margin: 0;
}
.zielkarte img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: none;
  border-bottom: var(--mp-border) solid var(--mp-ink);
  border-radius: 0;
  box-shadow: none;
}

/* --- .ziel-fuss — Landname + Artikelzahl an einer Grundlinie (wp:group) --- */
.ziel-fuss,
.ziel-fuss > .wp-block-group__inner-container {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.ziel-fuss {
  padding: 14px 16px 16px;
}
.ziel-fuss:has(> .wp-block-group__inner-container) {
  display: block;
}
.ziel-fuss h3 {
  margin: 0;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: var(--mp-ls-h2);
}
.ziel-fuss h3 a {
  color: var(--mp-ink);
  text-decoration: none;
  background: none;
}
.ziel-fuss h3 a:hover {
  color: var(--mp-terracotta);
}
.ziel-anzahl {
  margin: 0;
  font-family: var(--mp-font-display);
  font-weight: 600;
  font-size: var(--mp-fs-badge);
  text-transform: uppercase;
  letter-spacing: var(--mp-ls-label);
  color: var(--mp-green);
  white-space: nowrap;
  flex: 0 0 auto;
}

/* --- .neueste-liste — dichte Artikelliste (wp:group) --- */
.neueste-liste {
  margin-bottom: var(--mp-space-s);
}
.neueste-liste .wp-block-media-text {
  width: auto !important;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* --- .artikel-zeile — ein Eintrag (wp:media-text) --- */
.artikel-zeile {
  border-bottom: var(--mp-border) dashed var(--mp-ink-25);
  padding: 18px 0;
}
.artikel-zeile:last-child,
.neueste-liste .wp-block-group__inner-container > .artikel-zeile:last-child {
  border-bottom: none;
}
.artikel-zeile .wp-block-media-text__media {
  margin: 0;
  border: var(--mp-border) solid var(--mp-ink);
  border-radius: var(--mp-radius);
  overflow: hidden;
  align-self: stretch;
  min-height: 96px;
}
.artikel-zeile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.artikel-zeile .wp-block-media-text__content {
  padding: 0 8px 0 20px;
}
.artikel-zeile .dachzeile {
  font-size: 12px;
  letter-spacing: 0.12em;
  margin: 0 0 4px;
}
.artikel-zeile h3 {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: var(--mp-ls-h2);
}
.artikel-zeile h3 a {
  color: var(--mp-ink);
  text-decoration: none;
  background: none;
}
.artikel-zeile h3 a:hover {
  color: var(--mp-terracotta);
}
.artikel-zeile .karten-meta {
  margin: 0;
}

/* --- Claim (Kicker + Headline + Subline) --- */
.claim {
  max-width: 780px;
  margin: 0 auto 64px;
  text-align: center;
}
.claim-kicker {
  display: block;
  margin: 0 0 18px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mp-terracotta);
}
.claim h2 {
  margin: 0 0 18px;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.005em;
  text-wrap: balance;
  color: var(--mp-ink);
}
.claim p {
  margin: 0;
  font-size: 19px;
  line-height: 1.55;
  color: var(--mp-ink-80);
  text-wrap: pretty;
}

/* --- Claim (Kicker + Headline + Subline) --- */
.claim {
  max-width: 780px;
  margin: 0 auto 64px;
  text-align: center;
}
.claim-kicker {
  display: block;
  margin: 0 0 18px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mp-terracotta);
}
.claim h2 {
  margin: 0 0 18px;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.005em;
  text-wrap: balance;
  color: var(--mp-ink);
}
.claim p {
  margin: 0;
  font-size: 19px;
  line-height: 1.55;
  color: var(--mp-ink-80);
  text-wrap: pretty;
}

/* --- .arbeitsweise — drei Prinzipien (wp:columns) --- */
.arbeitsweise {
  gap: 56px;
  margin-bottom: 0;
  text-align: center;
}

/* --- .prinzip — eine Spalte mit Fortschrittsbalken (Logo-Motiv) --- */
.prinzip {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 0;
  padding-top: 0;
}
.prinzip-bar {
  border: 2px solid var(--mp-ink);
  border-radius: 2px;
  padding: 2px;
  background: #fff;
}
.prinzip-bar > i {
  display: block;
  height: 10px;
  width: 0; /* Startzustand, bis der Abschnitt sichtbar wird */
  border-radius: 1px;
  background: var(--mp-ink);
}
.prinzip-gruen .prinzip-bar > i {
  background: var(--mp-green);
  --mp-w: 34%;
  --mp-delay: 0.15s;
}
.prinzip-rost .prinzip-bar > i {
  background: var(--mp-terracotta);
  --mp-w: 67%;
  --mp-delay: 0.35s;
}
.prinzip-ink .prinzip-bar > i {
  --mp-w: 100%;
  --mp-delay: 0.55s;
}

/* Moderne Browser: rein per CSS an den Scroll-Fortschritt gekoppelt, kein JS nötig */
@supports (animation-timeline: view()) {
  .prinzip-bar > i {
    animation: mp-fill 1.3s cubic-bezier(0.22, 0.9, 0.28, 1) var(--mp-delay, 0s)
      both;
    animation-timeline: view();
    animation-range: entry 15% cover 35%;
  }
  .arbeitsweise.in-view .prinzip-bar > i {
    animation-timeline: view();
  }
}

@keyframes mp-fill {
  from {
    width: 0;
  }
  to {
    width: var(--mp-w, 100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .prinzip-bar > i,
  .arbeitsweise.in-view .prinzip-bar > i {
    animation: none;
    width: var(--mp-w, 100%);
  }
}

.prinzip h3 {
  margin: 0;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: var(--mp-ls-label, 0.13em);
  text-transform: uppercase;
}
.prinzip p {
  margin: 0;
  font-size: var(--mp-fs-box, 17px);
  line-height: var(--mp-lh-box, 1.6);
  color: var(--mp-ink-80);
}

/* GeneratePress: Innen-Container ohne Zusatz-Padding */
.site-main .start-kopf > .wp-block-group__inner-container,
.site-main .sektions-kopf > .wp-block-group__inner-container,
.site-main .ziel-fuss > .wp-block-group__inner-container,
.site-main .neueste-liste > .wp-block-group__inner-container {
  padding: 0;
}

/* ==========================================================================
   Mobile — Breakpoint 768px (wie Abschnitt 5)
   ========================================================================== */
@media (max-width: 768px) {
  .start-kopf {
    padding-bottom: 26px;
  }

  /* Notiz unter den Titel */
  .sektions-kopf,
  .sektions-kopf > .wp-block-group__inner-container {
    display: block;
  }
  .sektions-kopf {
    padding-bottom: 8px;
    margin-bottom: 20px;
  }
  .sektions-notiz {
    font-size: 12.5px;
    margin-top: 2px;
  }

  .ziel-raster {
    gap: 16px;
  }
  .ziel-fuss {
    padding: 12px 14px 14px;
  }
  .ziel-fuss h3 {
    font-size: 20px;
  }
  .ziel-anzahl {
    font-size: 11.5px;
  }

  /* Zeile bleibt nebeneinander: Bild links, Text rechts (wie .artikelkarte) */
  .artikel-zeile {
    padding: 14px 0;
  }
  .artikel-zeile.wp-block-media-text {
    display: grid !important;
    grid-template-columns: 32% auto !important;
    grid-template-rows: auto !important;
    gap: 12px;
    align-items: center;
  }
  .artikel-zeile .wp-block-media-text__media {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    align-self: stretch;
  }
  .artikel-zeile img {
    height: 100% !important;
  }
  .artikel-zeile .wp-block-media-text__content {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0;
    padding: 2px 0 2px 2px;
  }
  .artikel-zeile .dachzeile {
    font-size: 11px;
    margin-bottom: 3px;
  }
  .artikel-zeile h3 {
    font-size: 16px;
    margin-bottom: 5px;
  }

  .arbeitsweise {
    gap: 18px;
  }
  .prinzip {
    padding-top: 10px;
  }
  .prinzip h3 {
    font-size: 15px;
  }
  .prinzip p {
    font-size: 14.5px;
  }
}
