/* IKT-Dienstleistungen Mario Korte — Stylesheet
   Systemschriften, keine externen Ressourcen (kein Google-Fonts-Abruf). */

:root {
  --ink: #0e1726;
  --ink-2: #33415c;
  --muted: #667389;
  --line: #e3e8ef;
  --line-2: #eef1f6;
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --bg-deep: #0e1726;
  --accent: #14549b;
  --accent-ink: #0f4280;
  --accent-soft: #eaf1fa;
  --radius: 10px;
  --wrap: 68rem;
  --narrow: 44rem;
  --shadow: 0 1px 2px rgba(14,23,38,.05), 0 8px 24px rgba(14,23,38,.06);
  --step: clamp(3rem, 6vw, 5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-ink); }

h1, h2, h3 { letter-spacing: -.021em; line-height: 1.18; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 650; }
h3 { font-size: 1.08rem; font-weight: 650; }
p { margin: 0 0 1rem; }
.lead { font-size: clamp(1.04rem, 1.5vw, 1.19rem); color: var(--ink-2); max-width: 40rem; line-height: 1.6; }

.kicker {
  font-size: .78rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 .55rem;
}
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
  padding: .7rem 1rem; z-index: 99; border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; color: #fff; }

/* ---------------------------------------------------------- Kopfzeile */
header.site {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 1.5rem;
  padding: .75rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { margin-right: auto; display: flex; }
.brand img { height: 32px; width: auto; }
header.site nav { display: flex; align-items: center; gap: .15rem; }
header.site nav a {
  padding: .45rem .7rem; border-radius: 7px; font-size: .94rem; font-weight: 500;
  color: var(--ink-2); text-decoration: none;
}
header.site nav a:hover { background: var(--bg-soft); color: var(--ink); }
header.site nav a[aria-current="page"] { color: var(--accent); font-weight: 650; }
.nav-cta {
  margin-left: .5rem; background: var(--ink); color: #fff !important;
  border-radius: 999px; padding: .45rem 1.05rem !important;
}
.nav-cta:hover { background: var(--accent-ink); }

.burger { display: none; width: 2.5rem; height: 2.5rem; cursor: pointer; position: relative; }
.burger span, .burger span::before, .burger span::after {
  position: absolute; left: .5rem; width: 1.5rem; height: 2px;
  background: var(--ink); content: ""; border-radius: 2px;
}
.burger span { top: 1.2rem; }
.burger span::before { top: -.45rem; left: 0; }
.burger span::after { top: .45rem; left: 0; }

@media (max-width: 52rem) {
  .burger { display: block; }
  header.site { flex-wrap: wrap; }
  header.site nav {
    display: none; width: 100%; flex-direction: column; align-items: stretch;
    gap: .1rem; padding: .5rem 0 .25rem;
  }
  #navtoggle:checked ~ nav { display: flex; }
  header.site nav a { padding: .65rem .7rem; }
  .nav-cta { margin: .4rem 0 0; text-align: center; }
}

/* ---------------------------------------------------------- Grundraster */
main {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2.5rem) var(--step);
}
main > section + section, main > section + .sectionhead { margin-top: var(--step); }
.sectionhead {
  margin: 0 0 1.75rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line);
  font-size: .8rem; font-weight: 650; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
main > .sectionhead { margin-top: var(--step); }
.more { margin-top: 1.5rem; font-weight: 550; }
.more a { text-decoration: none; }
.more a:hover { text-decoration: underline; }

.pagehead {
  margin-bottom: var(--step); padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.pagehead > * { max-width: 48rem; }
.pagehead h1 { margin-bottom: .9rem; }

/* ---------------------------------------------------------- Buttons */
.btn {
  display: inline-block; padding: .72rem 1.35rem; border-radius: 999px;
  background: var(--ink); color: #fff; text-decoration: none;
  font-weight: 600; font-size: .95rem; border: 1px solid var(--ink);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--bg-soft); color: var(--accent-ink); border-color: var(--accent-ink); }
.btn.small { padding: .5rem 1rem; font-size: .88rem; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }

/* ---------------------------------------------------------- Hero */
.hero { display: grid; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 56rem) { .hero { grid-template-columns: 1.08fr .92fr; } }
.hero h1 { margin-bottom: 1.1rem; }
.hero-img {
  width: 100%; border-radius: var(--radius); box-shadow: var(--shadow);
  aspect-ratio: 4 / 3; object-fit: cover; object-position: center 34%;
}

/* ---------------------------------------------------------- Kennzahlen */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1.5rem 1rem; margin: var(--step) 0 0;
  padding: 1.75rem 0; border-block: 1px solid var(--line);
}
.stats dt {
  font-size: clamp(1.7rem, 3vw, 2.15rem); font-weight: 700;
  letter-spacing: -.03em; line-height: 1; color: var(--ink);
}
.stats dd {
  margin: .45rem 0 0; font-size: .85rem; color: var(--muted);
  letter-spacing: .03em;
}

