/*
Theme Name: Sozialmedizin in Frage und Antwort
Theme URI: https://www.sozialmedizin.online/
Author: Sozialmedizin in Frage und Antwort
Description: Schlankes WordPress-Theme als Informationsseite zum Buch „Sozialmedizin in Frage und Antwort“ mit Free-Content-Seite.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: sozialmedizin-online
*/

:root {
  --navy: #082a4d;
  --navy-2: #0b355d;
  --blue: #0d6591;
  --blue-soft: #dceaf2;
  --orange: #ed641b;
  --orange-dark: #cc4f0d;
  --ink: #142334;
  --muted: #5c6b78;
  --paper: #ffffff;
  --bg: #f5f8fa;
  --line: #d7e2e8;
  --shadow: 0 18px 45px rgba(8, 42, 77, .12);
  --radius: 20px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.skip-link { position: absolute; left: -9999px; top: auto; }
.skip-link:focus {
  left: 16px; top: 16px; z-index: 999;
  background: white; padding: 10px 14px; border-radius: 8px;
}

.site-header {
  background: var(--navy);
  color: white;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 5px 20px rgba(0,0,0,.12);
}
body.admin-bar .site-header { top: 32px; }
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 13px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  min-width: 0;
}
.brand img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.28);
}
.brand-text strong {
  display: block;
  font-size: 1.06rem;
  letter-spacing: .02em;
}
.main-nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.main-nav a {
  color: white;
  text-decoration: none;
  font-size: .9rem;
  padding: 8px 10px;
  border-radius: 8px;
}
.main-nav a:hover, .main-nav a:focus-visible, .main-nav a[aria-current="page"] { background: rgba(255,255,255,.1); }

.hero {
  background:
    radial-gradient(circle at 80% 20%, rgba(26, 130, 175, .16), transparent 31%),
    linear-gradient(180deg, #f5f9fc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 70px 22px 76px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .72fr);
  gap: 64px;
  align-items: center;
}
.eyebrow {
  color: var(--blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  margin-bottom: 10px;
}
h1, h2, h3 { line-height: 1.16; margin-top: 0; color: var(--navy); }
h1 { font-size: clamp(2.3rem, 5vw, 4.2rem); margin-bottom: 20px; letter-spacing: -.03em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 18px; }
h3 { font-size: 1.15rem; margin-bottom: 8px; }
.lead { font-size: 1.15rem; color: #33485a; max-width: 690px; }
.hero-copy p { max-width: 720px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button, .wp-element-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 19px;
  border-radius: 9px;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease;
}
.button:hover, .wp-element-button:hover { transform: translateY(-1px); }
.button-primary { background: var(--orange); color: white; }
.button-primary:hover { background: var(--orange-dark); }
.button-secondary { border-color: var(--navy); color: var(--navy); background: white; }
.button-secondary:hover { background: #eef4f8; }

.book-cover-wrap {
  background: white;
  padding: 18px;
  border-radius: 26px;
  box-shadow: var(--shadow);
  border: 1px solid #e2ebf0;
}
.book-cover-wrap img { border-radius: 10px; width: 100%; }

.section { padding: 72px 22px; }
.section.alt { background: var(--bg); }
.container { max-width: var(--max); margin: 0 auto; }
.section-intro { max-width: 780px; margin-bottom: 34px; color: var(--muted); }

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card-number {
  display: inline-flex;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  background: var(--blue-soft);
  color: var(--navy);
  border-radius: 50%;
  font-weight: 700;
  margin-bottom: 16px;
}
.card p { margin-bottom: 0; color: var(--muted); }

.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 28px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.topic-grid li {
  padding: 11px 0 11px 26px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.topic-grid li::before {
  content: "";
  position: absolute;
  left: 2px; top: 20px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.promo {
  background: var(--navy);
  color: white;
  border-radius: 26px;
  padding: 42px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 34px;
  align-items: center;
}
.promo h2 { color: white; margin-bottom: 10px; }
.promo p { color: #cfe2ec; margin: 0; max-width: 700px; }

.page-hero {
  background: linear-gradient(180deg, #eef5f9 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero .container { padding: 62px 22px 52px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.page-hero p { max-width: 760px; color: var(--muted); font-size: 1.08rem; }

.page-content { max-width: 860px; }
.page-content > :first-child { margin-top: 0; }
.page-content h2 { margin-top: 42px; font-size: 1.6rem; }
.page-content h3 { margin-top: 30px; }
.page-content p, .page-content li { font-size: 1rem; }
.page-content a { color: var(--blue); }

.video-note {
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--navy);
  margin-bottom: 28px;
}
.free-content .wp-block-video,
.free-content video {
  width: 100%;
}
.free-content .wp-block-video {
  margin: 28px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
  box-shadow: 0 8px 24px rgba(8,42,77,.06);
}
.free-content .wp-block-video video { background: #071f37; }
.free-content .wp-block-video figcaption { padding: 12px 18px 16px; color: var(--muted); }

.empty-message {
  border: 1px dashed #9db4c1;
  border-radius: 18px;
  padding: 30px;
  text-align: center;
  color: var(--muted);
  background: #fbfdfe;
}

.site-footer { background: #061f38; color: white; }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-small { color: #b7cddd; font-size: .86rem; margin-top: 3px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; justify-content: flex-end; }
.footer-links a { color: #d9e7ef; text-decoration: none; font-size: .9rem; }
.footer-links a:hover { color: white; text-decoration: underline; }
.plain-email { white-space: nowrap; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; padding-top: 52px; }
  .book-cover-wrap { max-width: 440px; margin: 0 auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .promo { grid-template-columns: 1fr; }
}
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}
@media (max-width: 650px) {
  .site-header { position: static; }
  body.admin-bar .site-header { top: 0; }
  .header-inner { align-items: flex-start; flex-direction: column; gap: 10px; }
  .brand img { width: 46px; height: 46px; }
  .brand-text strong { font-size: .95rem; }
  .main-nav { width: 100%; justify-content: flex-start; }
  .hero-inner { padding: 44px 18px 52px; }
  .section { padding: 52px 18px; }
  .cards { grid-template-columns: 1fr; }
  .topic-grid { grid-template-columns: 1fr; }
  .promo { padding: 28px 22px; }
  .page-hero .container { padding: 44px 18px 36px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { justify-content: flex-start; gap: 12px 18px; }
}
