/*
Theme Name: RD CI Whitehouse
Theme URI: https://regierungdeutschesreich.org/
Author: Markus
Description: Schlankes, statisches Theme mit Whitehouse-inspiriertem Header + Hero für Startseite und Seiten.
Version: 1.0.0
Text Domain: rd-ci-wh
*/

/* Reset-ish */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
  background: #fff;
  color: #111;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Layout helpers */
.container {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}
.stack > * + * { margin-top: 1rem; }
.muted { opacity: .75; }

/* Topbar / Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 13px;
  white-space: nowrap;
}
.brand-mark {
  width: 6px;
  height: 20px;
  background: #b0001a;
  border-radius: 2px;
}
.brand-logo img { height: 26px; width: auto; }

/* Nav */
.nav-toggle {
  display: none;
  border: 1px solid rgba(0,0,0,.14);
  background: #fff;
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 700;
}
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.main-nav a {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 10px 2px;
  display: inline-block;
}
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a { text-decoration: underline; text-underline-offset: 6px; }

/* Dropdowns */
.main-nav .menu-item-has-children { position: relative; }
.main-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -10px;
  min-width: 220px;
  padding: 10px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
}
.main-nav .sub-menu li { display: block; }
.main-nav .sub-menu a { display: block; padding: 10px 10px; }
.main-nav li:hover > .sub-menu { display: block; }

/* Mobile */
@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .main-nav { display: none; width: 100%; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 0; }
  .main-nav a { padding: 12px 0; width: 100%; }
  .main-nav .sub-menu { position: static; box-shadow: none; border-radius: 0; border: 0; padding: 0 0 0 14px; }
  .main-nav li:hover > .sub-menu { display: block; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #111;
}
.hero .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.66) 0%, rgba(0,0,0,.20) 55%, rgba(0,0,0,.08) 100%);
}
.hero .hero-inner {
  position: relative;
  padding: 110px 0 70px;
  color: #fff;
}
.hero-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .95;
  margin-bottom: 12px;
}
.hero-title {
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 1.05;
  margin: 0;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.hero-subtitle {
  margin-top: 10px;
  max-width: 60ch;
  font-size: 16px;
  opacity: .9;
}

/* Content header (breadcrumbs etc) */
.page-head {
  padding: 26px 0 8px;
}
.breadcrumbs {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.breadcrumbs a { color: #b0001a; }
.section-label {
  margin-top: 14px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.page-title {
  margin: 10px 0 0;
  font-size: clamp(30px, 3.6vw, 46px);
  letter-spacing: .02em;
  font-weight: 900;
  text-transform: uppercase;
}

/* Content grid */
.content-wrap {
  padding: 12px 0 54px;
}
.grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 980px) {
  .grid { grid-template-columns: 1fr; }
}
.card {
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  padding: 18px;
  background: #fff;
}
.card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 900;
}
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li + li { margin-top: 10px; }
.toc a { color: #111; }
.toc a:hover { color: #b0001a; text-decoration: none; }

/* Main content */
.entry-content p { margin: 0 0 1rem; }
.entry-content h2, .entry-content h3 { margin: 2rem 0 .75rem; }
.entry-content ul { padding-left: 1.1rem; }
.entry-content blockquote {
  margin: 1.5rem 0;
  padding: 14px 16px;
  border-left: 4px solid #b0001a;
  background: #fafafa;
  border-radius: 14px;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(0,0,0,.08);
  padding: 22px 0;
  font-size: 12px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; flex-wrap: wrap; }
.footer-nav a { opacity: .85; }
.footer-nav a:hover { opacity: 1; }
