:root {
  --ae-red: #c8102e;
  --ae-blue: #0057b8;
  --ae-black: #111827;
  --ae-muted: #667085;
  --ae-line: #e5e7eb;
  --ae-soft-blue: #eef5ff;
  --ae-soft-red: #fff1f3;
}

body {
  background: #ffffff;
  color: var(--ae-black);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.navbar {
  border-bottom: 1px solid var(--ae-line);
}

.navbar-brand {
  font-weight: 800;
  letter-spacing: 0;
}

.brand-wordmark {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1;
}

.brand-red {
  color: var(--ae-red);
}

.brand-blue {
  color: var(--ae-blue);
}

.brand-grey {
  color: #525a63;
}

.site-logo {
  display: block;
  height: 54px;
  object-fit: contain;
  width: auto;
}

.nav-link {
  color: var(--ae-black);
  font-weight: 600;
}

.nav-link:hover,
.dropdown-item:hover {
  color: var(--ae-blue);
}

.hero {
  background:
    linear-gradient(90deg, rgba(0, 87, 184, 0.09), rgba(200, 16, 46, 0.08)),
    #ffffff;
  border-bottom: 1px solid var(--ae-line);
  padding: 5rem 0 4rem;
}

.brand-showcase {
  align-items: center;
  background: #fff;
  border: 1px solid var(--ae-line);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  min-height: 280px;
}

.brand-showcase img {
  display: block;
  height: auto;
  max-height: 270px;
  max-width: 112%;
  object-fit: contain;
}

.eyebrow {
  color: var(--ae-red);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
h5 {
  color: var(--ae-black);
  font-weight: 800;
}

.lead {
  color: var(--ae-muted);
}

.btn-primary {
  background: var(--ae-blue);
  border-color: var(--ae-blue);
}

.btn-primary:hover {
  background: #004899;
  border-color: #004899;
}

.btn-danger {
  background: var(--ae-red);
  border-color: var(--ae-red);
}

.btn-outline-dark {
  border-color: var(--ae-black);
  color: var(--ae-black);
}

.badge-blue {
  background: var(--ae-soft-blue);
  color: var(--ae-blue);
}

.badge-red {
  background: var(--ae-soft-red);
  color: var(--ae-red);
}

.section {
  padding: 4rem 0;
}

section,
[id] {
  scroll-margin-top: 96px;
}

.course-card {
  border: 1px solid var(--ae-line);
  border-radius: 8px;
  height: 100%;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.course-card:hover {
  box-shadow: 0 18px 35px rgba(17, 24, 39, 0.1);
  transform: translateY(-3px);
}

.course-card .card-title {
  color: var(--ae-blue);
}

.training-detail-stack {
  display: grid;
  gap: 1rem;
}

.training-detail {
  border-radius: 8px;
  padding: 2rem;
}

.training-detail h3,
.training-detail p,
.training-detail li {
  color: #fff;
}

.training-detail .training-meta {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.training-detail ul {
  margin-bottom: 0;
  padding-left: 1.2rem;
}

.training-detail li {
  margin-bottom: 0.38rem;
}

.training-red {
  background: var(--ae-red);
}

.training-blue {
  background: var(--ae-blue);
}

.training-grey {
  background: #525a63;
}

.info-list {
  color: var(--ae-black);
  padding-left: 1.2rem;
}

.info-list li {
  margin-bottom: 0.45rem;
}

.calendar-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.month-card {
  border: 1px solid var(--ae-line);
  border-radius: 8px;
  overflow: hidden;
}

.month-card__header {
  align-items: center;
  background: var(--ae-black);
  color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 0.85rem 1rem;
}

.date-row {
  align-items: stretch;
  border-top: 1px solid var(--ae-line);
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 68px 1fr;
  padding: 1rem;
}

.date-tile {
  align-items: center;
  background: var(--ae-soft-blue);
  border-left: 4px solid var(--ae-blue);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 68px;
}

.date-tile strong {
  font-size: 1.35rem;
  line-height: 1;
}

.date-tile span {
  color: var(--ae-muted);
  font-size: 0.62rem;
  font-weight: 800;
  max-width: 58px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.feature-band {
  background: var(--ae-black);
  color: #fff;
}

.feature-band h2,
.feature-band h3,
.feature-band p,
.feature-band label {
  color: #fff;
}

.contact-form .form-control,
.contact-form .form-select {
  border-color: rgba(255, 255, 255, 0.3);
}

.footer-link {
  text-decoration: none;
}

.footer-link:hover {
  color: var(--ae-blue) !important;
  text-decoration: underline;
}

.impressum-panel {
  background: #f7f8fa;
  border: 1px solid var(--ae-line);
  border-radius: 8px;
}

.admin-shell {
  background: #f7f8fa;
  min-height: 100vh;
}

.admin-panel {
  background: #fff;
  border: 1px solid var(--ae-line);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.08);
}

.table thead th {
  color: var(--ae-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

@media (max-width: 767.98px) {
  .hero {
    padding: 3rem 0;
  }

  .site-logo {
    height: 44px;
  }

  .date-row {
    grid-template-columns: 58px 1fr;
  }
}
