:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f3f5f7;
  --border: #d8dde3;
  --text: #111111;
  --muted: #4b5563;
  --blue: #1e4e8c;
  --blue-700: #163c6d;
  --shadow: 0 10px 30px rgba(17, 17, 17, 0.08);
  --shadow-soft: 0 6px 16px rgba(17, 17, 17, 0.06);
  --radius: 16px;
  --radius-sm: 12px;
  --max: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.55;
}

a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  z-index: 50;
}
.skip-link:focus {
  left: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(216, 221, 227, 0.7);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 260px;
}
.brand-logo-wrap {
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(30, 78, 140, 0.25);
}
.brand-logo-wrap:focus {
  outline: 2px solid rgba(30, 78, 140, 0.35);
  outline-offset: 3px;
}
.brand-logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.25);
  transform-origin: center;
}
.brand-title {
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-left: auto;
}

.section {
  padding: 64px 0;
  scroll-margin-top: 110px;
}

#notice,
#impressum,
#contacts {
  scroll-margin-top: 110px;
}
.section-alt {
  background: var(--surface-alt);
  border-top: 1px solid rgba(216, 221, 227, 0.7);
  border-bottom: 1px solid rgba(216, 221, 227, 0.7);
}

.section-head {
  margin-bottom: 22px;
}
.section-head h2 {
  margin: 0 0 6px;
  font-size: 1.65rem;
  letter-spacing: -0.01em;
}

.section-divider {
  height: 1px;
  background: var(--border);
  opacity: 0.6;
}

.section-hero {
  padding: 84px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.62;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.12);
}
.hero-content {
  position: relative;
}
.hero-card {
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(216, 221, 227, 0.8);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.hero-card h1 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 2.8vw, 2.35rem);
  letter-spacing: -0.02em;
}
.lead {
  margin: 0 0 16px;
  font-size: 1.08rem;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.overlay[hidden] {
  display: none;
}
.overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
}
.overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}
.overlay-dialog {
  position: relative;
  margin: 8vh auto;
  width: min(760px, calc(100% - 2rem));
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(216, 221, 227, 0.9);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}
.overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(216, 221, 227, 0.85);
  background: linear-gradient(180deg, rgba(243, 245, 247, 0.9), rgba(255, 255, 255, 0.9));
}
.overlay-title {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.overlay-close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(216, 221, 227, 0.9);
  background: #ffffff;
  color: #111111;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.overlay-close:hover {
  background: var(--surface-alt);
}
.overlay-close:focus {
  outline: 2px solid rgba(30, 78, 140, 0.35);
  outline-offset: 2px;
}
.overlay-body {
  padding: 14px 16px 16px;
  max-height: min(70vh, 560px);
  overflow: auto;
}
.overlay-body--empty {
  min-height: 140px;
}
.overlay-footer {
  padding: 14px 16px 16px;
  border-top: 1px solid rgba(216, 221, 227, 0.85);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(243, 245, 247, 0.75));
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.offers-menu {
  border: 1px solid rgba(216, 221, 227, 0.9);
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 6px;
}
.offers-menu a {
  display: block;
  padding: 10px 10px;
  border-radius: 12px;
  color: #111111;
  line-height: 1.35;
}
.offers-menu a:hover {
  background: var(--surface-alt);
  text-decoration: none;
}
.offers-menu a:focus {
  outline: 2px solid rgba(30, 78, 140, 0.35);
  outline-offset: 2px;
}
.hint {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 11px 14px;
  font-weight: 650;
  letter-spacing: -0.01em;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}
.btn:hover {
  text-decoration: none;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--blue);
  color: #ffffff;
  border-color: rgba(0, 0, 0, 0.05);
}
.btn-primary:hover {
  background: var(--blue-700);
}
.btn-secondary {
  background: #ffffff;
  color: var(--blue-700);
  border-color: var(--border);
}
.btn-secondary:hover {
  background: var(--surface-alt);
}
.btn-secondary.js-open-training-modal {
  background: var(--surface-alt);
}
.btn-secondary.js-open-training-modal:hover {
  background: #e9edf2;
}
.btn-small {
  padding: 9px 12px;
  font-size: 0.95rem;
}

