/*
 ═══════════════════════════════════════════════════════════════
  THERMO PROTECT — THEME.CSS
  Zentrale Designdatei. Hier alle globalen Änderungen vornehmen.
  Diese Datei wird von allen Seiten eingebunden.
 ═══════════════════════════════════════════════════════════════

  INHALTSVERZEICHNIS
  ──────────────────
  1.  Design Tokens (Farben, Schriften, Abstände)
  2.  Reset & Base
  3.  Navigation (Desktop + Mobile Drawer)
  4.  Shared Utilities (Eyebrow, H2, Lead, Buttons)
  5.  Industry Bar
  6.  Page Header (Innenseiten)
  7.  Footer
  8.  Breakpoints

 ═══════════════════════════════════════════════════════════════ */


/* ─── 1. DESIGN TOKENS ──────────────────────────────────────── */
/*
  ┌─────────────────────────────────────────────────────────┐
  │  HIER KANNST DU GLOBAL ÄNDERN:                          │
  │  --color-primary  → Hauptfarbe (Nav, Buttons, Footer)   │
  │  --color-accent   → Akzentfarbe (Links, Tags, Eyebrows) │
  │  --font-sans      → Fließtextschrift                    │
  │  --font-serif     → Überschriftenschrift                │
  └─────────────────────────────────────────────────────────┘
*/
:root {
  /* Farben */
  --color-primary:   #0f2535;   /* Navy – Nav, Buttons, Footer */
  --color-primary-d: #1e4060;   /* Dunkleres Navy – Hover */
  --color-accent:    #0a7fa8;   /* Blau – Links, Tags, Eyebrows */
  --color-rule:      #d0dde6;   /* Trennlinien */
  --color-bg:        #f7f9fb;   /* Hellgrauer Hintergrund */
  --color-white:     #ffffff;
  --color-text:      #1a2a35;   /* Haupttext */
  --color-muted:     #607383;   /* Sekundärtext */

  /* Typografie */
  --font-sans:   'IBM Plex Sans', sans-serif;
  --font-serif:  'IBM Plex Serif', serif;

  /* Abstände */
  --px:     1.25rem;   /* Horizontaler Seitenabstand (Mobile) */
  --nav-h:  60px;      /* Navigationshöhe (Mobile) */
  --radius: 6px;       /* Eckenradius Karten */
}


/* ─── 2. RESET & BASE ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px; line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }


/* ─── 3. NAVIGATION ─────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-rule);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--px);
}

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 32px; height: 32px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text .l1 {
  font-family: var(--font-serif);
  font-size: 1.05rem; font-weight: 500;
  color: var(--color-primary); letter-spacing: 0.01em;
}
.logo-text .l2 {
  font-size: 0.58rem; font-weight: 400; letter-spacing: 0.18em;
  color: var(--color-muted); text-transform: uppercase; margin-top: 2px;
}

/* Hamburger */
.nav-toggle {
  display: flex; flex-direction: column; gap: 5px;
  width: 36px; height: 36px; padding: 8px 6px;
  background: none; border: none; cursor: pointer;
  justify-content: center; align-items: center;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--color-primary); border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}
nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.open .nav-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Drawer */
.nav-drawer {
  display: none;
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; z-index: 199;
  background: var(--color-white);
  flex-direction: column;
  padding: 2rem var(--px) 3rem;
  border-top: 1px solid var(--color-rule);
  overflow-y: auto;
}
nav.open ~ .nav-drawer { display: flex; }
.nav-drawer ul { list-style: none; display: flex; flex-direction: column; }
.nav-drawer ul li { border-bottom: 1px solid var(--color-rule); }
.nav-drawer ul a {
  display: block; padding: 1rem 0;
  font-size: 1rem; font-weight: 500; color: var(--color-text);
  text-decoration: none; transition: color 0.2s;
}
.nav-drawer ul a:hover { color: var(--color-accent); }
.nav-drawer ul a.active { color: var(--color-primary); font-weight: 600; }
.nav-drawer .drawer-cta {
  margin-top: 1.5rem; display: block; text-align: center;
  background: var(--color-primary); color: white !important;
  padding: 0.9rem 1.5rem; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
}

/* Desktop Nav Links — hidden mobile */
.nav-links { display: none; }


/* ─── 4. SHARED UTILITIES ───────────────────────────────────── */
.section-inner { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 var(--px); }
section { padding: 3.5rem 0; }

.eyebrow {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--color-accent);
  display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.85rem;
}
.eyebrow::before {
  content: ''; width: 18px; height: 1.5px;
  background: var(--color-accent); display: block; flex-shrink: 0;
}

h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 5vw, 2.35rem);
  color: var(--color-primary); font-weight: 400;
  line-height: 1.25; letter-spacing: -0.01em; margin-bottom: 0.85rem;
}
h3 { font-size: 0.95rem; font-weight: 600; color: var(--color-primary); }

.lead {
  font-size: 1rem; color: var(--color-muted);
  line-height: 1.8; font-weight: 400; margin-bottom: 2rem;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--color-primary); color: white;
  padding: 0.85rem 1.75rem; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem;
  text-decoration: none; transition: background 0.2s;
}
.btn-primary:hover { background: var(--color-primary-d); }
.btn-outline {
  display: inline-block;
  background: transparent; color: var(--color-primary);
  padding: 0.85rem 1.75rem; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem;
  text-decoration: none; transition: all 0.2s;
  border: 1.5px solid var(--color-rule);
}
.btn-outline:hover { border-color: var(--color-primary); }
.btn-full { display: block; text-align: center; }

