/* Mike Feichtinger Design System: Ink auf Weiß, Inter, graue Flächen, Pill-Buttons */
/* Inter lokal (kein Google-Fonts-Abruf, DSGVO) */
@font-face {
  font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --black: #050505;
  --ink: #141414;
  --ink-soft: #171717;
  --white: #ffffff;
  --secondary: #fafafa;
  --secondary-darker: #f7f7f7;
  --tertiary: #f2f2f2;
  --grey: #a3a3a3;
  --neutral-200: #e5e5e5;
  --neutral-300: #d4d4d4;
  --neutral-500: #737373;
  --neutral-600: #525252;
  --green: #22c55e;
  --green-soft: #e9f9ef;
  --blue: #0099ff;
  --blue-soft: #e6f4ff;
  --red-soft: #fdecec;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: "SFMono-Regular", Menlo, Consolas, monospace;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --shadow-card: 0 2px 10px rgba(5, 5, 5, 0.05);
  --shadow-button: 0 1px 2px rgba(5, 5, 5, 0.12);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--black); text-decoration: underline; text-decoration-color: var(--neutral-300); text-underline-offset: 3px; transition: text-decoration-color 140ms var(--ease-out); }
a:hover { text-decoration-color: var(--black); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

.page { max-width: 760px; margin: 0 auto; padding: 96px 20px 128px; }

/* Typo */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--neutral-600); background: var(--tertiary); border-radius: var(--radius-pill); padding: 6px 14px; margin-bottom: 24px; letter-spacing: -0.02em; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
h1 { font-size: 64px; line-height: 1.0; font-weight: 600; letter-spacing: -0.04em; color: var(--black); margin: 0 0 20px; text-wrap: balance; font-optical-sizing: auto; }
h2 { font-size: 36px; line-height: 1.1; font-weight: 500; letter-spacing: -0.04em; color: var(--ink-soft); margin: 96px 0 16px; text-wrap: balance; }
h3 { font-size: 22px; line-height: 1.35; font-weight: 600; letter-spacing: -0.03em; color: var(--black); margin: 40px 0 8px; }
p { margin: 0 0 14px; text-wrap: pretty; }
.sub { font-size: 20px; line-height: 1.5; color: var(--neutral-600); letter-spacing: -0.03em; margin: 0 0 32px; }
strong { font-weight: 600; color: var(--black); }
ul, ol { padding-left: 1.3em; margin: 0 0 16px; }
li { margin: 6px 0; }
li::marker { color: var(--grey); }
.muted { color: var(--neutral-500); }
.small { font-size: 14px; }
hr { border: 0; border-top: 1px solid var(--neutral-200); margin: 80px 0 0; }

/* Meta */
.props { display: grid; grid-template-columns: 120px 1fr; gap: 10px 16px; font-size: 15px; margin: 0 0 40px; padding: 24px; background: var(--secondary); border-radius: var(--radius-lg); }
.props dt { color: var(--neutral-500); }
.props dd { margin: 0; color: var(--ink); }
.tag { display: inline-block; font-size: 13px; font-weight: 500; padding: 2px 10px; border-radius: var(--radius-pill); background: var(--white); border: 1px solid var(--neutral-200); white-space: nowrap; margin: 0 4px 4px 0; }

code { font-family: var(--mono); font-size: 0.85em; background: var(--tertiary); color: var(--black); padding: 0.12em 0.4em; border-radius: 6px; letter-spacing: 0; }

/* Hinweis-Karten (borderless, Fläche statt Rahmen) */
.callout { background: var(--secondary); border-radius: var(--radius-lg); padding: 24px; margin: 20px 0; }
.callout > div > p:last-child { margin-bottom: 0; }
.callout .ci { display: none; }
.callout.blue { background: var(--blue-soft); }
.callout.green { background: var(--green-soft); }
.callout.yellow { background: var(--tertiary); }
.callout.red { background: var(--red-soft); }

blockquote { margin: 64px 0 24px; font-size: 36px; line-height: 1.1; font-weight: 500; letter-spacing: -0.04em; color: var(--black); text-wrap: balance; }

