/* =========================================================================
   André Fritsch – Personal Brand
   Design: warm & persönlich · weiß / anthrazit · Akzent Blau→Violett + Cyan
   ========================================================================= */

/* ---- Design-Tokens ---------------------------------------------------- */
:root {
  --bg: #ffffff;
  --surface: #f5f7fb;
  --surface-2: #eef2fb;
  --border: #e6e9f0;

  --text: #1b1f2a;          /* Anthrazit */
  --text-muted: #5a6172;
  --text-soft: #818897;

  --accent: #3457ff;        /* kräftiges Blau/Indigo */
  --accent-deep: #2540d6;
  --accent-violet: #7c4dff; /* Hauch Violett */
  --accent-cyan: #00c2d6;   /* Cyan */
  --accent-soft: #eef1ff;

  --gradient: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent) 45%, var(--accent-violet) 100%);
  --gradient-text: linear-gradient(120deg, var(--accent) 0%, var(--accent-violet) 70%);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 26px;

  --shadow-sm: 0 1px 2px rgba(27, 31, 42, 0.05), 0 2px 8px rgba(27, 31, 42, 0.04);
  --shadow: 0 10px 30px rgba(27, 31, 42, 0.08);
  --shadow-lift: 0 18px 44px rgba(52, 87, 255, 0.16);

  --font: "Inter", "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;

  --maxw: 1100px;
  --maxw-narrow: 720px;
  --space: clamp(3rem, 7vw, 6rem);
}

/* Eigene Schrift „Figtree".
   Pfad ist relativ zu DIESER CSS-Datei (assets/css/) – daher ../fonts/ */
@font-face {
  font-family: "Figtree";
  src: url("../fonts/Figtree-Variable.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("../fonts/InterVariable.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
  }

/* ---- Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.18; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
/* Highlight: per ==...== im Markdown gesetzt – Text in Akzentfarbe */
.hl { color: var(--accent-deep); background: none; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
h3 { font-size: 1.25rem; }

/* ---- Layout-Helfer ---------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: var(--maxw-narrow); }
.section { padding: var(--space) 0; }
.lead { font-size: 1.2rem; color: var(--text-muted); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: 0.6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { box-shadow: var(--shadow-lift); }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-deep); }

/* ---- Header / Nav ----------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-weight: 800; font-size: 1.15rem; color: var(--text); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.site-nav { display: flex; gap: 0.4rem; }
.site-nav a {
  color: var(--text-muted); font-weight: 600; font-size: 0.98rem;
  padding: 0.5rem 0.9rem; border-radius: var(--radius-sm);
}
.site-nav a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.site-nav a.is-active { color: var(--accent-deep); background: var(--accent-soft); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 44px; height: 44px;
  background: none; border: none; cursor: pointer; padding: 10px; border-radius: var(--radius-sm);
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Hero ------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 6rem) 0; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 85% 10%, rgba(124, 77, 255, 0.10), transparent 70%),
    radial-gradient(55% 55% at 10% 90%, rgba(0, 194, 214, 0.10), transparent 70%);
}
.hero-inner {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 700;
  color: var(--accent); margin-bottom: 1rem;
}
.hero-title { font-size: clamp(2.4rem, 6vw, 3.8rem); }
.hero-title em {
  font-style: normal;
  background: var(--gradient-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { font-size: 1.25rem; color: var(--text-muted); margin-top: 1.2rem; max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }

.hero-media { display: flex; justify-content: center; }
.hero-photo {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lift); background: var(--surface-2);
  max-width: 420px; width: 100%;
}
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,0.4);
  pointer-events: none;
}
.hero-photo img { width: 100%; height: auto; }

/* ---- Page-Hero (Unterseiten) ----------------------------------------- */
.page-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 0; }
.page-hero h1 { margin-bottom: 0.6rem; }
.page-hero .lead { max-width: 60ch; }

/* ---- Sektionen -------------------------------------------------------- */
.section-intro .prose-center { text-align: center; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap;
}
.section-link { font-weight: 600; }
.section-latest { background: var(--surface); }

/* ---- Blog-Karten ------------------------------------------------------ */
.post-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.post-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: transparent; }
.post-card-link { display: block; padding: 1.6rem; color: inherit; height: 100%; }
.post-card-link:hover { text-decoration: none; }
.post-card-meta { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-bottom: 0.8rem; }
.post-card-meta time { color: var(--text-soft); font-size: 0.85rem; font-weight: 600; }
.card-topic, .article-topic {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent-deep); background: var(--accent-soft);
  padding: 0.2rem 0.6rem; border-radius: 999px;
}
.post-card-title { margin-bottom: 0.6rem; font-size: 1.2rem; }
.post-card-excerpt { color: var(--text-muted); font-size: 0.97rem; }
.post-card-more { display: inline-block; margin-top: 1rem; color: var(--accent-deep); font-weight: 600; font-size: 0.95rem; }
.empty { color: var(--text-muted); }

