﻿/*************************
Core
*************************/

.pagebreak {
  page-break-before: always;
  /* für ältere Browser */
  break-before: page;
  /* moderner Standard */
}

/* Grundrhythmus & bessere Lesbarkeit */
:root {
  --border: silver;
  --brand: #205baf;
  --leading: 1.6;
  --maxw: 67ch;
  --muted: #6b6b6b;
  --shadow: 0 1px 2px rgba(0, 0, 0, .05);
  --text: #3a3a3a;
  --white: #ffffff;
}

body {
  font-family: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-optical-sizing: auto;
  /* für variable Fonts */
  font-style: normal;
  /* Hinweis: 370 ist unüblich, Browser runden ggf. -> 400 */
  font-weight: 400;
  margin: 0;
}

/* Bootstrap-Carousel-Icons (falls verwendet) */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: #000000;
  background-size: 50% 50%;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
}

/* Layout-Wrapper */
.hero {
  padding: clamp(48px, 8vw, 120px) 16px;
  background: #fff;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-weight: 700;
  font-size: clamp(28px, 5.5vw, 60px);
  line-height: 1.1;
  color: #0D0D0D;
  letter-spacing: -0.015em;
  text-wrap: balance;
  padding-top: 8%;
}

.hero-subtitle {
  font-weight: 400;
  font-size: clamp(22px, 3.4vw, 36px);
  line-height: 1.35;
  color: #2A2A2A;
  max-width: 60ch;
  margin: 1.5rem 0 2.5rem 0;
  text-wrap: balance;
  letter-spacing: -0.3px;
}

.hero-abschnitt {
  width: 100%;
  font-weight: 700;
  font-size: clamp(24px, 4.4vw, 36px);
  line-height: 1.2;
  color: #333;
  letter-spacing: -0.01em;
  text-wrap: balance;
  padding: 12px 0;
  margin-top: 5%;
  border-top: 2px solid black;
}

.intro {
  max-width: 65ch;
  margin: 0, 2rem auto 0, 2rem;
  padding: 1.25rem 1.5rem;
  background: #fafafa;
  font-size: 1.10rem;
  line-height: 1.55;
  border-left: 4px solid gray;
  /* dezenter Farb-Akzent */
}

/* Qualitätsboost auf sehr großen Screens */
@media (min-width: 1400px) {
  .hero-title {
    letter-spacing: -0.02em;
  }
}

/* Motion-Preference berücksichtigen (einmalig) */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

/* Grundstil für alle Überschriften */
h1,
h2,
h3 {
  font-weight: 600;
  color: #0D0D0D;
  margin: 0;
  text-wrap: balance;
}

/* Hero / wichtigste Überschriften */
h1 {
  font-size: clamp(32px, 6vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 0.5em;
}

/* Abschnittsüberschriften */
h2 {
  font-size: clamp(22px, 3.5vw, 34px);
  line-height: 1.2;
}

h3 {
  font-weight: 700;
  /* fetter auf kleinen Bildschirmen */
  line-height: 1.3;
  color: #222;
  font-size: clamp(24px, -1.5vw + 32px, 22px);
}

/* Fliesstext & Listen */
p,
ul,
li,
ol, 
tr,
td {
  font-weight: 500;
  font-size: 1rem;
  color: #444;
  hyphens: auto;
  line-height: 1.6;
  margin: 0 0 0.5em 0;
  max-width: 70ch;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  word-break: normal;
}

.readable {
  max-width: 67% !important;
  margin-left: 0;
  margin-right: auto;
}

/* Links */
a {
  text-decoration: none;
}

a.nav-link {
  color: #343a40;
  font-size: 14px;
  padding-left: 20px;
}

a.nav-link:hover {
  color: gray;
}

a.nav-link:visited {
  color: #343a40;
}

a.navbar-brand {
  color: black;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1em !important;
  font-weight: 600 !important;
  margin-left: 10px;
  padding-top: 8px;
}

/* Zitat/Blockquote */
.blockquote {
  border-left: 2px solid var(--brand);
  font-weight: 500;
  font-size: clamp(28px, 5.5vw, 60px);
  line-height: 1.1;
  color: #0D0D0D;
  letter-spacing: -1%;
  text-wrap: balance;
  padding-top: 8%;
}


/* Utilities & kleine Komponenten */
.bg-brand {
  background-color: var(--brand);
}

.b {
  font-weight: 600;
}

.border-left {
  border-left: 1px gray solid;
}

.col {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100%;
}

.dropdown-menu {
  font-size: 14px;
  color: #343a40;
}

.eyebrow {
  border-bottom: 2px solid var(--brand);
  color: var(--brand);
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-top: 1.6rem;
  padding: 0.125rem 0;
  text-transform: uppercase;
}

.hr-strong {
  background: gray;
  border: none;
  border-top: 3px solid gray !important;
  height: 0;
  margin: 2rem 0;
}

.important {
  border-top: 1px solid black;
}

.kicker {
  color: var(--brand);
  font-size: 1em;
  font-weight: 700;
  margin: 0 0 .25rem;
}

.lead {
  color: var(--text);
  font-size: clamp(1.2rem, 1.4vw, 1.8rem);
  font-weight: 450;
  hyphens: auto;
  line-height: 1.5;
  margin: 0 0 0.75rem 0;
}

.link {
  color: #0d6efd;
}

// In Glossar darauf achten

.math-container {
display: flex;
justify-content: center;
}
.math-container math {
max-width: 100%; /* Formel passt sich an Containerbreite an */
height: auto;
}

.mark {
  background-color: transparent;
  display: inline;
  font-weight: 600;
  hyphens: auto;
  margin: 0;
  padding: 0;
}

.no-border {
  border: none !important;
}

.small {
  font-size: 1rem;
}

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.tag {
  background: transparent;
  border: 1px solid var(--brand);
  border-radius: 4px;
  color: var(--brand);
  display: inline-block;
  font-size: 1em;
  padding: .2rem .5rem;
}

.white {
  color: var(--white);
}

/* Listenabstände */
ul,
ol {
  margin: 0.25rem 0 0.5rem;
  padding-left: 0.75rem;
}

/* Strichliste */
li.strich {
  list-style: none;
  max-width: var(--maxw);
  overflow-wrap: break-word;
  padding-left: 1.2rem;
  /* statt 1rem – grösserer Abstand */
  position: relative;
  word-break: normal;
}

li.strich::before {
  content: "-";
  position: absolute;
  left: 0;
}

/* Checkliste mit ✓ */
li.checklist {
  list-style: none;
  margin-left: 14px;
  margin-right: auto;
  max-width: var(--maxw);
  overflow-wrap: break-word;
  padding-left: 1rem;
  word-break: normal;
  position: relative;
}

/* Navigation spacing */
li.nav-item.dropdown,
.nav-item {
  margin: 2px;
  padding-left: 0.4rem;
}

/* Grids */
.grid {
  display: grid;
  gap: 1rem;
}

/* Baseline: Mobile First */

/* --- iPhone SE (max. 375px) --- */
@media (max-width: 375px) {
  .hero-card {
    padding: 0.75rem 1rem;
  }

  .eyebrow {
    font-size: 0.8rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .readable {
    max-width: 100% !important;
  }
}

/* --- Standard Smartphones (max. 430px) --- */
@media (max-width: 430px) {

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 90%;
    margin: 0 auto;
  }

  .container {
    padding: 0 0.2rem;
  }

  .readable {
    max-width: 100% !important;
  }
}

/* --- Kleine Tablets (max-width: 768px) --- */
@media (max-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-cta {
    gap: 0.5rem;
  }

  .container {
    max-width: 700px;
  }

  .readable {
    max-width: 100% !important;
  }
}

/* --- Tablets quer / kleine Laptops --- */
@media (min-width: 860px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .readable {
    max-width: 100% !important;
  }
}

/* --- Desktop --- */
@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1000px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1000px;
  }
}

