/* ---------- Design-Variablen ---------- */
:root {
  --color-page-bg: #f5f6fa;               /* Seite */
  --color-page-bg-alt: #ffffff;          /* helle Flächen */
  --color-header-bg: rgba(255, 255, 255, 0.92);
  --color-footer-bg: #ffffff;

  --color-accent: #ffe070;               /* Gelb */
  --color-accent-soft: rgba(255, 224, 112, 0.2);
  --color-accent-border: rgba(255, 224, 112, 0.65);

  --color-text: #111827;                 /* fast schwarz */
  --color-text-soft: #4b5563;            /* grau */
  --color-text-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-border-soft: rgba(229, 231, 235, 0.7);
  --color-danger: #b91c1c;

  --radius-pill: 999px;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;

  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
  --shadow-strong: 0 18px 45px rgba(15, 23, 42, 0.14);

  --font-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: inherit;

  --container-max-width: 1120px;
  --header-height: 72px;
}

/* ========================================
   Reset / Base
   ======================================== */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-soft);
  background: var(--color-page-bg);
}

a {
  color: #111827;
  text-decoration: none;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease,
    box-shadow 0.16s ease, transform 0.16s ease;
}

a:hover,
a:focus-visible { color: #000000; }

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

::selection { background: var(--color-accent-soft); }

/* Standard-Container */
.inner {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.clear { clear: both; }

/* ========================================
   Header & Navigation (Portal-Style, clean)
   ======================================== */

.head {
  position: sticky;
  top: 0;
  z-index: 60;
  width: 100%;
  background: var(--color-header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

/* Innenbereich wie Portal */
.head .inner {
  max-width: 1280px;
  padding: 0 2.5rem;
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  justify-content: space-between;
}

/* Reihenfolge: Logo | Nav | Lang | Burger */
#logo { order: 0; flex: 0 0 auto; }
.nav  { order: 1; flex: 1 1 auto; }
.headnav { order: 2; flex: 0 0 auto; }
.open_nav { order: 3; flex: 0 0 auto; }

/* Logo */
#logo a {
  display: inline-block;
  width: 160px;
  height: 56px;
  background: url("/typo3conf/ext/paan/Resources/Public/Images/logo.png")
              no-repeat left center / contain;
  overflow: hidden;
  text-indent: -9999px;
}

/* ========================================
   Sprachwechsler (Desktop im Header)  ✅ FIX
   - Schrift bleibt gleich
   - Paddings/Höhen werden PORTAL-klein
   ======================================== */

.headnav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: 1rem;
}

/* Container-Kapsel: kleiner */
.lang-switch {
  list-style: none;
  margin: 0;
  padding: 2px;                /* kleiner */
  display: inline-flex;
  align-items: center;
  gap: 4px;                    /* kleiner */
  border-radius: 999px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;

  /* harte Neutralisierung gegen „Riesen“-Styles */
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  height: auto !important;
  line-height: normal;
}

.lang-switch li {
  margin: 0;
  padding: 0;
  position: static;
  float: none !important;
}
.lang-switch li::before { content: none !important; }

/* Pills: Schrift bleibt (0.75rem), aber kompaktere Fläche */
.lang-switch li span, .lang-switch li span a
 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.0rem 0.3rem;
    min-height: 28px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    /* letter-spacing: 0.08em; */
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    width: auto !important;
    max-width: none !important;
}

/* Active */
.lang-switch li.act span,
.lang-switch li.act span a {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* Inactive */
.lang-switch li:not(.act) span,
.lang-switch li:not(.act) span a {
  background: #fff;
  color: #374151;
  border-color: #d1d5db;
}

.lang-switch li:not(.act) span:hover,
.lang-switch li:not(.act) span a:hover {
  background: #f3f4f6;
}

/* ========================================
   Desktop-Navigation
   ======================================== */

.nav { margin-left: 2.5rem; }

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.75rem;
  justify-content: center;
}

.nav li { margin: 0; position: static; }
.nav li::before { content: none !important; }

.nav li a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.1rem;
  border-radius: 0.9rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text-soft);
  border: 1px solid transparent;
  text-decoration: none;
}

