/* Brand-Portal Hub-Templates — handgemachtes CSS-Bundle.
 *
 * Ersatz für den Tailwind-CDN-Roundtrip + Google-Fonts-Lato.
 * Wir wollen den Hub DSGVO-konform betreiben (keine Drittanbieter-Calls)
 * und die ~30 KB Tailwind-Runtime einsparen.
 *
 * Convention: nur Klassen die in templates/{base,landing,hub}.html +
 * blocks/{hero,rich_text,color_palette}.html vorkommen. Erweitern wenn
 * neue Templates dazukommen. Keine Tailwind-utility-Variants
 * generieren — händisch.
 */

/* ─── Lato self-hosted via ADN ────────────────────────────────── */
/* Quelle: eigener Brand-Portal-ADN, gezogen im Docker-Build (brand-Stage).
   lato.css bringt alle 14 Schnitte (100/300/400/500/600/700/900 + Italics)
   mit; @font-face-Bloecke liegen in der importierten Datei, woff2 unter
   ./fonts/lato/LatoLatin-*.woff2. */
@import url('./fonts/lato.css');


/* ─── CSS-Variables (Editorial-Theme) ─────────────────────────── */

:root {
  --accent-rgb: 234 102 30;        /* TT-Orange default */
  --ink-rgb: 30 30 27;
  --ink-soft-rgb: 90 90 87;
  --ink-mute-rgb: 127 127 128;
  --paper-rgb: 250 250 250;
  --line-rgb: 230 230 230;
}


/* ─── Minimal Reset ────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
h1, h2, h3, h4, h5, h6, p, ul, ol, dl, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; padding: 0; font: inherit; cursor: pointer; }


/* ─── Body / Typografie ───────────────────────────────────────── */

body {
  font-family: 'Lato', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: rgb(var(--ink-rgb));
  background: rgb(var(--paper-rgb));
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; }

.font-sans { font-family: 'Lato', system-ui, sans-serif; }
.font-mono { font-family: ui-monospace, 'JetBrains Mono', 'Menlo', monospace; }
.font-light { font-weight: 300; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }

.text-tt-15 { font-size: 0.9375rem; line-height: 1.6; }
.text-tt-18 { font-size: 1.125rem;  line-height: 1.55; }
.text-tt-22 { font-size: 1.375rem;  line-height: 1.4; }
.text-tt-30 { font-size: 1.875rem;  line-height: 1.25; }
.text-tt-40 { font-size: 2.5rem;    line-height: 1.15; }
.text-tt-60 { font-size: 3.75rem;   line-height: 1.05; }

.text-xs   { font-size: 0.75rem;    line-height: 1.4; }
.text-\[11px\] { font-size: 11px; }

