/* Beiklang Markenportal. Farbwelt F3 (Tinte und kaltes Papier), Schrift Schibsted Grotesk. */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/SchibstedGrotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --tinte: #18202E;
  --graublau: #8E9CB0;
  --papier: #F1F2F1;
  --grauschrift: #5E6878;
  --graublau-hell: #A9B6C7;
  --linie: #DADDE1;
  --weiss: #FFFFFF;
  --rand: clamp(16px, 4vw, 56px);
  --breite: 1240px;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--papier); color: var(--tinte);
  font: 400 17px/1.55 "Schibsted Grotesk", system-ui, sans-serif;
  font-feature-settings: "kern";
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
code { font: 500 0.92em/1 "Schibsted Grotesk", sans-serif; background: var(--weiss); border: 1px solid var(--linie); border-radius: 4px; padding: 2px 5px; overflow-wrap: anywhere; }

.sprung { position: absolute; left: -9999px; top: 8px; background: var(--tinte); color: var(--papier); padding: 8px 12px; border-radius: 6px; z-index: 20; }
.sprung:focus { left: 8px; }

/* Kopf: Glas mit Unschärfe, damit der Inhalt beim Rollen ruhig dahinter verschwindet */
.kopf {
  position: sticky; top: 0; z-index: 10;
  background: rgba(241, 242, 241, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(218, 221, 225, 0.8);
}
.kopf-innen { max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); height: 60px; display: flex; align-items: center; gap: 28px; }
.marke img { height: 26px; width: auto; }
.kopf nav { display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; min-width: 0; margin-left: auto; }
.kopf nav::-webkit-scrollbar { display: none; }
.kopf nav a { text-decoration: none; font-size: 15px; color: var(--grauschrift); white-space: nowrap; padding: 4px 0; }
.kopf nav a:hover { color: var(--tinte); }