/* Prompt-Blöcke */
.code { background: var(--secondary); border-radius: var(--radius-lg); margin: 16px 0 24px; overflow: hidden; }
.code .lang { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px 0 20px; font-size: 13px; font-weight: 500; color: var(--neutral-500); }
.code pre { margin: 0; padding: 12px 20px 22px; font-family: var(--mono); font-size: 13.5px; line-height: 1.6; letter-spacing: 0; color: var(--ink); white-space: pre-wrap; word-break: break-word; overflow-x: auto; }
.code pre.tree { white-space: pre; }
.copy { font: inherit; font-size: 13px; font-weight: 500; color: var(--white); background: var(--black); border: 0; border-radius: var(--radius-pill); padding: 6px 14px; cursor: pointer; box-shadow: var(--shadow-button); transition: transform 140ms var(--ease-out), opacity 140ms var(--ease-out); }
.copy:hover { opacity: 0.88; }
.copy:active { transform: scale(0.97); }

/* Toggles / FAQ */
details { background: var(--tertiary); border-radius: var(--radius-md); margin: 8px 0; transition: background 140ms var(--ease-out); }
details:hover { background: #ededed; }
details > summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 20px; position: relative; font-weight: 500; color: var(--black); }
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; line-height: 1; color: var(--neutral-600); transition: transform 240ms var(--ease-out); }
details[open] > summary::after { transform: translateY(-50%) rotate(45deg); }
details > .inner { padding: 0 20px 18px; }
details > .inner > *:last-child { margin-bottom: 0; }

/* Checklisten */
.todo { list-style: none; padding: 0; }
.todo li { display: flex; gap: 12px; align-items: flex-start; margin: 10px 0; }
.todo input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 3px 0 0; flex: none; border: 1.5px solid var(--neutral-300); border-radius: 6px; background: var(--white); cursor: pointer; display: grid; place-content: center; transition: background 140ms var(--ease-out), border-color 140ms var(--ease-out); }
.todo input::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--white); border-bottom: 2px solid var(--white); transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.todo input:checked { background: var(--black); border-color: var(--black); }
.todo input:checked::after { opacity: 1; }
.todo input:disabled { cursor: default; }
.todo input:checked:not(:disabled) + span { color: var(--neutral-500); text-decoration: line-through; }

/* Tabellen */
.table-wrap { overflow-x: auto; margin: 16px 0 12px; border-radius: var(--radius-lg); background: var(--secondary); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { padding: 14px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--neutral-200); }
tr:last-child td { border-bottom: 0; }
th { font-weight: 500; color: var(--neutral-500); }

/* Video */
.video { position: relative; aspect-ratio: 16 / 9; background: var(--black); border-radius: var(--radius-xl); overflow: hidden; margin: 0 0 40px; box-shadow: var(--shadow-card); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Inhaltsverzeichnis */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.toc a { text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ink); background: var(--tertiary); border-radius: var(--radius-pill); padding: 7px 14px; transition: background 140ms var(--ease-out); }
.toc a:hover { background: var(--neutral-200); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--black); color: var(--white); text-decoration: none; font-weight: 500; font-size: 16px; letter-spacing: -0.02em; border-radius: var(--radius-pill); padding: 14px 26px; box-shadow: var(--shadow-button); transition: transform 140ms var(--ease-out), opacity 140ms var(--ease-out); }
.btn:hover { opacity: 0.88; }
.btn:active { transform: scale(0.97); }
.btn.big { font-size: 17px; padding: 16px 30px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 0 0 40px; }

/* Bilder */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 24px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--radius-lg); display: block; background: var(--tertiary); }
.gallery figcaption { font-size: 13px; color: var(--neutral-500); margin-top: 8px; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cols .callout { margin: 0; }

footer { margin-top: 96px; padding-top: 32px; border-top: 1px solid var(--neutral-200); font-size: 13px; color: var(--neutral-500); }
footer p { margin: 0 0 8px; }
footer a { color: var(--neutral-500); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .page { padding: 56px 16px 96px; }
  h1 { font-size: 40px; }
  h2 { font-size: 28px; margin-top: 72px; }
  .sub { font-size: 18px; }
  blockquote { font-size: 28px; }
  .props { grid-template-columns: 96px 1fr; padding: 20px; }
  .cols { grid-template-columns: 1fr; }
  .gallery { gap: 8px; }
  .gallery figcaption { font-size: 12px; }
  th, td { padding: 12px 14px; }
  .video { border-radius: var(--radius-lg); }
}
