/* ============================================================
   Marrakesch.com 2026 — Design-Layer „Riad Noir" (Nachtgrün & Messing)
   Gemeinsamer Magazin-Design-Layer (aeg-Klassen), wird NACH der ts24-Basis
   (style.css) geladen und ueberschreibt Farben/Typografie + stylt die
   [section]-Content-Komponenten und die Homepage-/Artikel-Templates.
   Quelle: Mockup „Riad Noir" (mkb_4_riad.html, abgenommen).
   Variablen behalten die aeg-Namen — Riad-Noir-Werte sind darauf gemappt:
   --nil = Nachtgrün, --terra = Messing-Gold.
   ============================================================ */

:root{
  --nil:#1f2e28; --nil-deep:#142019; --nil-soft:#2c4339;
  --sand:#cdab68; --sand-light:#efe7d4; --sand-deep:#b89150;
  --terra:#b89150; --terra-deep:#9a7536;       /* Messing-Gold = Akzent */
  --grey:#5e574a; --grey-soft:#8a8275;
  --bg:#f5efe2; --bg-warm:#efe7d6; --ink:#23201a; --white:#fffdf9;
  --shadow-sm:0 2px 8px rgba(30,24,14,.08); --shadow:0 12px 32px rgba(30,24,14,.16);
  --r:6px;
  --serif:'Fraunces',Georgia,serif;
  --sans:'Source Sans 3',system-ui,-apple-system,sans-serif;
  --label:'Montserrat',sans-serif;
}

/* ---- Grundlagen ---- */
body{ font-family:var(--sans); color:var(--ink); background:var(--bg); line-height:1.75; }
h1,h2,h3,h4,.h1,.h2,.h3{ font-family:var(--serif); color:var(--nil); font-weight:600; letter-spacing:-.01em; }
a{ color:var(--terra-deep); }
a:hover,a:focus{ color:var(--terra); }

/* ============================================================
   Content-Seiten ([section class="section-text"])
   ============================================================ */
.section-text{ font-size:1.05rem; }
.section-text h2{ font-size:1.8rem; margin:2.4rem 0 1rem; }
.section-text h3{ font-size:1.28rem; color:var(--nil-soft); margin:1.6rem 0 .6rem; }
.section-text p{ margin-bottom:1.2rem; }
.section-text img.size-full{ border-radius:var(--r); box-shadow:var(--shadow-sm); margin-bottom:1.6rem; }

/* "Kurz erklaert"-Kapsel (Answer-Capsule) */
.section-text p.lead{
  font-family:var(--serif); font-style:italic; font-weight:500;
  font-size:1.24rem; line-height:1.6; color:var(--nil);
  border-left:4px solid var(--terra); padding:.2rem 0 .2rem 1.3rem;
  margin:0 0 1.6rem; background:none;
}
.section-text p.lead strong{ font-style:normal; color:var(--terra-deep); }

/* Byline */
.section-text p em:only-child{ color:var(--grey-soft); font-size:.92rem; }

/* Schnellfakten-Box (table.table-striped) -> "Auf einen Blick" */
.section-text table.table-striped{
  width:100%; border-collapse:separate; border-spacing:0; margin:1.4rem 0 2rem;
  background:var(--white); border:1px solid var(--sand-deep);
  border-left:4px solid var(--terra); border-radius:var(--r);
  box-shadow:var(--shadow-sm); overflow:hidden;
}
.section-text table.table-striped td{ padding:.7rem 1rem; border-top:1px solid var(--bg-warm); vertical-align:top; }
.section-text table.table-striped tr:first-child td{ border-top:none; }
.section-text table.table-striped td:first-child{
  font-family:var(--label); font-size:.82rem; font-weight:600;
  color:var(--nil); width:40%; text-transform:none; letter-spacing:.02em;
}
.section-text table.table-striped tbody tr:nth-child(odd){ background:var(--bg-warm); }

/* FAQ-Block (h2 "Haeufige Fragen" + h3/p) */
.section-text h2 + h3{ margin-top:1rem; }
.section-text h3{ position:relative; }

/* Fragenbox (TOC der Frage-H2, direkt nach den Schnellfakten) */
.section-text .aeg-fragenbox{
  background:var(--bg-warm); border:1px solid var(--sand-deep); border-radius:var(--r);
  padding:18px 22px 14px; margin:1.6rem 0 2rem; box-shadow:none;
}
.section-text .aeg-fragenbox > .panel-body{ padding:0; }
.section-text .aeg-fragenbox p{ margin:0 0 .6rem; }
.section-text .aeg-fragenbox p strong{ font-family:var(--label); font-size:.82rem; letter-spacing:.04em;
  text-transform:uppercase; color:var(--terra-deep); }
.section-text .aeg-fragenbox ul{ list-style:none; margin:0; padding:0;
  column-count:2; column-gap:30px; }
.section-text .aeg-fragenbox li{ margin:.3rem 0; break-inside:avoid; }
.section-text .aeg-fragenbox li a{ color:var(--nil-soft); font-weight:500; }
.section-text .aeg-fragenbox li a:hover{ color:var(--terra); }
@media(max-width:600px){ .section-text .aeg-fragenbox ul{ column-count:1; } }

