/*
Theme Name: Zoll-Infoportal
Theme URI: https://zoll-infoportal.de
Description: Child-Theme für zoll-infoportal.de auf Basis von Astra. Redaktionelles Informationsportal für Bewerber, Anwärter und Beamte der Bundeszollverwaltung. Design: Marineblau + warmes Gold, Spectral/Manrope/IBM Plex Mono.
Author: Andreas Rothermund
Template: astra
Version: 1.0.0
Text Domain: zoll-infoportal
*/

/* =========================================================================
   DESIGN-TOKENS (Zoll-Infoportal — Marineblau + warmes Gold)
   ========================================================================= */
:root {
  --p-primary:     #1b3a6b;
  --p-primary-d:   #0e2244;
  --p-primary-50:  #edf1f7;
  --p-primary-100: #dce4f0;
  --p-accent:      #b8862b;
  --p-accent-400:  #e0b35a;
  --p-accent-600:  #9a6f1f;
  --p-accent-700:  #7c5816;
  --p-coal-900:    #121722;
  --p-coal-800:    #1b2230;
  --p-ink:         #14161a;
  --p-ink-2:       #20242b;
  --p-text:        #333a44;
  --p-muted:       #6a7280;
  --p-line:        #d9dde3;
  --p-line-2:      #e9ebef;
  --p-bg-soft:     #f6f7f8;
  --p-bg:          #ffffff;
  --p-success:     #197a4b;

  --font-serif: "Spectral", "Source Serif 4", Georgia, serif;
  --font-sans:  "Manrope", "Public Sans", system-ui, -apple-system, sans-serif;
  --font-mono:  "IBM Plex Mono", ui-monospace, monospace;

  --radius-pill: 999px;
  --radius-card: 16px;
}

/* =========================================================================
   TYPOGRAFIE
   ========================================================================= */
body,
.ast-container,
button, input, select, textarea {
  font-family: var(--font-sans);
  color: var(--p-text);
}
body { background: var(--p-bg); line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

h1, h2, h3, h4, h5, h6,
.entry-title, .ast-archive-title, .site-title {
  font-family: var(--font-serif);
  color: var(--p-ink);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1, .entry-title { font-size: clamp(2.2rem, 4vw, 3.375rem); } /* ~54px */
h2 { font-size: clamp(1.8rem, 3vw, 2.75rem); }                /* ~44px */
h3 { font-size: clamp(1.4rem, 2vw, 1.625rem); }               /* ~26px */

/* Akzent-Hervorhebung: kursiv + Gold (Design-Signatur) */
.serif, .has-serif { font-family: var(--font-serif); }
.accent-em, em.accent, .has-accent-color { color: var(--p-accent); }
h1 em, h2 em, .entry-title em { font-style: italic; color: var(--p-primary); }

.mono, .has-mono { font-family: var(--font-mono); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 0.6875rem; /* 11px */
  color: var(--p-primary);
  font-family: var(--font-sans);
}

/* Fließtext in Artikeln: Spectral, 19px/1.7 */
.single-artikel .entry-content,
.single .entry-content {
  font-family: var(--font-serif);
  font-size: 1.1875rem;
  line-height: 1.7;
  color: var(--p-ink-2);
}
.single-artikel .entry-content p { margin-bottom: 1.4em; }

/* =========================================================================
   LINKS
   ========================================================================= */
a { color: var(--p-primary); }
a:hover, a:focus { color: var(--p-primary-d); }
.entry-content a {
  background-image: linear-gradient(var(--p-accent), var(--p-accent));
  background-size: 0% 2px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .25s ease;
  color: var(--p-primary);
}
.entry-content a:hover { background-size: 100% 2px; }

/* =========================================================================
   BUTTONS  (rund = 999px; nur interaktive Buttons sind rund)
   ========================================================================= */
.ast-button, .button, .wp-block-button__link,
input[type="submit"], button.submit, .menu-toggle,
.ast-custom-button, .wp-block-search__button {
  background-color: var(--p-primary);
  color: #fff;
  border: 2px solid var(--p-primary);
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.7em 1.6em;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.ast-button:hover, .button:hover, .wp-block-button__link:hover,
input[type="submit"]:hover, .wp-block-search__button:hover {
  background-color: var(--p-primary-d);
  border-color: var(--p-primary-d);
  color: #fff;
}
/* Sekundär = Outline */
.is-style-outline .wp-block-button__link, .btn-outline {
  background: transparent; color: var(--p-primary); border: 2px solid var(--p-primary);
}
.is-style-outline .wp-block-button__link:hover, .btn-outline:hover { background: var(--p-primary); color: #fff; }
/* Gold-Button (Newsletter) */
.btn-gold, .wp-block-button.is-style-gold .wp-block-button__link {
  background: var(--p-accent); border-color: var(--p-accent); color: #fff;
}
.btn-gold:hover, .wp-block-button.is-style-gold .wp-block-button__link:hover { background: var(--p-accent-600); border-color: var(--p-accent-600); }

/* Eingabefelder / Suchfeld rund */
.search-field, input[type="email"], input[type="text"], input[type="search"] {
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--p-line);
  font-family: var(--font-sans);
}

/* =========================================================================
   ASTRA-HEADER / NAVIGATION
   ========================================================================= */
.main-header-menu a, .ast-header-navigation-wrap a, .menu-item a {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--p-ink-2);
}
.main-header-menu .current-menu-item > a,
.main-header-menu a:hover {
  color: var(--p-primary);
}
/* aktiver Menüpunkt: 2px Gold-Unterstrich */
.main-header-menu .current-menu-item > a {
  box-shadow: inset 0 -2px 0 var(--p-accent);
}
.site-title, .site-title a { font-family: var(--font-serif); color: var(--p-primary); font-weight: 700; }

/* =========================================================================
   KOMPONENTEN
   ========================================================================= */
/* Tool-Kachel / klickbare Karte */
.card-btn {
  display: block; background: #fff; border: 1px solid var(--p-line);
  border-radius: var(--radius-card); padding: 24px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card-btn:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20,22,26,.10); }
.card-btn .icon-wrap {
  width: 52px; height: 52px; border-radius: 13px;
  background: var(--p-primary-50); color: var(--p-primary);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.card-btn h3 { font-size: 1.3125rem; margin-bottom: 6px; }

/* Content-Karten / Bilder / Tabellen = eckig (0px) */
.content-card, .wp-block-image img, .entry-content table, .info-box, .ast-article-post {
  border-radius: 0;
}

/* Lift-Hover */
.lift { transition: transform .18s ease, box-shadow .18s ease; }
.lift:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20,22,26,.10); }