/* Cards */
.card-icon { width: 44px; height: 44px; margin-bottom: 1rem; }
.card-icon svg { width: 44px; height: 44px; }

.temp-tag {
  display: inline-block; font-size: 0.73rem; font-weight: 600;
  color: var(--color-accent); letter-spacing: 0.02em;
  border: 1px solid rgba(10,127,168,0.25);
  padding: 0.2rem 0.6rem; border-radius: 3px;
  background: rgba(10,127,168,0.04);
}

/* Divider */
.rule { height: 1px; background: var(--color-rule); }

/* Page content prose */
.prose h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); margin-top: 2.5rem; margin-bottom: 0.75rem; }
.prose h3 { font-size: 1rem; margin-top: 1.75rem; margin-bottom: 0.5rem; }
.prose p  { font-size: 0.97rem; color: var(--color-muted); line-height: 1.8; margin-bottom: 1rem; }
.prose ul { margin: 0.75rem 0 1rem 1.25rem; }
.prose ul li { font-size: 0.97rem; color: var(--color-muted); line-height: 1.8; margin-bottom: 0.35rem; }
.prose strong { color: var(--color-text); font-weight: 600; }


/* ─── 5. INDUSTRY BAR ───────────────────────────────────────── */
.industry-bar {
  background: var(--color-primary);
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.industry-bar::-webkit-scrollbar { display: none; }
.industry-bar-inner {
  display: flex; align-items: stretch;
  min-width: max-content; padding: 0 var(--px);
}
.industry-item {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.9rem 1.25rem;
  color: rgba(255,255,255,0.55); font-size: 0.8rem; font-weight: 500;
  border-right: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap; transition: color 0.2s;
}
.industry-item:last-child { border-right: none; }
.industry-item svg { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.6; }


/* ─── 6. PAGE HEADER (Innenseiten) ─────────────────────────── */
.page-header {
  padding-top: calc(var(--nav-h) + 2.5rem);
  padding-bottom: 2.5rem;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-rule);
}
.page-header .breadcrumb {
  font-size: 0.75rem; color: var(--color-muted);
  display: flex; align-items: center; gap: 0.4rem; margin-bottom: 1rem;
}
.page-header .breadcrumb a { text-decoration: none; color: var(--color-muted); }
.page-header .breadcrumb a:hover { color: var(--color-accent); }
.page-header .breadcrumb span { opacity: 0.4; }
.page-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 5vw, 2.8rem);
  color: var(--color-primary); font-weight: 400;
  line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 0.75rem;
}
.page-header .sub {
  font-size: 1rem; color: var(--color-muted); line-height: 1.75; max-width: 580px;
}


/* ─── 7. FOOTER ─────────────────────────────────────────────── */
footer { background: var(--color-primary); padding: 3rem 0 2rem; }
.footer-grid {
  display: flex; flex-direction: column; gap: 2.5rem;
  padding: 0 var(--px); max-width: 1140px; margin: 0 auto;
}
.footer-brand .logo { margin-bottom: 0.85rem; }
.footer-brand .logo-text .l1,
.footer-brand .logo-text .l2 { color: rgba(255,255,255,0.7); }
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.4); line-height: 1.75; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
footer h4 {
  font-size: 0.68rem; font-weight: 700;
  color: rgba(255,255,255,0.35); text-transform: uppercase;
  letter-spacing: 0.12em; margin-bottom: 1rem;
}
footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
footer a {
  color: rgba(255,255,255,0.5); text-decoration: none;
  font-size: 0.88rem; font-weight: 400; transition: color 0.2s;
}
footer a:hover { color: rgba(255,255,255,0.85); }
footer a.active-footer { color: rgba(255,255,255,0.85); }
.footer-divider {
  max-width: 1140px; margin: 2rem auto 0;
  padding: 1.5rem var(--px) 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-direction: column; gap: 0.4rem;
}
.footer-divider span { font-size: 0.78rem; color: rgba(255,255,255,0.25); font-weight: 400; }
.footer-tagline { font-style: italic; }


/* ─── 8. BREAKPOINTS ────────────────────────────────────────── */

/* Tablet ≥ 640px */
@media (min-width: 640px) {
  :root { --px: 2rem; }
  .btn-full { display: inline-block; text-align: left; }
  .footer-divider { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* Desktop ≥ 1024px */
@media (min-width: 1024px) {
  :root { --px: 2.5rem; --nav-h: 68px; }

  /* Nav: Hamburger weg, Links sichtbar */
  .nav-toggle { display: none; }
  nav.open ~ .nav-drawer { display: none; }
  .nav-links {
    display: flex; align-items: center; gap: 2rem; list-style: none;
  }
  .nav-links a {
    text-decoration: none; color: var(--color-muted);
    font-size: 0.9rem; font-weight: 500; transition: color 0.2s;
  }
  .nav-links a:hover { color: var(--color-primary); }
  .nav-links a.active { color: var(--color-primary); font-weight: 600; }
  .nav-cta {
    background: var(--color-primary) !important; color: white !important;
    padding: 0.5rem 1.25rem; border-radius: var(--radius);
    font-weight: 600 !important;
  }
  .nav-cta:hover { background: var(--color-primary-d) !important; }

  section { padding: 5.5rem 0; }
  .lead { font-size: 1.05rem; max-width: 600px; }
  .page-header { padding-top: calc(var(--nav-h) + 3.5rem); padding-bottom: 3.5rem; }

  /* Footer 4 col */
  .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
  .footer-cols { display: contents; }
}