.uppercase { text-transform: uppercase; }
.tracking-\[0\.15em\] { letter-spacing: 0.15em; }
.tracking-wider { letter-spacing: 0.05em; }
.leading-tight { line-height: 1.15; }
.italic { font-style: italic; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


/* ─── Color-Utilities ──────────────────────────────────────────── */

.text-ink       { color: rgb(var(--ink-rgb)); }
.text-ink-soft  { color: rgb(var(--ink-soft-rgb)); }
.text-ink-mute  { color: rgb(var(--ink-mute-rgb)); }
.text-accent    { color: rgb(var(--accent-rgb)); }
.text-white     { color: #fff; }
.text-amber-700 { color: #b45309; }

.bg-paper { background-color: rgb(var(--paper-rgb)); }
.bg-ink   { background-color: rgb(var(--ink-rgb)); }
.bg-line  { background-color: rgb(var(--line-rgb)); }
.bg-white { background-color: #fff; }
.bg-accent { background-color: rgb(var(--accent-rgb)); }
.bg-line\/20 { background-color: rgb(var(--line-rgb) / 0.2); }
.bg-line\/40 { background-color: rgb(var(--line-rgb) / 0.4); }
.bg-accent\/5 { background-color: rgb(var(--accent-rgb) / 0.05); }

.border           { border: 1px solid rgb(var(--line-rgb)); }
.border-b         { border-bottom: 1px solid rgb(var(--line-rgb)); }
.border-t         { border-top: 1px solid rgb(var(--line-rgb)); }
.border-line      { border-color: rgb(var(--line-rgb)); }
.border-accent    { border-color: rgb(var(--accent-rgb)); }
.border-accent\/40 { border-color: rgb(var(--accent-rgb) / 0.4); }
.rounded-sm { border-radius: 2px; }
.rounded-full { border-radius: 9999px; }

/* hover */
.hover\:text-accent:hover { color: rgb(var(--accent-rgb)); }
.hover\:border-accent:hover { border-color: rgb(var(--accent-rgb)); }
.transition { transition-property: color, background-color, border-color, transform, opacity; transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color; transition-duration: 150ms; }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }


/* ─── Layout: Box-Model + Flex/Grid ───────────────────────────── */

.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.hidden { display: none; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-\[16\/9\] { aspect-ratio: 16 / 9; }

.min-w-0 { min-width: 0; }
.max-w-prose { max-width: 65ch; }
.max-w-3xl { max-width: 48rem; }
.max-w-5xl { max-width: 64rem; }
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-8 { width: 2rem; }
.w-12 { width: 3rem; }
.h-8 { height: 2rem; }
.h-12 { height: 3rem; }
.h-auto { height: auto; }
.max-h-full { max-height: 100%; }
.min-h-screen { min-height: 100vh; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Padding */
.px-2 { padding-left: 0.5rem;  padding-right: 0.5rem; }
.px-4 { padding-left: 1rem;    padding-right: 1rem; }
.px-6 { padding-left: 1.5rem;  padding-right: 1.5rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-2 { padding-top: 0.5rem;   padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem;  padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem;     padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem;   padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem;     padding-bottom: 2rem; }
.py-12 { padding-top: 3rem;    padding-bottom: 3rem; }
.py-16 { padding-top: 4rem;    padding-bottom: 4rem; }
.py-20 { padding-top: 5rem;    padding-bottom: 5rem; }
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.pb-4 { padding-bottom: 1rem; }
.pl-1 { padding-left: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-4 { padding-top: 1rem; }

/* Margin */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-24 { margin-top: 6rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-20 { margin-bottom: 5rem; }
.mb-24 { margin-bottom: 6rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 0.75rem; }

.object-contain { object-fit: contain; }
.overflow-hidden { overflow: hidden; }
.cursor-pointer { cursor: pointer; }
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Asset-Download-Block */
.list-none { list-style: none; }
.p-0 { padding: 0; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.opacity-60 { opacity: 0.6; }
.border-dashed { border-style: dashed; }
.hover\:border-accent:hover { border-color: rgb(var(--accent-rgb)); }

/* Spacer-Block — feste Höhen-Stops, an die Token-Skala angelehnt */
.h-4 { height: 1rem; }
.h-12 { height: 3rem; }
.h-24 { height: 6rem; }

/* Custom-HTML-Block — Wrapper, ansonsten Inline-Styles vom Autor */
.tt-custom-html > * + * { margin-top: 1rem; }
.tt-custom-html img,
.tt-custom-html video,
.tt-custom-html iframe { max-width: 100%; height: auto; border-radius: 4px; }
.tt-custom-html iframe { aspect-ratio: 16 / 9; }
.tt-custom-html a { color: rgb(var(--accent-rgb)); text-decoration: underline; }

/* Lücken aus dem Hub-CSS-Lint (test_hub_css_lint) */
.max-w-full { max-width: 100%; }
.mb-2 { margin-bottom: 0.5rem; }
.p-3 { padding: 0.75rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.text-\[11px\] { font-size: 11px; line-height: 1.4; }
.tracking-\[0\.15em\] { letter-spacing: 0.15em; }

/* Quote-Block — linker Akzent-Balken, italic Body */
.border-l-4 { border-left-width: 4px; border-left-style: solid; }
.border-l-accent { border-left-color: rgb(var(--accent-rgb)); }
.pl-6 { padding-left: 1.5rem; }
.not-italic { font-style: normal; }
.mx-1 { margin-left: 0.25rem; margin-right: 0.25rem; }

/* Callout-Block — semantische Farben (info=accent, warning=amber, success=green) */
.bg-amber-50 { background-color: rgb(255 251 235); }
.border-accent\/30 { border-color: rgb(var(--accent-rgb) / 0.3); }
.border-amber-700\/30 { border-color: rgb(180 83 9 / 0.3); }
.text-amber-700 { color: rgb(180 83 9); }

/* Do/Don't-Block — grün/rot semantisch (nicht Brand-Akzent, weil
 * Do/Don't immer dieselbe Farbsprache haben muss, unabhängig vom Brand). */
.bg-green-50 { background-color: rgb(240 253 244); }
.bg-red-50 { background-color: rgb(254 242 242); }
.text-green-700 { color: rgb(21 128 61); }
.text-red-700 { color: rgb(185 28 28); }
.border-green-700\/30 { border-color: rgb(21 128 61 / 0.3); }
.border-red-700\/30 { border-color: rgb(185 28 28 / 0.3); }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }

/* Tonalität / Voice-Block — Prinzipien mit „Das sind wir / Das sind wir nicht".
 * Alternierende Bänder wie im Mockup (design/mock-tonalitaet-guide). Die ✓/✕
 * nutzen die grün/rot-Utilities des Do/Don't-Blocks (markenunabhängig). */
.tt-voice-band { padding: 2rem 1.75rem; border-radius: 8px; }
.tt-voice-band-alt { background: #f4f2ec; }
.space-y-2 > * + * { margin-top: 0.5rem; }

/* Asset-Grid-Block (Masonry per CSS multi-column).
 *
 * Spaltenbreite ist fix, Browser packt so viele Spalten rein wie passen
 * — automatisch responsive ohne Media-Queries. Items dürfen nicht
 * zwischen Spalten brechen, sonst wirkt's chaotisch. */
.tt-masonry {
  column-width: 18rem;
  column-gap: 1rem;
}
.tt-masonry-item {
  display: inline-block;
  width: 100%;
  margin: 0 0 1rem;
  break-inside: avoid;
  page-break-inside: avoid;
  -webkit-column-break-inside: avoid;
}
.mt-2 { margin-top: 0.5rem; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }


/* ─── tt-card / tt-prose (Editorial-Komponenten) ──────────────── */

.tt-card {
  background: #fff;
  border: 1px solid rgb(var(--line-rgb));
  border-radius: 4px;
}

/* Section-Heading: Orange-Signature-Tick (wiederkehrendes Marken-Detail) */
.tt-tick { flex-shrink: 0; width: 5px; height: 1.9rem; background: rgb(var(--accent-rgb)); }

/* Logo-Varianten-Cover: feste, moderate Höhe statt aspect-square — sonst
 * wird die Cover-Box bei schmalen Spalten (mobil) absurd hoch. */
.tt-variant-cover { height: 9.5rem; }
/* Logo bewusst KLEIN in der Box halten — viel Weißraum drumherum, wie bei
 * Frontify/Niice. Nicht raumfüllend (das war der Fehler: object-contain
 * skalierte bis fast an den Rand). max-width < 100% gibt auch horizontalen
 * Logos seitliche Luft. */
.tt-variant-logo { max-height: 4rem; max-width: 72%; }
@media (min-width: 768px) {
  .tt-variant-cover { height: 11rem; }
  .tt-variant-logo { max-height: 5rem; }
}

.tt-prose p { margin-bottom: 1rem; max-width: 60ch; }
.tt-prose h2 { font-size: 1.875rem; font-weight: 300; margin: 1.5rem 0 0.75rem; line-height: 1.25; }
.tt-prose h3 { font-size: 1.375rem; font-weight: 300; margin: 1.25rem 0 0.5rem; line-height: 1.4; }
.tt-prose ul { margin: 0.5rem 0 1rem 1.25rem; list-style: disc; max-width: 60ch; }
.tt-prose li { margin-bottom: 0.25rem; }
.tt-prose strong { font-weight: 700; }
.tt-prose a { color: rgb(var(--accent-rgb)); text-decoration: underline; }


/* ─── Responsive (md = 768px) ────────────────────────────────── */

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:flex { display: flex; }
  .md\:px-12 { padding-left: 3rem; padding-right: 3rem; }
  .md\:py-8 { padding-top: 2rem; padding-bottom: 2rem; }
  .md\:py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .md\:py-12 { padding-top: 3rem; padding-bottom: 3rem; }
  .md\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
  .md\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
  .md\:mb-24 { margin-bottom: 6rem; }
  .md\:text-tt-60 { font-size: 3.75rem; line-height: 1.05; }
}