.nav li a:hover {
  background-color: var(--color-accent-soft);
  border-color: var(--color-accent-border);
  color: #000;
}

.nav li.act a,
.nav li.cur.act a {
  background-color: rgba(255, 224, 112, 0.4);
  border-color: rgba(255, 224, 112, 0.9);
  color: #111827;
  box-shadow: 0 2px 8px rgba(255, 224, 112, 0.4);
}

/* ========================================
   Mobile Toggle Button (Burger/X)
   ======================================== */

.open_nav { display: none; margin-left: 0.75rem; }

.open_nav .hamburger {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 224, 112, 0.45);
  background: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.open_nav .hamburger-box {
  position: relative;
  width: 24px;
  height: 18px;
}

.open_nav .hamburger-inner,
.open_nav .hamburger-inner::before,
.open_nav .hamburger-inner::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: #111827;
  border-radius: 999px;
  transition: transform 0.22s ease, opacity 0.18s ease, top 0.22s ease;
}

.open_nav .hamburger-inner { top: 8px; }
.open_nav .hamburger-inner::before { top: -7px; }
.open_nav .hamburger-inner::after  { top: 7px; }

/* Burger -> X */
.open_nav .hamburger.is-active .hamburger-inner { transform: rotate(45deg); }
.open_nav .hamburger.is-active .hamburger-inner::before { top: 0; opacity: 0; }
.open_nav .hamburger.is-active .hamburger-inner::after  { top: 0; transform: rotate(-90deg); }

/* Overlay (klickbar) */
.nav-backdrop {
  position: fixed;
  inset: 0;
  top: var(--header-height);
  background: rgba(0,0,0,.30);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  z-index: 50;
}

/* ========================================
   Mobile Nav (wie Portal) ✅ Switcher FIX
   - Header-Language verschwindet
   - Language im Drawer: kompakt (keine „Blase“)
   ======================================== */

@media (max-width: 880px) {
  .head .inner { padding: 0 1.25rem; gap: 0.75rem; }
  .nav { margin-left: 0; }

  /* Language im Header auf Mobile AUS */
  .headnav { display: none !important; }

  .open_nav { display: block; }

  /* Drawer */
  .nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-height);
    z-index: 55;

    background: #fff;
    border-top: 1px solid rgba(229, 231, 235, 0.85);
    border-bottom: 1px solid rgba(229, 231, 235, 0.85);

    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  body.nav-open .nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  body.nav-open .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  body.nav-open { overflow: hidden; }

  /* Link-Liste */
  .nav ul {
    margin: 0;
    padding: 16px 16px 10px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
    justify-content: flex-start;
  }

  .nav li a {
    width: 100%;
    display: block;
    padding: 16px 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(255, 224, 112, 0.33);
    color: #111827;
    font-weight: 600;
  }

  .nav li a:hover { background: rgba(255, 224, 112, 0.16); }

  .nav li.act a,
  .nav li.cur.act a {
    background: rgba(255, 224, 112, 0.32);
    border-color: rgba(255, 224, 112, 0.55);
    box-shadow: none;
  }

  /* ---------- Language Bereich im Drawer (robust) ---------- */

  /* Falls dein Markup eine „LANGUAGE“-Zeile hat (oder du sie später einbaust) */
  .nav .nav-langbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-top: 1px solid rgba(229, 231, 235, 0.85);
  }

  .nav .nav-langbar .label {
    font-size: 12px;
    color: #6b7280;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
  }

  /* Wichtig: Switcher im Drawer NIE riesig / NIE zentriert in „Blase“ */
  .nav .lang-switch {
    /* gleiche Optik wie Header, nur sauber positioniert */
    margin: 0 !important;
    padding: 2px !important;
    gap: 4px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;

    border-radius: 999px !important;
    background: #f3f4f6 !important;
    border: 1px solid #e5e7eb !important;

    /* harte Neutralisierung gegen Theme-Styles */
    position: static !important;
    inset: auto !important;
    transform: none !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
  }

  .nav .lang-switch li span,
  .nav .lang-switch li span a {
    padding: 0.32rem 0.72rem !important;
    min-height: 28px !important;
    width: auto !important;
  }

  /* falls TYPO3 den Switcher in einem separaten Container mit „komischen“ Größen rendert */
  .nav .lang-switch,
  .nav .lang-switch * {
    box-shadow: none !important;
  }

  .nav .nav-fade {
    height: 12px;
    width: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.05), transparent);
  }
}