/* ---------------------------------------------------------- Schwerpunkte */
.stats + section { margin-top: var(--step); }
.focus { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .focus { grid-template-columns: repeat(3, 1fr); } }
.focus article { border-top: 2px solid var(--ink); padding-top: 1rem; }
.focus h3 { margin-bottom: .5rem; }
.focus p { color: var(--ink-2); margin: 0; }

/* ---------------------------------------------------------- Projektkacheln */
.tiles { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr)); }
.tile {
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none;
  color: inherit; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tile:hover {
  transform: translateY(-3px); border-color: var(--line);
  box-shadow: 0 2px 6px rgba(14,23,38,.07), 0 16px 34px rgba(14,23,38,.11);
}
.tile img {
  width: 100%; height: 9rem; object-fit: cover; object-position: top;
  background: var(--bg-soft); border-bottom: 1px solid var(--line-2);
}
/* Banner entsättigt, volle Farbe bei Hover/Fokus — nur wo es echtes Hover gibt. */
@media (hover: hover) {
  .tile img { filter: grayscale(1); transition: filter .3s ease; }
  .tile:hover img, .tile:focus-visible img { filter: none; }
}
@media (prefers-reduced-motion: reduce) { .tile, .tile img { transition: none; } }
.tile > div { padding: 1.1rem 1.25rem 1.35rem; }
.tile h3 { margin-bottom: .45rem; }
.tile p { margin: 0; font-size: .93rem; color: var(--muted); line-height: 1.55; }

/* ---------------------------------------------------------- Projektseite */
.project {
  display: grid; gap: 0; margin-bottom: 2.5rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--bg); box-shadow: var(--shadow);
  scroll-margin-top: 6rem;
}
@media (min-width: 54rem) { .project { grid-template-columns: 18rem 1fr; } }
.project { align-items: start; }
/* Banner in ihrem eigenen Seitenverhältnis, eingerückt statt randlos beschnitten */
.project .shot { padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2rem) 0; }
.project .shot img {
  width: 100%; border-radius: 8px; border: 1px solid var(--line-2);
}
@media (min-width: 54rem) {
  .project .shot { padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2rem); position: sticky; top: 6rem; }
}
.project .prose { padding: clamp(1.25rem, 3vw, 2rem); }
.project-title { font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin-bottom: .9rem; }
.project .prose > p { color: var(--ink-2); }
.project .prose h4 {
  font-size: 1rem; font-weight: 650; letter-spacing: -.01em;
  margin: 1.75rem 0 .5rem; color: var(--ink);
}
.project .prose .sub { margin: 1.75rem 0 .5rem; color: var(--ink); }
.storelinks { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.5rem 0 0; }

/* ---------------------------------------------------------- Über mich */
.about { display: grid; gap: clamp(1.75rem, 4vw, 3rem); align-items: center; margin-bottom: var(--step); }
@media (min-width: 54rem) { .about { grid-template-columns: 1.15fr .85fr; } }
.about h1 { margin-bottom: 1.1rem; }
.portrait {
  width: 100%; border-radius: var(--radius); box-shadow: var(--shadow);
  aspect-ratio: 4 / 5; object-fit: cover; object-position: center 22%;
}

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid; gap: .35rem 2rem; padding: 1.15rem 0;
  border-bottom: 1px solid var(--line-2);
}
@media (min-width: 42rem) { .timeline li { grid-template-columns: 11rem 1fr; } }
.timeline li:first-child { border-top: 1px solid var(--line-2); }
.period { margin: 0; color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; padding-top: .1rem; }
.timeline h3 { margin-bottom: .2rem; }
.timeline div p { margin: 0; color: var(--ink-2); font-size: .95rem; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .55rem; padding: 0; margin: 0; }
.tags a {
  display: inline-block; padding: .45rem .95rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-soft);
  font-size: .9rem; text-decoration: none; color: var(--ink-2);
}
.tags a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* ---------------------------------------------------------- Publikationen */
.year + .year { margin-top: 2.75rem; }
.year > h2 {
  font-size: .8rem; font-weight: 650; letter-spacing: .12em; color: var(--muted);
  padding-bottom: .7rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem;
  font-variant-numeric: tabular-nums;
}
.pubs { display: grid; gap: 1rem; }
@media (min-width: 50rem) { .pubs { grid-template-columns: 1fr 1fr; } }
.pub {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.35rem; background: var(--bg);
}
.badge {
  display: inline-block; margin: 0 0 .6rem; padding: .2rem .6rem;
  background: var(--accent-soft); color: var(--accent-ink);
  border-radius: 999px; font-size: .73rem; font-weight: 650;
  letter-spacing: .05em; text-transform: uppercase;
}
.pub h3 { margin-bottom: .5rem; line-height: 1.35; }
.pub .meta { margin: 0 0 .25rem; font-size: .9rem; color: var(--muted); }
.pub .venue { font-style: italic; }
.pub .src { margin: .8rem 0 0; font-size: .9rem; }
.pub .src a { text-decoration: none; font-weight: 550; }
.pub .src a::after { content: " ↗"; }
.pub .src a:hover { text-decoration: underline; }

