/* ==========================================================================
   dh training gmbh — Stylesheet
   Farbanpassung: nur die Variablen unter :root ändern.
   ========================================================================== */

:root {
  /* Firmenfarbe: aufgefrischtes Dunkelrot (früher #910000) */
  --brand: #a31621;
  --brand-dark: #7d0f18;
  --brand-light: #c4303c;
  --brand-tint: #fdf3f4;

  --bg: #ffffff;
  --bg-alt: #f7f5f4;
  --text: #26211f;
  --text-muted: #6b6360;
  --border: #e6e0de;
  --card: #ffffff;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.05), 0 8px 24px rgb(0 0 0 / 0.06);
  --radius: 14px;

  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #d64550;
    --brand-dark: #b32a36;
    --brand-light: #e2707a;
    --brand-tint: #2a1416;

    --bg: #171313;
    --bg-alt: #201b1b;
    --text: #f0eae8;
    --text-muted: #a89e9b;
    --border: #362e2d;
    --card: #211c1c;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px rgb(0 0 0 / 0.35);
  }
}

/* --- Reset & Basis ------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }

.container {
  width: min(1100px, 100% - 2.5rem);
  margin-inline: auto;
}

/* --- Header / Navigation -------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}

.logo:hover { text-decoration: none; }

.logo-mark {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo small {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.1;
}

.main-nav ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
}

.main-nav a {
  display: block;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}

.main-nav a:hover {
  background: var(--bg-alt);
  text-decoration: none;
}

.main-nav a[aria-current="page"] {
  color: var(--brand);
  background: var(--brand-tint);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    display: none;
    box-shadow: var(--shadow);
  }

  .main-nav.open { display: block; }

  .main-nav ul {
    flex-direction: column;
    padding: 0.75rem 1.25rem 1rem;
  }
}

/* --- Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 10vw, 7.5rem) 0;
  background:
    radial-gradient(ellipse 60% 80% at 85% 10%, var(--brand-tint), transparent),
    var(--bg);
}

.hero .container {
  max-width: 780px;
}

.hero .kicker {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero p.lead {
  margin-top: 1.25rem;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-muted);
  max-width: 40rem;
}

.hero .actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* --- Buttons --------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--brand) 35%, transparent);
}

.btn-primary:hover { background: var(--brand-dark); }

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--card);
}

.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* --- Sections & Cards ------------------------------------------------------ */

.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.section.alt { background: var(--bg-alt); }

.section-head {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section-head p {
  margin-top: 0.75rem;
  color: var(--text-muted);
}

.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
}

.card .icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: var(--brand-tint);
  color: var(--brand);
  margin-bottom: 1.1rem;
}

/* Echte App-Icons statt getönter Symbolfläche */
.card .icon.icon-img {
  background: none;
}

.card .icon.icon-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.card h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.card p {
  margin-top: 0.6rem;
  color: var(--text-muted);
  font-size: 0.97rem;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: var(--brand-tint);
  color: var(--brand);
  white-space: nowrap;
}

.badge.neutral {
  background: var(--bg-alt);
  color: var(--text-muted);
}

/* --- Inhaltsseiten ---------------------------------------------------------- */

.page-header {
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(ellipse 50% 90% at 90% 0%, var(--brand-tint), transparent),
    var(--bg);
}

.page-header p {
  margin-top: 0.9rem;
  color: var(--text-muted);
  max-width: 44rem;
  font-size: 1.1rem;
}

.prose {
  max-width: 46rem;
}

.prose h2 { margin: 2.25rem 0 0.75rem; }
.prose h3 { margin: 1.75rem 0 0.5rem; }
.prose p + p { margin-top: 0.9rem; }

.prose ul {
  padding-left: 1.25rem;
  margin-top: 0.6rem;
}

.prose li + li { margin-top: 0.35rem; }

.timeline {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  border-left: 2px solid var(--border);
}

.timeline li {
  position: relative;
  padding: 0 0 1.4rem 1.5rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -0.44rem;
  top: 0.45rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--brand);
  border: 2px solid var(--bg);
}

.timeline strong { display: block; }
.timeline span { color: var(--text-muted); font-size: 0.95rem; }

/* --- Portrait im Intro ------------------------------------------------------ */

.intro-portrait {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
}

.intro-portrait img {
  flex: 0 0 auto;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 28%;
  background: var(--bg-alt);
  border: 3px solid var(--card);
  box-shadow: var(--shadow);
}

@media (max-width: 34rem) {
  .intro-portrait {
    flex-direction: column;
    gap: 1.25rem;
  }
}

/* --- Kontakt-Band ----------------------------------------------------------- */

.cta-band {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.25rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-band h2 { color: #fff; }

.cta-band p {
  margin-top: 0.5rem;
  color: rgb(255 255 255 / 0.85);
  max-width: 32rem;
}

.cta-band .btn {
  background: #fff;
  color: var(--brand-dark);
}

/* --- Footer ------------------------------------------------------------------ */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: clamp(3rem, 6vw, 5rem);
  color: var(--text-muted);
  font-size: 0.92rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.site-footer nav {
  display: flex;
  gap: 1.25rem;
}

.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--brand); }

/* --- Scroll-Reveal ------------------------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}