/* ========================================
   Subhead / Hero-Bild
   ======================================== */

#subhead { width: 100%; }

#subhead2 {
  width: 100%;
  max-width: 100% !important;
  margin: 0;
  padding: 0;
}

#subhead .ce-image,
#subhead .ce-gallery,
#subhead .ce-outer,
#subhead .ce-inner,
#subhead .ce-row,
#subhead .ce-column,
#subhead figure.image {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0;
  padding: 0;
}

#subhead img.image-embed-item {
  width: 100%;
  max-width: 100%;
  height: clamp(420px, 70vh, 720px);
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0;
  image-rendering: auto;
}

#subhead .ce-textpic { position: relative; overflow: hidden; }

#subhead .ce-bodytext {
  position: absolute;
  left: 50%;
  top: 32%;
  transform: translate(-50%, -15%);
  width: min(90%, 900px);
  text-align: center;
  z-index: 10;
  color: #ffffff !important;
}

#subhead .ce-bodytext::before {
  content: "";
  position: absolute;
  inset: -2.5rem -4rem;
  background:
    radial-gradient(circle at center,
      rgba(0, 0, 0, 0.70) 0%,
      rgba(0, 0, 0, 0.55) 40%,
      rgba(0, 0, 0, 0.0) 100%);
  z-index: -1;
}

#subhead .ce-bodytext p:nth-child(1) strong {
  display: block;
  font-size: clamp(2.4rem, 3.4vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  font-weight: 700;
  color: #ffffff !important;
  margin: 0 0 0.8rem;
}

#subhead .ce-bodytext p:nth-child(2) {
  margin: 0 0 1.6rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffd75a !important;
}

#subhead .ce-bodytext p:nth-child(3) { margin: 0; }

#subhead .ce-bodytext p:nth-child(3) a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.9rem;
  border-radius: var(--radius-pill);
  background-color: var(--color-accent);
  border: 2px solid var(--color-accent);
  color: #2b2b2b;
  font-weight: 600;
  font-size: 0.98rem;
  box-shadow: 0 4px 20px rgba(255, 224, 112, 0.35);
}
  
#subhead .ce-bodytext p:nth-child(3) a:hover {
  background-color: #ffe78b;
  border-color: #ffe78b;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(255, 224, 112, 0.45);
}

@media (max-width: 768px) {
  #subhead img.image-embed-item { height: 360px; }
  #subhead .ce-bodytext { top: 3%; transform: translate(-50%, 0%); width: 92%; }
  #subhead .ce-bodytext::before { inset: -2rem -1.5rem; }
}

/* Mobile Anpassung */

/* ========================================
   Hauptcontent
   ======================================== */

#site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.allcont { flex: 1 0 auto; }

.cont {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

/* Typografie */
h1, h2, h3, h4, h5 {
  margin: 0 0 0.75rem;
  font-family: var(--font-heading);
  color: var(--color-text);
}

h1 { font-size: clamp(2.1rem, 3vw, 2.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 2.5vw, 2.1rem); font-weight: 500; }
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.08em; }
h5 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--color-text-muted); }

p { margin: 0 0 0.9rem; color: var(--color-text-soft); }

.cont > .frame.frame-type-textmedia .ce-bodytext,
.cont > .frame.frame-type-textpic .ce-bodytext,
.cont > .frame.frame-type-text .ce-bodytext,
.cont > .frame.frame-type-text {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Tabellen */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0 1.8rem;
  font-size: 0.93rem;
}

table th,
table td {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--color-border-soft);
}

table th {
  text-align: left;
  font-weight: 600;
  color: var(--color-text-muted);
  background: #f9fafb;
}