/* ---------------------------------------------------------- Referenzen */
.quotes { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 50rem) { .quotes { grid-template-columns: 1fr 1fr; } }
.quote {
  margin: 0; padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); box-shadow: var(--shadow);
}
.quote blockquote { margin: 0 0 1.35rem; }
.quote blockquote p { margin: 0; color: var(--ink); font-size: 1.02rem; line-height: 1.62; }
.quote blockquote p::before { content: "„"; }
.quote blockquote p::after { content: "“"; }
.quote figcaption {
  display: flex; align-items: center; gap: .85rem;
  padding-top: 1.1rem; border-top: 1px solid var(--line-2);
  font-size: .9rem; color: var(--muted); line-height: 1.45;
}
.quote figcaption strong { color: var(--ink); }
.avatar {
  flex: none; width: 2.65rem; height: 2.65rem; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-ink);
  display: grid; place-items: center; font-weight: 700; font-size: .88rem;
}

/* ---------------------------------------------------------- Kontakt */
.contact {
  display: grid; gap: 2rem; align-items: center;
  margin-top: var(--step); padding: clamp(2rem, 5vw, 3.25rem);
  background: var(--bg-deep); color: #fff; border-radius: var(--radius);
}
@media (min-width: 50rem) { .contact { grid-template-columns: 1fr 1fr; } }
.contact .kicker { color: #8fb6e4; }
.contact h2 { color: #fff; margin-bottom: .75rem; }
.contact .lead { color: #c3cddd; }
.contact-card p { color: #c3cddd; }
.contact-card strong { color: #fff; }
.contact-links { margin: 1.4rem 0 0; line-height: 2; }
.contact-links a { color: #fff; text-decoration: none; border-bottom: 1px solid #46566f; }
.contact-links a:hover { color: #fff; border-color: #8fb6e4; }

/* ---------------------------------------------------------- Fließtext */
.prose.narrow { max-width: var(--narrow); }
.prose p { color: var(--ink-2); }
.prose h3 { margin: 1.75rem 0 .5rem; color: var(--ink); }
main ul, main ol { padding-left: 1.25rem; }
main li { margin-bottom: .4rem; }
ul.plain, ul.tags { list-style: none; padding: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

details {
  border: 1px solid var(--line); border-radius: var(--radius);
  margin: 0 0 .7rem; background: var(--bg); overflow: hidden;
}
details > summary {
  cursor: pointer; padding: .9rem 1.15rem; font-weight: 600; list-style: none;
  display: flex; align-items: center; gap: .6rem;
}
details > summary::-webkit-details-marker { display: none; }
details > summary::before {
  content: ""; width: .42rem; height: .42rem; flex: none;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg); transition: transform .2s ease;
}
details[open] > summary::before { transform: rotate(45deg); }
details > summary:hover { background: var(--bg-soft); }
details > *:not(summary) { margin-left: 1.15rem; margin-right: 1.15rem; }
details > *:last-child { margin-bottom: 1rem; }

/* ---------------------------------------------------------- Fußzeile */
footer.site {
  border-top: 1px solid var(--line); background: var(--bg-soft);
  padding: var(--step) clamp(1rem, 4vw, 2.5rem) 2.5rem;
  font-size: .92rem; color: var(--muted);
}
.foot-grid, .foot-legal { max-width: var(--wrap); margin-inline: auto; }
.foot-grid { display: grid; gap: 2rem; }
@media (min-width: 46rem) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; } }
.foot-logo { height: 30px; width: auto; margin-bottom: 1rem; }
footer.site h2 {
  font-size: .78rem; font-weight: 650; letter-spacing: .11em;
  text-transform: uppercase; color: var(--ink); margin-bottom: .8rem;
}
footer.site a { color: var(--ink-2); text-decoration: none; }
footer.site a:hover { color: var(--accent); text-decoration: underline; }
.foot-legal {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  font-size: .87rem;
}
.foot-legal p { margin: 0; }

/* Themen-/Technologiegruppen auf der Startseite */
.focus.wide { grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)); gap: 2rem; }
.focus.wide h3 { margin-bottom: .85rem; }
.focus .tags a, .focus .tags li {
  display: inline-block; padding: .3rem .7rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-soft);
  font-size: .84rem; color: var(--ink-2); margin: 0;
}
.focus .tags { gap: .4rem; }
/* Ergänzende Zeile in der Timeline (Tätigkeitsbeschreibung) */
.timeline .note { margin-top: .35rem; color: var(--muted); font-size: .92rem; }
