@import url("fonts.css");

/* ═══════════════════════════════════════════════════════════════
   Rachfahl IT-Solutions — Design-Grundlage
   Markenfarben: Orange #c84b04 (Primär) · Rot #A60321 (Akzent)
   Die Bildmarke ist ein Punktraster — dieses Motiv zieht sich als
   Flächenmuster, Aufzählungszeichen und Trenner durch die Seite.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Marke */
  --orange: #c84b04;
  --orange-dark: #a53d02;
  --orange-tint: #fdf1e8;
  --red: #a60321;
  --red-dark: #85021a;

  /* Neutrale Töne, warm abgestimmt auf das Orange */
  --ink: #17120f;
  --ink-strong: #2c231e;
  --ink-body: #4d4139;
  --ink-muted: #7a6b61;
  --line: #e7ded7;
  --line-strong: #d4c7bd;
  --paper: #ffffff;
  --paper-warm: #faf6f2;

  --font-head: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --wrap: 1180px;
  --radius: 4px;
  --radius-lg: 10px;
  --shadow: 0 1px 2px rgba(23, 18, 15, .05), 0 8px 28px rgba(23, 18, 15, .07);
  --shadow-lift: 0 2px 4px rgba(23, 18, 15, .06), 0 18px 44px rgba(23, 18, 15, .13);

  /* Punktraster der Bildmarke als Flächenmuster */
  --dots: radial-gradient(currentColor 1.6px, transparent 1.7px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 100px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-body);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.35rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 1.9vw, 1.4rem); }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }
a { color: var(--orange); }