/* Auftakt */
.auftakt { position: relative; max-width: 1600px; margin: 0 auto; }
.auftakt-bild img { width: 100%; height: min(78vh, 760px); object-fit: cover; object-position: 70% 50%; }
.auftakt-text {
  position: absolute; inset: 0; max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand);
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
}
.auftakt-text > * { max-width: 470px; }
.vorzeile { font-size: 15px; color: var(--grauschrift); letter-spacing: 0.02em; }
.auftakt-wort { width: min(340px, 70vw); }
.claim { font-size: clamp(24px, 2.6vw, 32px); font-weight: 500; line-height: 1.25; }
.lead { color: #2C3546; }
.aktion { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.knopf { display: inline-block; text-decoration: none; background: var(--tinte); color: var(--papier); padding: 11px 18px; border-radius: 8px; font-weight: 500; font-size: 15px; }
.knopf.leise { background: transparent; color: var(--tinte); border: 1px solid var(--tinte); }

/* Abschnitte */
.abschnitt { max-width: var(--breite); margin: 0 auto; padding: 88px var(--rand) 24px; }
.kopfzeile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px 48px; align-items: baseline; padding-bottom: 22px; margin-bottom: 28px; border-bottom: 1px solid var(--linie); }
.kopfzeile h2 { font-size: clamp(28px, 3.2vw, 40px); }
.kopfzeile p { color: var(--grauschrift); max-width: 640px; }
.zwischen { font-size: 21px; margin: 44px 0 16px; }
.absatz { max-width: 720px; margin-bottom: 18px; color: #2C3546; }
.neben { color: var(--grauschrift); font-size: 15px; }

.raster { display: grid; gap: 16px; margin: 0 0 16px; padding: 0; list-style: none; }
.raster.zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.raster.drei { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.raster.vier { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.raster.breit-links { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }

/* Kacheln: Text bleibt immer innen, lange Wörter brechen um */
.kachel {
  background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 22px; margin: 0; min-width: 0; overflow-wrap: break-word; hyphens: auto;
}
.kachel h3 { font-size: 21px; margin-bottom: 10px; }
.kachel h4 { font-size: 17px; margin-bottom: 6px; }
.kachel h4:not(:first-child) { margin-top: 18px; }
.kachel p + p { margin-top: 10px; }
.kachel.gross p:first-of-type { font-size: clamp(19px, 2vw, 23px); line-height: 1.4; }
.kachel.hinweis { background: transparent; border-style: dashed; }
figure.kachel { display: flex; flex-direction: column; gap: 16px; }
figcaption { font-size: 15px; color: var(--grauschrift); }
figcaption b { color: var(--tinte); font-weight: 500; margin-right: 6px; }

.claimkachel { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 150px; }
.claimtext { font-size: 22px; font-weight: 500; line-height: 1.3; }

/* Tabellen */
.tabelle { padding: 0; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 12px 18px; border-bottom: 1px solid var(--linie); vertical-align: top; }
th { font-weight: 500; color: var(--grauschrift); font-size: 14px; }
tbody tr:last-child td { border-bottom: 0; }
table.ton td:first-child { width: 58%; }
table.ton td:last-child { color: var(--grauschrift); text-decoration: line-through; text-decoration-color: var(--graublau); }
td.zahl { white-space: nowrap; }
.probe { display: inline-block; width: 46px; text-align: center; padding: 4px 0; border-radius: 5px; font-weight: 500; border: 1px solid var(--linie); }

/* Zeichen */
.konstruktion { width: 100%; max-height: 360px; margin: 0 auto; }
.stufe .stufen { display: flex; align-items: flex-end; gap: 22px; min-height: 100px; }
.stufe .stufen img { image-rendering: auto; }

/* Wortmarke */
.wortbuehne > img { width: min(620px, 100%); margin: 32px auto 12px; }
.schutz { position: relative; align-self: center; border: 1px dashed var(--graublau); }
.schutz img { border: 1px solid var(--linie); width: auto; }
.schutz.quer { padding: calc(var(--h) * 0.541); --h: 64px; }
.schutz.quer img { height: var(--h); }
.schutz.hoch { padding: calc(var(--h) * 0.188); --h: 170px; }
.schutz.hoch img { height: var(--h); }
.schutz .x { position: absolute; left: 0; top: 0; background: rgba(142, 156, 176, 0.18); color: var(--grauschrift); font-size: 13px; display: flex; align-items: center; justify-content: center; }
.schutz.quer .x { width: calc(var(--h) * 0.541); height: calc(var(--h) * 0.541); }
.schutz.hoch .x { width: calc(var(--h) * 0.188); height: calc(var(--h) * 0.188); }
.flaeche-tinte, .flaeche-papier { display: flex; align-items: center; justify-content: center; min-height: 140px; }
.flaeche-tinte { background: var(--tinte); border-color: var(--tinte); }
.flaeche-papier { background: var(--papier); }
.flaeche-tinte img, .flaeche-papier img { width: min(240px, 80%); }

/* Farben */
.farbe { padding: 0; overflow: hidden; gap: 0; }
.farbe .flaeche { height: 150px; border-bottom: 1px solid var(--linie); }
.farbe figcaption { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 3px; }
.farbe figcaption b { font-size: 18px; margin: 0 0 4px; }
.wert { font-variant-numeric: tabular-nums; color: var(--tinte); }
.rolle { margin-top: 8px; }
.raster.hilfs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hilf { display: flex; gap: 14px; align-items: flex-start; font-size: 14px; color: var(--grauschrift); padding: 16px; }
.hilf i { flex: none; width: 34px; height: 34px; border-radius: 6px; border: 1px solid var(--linie); }
.hilf b { color: var(--tinte); font-weight: 500; }
.hilf > span { min-width: 0; }

/* Schrift */
.probe-schrift p { line-height: 1.25; }
.probe-schrift .s600 { font-weight: 600; font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -0.015em; }
.probe-schrift .s500 { font-weight: 500; font-size: 24px; margin-top: 16px; }
.probe-schrift .s400 { font-size: 18px; line-height: 1.55; margin-top: 14px; }
.probe-schrift .ziffern { color: var(--grauschrift); margin-top: 16px; }
.s400i { font-weight: 400; } .s500i { font-weight: 500; } .s600i { font-weight: 600; }

/* App-Symbole */
.symbol-buehne { border-radius: 8px; min-height: 230px; display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; padding: 18px; }
.symbol-buehne.hell { background: linear-gradient(160deg, #E3E7EC, #C9D0D8); }
.symbol-buehne > img { width: auto; max-height: 200px; }
.symbol-buehne img.ios { border-radius: 22.37%; box-shadow: 0 10px 24px rgba(24, 32, 46, 0.25); max-height: 170px; }
.klein-reihe { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.android { gap: 10px; }
.android > img { width: 64px; border-radius: 4px; }
.android .schach { background: repeating-conic-gradient(#9aa1a9 0 25%, #b4bac1 0 50%) 0 0 / 12px 12px; }
.android .maske { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: var(--tinte); display: block; }
.android .maske img { width: 144px; max-width: none; margin: -24px; }
.leisten { display: flex; flex-direction: column; gap: 10px; }
.leiste { display: flex; align-items: center; gap: 14px; height: 36px; padding: 0 14px; border-radius: 6px; font-size: 14px; }
.leiste.hell { background: #ECECEC; color: #333; }
.leiste.dunkel { background: #2A2A2C; color: #ddd; }
.leiste.dunkel img.tpl { filter: invert(1); }
.leiste .zeit { color: var(--graublau-hell); font-variant-numeric: tabular-nums; }
.leiste img { width: 18px; height: 18px; }

/* Bilder */
.bild { padding: 10px 10px 16px; gap: 12px; }
.bild img { border-radius: 6px; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.bild figcaption { padding: 0 8px; }
.ansicht { padding: 12px 12px 18px; gap: 12px; margin-bottom: 16px; }
.ansicht img { border-radius: 6px; width: 100%; }
.ansicht figcaption { padding: 0 8px; }
.raster.zwei .ansicht img { max-height: 620px; width: auto; margin: 0 auto; }

/* Downloads */
.downloads .dl { padding: 0; }
.dl a { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; text-decoration: none; height: 100%; border-radius: var(--radius); }
.dl a:hover { background: #FAFBFA; }
.dl b { font-weight: 500; font-size: 18px; }
.dl span { color: var(--grauschrift); font-size: 15px; }
.dl .meta { margin-top: 8px; font-size: 14px; color: var(--tinte); }
.dl.haupt { background: var(--tinte); border-color: var(--tinte); }
.dl.haupt a, .dl.haupt .meta { color: var(--papier); }
.dl.haupt span { color: var(--graublau-hell); }
.dl.haupt a:hover { background: #1F2839; }

/* KI */
.codekachel { padding: 0; overflow: hidden; }
pre.code { margin: 0; padding: 22px; max-height: 560px; overflow: auto; font: 400 13.5px/1.6 ui-monospace, "SF Mono", Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; color: #2C3546; }

/* Fuß */
.fuss { background: var(--tinte); color: var(--papier); margin-top: 96px; }
.fuss-innen { max-width: var(--breite); margin: 0 auto; padding: 40px var(--rand); display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.fuss-innen img { height: 24px; width: auto; }
.fuss-innen p { color: var(--graublau-hell); font-size: 14px; }
.fuss nav { margin-left: auto; display: flex; gap: 22px; font-size: 15px; }
.fuss nav a { text-decoration: none; color: var(--papier); }

/* Rechtsseiten */
.recht { max-width: 760px; margin: 0 auto; padding: 72px var(--rand) 24px; }
.recht h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 28px; }
.recht h2 { font-size: 20px; margin: 32px 0 8px; }
.recht p { margin-bottom: 10px; }

/* Breiten */
@media (max-width: 1100px) {
  .raster.vier, .raster.hilfs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .raster.drei { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kopf nav { gap: 14px; }
  .kopf nav a { font-size: 14px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .kopf nav { display: none; }
  .kopfzeile { grid-template-columns: 1fr; gap: 10px; }
  .raster.zwei, .raster.drei, .raster.vier, .raster.hilfs, .raster.breit-links { grid-template-columns: minmax(0, 1fr); }
  .auftakt-bild img { height: 300px; object-position: 78% 50%; }
  .auftakt-text { position: static; padding-top: 28px; }
  .auftakt-text > * { max-width: none; }
  .abschnitt { padding-top: 64px; }
  .schutz.quer { --h: 40px; }
  .schutz.hoch { --h: 130px; }
  th, td { padding: 10px 12px; }
  table.ton td:first-child { width: auto; }
  .fuss nav { margin-left: 0; }
}
