/* IT-Schmid – Landingpage
   Systemschriften: keine externen Fonts, kein Datenschutzproblem durch Font-Server. */

:root {
  --ink: #0f2a2f;          /* tiefes Petrol für Text und Flächen */
  --ink-soft: #4a6166;
  --paper: #ffffff;
  --tint: #eef3f3;
  --line: #d3dedf;
  --accent: #e0a12e;       /* Bernstein: Buttons und Fokus */
  --accent-ink: #2a1d00;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8f0f0;
    --ink-soft: #a5b9bc;
    --paper: #0b1d21;
    --tint: #12292e;
    --line: #264146;
    --accent-ink: #1d1400;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: .6rem 1rem; z-index: 20; }
.skip:focus { left: 0; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .75rem; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; max-width: 62ch; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 4rem; gap: 1rem; }
.logo { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; text-decoration: none; }
nav { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
nav a { text-decoration: none; font-size: .98rem; }
nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-cta { background: var(--ink); color: var(--paper); padding: .45rem 1rem; border-radius: 999px; }
.nav-cta:hover { text-decoration: none; opacity: .88; }

/* Buttons */
.btn { display: inline-block; font: inherit; font-weight: 600; text-decoration: none; padding: .85rem 1.4rem; border-radius: var(--radius); border: 2px solid transparent; cursor: pointer; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { border-color: var(--ink); }
.btn.ghost:hover { background: var(--tint); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* Hero */
.hero { padding: clamp(3rem, 9vw, 6.5rem) 0; }
.hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.lead { font-size: 1.2rem; color: var(--ink-soft); }
.stack { background: var(--ink); color: var(--paper); border-radius: 14px; padding: 1.8rem; }
.stack-title { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; margin-bottom: 1rem; }
.stack ul { list-style: none; margin: 0; padding: 0; }
.stack li { padding: .9rem 0; border-top: 1px solid rgba(255,255,255,.2); display: grid; gap: .15rem; }
.stack li strong { color: var(--accent); }
.stack li span { font-size: .98rem; opacity: .92; }
@media (prefers-color-scheme: dark) {
  .stack { background: var(--tint); color: var(--ink); border: 1px solid var(--line); }
  .stack li { border-color: var(--line); }
}

/* Sections */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section.tint { background: var(--tint); }
.section-intro { color: var(--ink-soft); margin-bottom: 2rem; }

.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2rem; }
.offers article { border-top: 3px solid var(--ink); padding-top: 1rem; }
.offers p { color: var(--ink-soft); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }

/* Zeitleiste: hier ist die Reihenfolge Teil der Information */
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.6rem; border-left: 3px solid var(--ink); }
.timeline li { position: relative; padding-bottom: 1.6rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: calc(-1.6rem - 9px); top: .45rem; width: 15px; height: 15px; border-radius: 50%; background: var(--accent); border: 3px solid var(--tint); }
.timeline p { color: var(--ink-soft); margin: 0; }

.topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.topic { display: block; text-decoration: none; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, background .15s; }
.topic:hover { border-color: var(--ink); background: var(--tint); }
.topic p { margin: 0; color: var(--ink-soft); }
.note { margin-top: 1.8rem; font-size: .92rem; color: var(--ink-soft); }

/* Kontakt */
.contact { background: var(--tint); }
.mail { font-family: var(--serif); font-size: 1.3rem; }
form { display: grid; gap: .4rem; }
label { font-weight: 600; font-size: .95rem; margin-top: .6rem; }
input, textarea { font: inherit; color: inherit; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: .75rem .9rem; width: 100%; }
input:focus, textarea:focus { border-color: var(--ink); }
form .btn { margin-top: 1rem; justify-self: start; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 1.6rem 0; font-size: .95rem; color: var(--ink-soft); }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.foot p { margin: 0; }

/* Responsive */
@media (max-width: 860px) {
  .hero-grid, .split, .offers, .topics { grid-template-columns: 1fr; }
  .bar { flex-direction: column; align-items: flex-start; padding: .7rem 0; }
  nav { gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