/* CTA-Bridge zur Region/Money-Page */
.section-text .aeg-cta{
  background:linear-gradient(135deg,var(--nil) 0%,var(--nil-soft) 100%);
  border:none; border-radius:var(--r); margin:2rem 0; box-shadow:var(--shadow-sm);
}
.section-text .aeg-cta > .panel-body{ padding:20px 24px; color:var(--white); font-size:1.02rem; }
.section-text .aeg-cta a{ color:var(--sand); font-weight:600; text-decoration:underline; }
.section-text .aeg-cta a:hover{ color:var(--white); }

/* Anker-Offset, damit Sprungmarken nicht unter der Sticky-Nav landen */
.section-text h2[id]{ scroll-margin-top:90px; }

/* ============================================================
   Homepage (front-page.php) — Komponentenklassen aus Prototyp
   ============================================================ */
.aeg-hero{ position:relative; min-height:88vh; display:flex; align-items:flex-end; overflow:hidden; }
.aeg-hero__img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.aeg-hero::after{ content:""; position:absolute; inset:0;
  background:linear-gradient(180deg,rgba(20,32,25,.12) 0%,rgba(20,32,25,.78) 100%); }
.aeg-hero__in{ position:relative; z-index:2; max-width:1180px; margin:0 auto; padding:0 28px 8vh; width:100%; }
.aeg-hero h1{ font-size:clamp(2.4rem,5vw,4rem); color:var(--white); line-height:1.08; font-weight:700; max-width:16ch;
  text-shadow:0 2px 30px rgba(0,0,0,.35); }
.aeg-hero p{ color:rgba(255,253,249,.92); font-size:1.2rem; max-width:46ch; margin:1.2rem 0 2rem; }
.aeg-btn{ display:inline-block; font-family:var(--label); font-weight:600; font-size:.86rem; letter-spacing:.04em;
  padding:.85rem 1.7rem; border-radius:var(--r); text-decoration:none; transition:transform .2s,background .2s; }
.aeg-btn--primary{ background:var(--terra); color:var(--white); }
.aeg-btn--primary:hover{ background:var(--terra-deep); color:var(--white); transform:translateY(-2px); }
.aeg-btn--ghost{ border:1.5px solid rgba(255,253,249,.7); color:var(--white); margin-left:.8rem; }
.aeg-btn--ghost:hover{ background:rgba(255,253,249,.12); color:var(--white); }

/* Reiseziel-Cards */
.aeg-cards{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; max-width:1180px; margin:0 auto; padding:70px 28px; }
.aeg-card{ background:var(--white); border-radius:var(--r); overflow:hidden; box-shadow:var(--shadow-sm);
  transition:transform .35s,box-shadow .35s; }
.aeg-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow); }
.aeg-card__img{ aspect-ratio:4/3; width:100%; object-fit:cover; transition:transform .5s; }
.aeg-card:hover .aeg-card__img{ transform:scale(1.07); }
.aeg-card__body{ padding:18px 20px 22px; }
.aeg-card .tag,.aeg-mag .tag{ font-family:var(--label); font-size:.64rem; font-weight:700; letter-spacing:.12em;
  text-transform:uppercase; color:var(--terra); }
.aeg-card h3{ font-size:1.2rem; margin:.4rem 0; line-height:1.25; }

/* Highlight-Banner (Terrakotta) */
.aeg-banner{ background:var(--terra); color:var(--white); }
.aeg-banner__in{ max-width:1180px; margin:0 auto; padding:54px 28px; display:grid; grid-template-columns:repeat(3,1fr); gap:30px; }
.aeg-banner h3{ color:var(--white); font-size:1.25rem; }
.aeg-banner p{ color:rgba(255,253,249,.9); }

/* ============================================================
   Artikel (single.php / page.php) — Lesespalte + Sticky-Sidebar
   ============================================================ */
.aeg-article{ max-width:740px; }
.aeg-shell{ max-width:1180px; margin:0 auto; padding:48px 28px 80px; }
@media(min-width:1200px){
  .aeg-shell{ display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:50px; }
  .aeg-side{ position:sticky; top:90px; align-self:start; }
}
.aeg-toc{ background:var(--white); border-radius:var(--r); padding:22px 24px; box-shadow:var(--shadow-sm); }
.aeg-toc a{ display:block; color:var(--nil-soft); padding-left:14px; border-left:2px solid var(--sand-deep);
  margin-bottom:9px; font-size:.92rem; }
.aeg-toc a:hover{ border-color:var(--terra); color:var(--terra); padding-left:18px; }

/* ---- Responsive ---- */
@media(max-width:980px){ .aeg-cards{ grid-template-columns:1fr 1fr; } .aeg-banner__in{ grid-template-columns:1fr; gap:18px; } }
@media(max-width:560px){ .aeg-cards{ grid-template-columns:1fr; } }