/* ---- Artikel / Prose -------------------------------------------------- */
.article { padding: clamp(2rem, 5vw, 3.5rem) 0 var(--space); }
.back-link { display: inline-block; font-weight: 600; color: var(--text-muted); margin-bottom: 1.5rem; }
.back-link:hover { color: var(--accent-deep); text-decoration: none; }
.article-header { margin-bottom: 2.5rem; }
.article-meta { display: flex; gap: 0.7rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.article-meta time { color: var(--text-soft); font-weight: 600; font-size: 0.9rem; }
.article-header h1 { font-size: clamp(2rem, 5vw, 2.9rem); }

.prose { font-size: 1.12rem; color: #2a2f3c; }
.prose > * + * { margin-top: 1.3rem; }
.prose p { line-height: 1.75; }
.prose h2 { margin-top: 2.6rem; }
.prose h3 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: 0.5rem; }
.prose a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2px; }
.prose blockquote {
  border-left: 4px solid var(--accent); background: var(--surface);
  padding: 1rem 1.4rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-muted); font-style: italic;
}
.prose code {
  background: var(--surface-2); padding: 0.15em 0.4em; border-radius: 6px;
  font-size: 0.9em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.prose img { display: block; border-radius: var(--radius); box-shadow: var(--shadow-sm); margin: 1.6rem auto; }
/* Schwebende Bilder – Text fließt daneben */
.prose img.img-right { float: right; max-width: 320px; margin: 0.4rem 0 1.2rem 1.8rem; }
.prose img.img-left  { float: left;  max-width: 320px; margin: 0.4rem 1.8rem 1.2rem 0; }
.prose::after { content: ""; display: block; clear: both; } /* Floats einschließen */
.prose h2, .prose h3 { clear: both; } /* Überschriften beginnen unter dem Bild */
@media (max-width: 600px) {
  .prose img.img-right, .prose img.img-left { float: none; max-width: 100%; margin: 1.6rem auto; }
}
.prose hr { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.prose-center > * { margin-left: auto; margin-right: auto; }
.prose-center p { max-width: 56ch; }

.article-footer {
  margin-top: 3rem; padding-top: 1.8rem; border-top: 1px solid var(--border);
  color: var(--text-muted);
}
.article-footer p { margin-bottom: 1.2rem; }

/* ---- Container-Bausteine (über :::name im Markdown) ------------------- */

/* Intro – Bild links, Fakten-Kacheln rechts (2×2), Text darunter */
.prose .intro {
  display: grid;
  grid-template-columns: 230px 1fr;
  column-gap: 1.8rem; row-gap: 1.4rem;
  align-items: stretch;
  margin-bottom: 1.6rem;
}
.prose .intro > img {
  grid-column: 1; grid-row: 1;
  width: 230px; margin: 0; align-self: start;
}
.prose .intro > .fakten { grid-column: 2; grid-row: 1; }
.prose .intro > .fakten ul {
  margin: 0; height: 100%;
  grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr;
}
.prose .intro > p { grid-column: 1 / -1; margin: 0; }

/* Fakten-/Kennzahlen-Zeile */
.prose .fakten ul {
  list-style: none; padding: 0; margin: 2rem 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.prose .fakten li {
  margin: 0; min-width: 0; overflow-wrap: break-word;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.2rem 1.3rem;
  color: var(--text-muted); font-size: 0.95rem; line-height: 1.45;
}
.prose .fakten li strong {
  display: block; color: var(--accent-deep); font-size: 1.35rem;
  letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 0.25rem;
}

/* Werte – fette Lead-ins in Akzentfarbe */
.prose .werte ul { list-style: none; padding: 0; margin: 1.4rem 0; }
.prose .werte li {
  position: relative; padding-left: 1.5rem; margin-bottom: 1rem;
}
.prose .werte li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gradient);
}
.prose .werte li strong { color: var(--accent-deep); }

/* Zeitstrahl */
.prose .timeline { position: relative; margin: 2rem 0; padding-left: 2rem; }
.prose .timeline::before {
  content: ""; position: absolute; left: 6px; top: 0.4em; bottom: 0.4em;
  width: 2px; background: var(--border);
}
.prose .timeline > p { position: relative; margin: 0 0 1.7rem; color: var(--text-muted); }
.prose .timeline > p:last-child { margin-bottom: 0; }
.prose .timeline > p::before {
  content: ""; position: absolute; left: -2rem; top: 0.3em;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
.prose .timeline > p strong {
  display: block; color: var(--text); font-size: 1.05rem; margin-bottom: 0.25rem;
}

/* Zertifikate – schlichte Chips */
.prose .zertifikate ul {
  list-style: none; padding: 0; margin: 1.4rem 0;
  display: flex; flex-wrap: wrap; gap: 0.6rem;
}
.prose .zertifikate li {
  margin: 0; background: var(--accent-soft); color: var(--accent-deep);
  border-radius: 999px; padding: 0.5rem 1.05rem;
  font-size: 0.92rem; font-weight: 600;
}

@media (max-width: 640px) {
  /* Intro stapeln: Bild, dann Kacheln, dann Text */
  .prose .intro { grid-template-columns: 1fr; }
  .prose .intro > img,
  .prose .intro > .fakten,
  .prose .intro > p { grid-column: 1; grid-row: auto; }
  .prose .intro > img { width: 100%; max-width: 240px; }
  .prose .intro > .fakten ul { grid-template-columns: 1fr; height: auto; }
}
@media (max-width: 600px) {
  .prose .fakten ul { grid-template-columns: 1fr; }
}

/* ---- Footer ----------------------------------------------------------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); margin-top: var(--space); }
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between;
  padding-top: 2.5rem; padding-bottom: 2.5rem;
}
.footer-brand { display: flex; flex-direction: column; }
.footer-name { font-weight: 800; }
.footer-tagline { color: var(--text-muted); font-size: 0.92rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; }
.footer-nav a { color: var(--text-muted); font-size: 0.92rem; font-weight: 600; }
.footer-nav a:hover { color: var(--accent-deep); }
.footer-copy { color: var(--text-soft); font-size: 0.88rem; width: 100%; }

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 780px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 0.5rem 1.5rem 1.5rem; box-shadow: var(--shadow);
    transform: translateY(-120%); transition: transform 0.25s ease; visibility: hidden;
  }
  .site-nav.open { transform: translateY(0); visibility: visible; }
  .site-nav a { padding: 0.9rem 0.5rem; font-size: 1.05rem; border-radius: var(--radius-sm); }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text { order: 2; }
  .hero-media { order: 1; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-photo { max-width: 300px; }
}

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