:root {
  --bg: #f4f6fb;
  --bg-card: #ffffff;
  --bg-nav: #ffffff;
  --accent: #2563eb;
  --accent2: #1d4ed8;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ── Navbar ── */
nav {
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(30,41,59,0.06);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 64px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.logo span { color: var(--text); }

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(37,99,235,0.07);
}

.nav-links a.active { color: var(--accent); }

.nav-cta {
  margin-left: auto;
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  padding: 0.4rem 1rem !important;
  border-radius: 6px !important;
  white-space: nowrap;
}

.nav-cta:hover { background: var(--accent2) !important; color: #fff !important; }

/* ── Logo Strip ── */
.logo-strip {
  border-bottom: 1px solid var(--border);
  padding: 2rem 1.5rem;
  background: var(--bg-nav);
}

.logo-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.5rem;
  flex-wrap: wrap;
}

.logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  opacity: 0.75;
  transition: opacity 0.2s;
  text-decoration: none;
}

.logo-item:hover { opacity: 1; }

.logo-item img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.logo-item span {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 600;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, #eef2ff 0%, #f0f7ff 50%, #eef2ff 100%);
  border-bottom: 1px solid var(--border);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: rgba(37,99,235,0.1);
  color: var(--accent);
  border: 1px solid rgba(37,99,235,0.25);
  border-radius: 20px;
  padding: 0.3rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -1px;
}

.hero h1 .hl { color: var(--accent); }

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 2.5rem;
}

.btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ── Section ── */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-sub {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

/* ── Cards grid ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.card h3 { font-size: 1.1rem; font-weight: 700; }

.card p { color: var(--text-muted); font-size: 0.9rem; flex: 1; }

.card-meta {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.tag.accent { color: var(--accent); }

.card-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: auto;
}

/* ── USP row ── */
.usp-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.usp-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.usp-item .icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.usp-item h4 { font-weight: 700; margin-bottom: 0.35rem; }
.usp-item p { color: var(--text-muted); font-size: 0.875rem; }

/* ── Training page hero ── */
.training-hero {
  padding: 3.5rem 1.5rem 3rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #eef2ff 0%, var(--bg) 100%);
}

.training-hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.training-hero .course-tag {
  display: inline-block;
  background: rgba(37,99,235,0.1);
  color: var(--accent);
  border: 1px solid rgba(37,99,235,0.25);
  border-radius: 6px;
  padding: 0.2rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.training-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.training-hero .lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 2rem;
}

.course-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.stat-value { font-size: 1.1rem; font-weight: 700; }
.stat-value.price { color: var(--accent); }

/* ── Two-col layout ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
}

/* ── Agenda ── */
.agenda-day {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.agenda-day-header {
  background: rgba(37,99,235,0.05);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.day-badge {
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  white-space: nowrap;
}

.agenda-day-header h3 { font-size: 1rem; font-weight: 700; }

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0;
}

.topic {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(30,41,59,0.06);
  border-right: 1px solid rgba(30,41,59,0.06);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.topic:nth-child(even) { border-right: none; }
.topic:last-child { border-bottom: none; }
.topic:nth-last-child(2):nth-child(odd) { border-bottom: none; }

.topic strong {
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.topic strong::before {
  content: '▸';
  color: var(--accent);
  flex-shrink: 0;
  font-size: 0.75rem;
  margin-top: 0.1rem;
}

.topic span { font-size: 0.8rem; color: var(--text-muted); padding-left: 1.1rem; }

/* ── Sidebar ── */
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: sticky;
  top: 80px;
}

.sidebar-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem; }

.price-big {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.price-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.3rem; margin-bottom: 1.5rem; }

.sidebar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.sidebar-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.sidebar-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.sidebar-card .btn { width: 100%; justify-content: center; }

.sidebar-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.25rem 0;
}

/* ── Requirements / target ── */
.info-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.info-box h4 { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 0.75rem; }

.info-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-box ul li {
  font-size: 0.9rem;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.info-box ul li::before { content: '→'; color: var(--accent); flex-shrink: 0; }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

footer .logo { font-size: 1.1rem; }

footer p { font-size: 0.85rem; color: var(--text-muted); }

footer nav { margin-top: 0.5rem; }
footer nav a { color: var(--text-muted); text-decoration: none; margin: 0 0.75rem; font-size: 0.85rem; }
footer nav a:hover { color: var(--accent); }

/* ── Contact section ── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon { font-size: 1.75rem; flex-shrink: 0; }

.contact-item h4 { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.25rem; }
.contact-item a, .contact-item p { color: var(--text); text-decoration: none; font-size: 0.95rem; }
.contact-item a:hover { color: var(--accent); }

/* ── Nav button (modal trigger) ── */
.nav-links button {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-links button.nav-cta {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 0.4rem 1rem;
}

.nav-links button.nav-cta:hover { background: var(--accent2); color: #fff; }

/* ── Modal ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.55);
  backdrop-filter: blur(2px);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(15,23,42,0.2);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 { font-size: 1.2rem; font-weight: 700; }

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.modal-close:hover { background: var(--bg); color: var(--text); }

/* ── Anfrage form ── */
.anfrage-form { padding: 1.5rem 1.75rem; display: flex; flex-direction: column; gap: 1.1rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 0.35rem; }

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.form-group input,
.form-group textarea {
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 0.925rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: #94a3b8; }

.form-group input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
.form-group input[type="number"]::-webkit-outer-spin-button,
.form-group input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }

.form-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  padding-top: 0.5rem;
}

/* ── Success state ── */
.anfrage-success {
  padding: 2.5rem 1.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.anfrage-success .success-icon {
  width: 52px;
  height: 52px;
  background: rgba(37,99,235,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 700;
}

.anfrage-success h3 { font-size: 1.15rem; font-weight: 700; }
.anfrage-success p { color: var(--text-muted); font-size: 0.9rem; }

/* ── Form select ── */
.form-group select {
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 0.925rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

/* ── Sidebar dates ── */
.sidebar-dates-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  display: block;
}

.sidebar-date-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

.sidebar-date-item:last-of-type { border-bottom: none; margin-bottom: 0.25rem; }

.sidebar-date-main {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
}

.sidebar-date-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.btn-sm {
  padding: 0.35rem 0.85rem !important;
  font-size: 0.8rem !important;
  white-space: nowrap;
}