/* ============================================================
   Magazin-Navigation (ersetzt ts24-Header/Navbar) — 2026-06-04
   aeg-praefixiert; Hooks: assets/aegypten-nav.js
   (body.aeg-scrolled, [data-aeg-nav-toggle]/[data-aeg-nav] .is-open)
   ============================================================ */

/* ts24-Header-Wrapper neutralisieren (navbar.php rendert darin) */
#header{ background:none !important; border:none !important; box-shadow:none !important; min-height:0 !important; padding:0 !important; }
#header .container-fluid{ padding:0 !important; }
#header .searchmask_container,
.searchmask_container,
#section-search{ display:none !important; }

.aeg-nav{ position:fixed; top:0; left:0; right:0; z-index:1050; padding:20px 0;
  transition:background .4s, padding .4s, box-shadow .4s; }
body.aeg-scrolled .aeg-nav{ background:var(--white); box-shadow:0 4px 24px rgba(60,42,20,.1); padding:10px 0; }
.aeg-nav-in{ max-width:1200px; margin:0 auto; padding:0 24px; display:flex; align-items:center; justify-content:space-between; }
.aeg-logo{ display:flex; align-items:center; gap:10px; text-decoration:none; transition:color .4s; }
.aeg-logo-mark{ display:flex; flex:0 0 auto; }
.aeg-logo-mark svg{ display:block; }
.aeg-logo-word{ font-family:var(--serif); font-size:1.5rem; font-weight:700; color:var(--white);
  letter-spacing:-.01em; line-height:1; transition:color .4s; }
.aeg-logo-word b{ color:var(--sand); font-weight:700; }
body.aeg-scrolled .aeg-logo-word{ color:var(--nil); }
body.aeg-scrolled .aeg-logo-word b{ color:var(--terra-deep); }
.aeg-menu{ display:flex; gap:30px; align-items:center; }
.aeg-menu a{ font-family:var(--label); font-size:.82rem; font-weight:600; letter-spacing:.04em;
  text-transform:uppercase; color:rgba(255,253,249,.92); position:relative; padding:4px 0;
  text-decoration:none; transition:color .3s; }
.aeg-menu a::after{ content:""; position:absolute; left:0; bottom:-2px; height:2px; width:0;
  background:var(--terra); transition:width .3s; }
.aeg-menu a:hover::after{ width:100%; }
body.aeg-scrolled .aeg-menu a{ color:var(--nil); }
.aeg-nav-right{ display:flex; align-items:center; gap:18px; }
.aeg-burger{ display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:6px; }
.aeg-burger span{ width:26px; height:2px; background:var(--white); display:block; transition:all .3s; }
body.aeg-scrolled .aeg-burger span{ background:var(--nil); }

@media (max-width:860px){
  .aeg-menu{ display:none; }
  .aeg-burger{ display:flex; }
  .aeg-menu.is-open{ display:flex; position:fixed; top:0; right:0; bottom:0; width:78%; max-width:320px;
    background:var(--nil-deep); flex-direction:column; align-items:flex-start; justify-content:center;
    gap:28px; padding:0 40px; z-index:1060; box-shadow:-10px 0 40px rgba(0,0,0,.3); }
  .aeg-menu.is-open a{ color:var(--white) !important; font-size:1.1rem; }
  body.aeg-scrolled .aeg-menu.is-open a{ color:var(--white) !important; }
  .aeg-burger.is-open span{ background:var(--white); }
  .aeg-burger.is-open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
  .aeg-burger.is-open span:nth-child(2){ opacity:0; }
  .aeg-burger.is-open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }
}

/* ============================================================
   Header-Feinschliff (2026-06-04, Nachtrag):
   ts24-Hintergrund-Reste im Header-Bereich neutralisieren +
   Nav-Kontrast auf hellem Seitenanfang sichern.
   ============================================================ */

/* 1) Header-Wrapper transparent erzwingen (auch der umschliessende .tt) */
body header#header,
body .tt:has(> #header){
  background:transparent !important; background-image:none !important;
  box-shadow:none !important; border:0 !important; min-height:0 !important;
  height:auto !important; padding:0 !important;
}

/* 2) Magazin-Nav fixiert + transparent erzwingen (gegen ts24-Spezifitaet) */
body header#header nav.aeg-nav{
  position:fixed !important; top:0 !important; left:0 !important; right:0 !important;
  width:100% !important; background:transparent !important; background-image:none !important;
  box-shadow:none !important;
}
body.aeg-scrolled header#header nav.aeg-nav{
  background:var(--white) !important; box-shadow:0 4px 24px rgba(60,42,20,.1) !important;
}

/* 3) Lesbarkeits-Scrim: dezenter dunkler Verlauf hinter der transparenten Nav,
      damit weisse Logo-/Menue-Schrift auf hellem Seitenanfang lesbar bleibt.
      Verschwindet, sobald die Nav beim Scrollen weiss wird. */
