﻿/* ==========================================================================
   CSS OVERVIEW / QUICK NAV
   --------------------------------------------------------------------------
   1) DESIGN TOKENS / VARIABLES .......................... :root
   2) BASE / RESET-LIKE .................................. body, global prefs
   3) TYPOGRAPHY ......................................... h1–h3, p, lists, caption
   4) LINKS / NAV ........................................ a, .nav-link, .navbar
   5) LAYOUT HELPERS ...................................... .headspace .text, .grid, .container rules
   6) IMAGES ............................................. .img-custom (+ media)
   7) COMPONENTS ......................................... .reveal, .hero-*, carousel icons cta-primary, -secondary
   8) UTILITIES .......................................... .bi, .bg-brand, .b, borders, etc.
   9) SPECIAL CONTENT .................................... math, strich/check lists
  10) BREAKPOINTS ........................................ 375 / 430 / 768 / 860 / 992+
  11) PRINT .............................................. @media print, @page, print tweaks
  12) PAGE BREAK UTILITY ................................. .pagebreak
   ========================================================================== */


/* ==========================================================================
   1) DESIGN TOKENS / VARIABLES
   ========================================================================== */

:root {
  /* Colors */
  --border: silver;
  --brand: #205baf;
  --muted: #6b6b6b;
  --text: #3a3a3a;
  --white: #ffffff;

  /* Typography */
  --leading: 1.6;
  --maxw: 67ch;

  /* Effects */
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}


/* ==========================================================================
   2) BASE / RESET-LIKE
   ========================================================================== */

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;
  font-style: normal;
  font-weight: 400;
  margin: 0;
}

/* Motion preference */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}


/* ==========================================================================
   3) TYPOGRAPHY (Headings, Body, Lists)
   ========================================================================== */

.kicker{
font-size:.8rem; 
font-weight:400;
font-width: condensed;
color:rgb(99, 99, 99);
}

/* Headings: common */
h1,
h2,
h3 {
  font-weight: 600;
  color: #0d0d0d;
  margin: 0;
  text-wrap: balance;
}

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

/* Abschnittsüberschriften */
h2 {
  font-weight: 600;                    /* etwas klarer */
  font-size: clamp(24px, 3vw, 30px);   /* leicht größer */
  line-height: 1.2;
  letter-spacing: -0.005em;            /* leichte Nähe zu H1 */
  margin-bottom: 0.6em;
  color: #111827;                      /* technisch dunkel */
}
/* Unterüberschriften */
/* Fix: vorher war clamp(24px, -1.5vw + 32px, 22px) -> min größer als max */
h3 {
  font-weight: 700;
  line-height: 1.3;
  color: #222;
  font-size: clamp(20px, 2.2vw, 24px);
}

/* Fliesstext & Listen */
/* Hinweis: tr/td hier drin ist ok, aber Tabellen sind oft besser separat zu stylen */
p,
ul,
li,
ol,
tr,
td {
  font-weight: 400;
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
  margin: 0 0 0.5em 0;

  /* Silbentrennung / Umbruch */
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  overflow-wrap: break-word;
  word-break: normal;
}

.lead {
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.7;
}

@media (min-width: 992px) {
  .lead {
    font-size: 1.25rem;
  }
}

/* Bildunterschrift */
p.bildunterschrift {
  font-family: Helvetica, Arial, sans-serif;
  letter-spacing: 0.01em;
  font-weight: 400;
  font-size: 1rem;
  color: #555;
  line-height: 1.4;

  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  overflow-wrap: break-word;
  word-break: normal;

  margin-top: 10px;
  margin-bottom: 30px;
}

.gross {
  font-weight: 400;
  font-size: clamp(16px, 2.8vw, 22px);
  line-height: 1.35;
  color: #282828;
  margin: 0;
  padding: 0 0 2% 0;
  text-wrap: balance;
  letter-spacing: -0.3px;
}

/* Lists spacing */
ul,
ol {
  margin: 0.25rem 0 0.5rem;
  padding-left: 0.75rem;
}


/* ==========================================================================
   4) LINKS / NAV
   ========================================================================== */

a {
  text-decoration: none;
}

/* Bootstrap-like nav link */
a.nav-link {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: #343a40;
  padding: 0.4rem 0.6rem; /* klickfreundlich */
}

a.nav-link:hover,
a.nav-link:focus {
  color: #000;
  text-decoration: none;
}

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

/* Navbar */
.navbar {
  padding: 0;
  background-color: rgb(245, 245, 245);
}

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


/* ==========================================================================
   5) LAYOUT HELPERS (Container, Textbreite, Grid)
   ========================================================================== */

    .headspace {
      display: flex;
      align-items: flex-start;
    }

    @media (min-width: 768px) {
      .headspace {
        height: 70px;
      }
    }

