/* =============================================================
   FMA Pro Center – Prüfungsordnungen
   Dunkles Design angelehnt an fma.center
   ============================================================= */

:root {
  --bg:        #141617;   /* Haupt-Hintergrund (dunkel) */
  --bg-elev:   #1c1f21;   /* Karten / erhöhte Flächen */
  --bg-elev-2: #23272a;   /* Hover / zweite Ebene */
  --line:      #2e3336;   /* Trennlinien / Rahmen */
  --text:      #ffffff;   /* Haupttext */
  --muted:     #a7b0b6;   /* gedämpfter Text */
  --accent:    #e30613;   /* FMA Rot (Akzente: Karten, Links, Badges) */
  --accent-dk: #b50510;   /* Rot dunkler (Hover) */
  --cta:       #74f900;   /* CTA-Grün (Buttons / Downloads) */
  --cta-dk:    #5fd200;   /* CTA-Grün dunkler (Hover) */
  --on-cta:    #0f1a05;   /* dunkler Text auf dem hellen Grün */
  --radius:    14px;
  --maxw:      1120px;
  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 22, 23, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}
.brand-logo { height: 40px; width: auto; display: block; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.site-nav a { color: var(--muted); transition: color 0.15s ease; }
.site-nav a:hover { color: var(--text); }
.site-nav .nav-cta {
  color: var(--text);
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.site-nav .nav-cta:hover { border-color: var(--accent); color: var(--accent); }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 96px 0 80px;
  background:
    radial-gradient(1100px 480px at 70% -10%, rgba(227, 6, 19, 0.18), transparent 60%),
    linear-gradient(180deg, #17191b 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  font-size: 13px;
  color: var(--accent);
  margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(2rem, 8vw, 4.4rem);
  text-transform: uppercase;
  margin-bottom: 0.3em;
  /* langes Wort "Prüfungsordnungen" sauber umbrechen */
  -webkit-hyphens: auto;
  hyphens: auto;
  overflow-wrap: break-word;
  word-break: break-word;
}
.hero-sub {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.12rem;
  margin: 0 0 32px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease;
}
.btn-primary { background: var(--cta); color: var(--on-cta); }
.btn-primary:hover { background: var(--cta-dk); transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid var(--cta);
  /* Innenabstand an den Rahmen anpassen, damit beide Buttons gleich hoch sind */
  padding: 12px 26px;
}
.btn-secondary:hover {
  background: var(--cta);
  color: var(--on-cta);
  transform: translateY(-1px);
}

/* Button-Reihe im Hero – bricht auf schmalen Displays um */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ============ SECTION ============ */
.section { padding: 80px 0; }
.section-head { margin-bottom: 44px; }
.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  text-transform: uppercase;
}
.section-head p { color: var(--muted); margin: 0; }

/* ============ GRID & KARTEN ============ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.card {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--accent);
}
.card:hover { border-color: #3a4044; transform: translateY(-2px); }

.card--soon { opacity: 0.72; }
.card--soon::before { background: var(--line); }

.card-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.12);
  position: absolute;
  top: 18px;
  right: 22px;
}
.card-title {
  font-size: 1.25rem;
  text-transform: uppercase;
  margin: 6px 0 12px;
  padding-right: 56px;
}
.card-status { margin: 0 0 16px; }

.badge {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 5px 11px;
  border-radius: 999px;
}
.badge--ready { background: rgba(101, 188, 123, 0.16); color: #7fd093; }
.badge--soon  { background: rgba(167, 176, 182, 0.14); color: var(--muted); }

.card-note { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---- Dokument-Links ---- */
.doc-list { display: flex; flex-direction: column; gap: 10px; }
.doc-link {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.doc-link:hover { border-color: var(--cta); background: #262a2d; }
.doc-icon {
  flex: 0 0 auto;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--on-cta);
  background: var(--cta);
  border-radius: 6px;
  padding: 7px 8px;
}
.doc-text { display: flex; flex-direction: column; line-height: 1.25; }
.doc-title { font-weight: 600; font-size: 0.98rem; }
.doc-action {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.doc-link:hover .doc-action { color: var(--cta); }

/* ============ HINWEIS ============ */
.hinweis {
  margin-top: 36px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 16px 18px;
  color: var(--muted);
  font-size: 0.97rem;
}
.hinweis a { color: var(--text); text-decoration: underline; }

/* ============ FOOTER ============ */
.site-footer {
  background: #101213;
  border-top: 1px solid var(--line);
  padding-top: 56px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer-logo { height: 46px; width: auto; margin-bottom: 14px; }
.footer-tagline {
  color: var(--muted);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
}
.footer-col h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 14px;
}
.footer-col address { font-style: normal; color: var(--muted); line-height: 1.7; }
.footer-col address a:hover { color: var(--accent); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.footer-bottom p { margin: 0; color: var(--muted); font-size: 0.85rem; }

/* ============ RESPONSIVE ============ */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-nav { gap: 16px; font-size: 13px; }
  .site-nav a:not(.nav-cta) { display: none; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 56px 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