.email-actions {
  /* When "Kontakt (E-Mail)" and "E-Mail kopieren" appear together,
     keep them perfectly aligned with equal widths. */
  display: grid;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.email-actions > .btn {
  width: 100%;
}
.email-actions--contact {
  margin-top: auto;
}
.btn-copy-email .btn-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  opacity: 0.95;
}
.btn-copy-email {
  font-size: 0.82rem;
  padding: 7px 10px;
  font-weight: 600;
  color: var(--muted);
  border-color: rgba(216, 221, 227, 0.95);
  background: rgba(255, 255, 255, 0.85);
}
.btn-copy-email:hover {
  background: var(--surface-alt);
}
.btn-copy-email .btn-icon {
  opacity: 0.8;
}
.btn-copy-email__label {
  font-size: 0.75em;
  text-align: center;
}
.btn-copy-email[data-copied="true"] {
  border-color: rgba(30, 78, 140, 0.25);
  background: rgba(30, 78, 140, 0.06);
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.profile-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 22px;
  align-items: start;
}
.profile-media {
  display: grid;
  gap: 12px;
}
.profile-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  border: 1px solid rgba(216, 221, 227, 0.9);
  box-shadow: var(--shadow-soft);
  background: #fff;
  overflow: hidden;
}
.profile-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.profile-img--stephan {
  /* show more of the upper part (crop more at bottom) */
  object-position: 50% 20%;
}
.profile-card {
  background: var(--surface);
  border: 1px solid rgba(216, 221, 227, 0.9);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
}
.profile-name {
  font-weight: 800;
  letter-spacing: -0.01em;
}
.profile-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.95rem;
}
.profile-actions {
  margin-top: auto;
  padding-top: 12px;
}
/* Default: center a single CTA button */
.profile-actions:not(.email-actions) {
  display: flex;
  justify-content: center;
  align-items: center;
}
.profile-actions .btn {
  align-self: center;
  max-width: 100%;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.keyfacts {
  margin: 0 0 14px;
  padding-left: 18px;
}
.keyfacts li {
  margin: 7px 0;
}

.details {
  border: 1px solid rgba(216, 221, 227, 0.9);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 10px 12px;
  box-shadow: 0 2px 10px rgba(17, 17, 17, 0.04);
  margin: 14px 0;
}
.details summary {
  cursor: pointer;
  font-weight: 700;
  color: #1f2937;
}
.details summary:hover {
  color: var(--blue-700);
}
.details-body {
  margin-top: 10px;
  color: #111111;
}

.note {
  margin-top: 14px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(30, 78, 140, 0.22);
  background: rgba(30, 78, 140, 0.06);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.card {
  background: var(--surface);
  border: 1px solid rgba(216, 221, 227, 0.9);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card h3 {
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.meta {
  display: grid;
  gap: 10px;
  margin: 0 0 12px;
}
.meta dt {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #374151;
}
.meta dd {
  margin: 3px 0 0;
  color: #111111;
}
.card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
  justify-content: center;
  align-items: center;
}
.card-actions .btn {
  align-self: center;
  max-width: 100%;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.quotes {
  margin-top: 22px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(216, 221, 227, 0.9);
  background: rgba(255, 255, 255, 0.8);
}
.quotes-title {
  margin: 0 0 10px;
}
.quote-list {
  margin: 0;
  padding-left: 18px;
}
.quote-list blockquote {
  margin: 0;
  color: #111111;
}

.fineprint {
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(216, 221, 227, 0.9);
  background: rgba(255, 255, 255, 0.85);
  color: #111111;
  display: grid;
  gap: 6px;
}

.fineprint--note {
  font-size: 0.85rem;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid rgba(216, 221, 227, 0.9);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.contact-title {
  font-weight: 900;
  letter-spacing: -0.01em;
}
.contact-sub {
  color: var(--muted);
  margin: 4px 0 12px;
}
.contact-card .btn {
  margin-top: auto;
  align-self: center;
  max-width: 100%;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.callout {
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(216, 221, 227, 0.9);
  background: rgba(243, 245, 247, 0.55);
}
.callout h3 {
  margin: 0 0 6px;
}
.callout p {
  margin: 0;
  color: #111111;
}

.site-footer {
  background: #0f172a;
  color: #e5e7eb;
  padding: 36px 0 18px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.footer-grid > section {
  /* leichte Einrückung für "Wichtiger Hinweis", "Impressum" (inkl. "Kontakt") */
  padding-left: 14px;
}
.footer-title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.footer-text {
  margin: 8px 0;
  color: #e5e7eb;
  opacity: 0.95;
}
.site-footer a {
  color: #c7dbff;
}
.footer-bottom {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  color: rgba(229, 231, 235, 0.85);
  font-size: 0.95rem;
}

@media (max-width: 980px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-nav {
    margin-left: 0;
    justify-content: flex-start;
  }
  .brand {
    min-width: 0;
  }
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid > section {
    padding-left: 0;
  }
}