/* Info-Box („Beispielfall") */
.info-box {
  background: var(--p-primary-50);
  border-left: 4px solid var(--p-primary);
  padding: 18px 22px; margin: 28px 0;
}
/* Blockquote (Gold-Border-left) */
.entry-content blockquote, blockquote {
  border-left: 4px solid var(--p-accent);
  padding-left: 22px; margin: 28px 0;
  font-family: var(--font-serif); font-style: italic; color: var(--p-ink-2);
}

/* Drop-Cap im Artikel */
.single-artikel .entry-content > p:first-of-type::first-letter {
  font-family: var(--font-serif); color: var(--p-primary);
  font-size: 5.5rem; line-height: .82; float: left; padding: 6px 12px 0 0; font-weight: 700;
}

/* Tabellen (Laufbahn-Vergleich) */
.entry-content table { width: 100%; border-collapse: collapse; border: 1px solid var(--p-line); font-family: var(--font-sans); }
.entry-content table th { background: var(--p-primary); color: #fff; padding: 12px 14px; text-align: left; font-weight: 700; }
.entry-content table td { padding: 10px 14px; border-bottom: 1px solid var(--p-line-2); }
.entry-content table tr:nth-child(even) td { background: var(--p-bg-soft); }
.badge { display:inline-block; background: var(--p-primary); color:#fff; border-radius: var(--radius-pill); padding: 2px 10px; font: 700 12px var(--font-sans); }
.badge-gold { background: var(--p-accent); }
.val-num { font-family: var(--font-mono); }
.val-pos { color: var(--p-success); font-family: var(--font-mono); }

/* Eyebrow-/Kategorie-Label (Gold) */
.cat-eyebrow { color: var(--p-accent-700); text-transform: uppercase; letter-spacing: .12em; font: 700 11px var(--font-sans); }

/* Filter-Pillen */
.filter-pill {
  display:inline-block; border:1.5px solid var(--p-line); border-radius: var(--radius-pill);
  padding: 7px 16px; font: 600 13px var(--font-sans); color: var(--p-ink-2); background:#fff;
}
.filter-pill.is-active { background: var(--p-ink); color:#fff; border-color: var(--p-ink); }

/* Bild-Platzhalter (bis echte Featured Images da sind) */
.img-placeholder { position: relative; background: linear-gradient(135deg, #c6cbd2 0%, #a9b0ba 100%); overflow:hidden; }
.img-placeholder.coal  { background: linear-gradient(160deg, var(--p-coal-800) 0%, var(--p-coal-900) 100%); }
.img-placeholder.brand { background: linear-gradient(150deg, var(--p-primary) 0%, var(--p-primary-d) 75%); }

/* =========================================================================
   DUNKLE SEKTIONEN (Hero/Footer/Newsletter/Utility) — Anthrazit
   ========================================================================= */
.section-coal { background: var(--p-coal-900); color: #fff; }
.section-coal h1, .section-coal h2, .section-coal h3 { color: #fff; }
.section-coal .eyebrow { color: var(--p-accent-400); }
.site-footer, .ast-footer-overlay, footer.site-footer {
  background: var(--p-coal-900);
  color: #c7ccd4;
}
.site-footer a { color: #c7ccd4; }
.site-footer a:hover { color: #fff; }
.site-footer .widget-title, .site-footer h2, .site-footer h3 { color: var(--p-accent-400); font-family: var(--font-sans); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }

/* Utility-Strip (Above Header) */
.ast-above-header-bar, .ast-above-header { background: var(--p-coal-900); color:#cfd4dc; font-family: var(--font-sans); font-size: .8rem; }
.ast-above-header a { color:#cfd4dc; }

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

/* =========================================================================
   STARTSEITE (.zoll-home)
   ========================================================================= */
.zoll-home { font-family: var(--font-sans); color: var(--p-text); }
.zoll-home .wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.zoll-home section { padding: 64px 0; }
.zoll-home h2 { font-size: clamp(1.8rem, 3.2vw, 2.75rem); margin-bottom: 8px; }
.zoll-home .sec-lead { color: var(--p-muted); max-width: 60ch; font-size: 1.05rem; margin-bottom: 36px; }
.zoll-home .ic { width: 26px; height: 26px; }

/* Hero */
.zoll-home .hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 52px; align-items: center; padding: 64px 0 56px; }
.zoll-home .hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.375rem); line-height: 1.08; margin-bottom: 20px; }
.zoll-home .hero .sub { font-size: 1.15rem; color: var(--p-muted); max-width: 48ch; margin-bottom: 26px; }
.zoll-home .hero .hero-img { aspect-ratio: 4/3; }
.zoll-home .hero .btns { display: flex; gap: 12px; flex-wrap: wrap; }
.zoll-home .btn { display: inline-block; border-radius: 999px; font-weight: 700; padding: 13px 26px; text-decoration: none; border: 2px solid var(--p-primary); }
.zoll-home .btn-primary { background: var(--p-primary); color: #fff; }
.zoll-home .btn-primary:hover { background: var(--p-primary-d); border-color: var(--p-primary-d); color:#fff; }
.zoll-home .btn-ghost { background: transparent; color: var(--p-primary); }
.zoll-home .btn-ghost:hover { background: var(--p-primary); color: #fff; }

/* Tool-Kacheln */
.zoll-home .tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.zoll-home .card-btn { display: block; text-decoration: none; }
.zoll-home .card-btn .icon-wrap { width: 52px; height: 52px; border-radius: 13px; background: var(--p-primary-50); color: var(--p-primary); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.zoll-home .card-btn h3 { font-size: 1.3125rem; margin-bottom: 6px; color: var(--p-ink); }
.zoll-home .card-btn .sub { color: var(--p-muted); font-size: .92rem; line-height: 1.5; }
.zoll-home .card-btn .open { color: var(--p-primary); font-weight: 700; font-size: .9rem; margin-top: 12px; display: inline-block; }

/* Zwei Wege */
.zoll-home .paths-sec { background: var(--p-bg-soft); }
.zoll-home .paths { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.zoll-home .path-card { background: #fff; border: 1px solid var(--p-line); padding: 38px; transition: transform .18s ease, box-shadow .18s ease; }
.zoll-home .path-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20,22,26,.10); }
.zoll-home .path-card .icon-wrap { width: 60px; height: 60px; border-radius: 14px; background: var(--p-primary); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.zoll-home .path-card .icon-wrap .ic { width: 30px; height: 30px; filter: brightness(0) invert(1); }
.zoll-home .path-card h3 { font-size: 1.6rem; margin-bottom: 10px; color: var(--p-ink); }
.zoll-home .path-card .sub { color: var(--p-text); margin-bottom: 18px; line-height: 1.55; }
.zoll-home .path-card .open { color: var(--p-primary); font-weight: 700; }

/* Aus der Redaktion */
.zoll-home .redaktion { display: grid; grid-template-columns: 1.4fr 1fr; gap: 44px; }
.zoll-home .feat .feat-img { aspect-ratio: 4/3; margin-bottom: 18px; }
.zoll-home .feat .kicker { color: var(--p-accent-700); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: .7rem; margin-bottom: 10px; }
.zoll-home .feat h3 { font-size: 1.9rem; line-height: 1.18; margin-bottom: 12px; color: var(--p-ink); }
.zoll-home .feat .blurb { color: var(--p-muted); line-height: 1.6; }
.zoll-home .side-list { display: flex; flex-direction: column; gap: 22px; }
.zoll-home .side-art { display: grid; grid-template-columns: 88px 1fr; gap: 16px; align-items: start; padding-bottom: 22px; border-bottom: 1px solid var(--p-line-2); }
.zoll-home .side-art .thumb { width: 88px; height: 64px; }
.zoll-home .side-art .cat { color: var(--p-accent-700); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; font-size: .65rem; margin-bottom: 4px; }
.zoll-home .side-art h4 { font-family: var(--font-serif); font-size: 1.05rem; line-height: 1.3; color: var(--p-ink); }

/* Laufbahn-Strip */
.zoll-home .laufbahn { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: center; }
.zoll-home .laufbahn table { width: 100%; border-collapse: collapse; border: 1px solid var(--p-line); }
.zoll-home .laufbahn th { background: var(--p-primary); color: #fff; padding: 12px 14px; text-align: left; font: 700 .8rem var(--font-sans); }
.zoll-home .laufbahn td { padding: 12px 14px; border-bottom: 1px solid var(--p-line-2); font-size: .95rem; }
.zoll-home .laufbahn tr:nth-child(even) td { background: var(--p-bg-soft); }
.zoll-home .laufbahn .mono { font-family: var(--font-mono); color: var(--p-accent-600); font-weight: 600; }

/* Newsletter (Anthrazit, full-bleed) */
.zoll-home .newsletter { background: var(--p-coal-900); color: #fff; text-align: center; }
.zoll-home .newsletter h2 { color: #fff; max-width: 18ch; margin: 0 auto 14px; }
.zoll-home .newsletter .sub { color: #aeb4be; max-width: 52ch; margin: 0 auto 28px; }
.zoll-home .newsletter form { display: flex; gap: 10px; justify-content: center; max-width: 520px; margin: 0 auto; flex-wrap: wrap; }
.zoll-home .newsletter input { flex: 1; min-width: 240px; border-radius: 999px; border: 0; padding: 14px 22px; font-family: var(--font-sans); }
.zoll-home .newsletter button { background: var(--p-accent); color: #fff; border: 0; border-radius: 999px; padding: 14px 28px; font-weight: 700; font-family: var(--font-sans); cursor: pointer; }
.zoll-home .newsletter button:hover { background: var(--p-accent-600); }

/* Mobil */
@media (max-width: 860px) {
  .zoll-home .hero, .zoll-home .redaktion, .zoll-home .laufbahn { grid-template-columns: 1fr; gap: 28px; }
  .zoll-home .tools { grid-template-columns: 1fr 1fr; }
  .zoll-home .paths { grid-template-columns: 1fr; }
  .zoll-home section { padding: 40px 0; }
  .zoll-home .hero { padding: 32px 0; }
}

/* =========================================================================
   HEADER + FOOTER (Custom)
   ========================================================================= */
.zoll-bar-wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* Utility-Strip */
.zoll-utility { background: var(--p-coal-900); color: #cfd4dc; font: 600 0.78rem var(--font-sans); }
.zoll-utility .zoll-bar-wrap { display: flex; justify-content: space-between; align-items: center; min-height: 38px; }
.zoll-utility a { color: #cfd4dc; margin-left: 18px; }
.zoll-utility a:hover { color: #fff; }
.zoll-utility .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--p-accent); margin-right: 8px; }

/* Header */
.zoll-header { background: #fff; border-bottom: 1px solid var(--p-line); }
.zoll-header .zoll-bar-wrap { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.zoll-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.zoll-brand .brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.zoll-brand .brand-name { font-family: var(--font-serif); font-weight: 700; font-size: 1.35rem; color: var(--p-primary); }
.zoll-brand .dotacc { color: var(--p-accent); }
.zoll-brand .brand-sub { font: 600 0.62rem var(--font-sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--p-muted); margin-top: 2px; }
.zoll-nav-wrap { margin-left: auto; }
.zoll-nav { display: flex; gap: 24px; align-items: center; margin: 0; padding: 0; list-style: none; }
.zoll-nav li { list-style: none; }
.zoll-nav a { font: 600 0.9rem var(--font-sans); color: var(--p-ink-2); padding: 6px 0; display: inline-block; }
.zoll-nav .current-menu-item > a, .zoll-nav a:hover { color: var(--p-primary); box-shadow: inset 0 -2px 0 var(--p-accent); }
.zoll-head-actions { display: flex; align-items: center; gap: 10px; }
.btn-pill { display: inline-block; border-radius: 999px; font: 700 0.85rem var(--font-sans); padding: 9px 18px; text-decoration: none; border: 1.5px solid var(--p-primary); transition: background-color .18s, color .18s; }
.btn-pill-primary { background: var(--p-primary); color: #fff; }
.btn-pill-primary:hover { background: var(--p-primary-d); border-color: var(--p-primary-d); color: #fff; }
.btn-pill-ghost { color: var(--p-primary); background: #fff; }
.btn-pill-ghost:hover { background: var(--p-primary); color: #fff; }
.zoll-burger { display: none; font-size: 1.5rem; line-height: 1; background: none; border: 0; cursor: pointer; color: var(--p-primary); }

/* Mobile-Drawer */
.zoll-drawer { position: fixed; inset: 0; z-index: 99999; }
.zoll-drawer[hidden] { display: none; }
.zoll-drawer::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.zoll-drawer-panel { position: absolute; top: 0; right: 0; height: 100%; width: 82%; max-width: 330px; background: #fff; padding: 62px 28px 28px; border-left: 3px solid var(--p-primary); overflow-y: auto; }
.zoll-drawer-close { position: absolute; top: 12px; right: 18px; font-size: 2rem; line-height: 1; background: none; border: 0; cursor: pointer; color: var(--p-ink); }
.zoll-nav-mobile { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.zoll-nav-mobile li { list-style: none; }
.zoll-nav-mobile a { display: block; padding: 13px 4px; font: 600 1rem var(--font-sans); color: var(--p-ink-2); border-bottom: 1px solid var(--p-line-2); }
.zoll-nav-mobile .current-menu-item > a { color: var(--p-primary); border-left: 3px solid var(--p-primary); padding-left: 12px; }

/* Footer */
.zoll-footer { background: var(--p-coal-900); color: #aeb4be; padding: 56px 0 0; }
.zoll-footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; padding-bottom: 44px; }
.zoll-footer .brand-name { color: #fff; font-family: var(--font-serif); font-weight: 700; font-size: 1.3rem; }
.zoll-footer .footer-blurb { margin-top: 14px; font-size: 0.9rem; line-height: 1.6; max-width: 36ch; }
.zoll-footer .footer-col h3 { color: var(--p-accent-400); font: 700 0.78rem var(--font-sans); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.zoll-footer .footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.zoll-footer .footer-col a { color: #aeb4be; font-size: 0.9rem; }
.zoll-footer .footer-col a:hover { color: #fff; }
.zoll-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: 0.82rem; }
.zoll-footer-bottom a { color: #cfd4dc; }

@media (max-width: 980px) {
  .zoll-nav-wrap, .zoll-head-actions .btn-pill { display: none; }
  .zoll-burger { display: inline-block; }
  .zoll-head-actions { margin-left: auto; }
  .zoll-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .zoll-footer-grid { grid-template-columns: 1fr; } }

/* Astra Header-/Footer-Builder ausblenden — Custom-Header/-Footer übernehmen */
.site-primary-header-wrap,
.ast-above-header-wrap,
.ast-below-header-wrap,
.ast-mobile-header-wrap { display: none !important; }
.site-footer .ast-footer-copyright,
.site-footer .ast-builder-grid-row-container,
.site-footer .ast-builder-grid-row-footer-wrap { display: none !important; }
/* leerer Astra Entry-Header (Seitentitel deaktiviert) wegnehmen */
.ast-header-without-markup { display: none !important; }