body header#header nav.aeg-nav::before{
  content:""; position:absolute; left:0; right:0; top:0; bottom:0; z-index:-1;
  background:linear-gradient(to bottom, rgba(20,32,25,.6), rgba(20,32,25,0));
  transition:opacity .4s; pointer-events:none;
}
body.aeg-scrolled header#header nav.aeg-nav::before{ opacity:0; }

/* ============================================================
   Artikel-/News-Hero kompakter (2026-06-04 Nachtrag):
   Der Vollbild-Hero (88vh) ist nur fuer die Startseite gedacht.
   Artikel-/News-/Spot-Seiten bekommen einen kompakten Hero,
   damit man zuegig zum Text kommt.
   ============================================================ */
.aeg-hero.aeg-hero--article{ min-height:42vh !important; max-height:480px; }
.aeg-hero.aeg-hero--article .aeg-hero__in{ padding-bottom:2.4rem; }
.aeg-hero.aeg-hero--article h1{ font-size:clamp(1.9rem,3.4vw,2.9rem); }

/* Ohne Beitragsbild: eleganter Nil-Verlauf statt leerer Flaeche */
.aeg-hero.aeg-hero--plain{ min-height:32vh !important; max-height:360px;
  background:linear-gradient(135deg,var(--nil) 0%,var(--nil-deep) 100%); }
.aeg-hero.aeg-hero--plain::after{ background:linear-gradient(180deg,rgba(20,32,25,.1),rgba(20,32,25,.45)); }

/* ============================================================
   Breadcrumb (2026-06-04 Nachtrag):
   Den oberen ts24-Breadcrumb komplett ausblenden — der Hero hat
   bereits einen eigenen, lesbaren Breadcrumb (.aeg-crumb). Damit
   verdeckt die fixe Nav nichts mehr und das Magazin-Layout bleibt
   sauber (Nav transparent ueber dem Hero, wie auf der Startseite).
   ============================================================ */
#content > #breadcrumbs,
#breadcrumbs,
.tt #breadcrumbs{ display:none !important; }

/* Lesbarkeit der transparenten Nav ueber dem Hero zusaetzlich absichern */
.aeg-hero .aeg-crumb a{ color:rgba(255,253,249,.95); }
.aeg-hero .aeg-crumb a:hover{ color:var(--sand); }

/* ============================================================
   Hero-Lesbarkeit (2026-06-04 Nachtrag):
   Redaktions-Byline (.aeg-meta) + Hero-Breadcrumb liegen ueber
   dem Hero-Foto -> helle Schrift + Textschatten, und der untere
   Hero-Bereich bekommt ein staerkeres Overlay.
   ============================================================ */