/* Textbreite / Innenabstände */
.text {
  margin-left: 0%;
  margin-right: 2%;
}

@media (max-width: 767px) {
  .text {
    margin-left: 0;
    margin-right: 0;
  }
}

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

/* 2- und 3-Spalten Grids: werden in Breakpoints gesetzt */
.grid-2,
.grid-3 {
  /* keine default columns -> mobile first: 1 Spalte */
}


/* ==========================================================================
   6) IMAGES
   ========================================================================== */

/* .img-custom: Mobile First */
.img-custom {
  width: 100%;
}

/* ≥ 576px */
@media (min-width: 576px) {
  .img-custom {
    width: 100%;
    display: block;
    margin-left: 0;
    margin-right: auto;
  }
}


/* ==========================================================================
   7) COMPONENTS (Hero, Carousel, etc.)
   ========================================================================== */x
/* Carousel controls */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: #000;
  background-size: 50% 50%;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
}

.hero-subtitle {
  font-weight: 400;
  font-size: clamp(20px, 3.4vw, 28px);
  line-height: 1.35;
  color: #2a2a2a;
  margin: 0;
  padding: 0 0 2% 0;
  text-wrap: balance;
  letter-spacing: -0.3px;
}

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

/* ==========================================================================
   8) UTILITIES (small helpers, borders, colors, emphasis)
   ========================================================================== */
.bi{
color:black;}

.bg-brand {
  background-color: var(--brand);
}

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

.b {
  font-weight: 600;
}

.small {
  font-size: 1rem;
}

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

.border-bottom {
  border-bottom: 1px gray solid !important;
}

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

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

.link {
  color: #0d6efd;
}

/* Mark / highlight (keine gelbe Markierung) */
.mark {
  background-color: transparent;
  display: inline;
  font-weight: 600;
  hyphens: auto;
  margin: 0;
  padding: 0;
}

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

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


/* ==========================================================================
   9) SPECIAL CONTENT (Glossar, Mathe, Listenstile)
   ========================================================================== */

/* In Glossar darauf achten: (Kommentar korrekt als CSS-Kommentar) */

/* Math container */
.math-container {
  display: flex;
  justify-content: center;
}

.math-container math {
  max-width: 100%;
  height: auto;
}

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

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

/* Checkliste (Hinweis: es fehlt das ::before für ✓ – falls gewünscht ergänzen) */
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;
}


/* ==========================================================================
   10) BREAKPOINTS (Mobile First)
   ========================================================================== */

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

  .eyebrow {
    font-size: 0.8rem;
  }

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

/* --- Standard Smartphones (<= 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 (<= 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 (>= 860px) --- */
@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 container widths --- */
@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;
  }
}


/* ==========================================================================
   11) PRINT STYLES
   ========================================================================== */

@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;
    margin-left: 8%;
    margin-right: 8%;
  }

  .text {
    margin: 0;
  }

  .page {
    margin: 0;
  }

  /* Alles "clean" drucken */
  * {
    box-shadow: none !important;
    text-shadow: none !important;
    background: transparent !important;
  }

  /* Print hero */
  .hero-title {
    font-weight: 300;
    font-size: 22px; 
    margin-top: 10px;
    padding-top: 20px;
  }

  .hero-subtitle {
    font-weight: 300;
    font-size: 16px;
    line-height: 1.35;
    color: #2a2a2a;
    margin: 0;
    padding: 0 0 2% 0;
    text-wrap: balance;
    letter-spacing: -0.3px;
  }

  /* Headings print */
  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;
  }

  p.bildunterschrift {
    font-family: Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 9pt;
    color: #555;
    line-height: 1.4;

    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    overflow-wrap: break-word;
    word-break: normal;

    margin-top: 10pt;
  }

  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;
  }

  /* Strichliste in Print: als Gedankenstrich */
  li.strich {
    list-style: none !important;
    padding-left: 0 !important;
  }

  li.strich::before {
    content: "– ";
    margin-left: -1.2em;
  }

  /* Links: URL ausschreiben */
  a,
  a:visited {
    color: #000 !important;
    text-decoration: none !important;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
  }

  a[href^="#"]::after,
  a[href^="mailto:"]::after {
    content: "";
  }

  /* Quote / HR / Emphasis */
  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: 0.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;
  }

  table {
    page-break-inside: avoid;
  }

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


/* ==========================================================================
   12) PAGE BREAK UTILITY (screen + print)
   ========================================================================== */

/* Pagebreak helper */
.pagebreak {
  page-break-before: always; /* ältere Browser */
  break-before: page; /* moderner Standard */
}