/* --- Sehr schmale Screens (Fallback) --- */
@media (max-width: 360px) {
  .eyebrow {
    font-size: 0.8rem;
  }
}

/* ======== PRINT  ======== */

@media print {
/* Elemente ausblenden */
.noprint { display: none !important; }

/* A4-Seite mit korrekten Rändern */
@page {
size: A4;
margin: 2cm 2cm 2cm 2.5cm; /* top right bottom left */
}

/* Vertikale Linie am linken Rand */
.page::before {
content: "";
position: fixed;
top: 0;
bottom: 0;
left: 2.5cm;
border-left: 1px solid #000;
}

body {
font-family: arial, helvetica, sans-serif;
font-size: 10pt;
line-height: 1.35;
color: #000 !important;
background: #fff !important;
margin: 0;
}

.page { margin: 0; }

* {
  box-shadow: none !important;
  text-shadow: none !important;
  background: transparent !important;
  }

h1, h2, h3 {
color: #000 !important;
margin: 0.2em 0 0.35em 0 !important;
page-break-after: avoid;
orphans: 3;
widows: 3;
}

h1 { font-size: 16pt; font-weight: 600; }
h2 { font-size: 13pt; font-weight: 600; }
h3 { font-size: 11.5pt; font-weight: 600; }

p, ul, ol, li, blockquote, figure, table {
font-size: 10pt;
line-height: 1.35;
color: #000 !important;
orphans: 3;
widows: 3;
}

tr,td{
font-size:9pt; 
}
p { margin: 0 0 0.6em 0 !important; }
ul, ol { margin: 0.25em 0 0.6em 1.2em !important; padding: 0 !important; }
li { margin: 0.15em 0; }

li.strich { list-style: none !important; padding-left: 0 !important; }
li.strich::before { content: "– "; margin-left: -1.2em; }

a, a:visited { color: #000 !important; text-decoration: none !important; }
a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
a[href^="#"], a[href^="mailto:"]::after { content: ""; }

blockquote, .blockquote { border-left: 2pt solid #000 !important; padding: 0.4em 0.8em !important; }

hr, .hr-strong { border: 0 !important; height: 1px !important; background: #000 !important; opacity: .2 !important; margin: 10pt 0 !important; }

.important, .border-left { border-left: 2pt solid #000 !important; padding-left: 10pt !important; margin: 8pt 0 !important; }

.hero-card, .tag, .bg-brand, .white {
border-color: #000 !important;
background: transparent !important;
color: #000 !important;
box-shadow: none !important;
}

.tag { border: 1pt solid #000 !important; padding: 2pt 6pt !important; font-size: 9.5pt !important; }

.pagebreak { page-break-before: always; break-before: page; }
table { page-break-inside: avoid; }

html { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