table tr:nth-child(even) td { background: #f9fafb; }

.contenttable td:first-child {
  font-weight: 500;
  color: var(--color-text-muted);
}

.tabelle-basic {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

/* ========================================
   Listen
   ======================================== */

ul, ol { margin: 0 0 1.1rem; }
ol { padding-left: 1.5rem; }

.cont ul,
.gridwrapper ul,
.ce-bodytext ul {
  list-style: none;
  padding-left: 0;
}

.cont ul li,
.gridwrapper ul li,
.ce-bodytext ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.35rem;
}

.cont ul li::before,
.gridwrapper ul li::before,
.ce-bodytext ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-size: 0.85rem;
  color: var(--color-accent);
}

.nav ul li,
.footnav li { padding-left: 0; }

.nav ul li::before,
.footnav li::before { content: none !important; }

/* ========================================
   Textlinks im Content – gelber Underline
   ======================================== */

.cont a:not(.button) {
  position: relative;
  font-weight: 500;
  color: #111827;
}

.cont a:not(.button)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.08em;
  width: 100%;
  height: 0.16em;
  background: linear-gradient(90deg, #ffe070, rgba(255, 224, 112, 0.3));
  border-radius: 999px;
  transform-origin: left;
  transform: scaleX(0.9);
  opacity: 0.85;
  transition: transform 0.16s ease, opacity 0.16s ease;
  pointer-events: none;
}

.cont a:not(.button):hover::after { transform: scaleX(1); opacity: 1; }

/* ========================================
   Links & Buttons
   ======================================== */

a.button,
p a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-pill);
  background-color: var(--color-accent);
  border: 2px solid var(--color-accent);
  color: #2b2b2b;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 20px rgba(255, 224, 112, 0.35);
}

a.button:hover {
  background-color: #ffe78b;
  border-color: #ffe78b;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(255, 224, 112, 0.45);
}

/* ========================================
   Bilder & Text/Bild-Elemente
   ======================================== */

.ce-image,
.ce-textpic { margin-bottom: 2rem; }

