/* Summit Studios: Stylesheet, übernommen aus dem Claude-Design "Summit Studios Website" */

/* Schriften, lokal gehostet (kein Google-Fonts-Abruf) */
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/schibsted-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/schibsted-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/schibsted-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/schibsted-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --bg: #f8f9fb;
  --ink: #1b1f26;
  --ink-2: #2c323b;
  --muted: #4a515c;
  --subtle: #5f6672;
  --faint: #7d8592;
  --line: #e3e7ed;
  --line-2: #dfe4ec;
  --accent: #3b5f8a;
  --btn: #a7c3e4;
  --btn-hover: #97b6dc;
  --btn-ink: #1b2533;
  --ph: #e3edf8;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
body { color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; display: block; }

.page { min-height: 100vh; display: flex; flex-direction: column; }
.wrap { max-width: 1200px; width: 100%; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
main.wrap { flex: 1; }

/* Platzhalterfläche (gestreift), solange kein Bild hinterlegt ist */
.placeholder {
  border: 1px solid var(--line-2);
  background: repeating-linear-gradient(135deg, #eceff4 0 10px, #f4f6f9 10px 20px);
  display: flex; align-items: center; justify-content: center;
  font: 12px var(--mono); color: var(--faint); text-align: center; padding: 0 16px;
}

/* Header */
.site-header { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo-mark { position: relative; width: 25px; height: 17px; flex: none; }
.logo-mark span { position: absolute; bottom: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.logo-mark .back { left: 10px; width: 15px; height: 11px; background: #c9daee; }
.logo-mark .front { left: 0; width: 18px; height: 17px; background: #86a9d6; }
.main-nav { display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 15px; color: var(--muted); }
.main-nav a[aria-current] { color: var(--ink); font-weight: 600; }

/* Startseite: Hero */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-end; justify-content: space-between; padding: clamp(40px, 7vw, 72px) 0 clamp(56px, 8vw, 88px); }
.hero-text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 28px; }
.eyebrow { font: 500 13px var(--mono); color: var(--subtle); letter-spacing: 0.02em; }
.hero h1 { margin: 0; font-size: clamp(60px, 10vw, 112px); line-height: 0.92; font-weight: 600; letter-spacing: -0.045em; }
.hero p { margin: 0; max-width: 480px; font-size: 20px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { background: var(--btn); color: var(--btn-ink); padding: 14px 22px; border-radius: 999px; font-size: 15px; font-weight: 600; transition: background-color .15s; }
.btn:hover { background: var(--btn-hover); color: var(--btn-ink); }
.link-arrow { padding: 14px 18px; font-size: 15px; font-weight: 500; color: var(--ink); }
.phone { flex: none; width: 300px; max-width: 100%; height: 600px; border-radius: 44px; overflow: hidden; }
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone.has-image { border: 1px solid var(--line-2); background: #fff; }

/* Abschnittskopf (News) */
.section-head { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--ink); padding-bottom: 16px; }
.section-head h2 { margin: 0; font-size: 32px; font-weight: 600; letter-spacing: -0.02em; }
.section-head span { font: 13px var(--mono); color: var(--subtle); }

/* News-Liste */
.news { padding-bottom: 96px; scroll-margin-top: 24px; }
.news-item { display: flex; flex-wrap: wrap; gap: 8px 32px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.news-meta { flex: 0 0 160px; display: flex; flex-direction: column; gap: 6px; }
.news-meta time { font: 14px var(--mono); color: var(--subtle); }
.tag { font: 500 12px var(--mono); color: var(--accent); text-transform: uppercase; }
.news-body { flex: 1 1 360px; }
.news-body h3 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.news-text { margin-top: 8px; font-size: 16px; line-height: 1.5; color: var(--muted); max-width: 620px; }
.news-text p { margin: 0 0 8px; }
.news-text p:last-child { margin-bottom: 0; }
.news-text a, .prose a { color: var(--accent); font-weight: 500; }
.news-text a:hover, .prose a:hover { text-decoration: underline; text-underline-offset: 3px; }
.empty { padding: 28px 0; color: var(--subtle); }

/* Blog-Übersicht */
.page-head { display: flex; flex-wrap: wrap; gap: 24px 40px; justify-content: space-between; align-items: flex-end; padding: clamp(40px, 6vw, 64px) 0 48px; }
.display { margin: 0; font-size: clamp(56px, 8vw, 88px); line-height: 0.95; font-weight: 600; letter-spacing: -0.04em; }
.page-head p { margin: 0; max-width: 400px; font-size: 18px; line-height: 1.5; color: var(--muted); }
.featured { display: flex; flex-wrap: wrap; gap: 32px 48px; padding: 40px 0; border-top: 1px solid var(--ink); align-items: center; color: var(--ink); }
.featured:hover { color: var(--ink); }
.featured:hover h2 { color: var(--accent); }
.featured-media { flex: 1 1 420px; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); }
.featured-media img { width: 100%; height: 100%; object-fit: cover; }
.featured-text { flex: 1 1 340px; max-width: 820px; display: flex; flex-direction: column; gap: 16px; }
.meta { display: flex; flex-wrap: wrap; gap: 16px; font: 13px var(--mono); color: var(--subtle); }
.meta .cat { color: var(--accent); text-transform: uppercase; }
.featured h2 { margin: 0; font-size: clamp(30px, 3.6vw, 40px); line-height: 1.08; font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; transition: color .15s; }
.featured p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.post-list { padding-bottom: 96px; }
.post-row { display: flex; flex-wrap: wrap; gap: 8px 32px; padding: 28px 0; border-top: 1px solid var(--line); align-items: baseline; color: var(--ink); }
.post-row:hover { color: var(--ink); }
.post-row:hover h3 { color: var(--accent); }
.post-row .cat { flex: 0 0 160px; font: 13px var(--mono); color: var(--accent); text-transform: uppercase; }
.post-row-body { flex: 1 1 360px; }
.post-row h3 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.015em; transition: color .15s; }
.post-row p { margin: 8px 0 0; font-size: 16px; line-height: 1.5; color: var(--muted); max-width: 640px; }
.post-row time { flex: none; font: 13px var(--mono); color: var(--subtle); }
.post-list-end { border-top: 1px solid var(--line); }

/* Artikel */
.article-head { max-width: 720px; margin: 0 auto; padding: 56px 0 48px; }
.back { font: 13px var(--mono); color: var(--subtle); }
.article-head .meta { margin-top: 40px; }
.article-head h1 { margin: 16px 0 0; font-size: clamp(38px, 5.4vw, 56px); line-height: 1.04; font-weight: 600; letter-spacing: -0.035em; text-wrap: balance; }
.lede { margin: 24px 0 0; font-size: 22px; line-height: 1.45; color: var(--muted); text-wrap: pretty; }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 32px; font-size: 15px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: #e6ecf4; flex: none; object-fit: cover; }
.byline strong { display: block; font-weight: 600; }
.byline span { color: var(--subtle); }
.article-media { aspect-ratio: 21 / 9; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); }
.article-media img { width: 100%; height: 100%; object-fit: cover; }
.prose { max-width: 720px; margin: 0 auto; padding: 56px 0 80px; font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.article-head + .prose { padding-top: 8px; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 24px; text-wrap: pretty; }
.prose h2 { margin: 48px 0 16px; font-size: 28px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.prose h3 { margin: 36px 0 12px; font-size: 21px; line-height: 1.3; font-weight: 600; color: var(--ink); }
.prose blockquote { margin: 40px 0; padding: 0; font-size: 28px; line-height: 1.35; font-weight: 500; letter-spacing: -0.015em; color: var(--ink); }
.prose blockquote p { margin: 0; }
.prose blockquote p::before { content: "\201C"; }
.prose blockquote p::after { content: "\201D"; }
.prose ul, .prose ol { margin: 0 0 24px; padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.prose img { border-radius: 12px; margin: 8px 0 24px; border: 1px solid var(--line-2); }
.prose code { font: 0.88em var(--mono); background: #eef1f5; padding: 1px 5px; border-radius: 4px; }
.next-post { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: baseline; padding: 32px 0 72px; border-top: 1px solid var(--ink); color: var(--ink); }
.next-post:hover { color: var(--accent); }
.next-post .label { font: 13px var(--mono); color: var(--subtle); }
.next-post .title { font-size: 24px; font-weight: 600; letter-spacing: -0.015em; }

/* Rechtliches */
.legal-head { padding: clamp(40px, 6vw, 64px) 0 48px; border-bottom: 1px solid var(--ink); }
.legal-head p { margin: 16px 0 0; font-size: 18px; color: var(--muted); }
.legal { display: flex; flex-wrap: wrap; gap: 48px 72px; padding: 48px 0 96px; }
.toc { flex: 0 0 220px; align-self: flex-start; position: sticky; top: 24px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.toc .label { font: 12px var(--mono); color: var(--subtle); margin-bottom: 12px; }
.toc a { padding: 8px 0; font-weight: 600; }
.toc a.sub { padding: 4px 0 4px 16px; color: var(--subtle); font-weight: 400; }
.toc .updated { margin-top: 20px; font: 12px var(--mono); color: var(--subtle); }
.legal-body { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 72px; max-width: 720px; font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.legal-body section, .legal-body h3 { scroll-margin-top: 24px; }
.legal-body h2 { margin: 0 0 20px; font-size: 32px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.legal-body h3 { margin: 32px 0 8px; font-size: 19px; font-weight: 600; color: var(--ink); }
.legal-body p { margin: 0 0 16px; }
.legal-body a { color: var(--accent); }
.muted { color: var(--subtle); }
.facts { display: grid; grid-template-columns: minmax(120px, 180px) minmax(0, 1fr); gap: 12px 16px; padding: 24px 0; margin: 0 0 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts dt { color: var(--subtle); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.ph { background: var(--ph); padding: 0 4px; border-radius: 3px; }
.faq { border-top: 1px solid var(--line); }
.faq > div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.faq strong { display: block; font-weight: 600; color: var(--ink); }
.faq p { margin: 4px 0 0; }

/* 404 */
.notfound { padding: clamp(56px, 10vw, 120px) 0; max-width: 560px; }
.notfound p { font-size: 18px; line-height: 1.5; color: var(--muted); margin: 20px 0 32px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 14px; color: var(--subtle); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }

@media (max-width: 720px) {
  .toc { position: static; flex-basis: 100%; }
  .phone { height: auto; aspect-ratio: 1 / 2; }
  .facts { grid-template-columns: 1fr; gap: 2px 0; }
  .facts dd { margin-bottom: 12px; }
}

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