/* ── Layout ──────────────────────────────────────────────────── */

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.section { padding: clamp(64px, 8vw, 108px) 0; }
.section--warm { background: var(--paper-warm); border-block: 1px solid var(--line); }
.section--tint { background: var(--orange-tint); border-block: 1px solid #f6dcc8; }

.section__intro { max-width: 720px; margin-bottom: clamp(36px, 4vw, 56px); }
.section__intro p { font-size: 1.1875rem; color: var(--ink-muted); }

.eyebrow {
  font-family: var(--font-text);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 6px;
  color: var(--orange);
  background-image: var(--dots);
  background-size: 6.5px 6.5px;
  background-position: center;
}

/* ── Buttons ─────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-text);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease, transform 140ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn--primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); }

.btn--red { background: var(--red); color: #fff; border-color: var(--red); }
.btn--red:hover { background: var(--red-dark); border-color: var(--red-dark); }

.btn--outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--ink); background: var(--paper-warm); }

.btn--ghost-light { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.32); }
.btn--ghost-light:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.6); }

.btn--light { background: #fff; color: var(--orange-dark); border-color: #fff; }
.btn--light:hover { background: rgba(255,255,255,.88); border-color: rgba(255,255,255,.88); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: .9375rem; color: var(--orange);
  text-decoration: none;
}
.link-arrow::after { content: "→"; transition: transform 140ms ease; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ── Kopfbereich ─────────────────────────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 246, 242, .94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 14px 24px;
  max-width: var(--wrap); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { height: 64px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: .9375rem; font-weight: 500; color: var(--ink-strong);
  text-decoration: none; padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 140ms ease, border-color 140ms ease;
}
.nav a:hover { color: var(--orange); border-bottom-color: var(--orange); }
.nav .btn { padding: 11px 20px; }
.nav .btn:hover { border-bottom-color: transparent; }
/* .nav a färbt Links dunkel bzw. beim Hover orange — der Button bleibt weiß beschriftet */
.nav .btn--primary, .nav .btn--primary:hover { color: #fff; }

.burger { display: none; }

/* ── Hero ────────────────────────────────────────────────────── */

/* Heller Einstieg: warmes Weiß als Fläche, Orange nur als Akzent */
.hero {
  position: relative;
  background: var(--paper-warm);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
/* padding-block, nicht die Kurzschreibweise: sonst fällt das seitliche
   Padding von .wrap weg und der Text klebt am Bildschirmrand. */
.hero__inner { padding-block: clamp(72px, 9vw, 128px) clamp(56px, 6vw, 84px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: start; }

/* Die beiden Halbsätze bekommen je eine eigene Zeile — so bleibt der
   Umbruch in jeder Fenstergröße dort, wo er inhaltlich hingehört. */
.hero h1 { color: var(--ink); }
.hero h1 > span { display: block; width: fit-content; max-width: 100%; }
.hero h1 .accent {
  color: var(--orange);
  background: linear-gradient(180deg, transparent 66%, rgba(200, 75, 4, .16) 66%);
}
.hero__lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  max-width: 56ch; margin-top: 24px; color: var(--ink-body);
}
.hero .btn-row { margin-top: 34px; }

/* Punktraster-Motiv rechts im Hero */
/* Die Punkte der Bildmarke als Kugeln: Füllung über die Verläufe #ball-* in
   index.html, der Schlagschatten hebt sie vom Hintergrund ab. */
.hero__mark {
  width: 176px; --mark-base: url(#ball-orange); --mark-accent: url(#ball-red);
  filter: drop-shadow(1px 3px 2px rgba(90, 25, 0, .25));
}

.hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-top: clamp(48px, 6vw, 76px);
}
.hero__stats div {
  padding: 22px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--orange);
  border-radius: var(--radius-lg);
}
.hero__stats dt {
  font-family: var(--font-head); font-size: 1.9rem; font-weight: 700;
  color: var(--ink); line-height: 1; margin-bottom: 6px;
}
.hero__stats dd {
  margin: 0; font-size: .875rem; color: var(--ink-muted); line-height: 1.4;
}

/* ── Karten ──────────────────────────────────────────────────── */

.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.card h3 { margin-bottom: .4em; }
.card p { font-size: .9688rem; color: var(--ink-body); }

.card--fact { border-top: 3px solid var(--red); }
.card--fact .fact__num {
  font-family: var(--font-head); font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700; color: var(--red); line-height: 1; margin-bottom: 10px;
}

/* Kurskarten */
.course {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.course:hover { border-color: var(--line-strong); box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.course__head { padding: 26px 26px 0; }
.course__kicker {
  font-size: .75rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-muted); margin-bottom: 10px;
}
.course__body { padding: 0 26px; flex: 1; }
.course__body p { font-size: .9688rem; }
.course__list { list-style: none; margin: 0 0 20px; padding: 0; }
.course__list li {
  position: relative; padding-left: 20px; margin-bottom: 7px;
  font-size: .9375rem; color: var(--ink-body);
}
.course__list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--orange);
}
.course__dates { border-top: 1px solid var(--line); margin: 0 26px; padding: 18px 0; }
.course__date {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px 12px; padding: 7px 0; font-size: .875rem;
}
.course__date time { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.course__foot {
  border-top: 1px solid var(--line);
  padding: 20px 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--paper-warm);
}
.course__foot .btn { padding: 12px 18px; font-size: .875rem; white-space: nowrap; flex: none; }
.course__price { font-family: var(--font-head); font-size: 1.45rem; font-weight: 700; color: var(--ink); line-height: 1.1; }
.course__price small { display: block; font-family: var(--font-text); font-size: .75rem; font-weight: 400; color: var(--ink-muted); letter-spacing: 0; }

.seats {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .8125rem; font-weight: 600;
  padding: 5px 11px; border-radius: 100px;
  background: var(--orange-tint); color: var(--orange-dark);
  white-space: nowrap;
}
.seats::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.seats--tight { background: #fdeaec; color: var(--red); }
.seats--full { background: #f0ebe7; color: var(--ink-muted); }

/* Merkmalsliste */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 40px; }
.feature { padding-top: 18px; border-top: 2px solid var(--orange); }
.feature h4 { font-size: 1.0625rem; margin-bottom: .35em; }
.feature p { font-size: .9375rem; color: var(--ink-muted); }

/* Ablaufschritte */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding-top: 46px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-family: var(--font-head); font-size: 1.5rem; font-weight: 700;
  color: var(--orange);
}
.step::after {
  content: ""; position: absolute; top: 14px; left: 44px; right: -11px; height: 6px;
  color: var(--line-strong);
  background-image: var(--dots); background-size: 6.5px 6.5px;
}
.step:last-child::after { display: none; }
.step h4 { font-size: 1.0625rem; margin-bottom: .35em; }
.step p { font-size: .9375rem; color: var(--ink-muted); }

/* Veranstaltungen */
.event {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
}
.event__head { background: var(--orange-tint); border-bottom: 1px solid #f3d9c6; padding: 26px 28px 22px; }
.event__head h3 { margin: 0; font-size: clamp(1.35rem, 2.2vw, 1.6rem); }
.event__kicker {
  font-size: .75rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--orange-dark); margin-bottom: 8px;
}
.event__meta { list-style: none; margin: 0; padding: 18px 28px 0; display: grid; gap: 8px; }
.event__meta li { display: grid; grid-template-columns: 80px 1fr; gap: 12px; font-size: .9375rem; }
.event__meta span { color: var(--ink-muted); }
.event__meta strong { color: var(--ink); font-weight: 600; }
.event__body { padding: 16px 28px 0; flex: 1; }
.event__body p { font-size: .9688rem; }
.event__foot { padding: 22px 28px 28px; }

/* Autoritätsliste */
.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.proof > div { background: var(--paper); border: 1px solid #f3d9c6; border-top: 3px solid var(--orange); border-radius: var(--radius-lg); padding: 26px 24px; }
.proof h4 { font-size: 1.0625rem; margin-bottom: .35em; }
.proof p { font-size: .9375rem; color: var(--ink-body); }
.proof .link-arrow { margin-top: 12px; }

/* Über uns */
.about { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.about__photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.about__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 28%; }

/* Kontakt */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact__lines { list-style: none; margin: 24px 0 0; padding: 0; }
.contact__lines li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
.contact__lines li:first-child { border-top: 1px solid var(--line); }
.contact__lines span { display: block; font-size: .8125rem; color: var(--ink-muted); margin-bottom: 2px; }
.contact__lines a { color: var(--ink); text-decoration: none; font-weight: 600; }
.contact__lines a:hover { color: var(--orange); }

/* Newsletter als orangefarbene Karte; die Aufzählungspunkte sind kleine
   Perlkugeln wie in der Bildmarke. */
.newsletter {
  background: var(--orange); color: #fff;
  border-radius: var(--radius-lg); padding: clamp(28px, 3.4vw, 40px);
  box-shadow: var(--shadow-lift);
}
.newsletter h3 { color: #fff; font-size: clamp(1.5rem, 2.4vw, 1.85rem); margin-bottom: .35em; }
.newsletter__eyebrow {
  font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.85); margin: 0 0 10px;
}
.newsletter__lead { font-size: 1rem; color: #fff; }
.newsletter__list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.newsletter__list li { position: relative; padding-left: 30px; }
.newsletter__list li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff 0%, #fdeee3 40%, #f1c3a1 82%, #e3a47c 100%);
  box-shadow: 1px 2px 2px rgba(90, 25, 0, .35);
}
.newsletter__list strong { display: block; font-family: var(--font-head); font-size: 1.0625rem; color: #fff; line-height: 1.3; }
.newsletter__list span { display: block; font-size: .9063rem; color: rgba(255,255,255,.88); line-height: 1.5; }
.newsletter form {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 26px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.28);
}
.newsletter input[type="email"] {
  flex: 1 1 220px; min-width: 0;
  padding: 14px 16px; font-family: var(--font-text); font-size: .9375rem;
  border: 1.5px solid #fff; border-radius: var(--radius); background: #fff; color: var(--ink);
}
.newsletter input[type="email"]:focus { outline: 2px solid #fff; outline-offset: 2px; }
.newsletter small { display: block; margin-top: 12px; font-size: .8125rem; color: rgba(255,255,255,.85); }
.newsletter small a { color: #fff; }

/* Fußbereich */
.site-footer { background: #f3ece5; border-top: 1px solid var(--line); color: var(--ink-body); font-size: .9375rem; padding: clamp(48px, 6vw, 72px) 0 32px; }
.footer__name { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; color: var(--ink); margin-bottom: .3em; }
.site-footer h4 { color: var(--ink-muted); font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; font-family: var(--font-text); font-weight: 600; margin-bottom: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
.site-footer a { color: var(--ink-strong); text-decoration: none; }
.site-footer a:hover { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.footer__mark {
  width: 104px; margin-bottom: 18px; --mark-base: url(#ball-orange); --mark-accent: url(#ball-red);
  filter: drop-shadow(1px 2px 2px rgba(90, 25, 0, .25));
}
.footer__bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-strong);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: .8125rem; color: var(--ink-muted);
}

/* ── Unterseiten: Impressum, Datenschutz ──────────────────────── */

.page-head { background: var(--paper-warm); border-bottom: 1px solid var(--line); padding-block: clamp(52px, 7vw, 88px) clamp(40px, 5vw, 64px); }
.page-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin: 0; }
.page-head__lead { margin-top: 18px; max-width: 62ch; font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); color: var(--ink-body); }

.legal { max-width: 760px; }
.legal h2 {
  font-size: clamp(1.4rem, 2.3vw, 1.75rem);
  margin-top: 2.2em; padding-top: 1.3em; border-top: 1px solid var(--line);
  scroll-margin-top: 108px;
}
.legal h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.legal h3 { font-size: 1.1875rem; margin-top: 1.8em; }
.legal ul { margin: 0 0 1.15em; padding-left: 1.2em; }
.legal li { margin-bottom: .45em; }
.legal li::marker { color: var(--orange); }
.legal address { font-style: normal; margin: 0 0 1.15em; }
.legal a { color: var(--orange-dark); }

.legal-toc {
  background: var(--paper-warm); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px 26px; margin-bottom: 48px;
}
.legal-toc p { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 10px; }
.legal-toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 32px; }
.legal-toc li { margin-bottom: 6px; }
.legal-toc a { color: var(--ink-strong); text-decoration: none; }
.legal-toc a:hover { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }

.legal-note {
  background: var(--orange-tint); border-left: 4px solid var(--orange);
  border-radius: var(--radius); padding: 20px 24px; margin: 28px 0;
}
.legal-note h3 { margin-top: 0; }

/* Gelber Kasten für Angaben, die vor der Veröffentlichung fehlen */
.legal-todo {
  background: #fff6d6; border-left: 4px solid #d9a400; border-radius: var(--radius);
  padding: 14px 18px; margin: 0 0 18px; font-size: .9375rem; color: #5c4600;
}
.legal-date { margin-top: 48px; font-size: .875rem; color: var(--ink-muted); }

/* ── Responsiv ───────────────────────────────────────────────── */

@media (max-width: 1000px) {
  .grid--3, .grid--4, .features, .steps, .proof { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .about, .contact { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__mark { display: none; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .site-header__inner { position: relative; }
  .burger {
    display: flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; cursor: pointer; color: var(--ink);
    border: 1px solid var(--line-strong); border-radius: var(--radius);
    list-style: none; -webkit-tap-highlight-color: transparent;
  }
  .burger::-webkit-details-marker { display: none; }
  .nav {
    display: none;
    position: absolute; top: calc(100% + 12px); right: 24px; left: 24px;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lift);
    padding: 12px; z-index: 70;
  }
  .menu[open] ~ .nav { display: flex; }
  .nav a { padding: 12px 14px; border-bottom: none; border-radius: var(--radius); }
  .nav a:hover { background: var(--paper-warm); }
  .nav .btn { margin-top: 6px; }
}

@media (max-width: 620px) {
  .legal-toc ol { columns: 1; }
  body { font-size: 1rem; }
  .grid--3, .grid--4, .grid--2, .features, .steps, .proof { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .course__foot { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .nav .btn { width: auto; }
}

@media print {
  .site-header, .newsletter { display: none; }
  body { color: #000; }
}