.aeg-hero .aeg-meta{
  color:rgba(255,253,249,.94); font-family:var(--label); font-size:.9rem; font-weight:500;
  margin-top:.9rem; display:flex; flex-wrap:wrap; align-items:center; gap:.55rem;
  text-shadow:0 1px 14px rgba(0,0,0,.6), 0 1px 3px rgba(0,0,0,.5);
}
.aeg-hero .aeg-meta strong{ color:#fff; font-weight:700; }
.aeg-hero .aeg-meta .aeg-dot{
  width:4px; height:4px; border-radius:50%; background:var(--sand); display:inline-block; opacity:.85;
}
.aeg-hero .aeg-crumb{ text-shadow:0 1px 12px rgba(0,0,0,.55); }

/* Staerkeres Overlay im unteren Hero-Bereich (dort liegen H1 + Byline) */
.aeg-hero.aeg-hero--article::after{
  background:linear-gradient(180deg, rgba(20,32,25,.12) 0%, rgba(20,32,25,.5) 52%, rgba(20,32,25,.86) 100%) !important;
}

/* ============================================================
   Highlight-Banner dezenter (2026-06-04 Nachtrag):
   Statt grossem Vollflaechen-Terrakotta -> schlanker heller
   Streifen (Wuestensand) mit Terrakotta nur als Akzent.
   ============================================================ */
.aeg-banner{ background:var(--bg-warm) !important; color:var(--grey) !important;
  border-top:3px solid var(--terra); }
.aeg-banner__in{ padding:26px 28px !important; gap:26px; }
.aeg-banner h3{ color:var(--terra-deep) !important; font-family:var(--label);
  font-size:1rem !important; text-transform:uppercase; letter-spacing:.04em; margin-bottom:.35rem; }
.aeg-banner p{ color:var(--grey) !important; font-size:.92rem; line-height:1.55; margin:0; }

/* ============================================================
   RIAD NOIR — Farbwelt „Nachtgrün & Messing" (vom Auftraggeber gewählt,
   Variante 4). Ueberschreibt Farben + Content-Layout. --nil2 = tiefstes Grün.
   ============================================================ */
:root{
  --nil:#1f2e28; --nil2:#142019; --nil-soft:#2c4339;
  --sand:#cdab68; --sand-light:#efe7d4; --sand-deep:#b89150;
  --terra:#b89150; --terra-deep:#9a7536;     /* Messing-Gold-Akzent */
  --grey:#5e574a; --grey-soft:#8a8275;
  --bg:#f5efe2; --bg-warm:#efe7d6; --ink:#23201a; --white:#fffdf9;
  --sandbg:#efe7d6; --line:#e3d8c4;
}

/* ---- Breadcrumb-Band (Schema.org), direkt unter der fixen Nav ---- */
body:not(.home) #content{ padding-top:0 !important; }
.aeg-bcband{ background:var(--sandbg); border-bottom:1px solid var(--line); margin-top:62px; }
.aeg-bc-in{ max-width:1200px; margin:0 auto; padding:11px 30px; }
.aeg-bc{ display:flex; align-items:center; flex-wrap:wrap; gap:6px; font-family:var(--label);
  font-size:.74rem; font-weight:600; letter-spacing:.03em; color:var(--grey); }
.aeg-bc a{ text-decoration:none; color:var(--terra-deep); }
.aeg-bc a:hover{ color:var(--terra); }
.aeg-bc-cur span{ color:var(--nil); font-weight:700; }
.aeg-bc-sep{ width:14px; height:14px; fill:none; stroke:var(--sand-deep); stroke-width:2.4; flex:0 0 auto; }
.aeg-bc-home{ width:14px; height:14px; fill:none; stroke:var(--terra-deep); stroke-width:2; margin-right:2px; flex:0 0 auto; }

/* ---- Kopf: Titel + Byline (kompakt) ---- */
.aeg-head{ max-width:1200px; margin:0 auto; padding:26px 30px 0; }
.aeg-head .aeg-eyebrow{ font-family:var(--label); font-size:.72rem; font-weight:700; letter-spacing:.16em;
  text-transform:uppercase; color:var(--terra-deep); }
.aeg-head h1{ font-family:var(--serif); font-weight:700; color:var(--nil);
  font-size:clamp(2rem,4.4vw,3.1rem); line-height:1.07; margin:.25rem 0 .5rem; max-width:22ch; }
.aeg-head .aeg-meta{ font-family:var(--label); font-size:.78rem; color:var(--grey);
  display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; }
.aeg-head .aeg-dot{ width:4px; height:4px; border-radius:50%; background:var(--sand-deep); display:inline-block; }

/* ---- Kopf-Bild ---- */
.aeg-figure{ max-width:1200px; margin:18px auto 0; padding:0 30px; }
.aeg-figure img{ width:100%; height:auto; max-height:420px; object-fit:cover; border-radius:8px; box-shadow:var(--shadow-sm); }

/* ---- Zweispaltiges Layout: Lesespalte (frei, KEINE Box) + Sidebar ---- */
.content.aeg-page .aeg-shell{ max-width:1200px; margin:0 auto; padding:30px 30px 80px;
  display:block; }
@media(min-width:900px){
  .content.aeg-page .aeg-shell{ display:grid; grid-template-columns:minmax(0,1fr) 290px; gap:54px; align-items:start; }
}
.content.aeg-page .aeg-article{ max-width:760px; background:none; box-shadow:none; padding:0; }
.aeg-article.section-text{ font-size:1.06rem; }
.aeg-article h2{ font-family:var(--serif); font-weight:700; color:var(--nil); font-size:1.7rem;
  line-height:1.2; margin:36px 0 12px; }
.aeg-article h2::before{ content:""; display:block; width:30px; height:2px; background:var(--terra); margin-bottom:12px; }
.aeg-article h3{ font-family:var(--serif); font-size:1.18rem; color:var(--nil-soft); margin:22px 0 6px; }
.aeg-article p{ margin-bottom:16px; } .aeg-article a{ color:var(--terra-deep); }
.aeg-article p.lead{ font-family:var(--serif); font-style:italic; font-weight:500; font-size:1.3rem;
  line-height:1.6; color:var(--nil); border:0; background:none; padding:0; margin-bottom:26px; }
.aeg-article p.lead strong{ font-style:normal; }

/* Inline-Fragenbox ausblenden (Sidebar-Inhalt ersetzt sie) */
.aeg-article .aeg-fragenbox{ display:none !important; }
/* CTA bleibt als farbiger Block (kein „Text in Box"-Problem, gewollt) */
.aeg-article .aeg-cta{ background:linear-gradient(135deg,var(--nil),var(--nil2)); color:#fff;
  border:0; border-radius:8px; padding:6px 4px; margin:34px 0; }
.aeg-article .aeg-cta .panel-body{ color:#fff; } .aeg-article .aeg-cta a{ color:var(--sand); font-weight:600; }

/* ---- Sidebar ---- */
.content.aeg-page .aeg-side{ position:sticky; top:84px; align-self:start; }
.aeg-side-card{ border-top:3px solid var(--terra); padding-top:14px; margin-bottom:26px; }
.aeg-side-t{ font-family:var(--label); font-size:.7rem; font-weight:700; letter-spacing:.12em;
  text-transform:uppercase; color:var(--nil); margin-bottom:10px; }
/* Schnellfakten-Tabelle in der Sidebar: zeilen statt Box */
.aeg-side-card table.table-striped{ width:100%; }
.aeg-side-card table.table-striped tr{ display:flex; flex-direction:column; padding:8px 0; border-bottom:1px solid var(--line); }
.aeg-side-card table.table-striped td{ border:0; padding:0; }
.aeg-side-card table.table-striped td:first-child{ font-family:var(--label); font-size:.66rem; font-weight:700;
  letter-spacing:.08em; text-transform:uppercase; color:var(--terra-deep); }
.aeg-side-card table.table-striped td:first-child strong{ font-weight:700; }
.aeg-side-card table.table-striped td:last-child{ color:var(--ink); font-size:.95rem; }
.aeg-toc nav{ display:block; }
.aeg-toc nav a{ display:block; color:var(--nil); text-decoration:none; font-size:.9rem;
  padding:6px 0 6px 14px; border-left:2px solid var(--sand-light); }
.aeg-toc nav a:hover{ border-color:var(--terra); color:var(--terra); }

@media(max-width:900px){ .content.aeg-page .aeg-side{ position:static; } }

/* ---- Content-Sektion NICHT als graue Box absetzen (Auftraggeber-Wunsch) ---- */
.aeg-article .section,
.aeg-article div.section-text{
  background:none !important; background-color:transparent !important;
  box-shadow:none !important; border:0 !important; padding:0 !important; margin:0 !important;
}

/* ---- Sidebar-Boxen ohne Hintergrund/Streifen (wie Mockup) ---- */
.aeg-side-card table,
.aeg-side-card table.table-striped,
.aeg-side-card table.table-striped tbody,
.aeg-side-card table.table-striped tr,
.aeg-side-card table.table-striped td{
  background:none !important; background-color:transparent !important; box-shadow:none !important;
}
.aeg-side .aeg-toc,
.aeg-side-card.aeg-toc{
  background:none !important; background-color:transparent !important; box-shadow:none !important;
  border-radius:0 !important; padding:14px 0 0 0 !important; border-top:3px solid var(--terra) !important;
}

/* ============================================================
   STARTSEITE 2026 (Nachtblau & Gold) — Hubs / Reiseziele / Band
   ============================================================ */
.aeg-hero--home .aeg-hero__eyebrow{ font-family:var(--label); font-size:.8rem; font-weight:700;
  letter-spacing:.22em; text-transform:uppercase; color:var(--terra); }
.aeg-hero--home::after{ background:linear-gradient(120deg,rgba(20,32,25,.86) 0%,rgba(20,32,25,.5) 55%,rgba(20,32,25,.24) 100%); }

.aeg-shell2{ max-width:1200px; margin:0 auto; padding:0 30px; }
.aeg-sec{ padding:48px 0; }
.aeg-sec-h{ text-align:center; margin-bottom:28px; }
.aeg-sec-h .aeg-eyebrow{ font-family:var(--label); font-size:.74rem; font-weight:700; letter-spacing:.18em;
  text-transform:uppercase; color:var(--terra-deep); }
.aeg-sec-h h2{ font-family:var(--serif); font-weight:700; color:var(--nil); font-size:clamp(2rem,3.6vw,2.7rem); margin-top:.4rem; }
.aeg-sec-h p{ color:var(--grey); max-width:54ch; margin:.6rem auto 0; }

/* Hub-Grid (BILDKACHELN — Riad Noir) */
.aeg-hubs{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.aeg-hub{ background:var(--white); border:1px solid var(--line); border-radius:8px; overflow:hidden;
  text-decoration:none; color:var(--ink); transition:transform .2s,box-shadow .2s; display:block; }
.aeg-hub:hover{ transform:translateY(-4px); box-shadow:0 16px 36px rgba(40,30,20,.14); }
.aeg-hubimg{ height:150px; background-size:cover; background-position:center; background-color:var(--nil-soft); }
.aeg-hubbody{ padding:16px 20px 18px; border-top:3px solid var(--terra); }
.aeg-hub h3{ font-family:var(--serif); font-size:1.3rem; color:var(--nil); margin-bottom:4px; }
.aeg-hub p{ color:var(--grey); font-size:.93rem; margin-bottom:10px; }
.aeg-hublink{ font-family:var(--label); font-size:.74rem; font-weight:700; letter-spacing:.04em;
  text-transform:uppercase; color:var(--terra-deep); }

/* Reiseziele (Nachtblau-Sektion) */
.aeg-sec--dark{ background:var(--nil); color:#fff; }
.aeg-sec--dark .aeg-sec-h h2{ color:#fff; }
.aeg-sec--dark .aeg-sec-h .aeg-eyebrow{ color:var(--terra); }
.aeg-sec--dark .aeg-sec-h p{ color:rgba(255,253,249,.8); }
.aeg-zgrid{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.aeg-zcard{ border-radius:8px; overflow:hidden; text-decoration:none; background:var(--nil-soft);
  box-shadow:0 10px 30px rgba(0,0,0,.25); transition:transform .2s; }
.aeg-zcard:hover{ transform:translateY(-4px); }
.aeg-zimg{ height:150px; background-size:cover; background-position:center; }
.aeg-zbody{ padding:14px 16px; }
.aeg-ztag{ font-family:var(--label); font-size:.64rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--terra); }
.aeg-zbody h3{ font-family:var(--serif); font-size:1.2rem; color:#fff; margin-top:2px; }
.aeg-zmore{ text-align:center; margin-top:34px; }
.aeg-zmore a{ font-family:var(--label); font-weight:700; font-size:.8rem; letter-spacing:.06em; text-transform:uppercase;
  color:var(--terra); text-decoration:none; border-bottom:2px solid var(--terra); padding-bottom:4px; }

/* Highlight-Band (Gold) */
.aeg-band{ background:var(--terra); color:var(--nil2); }
.aeg-band__in{ max-width:1100px; margin:0 auto; padding:40px 30px; display:grid; grid-template-columns:repeat(3,1fr); gap:34px; }
.aeg-band h3{ font-family:var(--serif); font-size:1.3rem; margin-bottom:4px; color:var(--nil2); }
.aeg-band p{ font-size:.95rem; opacity:.85; }

/* Magazin */
.aeg-mag2{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.aeg-mcard{ border-radius:8px; overflow:hidden; text-decoration:none; background:var(--white); border:1px solid #ece3d2; display:block; }
.aeg-mcard:hover{ box-shadow:0 14px 32px rgba(60,42,20,.12); }
.aeg-mimg{ height:140px; background-size:cover; background-position:center; }
.aeg-mbody{ padding:14px 16px; }
.aeg-mtag{ font-family:var(--label); font-size:.62rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--terra-deep); }
.aeg-mbody h3{ font-family:var(--serif); font-size:1.05rem; color:var(--nil); margin-top:3px; }

@media(max-width:900px){
  .aeg-hubs,.aeg-zgrid,.aeg-mag2{ grid-template-columns:1fr 1fr; }
  .aeg-band__in{ grid-template-columns:1fr; gap:20px; }
}

/* ============================================================
   Footer (Riad Noir, 4-spaltig) — parts/footer-content.php
   ============================================================ */
body #footer{ background:var(--nil2) !important; border:0 !important; box-shadow:none !important;
  padding:0 !important; margin:0 !important; color:rgba(255,255,255,.75); }
body #footer .container-fluid{ padding:0 !important; }
.aeg-foot{ background:var(--nil2); color:rgba(255,255,255,.75); padding:48px 0 22px; }
.aeg-foot-in{ max-width:1200px; margin:0 auto; padding:0 30px;
  display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:32px; }
.aeg-foot-logo{ font-family:var(--serif); font-size:1.5rem; color:#fff; font-weight:700; letter-spacing:-.01em; }
.aeg-foot-logo b{ color:var(--terra); }
.aeg-foot-brand p{ font-size:.92rem; margin-top:8px; line-height:1.6; color:rgba(255,255,255,.7); max-width:36ch; }
.aeg-foot-col h4{ font-family:var(--label); font-size:.72rem; font-weight:700; letter-spacing:.1em;
  text-transform:uppercase; color:var(--terra); margin-bottom:11px; }
.aeg-foot-col a{ display:block; color:rgba(255,255,255,.72); text-decoration:none; padding:3px 0; font-size:.92rem; }
.aeg-foot-col a:hover{ color:#fff; }
.aeg-foot-copy{ max-width:1200px; margin:26px auto 0; padding:16px 30px 0;
  border-top:1px solid rgba(255,255,255,.12); display:flex; justify-content:space-between;
  align-items:center; font-size:.82rem; color:rgba(255,255,255,.6); }
.aeg-foot-copy a{ color:var(--terra); text-decoration:none; }
.aeg-foot-copy a:hover{ color:#fff; }
@media(max-width:900px){ .aeg-foot-in{ grid-template-columns:1fr 1fr; } .aeg-foot-copy{ flex-direction:column; gap:8px; } }
@media(max-width:560px){ .aeg-foot-in{ grid-template-columns:1fr; } }

/* ============================================================
   TYPOGRAFIE — National-Geographic-Editorial-Skala (Auftraggeber 2026-06-05).
   WICHTIG: ts24-Basis setzt die HTML-Wurzel auf 10px (62,5%-Trick), daher
   rendern rem-Werte zu klein -> hier konsequent in PX (root-unabhaengig).
   ============================================================ */
body{ font-size:19px; line-height:1.7; }
/* Header-Navigation (deutlich groesser) */
.aeg-menu{ gap:30px; }
.aeg-menu a{ font-size:17px; letter-spacing:.04em; }
body.aeg-scrolled .aeg-menu a{ font-size:17px; }
.aeg-logo-word{ font-size:27px; }
/* Lesespalte (NatGeo-Body: gross & luftig) */
.aeg-article.section-text{ font-size:20px; line-height:1.8; }
.aeg-article p{ margin-bottom:22px; }
.aeg-article h2{ font-size:35px; line-height:1.18; margin:44px 0 14px; }
.aeg-article h3{ font-size:24px; }
.aeg-article p.lead, .section-text p.lead{ font-size:26px; line-height:1.5; }
.aeg-head h1{ font-size:clamp(34px,5.6vw,60px); line-height:1.04; }
.aeg-head .aeg-eyebrow{ font-size:14px; }
.aeg-bc{ font-size:14px; }
/* Schnellfakten / Sidebar */
.aeg-side-card table.table-striped td:last-child{ font-size:18px; }
.aeg-side-card table.table-striped td:first-child{ font-size:12px; }
.aeg-side-t{ font-size:13px; }
/* Startseite */
.aeg-hero h1{ font-size:clamp(50px,6.2vw,84px); line-height:1.02; }
.aeg-hero p{ font-size:23px; }
.aeg-hero__eyebrow, .aeg-hero--home .aeg-hero__eyebrow{ font-size:16px; }
.aeg-sec-h h2{ font-size:clamp(36px,4.4vw,54px); }
.aeg-sec-h p{ font-size:19px; }
.aeg-sec-h .aeg-eyebrow, .aeg-eyebrow{ font-size:14px; }
.aeg-hub h3{ font-size:26px; }
.aeg-hub p{ font-size:17px; }
.aeg-hublink{ font-size:13px; }
.aeg-zbody h3{ font-size:23px; }
.aeg-band h3{ font-size:26px; }
.aeg-band p{ font-size:17px; }
.aeg-mbody h3{ font-size:20px; }
.aeg-btn{ font-size:17px; }
/* Footer */
.aeg-foot-col a{ font-size:17px; }
.aeg-foot-col h4{ font-size:13px; }
.aeg-foot-logo{ font-size:29px; }
.aeg-foot-brand p{ font-size:17px; }

/* ============================================================
   MOBIL: Inhaltsangabe/Sidebar an den ANFANG des Contents (Auftraggeber 2026-06-05).
   Auf kleinen Screens kippt das 2-Spalten-Layout in eine Spalte; die Sidebar
   (Auf einen Blick + Inhalt/TOC) stand bisher am Ende -> jetzt per order:-1 oben.
   ============================================================ */
@media(max-width:899px){
  .content.aeg-page .aeg-shell{ display:flex; flex-direction:column; }
  .content.aeg-page .aeg-side{ order:-1; margin-bottom:26px; }
  .content.aeg-page .aeg-article{ order:0; }
}
/* ============================================================
   Mobil-Fix (Auftraggeber 2026-06-05) — gilt für aegypten.de, marrakesch.com,
   nilkreuzfahrten.com (gemeinsamer Layout-B-Magazin-Layer).
   Sobald der Bildschirm zu schmal ist (<900px), um die beiden Sidebar-Boxen
   ("Auf einen Blick" + "Inhalt"/TOC) rechts neben dem Text anzuzeigen, kippt
   das Layout in eine Spalte. Bisher rutschten die Boxen ans ENDE des Contents.
   Jetzt erscheinen sie per order:-1 ÜBER dem Fliesstext.
   (Eigene Datei = zugleich Cache-Bust der W3TC/Minify-Gruppe.)
   ============================================================ */
@media(max-width:899px){
  .content.aeg-page .aeg-shell{ display:flex; flex-direction:column; }
  .content.aeg-page .aeg-side{ order:-1; margin-bottom:26px; }
  .content.aeg-page .aeg-article{ order:0; }
  /* Sidebar-Karten im Mobil-Modus etwas kompakter über dem Text */
  .content.aeg-page .aeg-side .aeg-side-card{ margin-bottom:18px; }
}
/* ============================================================
   Marrakesch.com — Feinschliff (Auftraggeber 2026-06-05)
   1) Footer-Kontrast: ts24-Basis faerbt #footer a auf #333 (unlesbar auf
      Nachtgruen). Hoehere Spezifitaet -> helle, gut lesbare Links.
   (Eigene Datei = zugleich Cache-Bust der W3TC/Minify-Gruppe.)
   ============================================================ */
#footer .aeg-foot-col a{ color:rgba(255,255,255,.9); }
#footer .aeg-foot-col a:hover{ color:#fff; text-decoration:underline; }
#footer .aeg-foot-brand p{ color:rgba(255,255,255,.85); }
#footer .aeg-foot-copy,
#footer .aeg-foot-copy span{ color:rgba(255,255,255,.78); }
#footer .aeg-foot-copy a{ color:var(--sand); }
#footer .aeg-foot-copy a:hover{ color:#fff; }
#footer .aeg-foot-col h4{ color:var(--sand); }

/* 2) Inhaltsangabe/Sidebar groesser (NatGeo): TOC-Links + Box-Labels waren
   rem-basiert (10px-Wurzel) viel zu klein -> px. */
.content.aeg-page .aeg-side{ font-size:17px; }
.aeg-side-t{ font-size:15px; letter-spacing:.1em; }
.aeg-side-card table.table-striped td:first-child{ font-size:13px; }
.aeg-side-card table.table-striped td:last-child{ font-size:18px; }
.aeg-toc nav a{ font-size:16px; padding:8px 0 8px 14px; line-height:1.4; }