.ce-image img,
.ce-textpic img,
.image img,
.image-embed-item {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.ce-textpic.ce-center .ce-bodytext,
.ce-textpic.ce-above .ce-bodytext { margin-top: 1rem; }

.ce-textpic.ce-intext {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.ce-textpic.ce-right.ce-intext { flex-direction: row; }
.ce-textpic.ce-left.ce-intext  { flex-direction: row-reverse; }

.ce-textpic .ce-bodytext { flex: 1; }

@media (max-width: 768px) {
  .ce-textpic.ce-intext { flex-direction: column; }
}

/* ========================================
   TYPO3 ce-gallery (mehrere Bilder)
   ======================================== */

.ce-gallery { width: 100%; }
.ce-gallery .ce-outer,
.ce-gallery .ce-inner { width: 100%; }

.ce-gallery .ce-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.ce-gallery .ce-column { flex: 1 1 100%; }

.ce-gallery[data-ce-columns="1"] .ce-column { flex-basis: 100%; }
.ce-gallery[data-ce-columns="2"] .ce-column { flex-basis: calc(50% - 0.5rem); }
.ce-gallery[data-ce-columns="3"] .ce-column { flex-basis: calc(33.333% - 0.7rem); }

.ce-gallery img.image-embed-item {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1rem;
  object-fit: cover;
}

@media (max-width: 768px) {
  .ce-gallery .ce-column { flex-basis: 100% !important; }
}

/* ========================================
   Grid-System (gridwrapper / gridrow / col)
   ======================================== */

.gridwrapper { margin: 2.5rem 0; }

.gridrow {
  display: flex;
/*   flex-wrap: wrap; */
  gap: 1.5rem;
}

.gridrow .col { flex: 1 1 100%; float: none; }

.gridrow.box50 .col { flex: 1 1 calc(50% - 0.75rem); }
.gridrow.box25 .col { flex: 1 1 calc(25% - 1rem); }

.gridrow.box33-66 .col1 { flex: 0 0 33.333%; }
.gridrow.box33-66 .col2 { flex: 0 0 66.666%; }

.gridrow.box66-33 .col1 { flex: 0 0 66.666%; }
.gridrow.box66-33 .col2 { flex: 0 0 33.333%; }

.gridrow.box100 .col { flex: 1 1 100%; }

.gridwrapper .frame.frame-type-text,
.gridwrapper .frame.frame-type-textpic {
  background: linear-gradient(120deg, rgba(255, 224, 112, 0.04) 0%, #ffffff 100%);
  border-radius: 1.25rem;
  padding: 1.6rem 1.8rem;
  border: 1px solid rgba(255, 224, 112, 0.18);
  box-shadow: var(--shadow-soft);
}

.gridwrapper .frame header h3,
.gridwrapper .frame header h4 {
  margin-bottom: 0.5rem;
  text-align: left;
}

@media (max-width: 768px) {
  .gridrow .col { flex: 1 1 100%; }
}

/* ========================================
   Divider & Farbige Boxen
   ======================================== */

/* hr.ce-div { */
/*   border: none; */
/*   border-top: 1px solid var(--color-border); */
/*   margin: 2.5rem 0; */
/* } */
/* Full-width "brush stroke" HR in PAAN yellow */
hr {
  border: 0;
  height: 3px;
  width: 100%;
  margin: 2rem 0;
  border-radius: 999px;

  /* same vibe as your link underline */
  background: linear-gradient(
    90deg,
    rgba(255, 224, 112, 1) 0%,
    rgba(255, 224, 112, 0.85) 35%,
    rgba(255, 224, 112, 0.35) 70%,
    rgba(255, 224, 112, 0) 100%
  );

  /* subtle brush-y texture */
  filter: saturate(1.05);
}

hr::before {
  content: "";
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;

  /* tiny irregularities to feel like a brush */
  background:
    radial-gradient(12px 3px at 12% 50%, rgba(255,255,255,0.18), transparent 70%),
    radial-gradient(18px 3px at 38% 55%, rgba(255,255,255,0.12), transparent 70%),
    radial-gradient(14px 3px at 62% 45%, rgba(255,255,255,0.10), transparent 70%),
    radial-gradient(20px 3px at 82% 52%, rgba(255,255,255,0.08), transparent 70%);
  opacity: 0.9;
  pointer-events: none;
}


.frame.frame-layout-100 {
  background: linear-gradient(120deg, rgba(255, 224, 112, 0.16) 0%, #ffffff 80%);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.9rem;
  border: 1px solid rgba(255, 224, 112, 0.6);
  box-shadow: var(--shadow-strong);
}

.gridwrapper.c32 .frame {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.9rem;
  border: 1px solid var(--color-border-soft);
  box-shadow: var(--shadow-soft);
}

/* ========================================
   Social Media Bereich
   ======================================== */

.socialmedia {
  max-width: var(--container-max-width);
  margin: 0 auto 2.5rem;
  padding: 0 1.5rem;
}

.socialmedia_inner {
  border-radius: 999px;
  border: 1px dashed var(--color-border-soft);
  min-height: 40px;
}

/* ========================================
   Footer (Portal-Style)
   ======================================== */

.foot {
  padding: 1.8rem 0 2.2rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-footer-bg);
  color: var(--color-text-muted);
  box-shadow: 0 -4px 32px -6px rgba(0, 0, 0, 0.03);
}

.foot .inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
}

.footcol {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footcol.footleft {
  flex-direction: column;
  align-items: center;
}

.footcol.footleft .footnav { order: 1; }
.footcol.footleft .copy { order: 2; }

.copy p { margin: 0; font-size: 0.85rem; }

.footnav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

.footnav li { margin: 0; position: static; }
.footnav li::before { content: none !important; }

.footnav li a {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.footnav li a:hover {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footcol.footlogo { margin-top: 0.25rem; }

.footlogo span {
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .foot .inner { align-items: center; }
  .footcol.footleft { align-items: center; }
}


/* External Link Icon */
a.is-external::after {
  content: "";
  display: inline-block;
  width: 0.95em;
  height: 0.95em;
  margin-left: 0.35em;
  transform: translateY(-0.1em);
  opacity: 0.75;

  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 3h7v7h-2V6.41l-9.29 9.3-1.42-1.42 9.3-9.29H14V3z'/%3E%3Cpath d='M5 5h6V3H5a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2v-6h-2v6H5V5z'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 3h7v7h-2V6.41l-9.29 9.3-1.42-1.42 9.3-9.29H14V3z'/%3E%3Cpath d='M5 5h6V3H5a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2v-6h-2v6H5V5z'/%3E%3C/svg%3E") no-repeat center / contain;
}
