/* styles.css */
/* 1) Reset / Grundstile */
*,
*::before,
*::after {
  box-sizing: border-box; }
  html { scroll-behavior: smooth; }

:root {
  /* Farbschema */
  --bg: #0b1020;
  --surface: #141a2b;
  --surface-2: #1f2540;
  --text: #e8eaf6;
  --muted: #aab4d4;
  --textside: #13214e;
  --primary: #4ea8f5;
  --primary-2: #2b8bd3;
  --accent: #7ed957;
  --danger: #6e0505;
  
  /* Größen */
  --radius: 12px;
  --shadow: 0 6px 20px rgba(0,0,0,.08);
  --spacing: 1rem;
  --radius-sm: 8px;
  --grid-gap: 1.25rem;

  /* Typografie */
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
/* 
* {
  outline: 1px solid red;
}
*/
* {
  margin: 0;
  padding: 0;
  border: 0;
}
html, body { 
  height: 100%; 
  color: var(--text); 
  background: var(--bg); 
  max-width: 100%;
  overflow-x: hidden;
}

/* 2) Layout Grundstruktur */
body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--text);
  background: radial-gradient(circle at 20% -10%, rgba(78,168,245,.15), transparent 40%),
              radial-gradient(circle at 80% 0%, rgba(126,217,87,.10), transparent 40%),
              var(--bg);
}

/* Standard: Einstellungen für das Handy */
.desktop-menu {
  display: none; /* Desktop-Menü auf dem Handy verstecken */
}

.mobile-menu {
  display: block; /* Mobiles Menü auf dem Handy anzeigen */
}

/* Die Checkbox selbst komplett unsichtbar machen */
.menu-toggle {
  display: none;
}

/* --- DER TRICK: Wenn die Checkbox aktiv ist (Klick auf Hamburger) --- */
.menu-toggle:checked ~ .nav-links {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto; /* Klicks auf Links wieder erlauben */
}

/* Optional: Hamburger-Icon zu einem "X" animieren bei Klick */
.menu-toggle:checked ~ .burger-icon span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.menu-toggle:checked ~ .burger-icon span:nth-child(2) {
  opacity: 0;
}
.menu-toggle:checked ~ .burger-icon span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* --- MOBILE ANSICHT (Standard) --- */

/* Das Hamburger-Icon stylen (3 Striche) */
.burger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.burger-icon span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.app {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}

/* 3) Container/Wrapper (zentriert, max Breite) */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* 7) Cards / Grid-Layout (responsive) */
.grid {
  display: grid;
  /*  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); */
  gap: var(--grid-gap);
}

.flex { 
  display: flex; 
  gap: 1rem; 
  align-items: center; }

/* Bilder und Medien */
img { max-width: 100%; height: auto; display: block; }
svg, img { image-rendering: auto; }

.responsiv-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: auto;
}

/* Links und Buttons */
a { 
  color: var(--primary); 
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* Cards */
.card {
  background: linear-gradient(180deg,
    rgba(20,26,43,.95),
    rgba(20,26,43,.85));
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.05);
}

.card-container {
    display: flex;
    flex: 1;
    /* flex-direction: row; /* Standard: Nebeneinander auf großen Bildschirmen */
    gap: 20px;          /* Abstand zwischen den Karten */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Die einzelnen Karten 
.card {
    flex: 1;            Beide Karten teilen sich den Platz gleichmäßig auf
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
*/
/* 4) Layout-Grundstruktur (Header, Main, Footer) */
.header, .footer {
  width: 100%;
  padding: 1rem 0;
}
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,12,28,.92);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

/* 4) Typografie (Überschriften skalieren, fluid) */
h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 0.5rem;
  font-weight: 700;
}
    
/* 7) Typo-Skala mit clamp (feste Typo auf allen Geräten) */
h1, h2, h3, h4, h5 { line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(1.4rem,  2.6vw + 1rem, 2.4rem); }
h2 { font-size: clamp(1.25rem, 1.6vw + .8rem, 1.75rem); }
h3 { font-size: clamp(1.1rem,  1.4vw + .6rem, 1.25rem); }
h4 { font-size: clamp(1rem,    1.2vw + .6rem, 1.1rem); }
h5 { font-size: clamp(.8rem,   1vw   + .5rem, 1rem); }

p  {  
  font-size: clamp(.95rem, .8vw + .8rem, 1.05rem); 
  color: var(--muted);
  text-align: justify; 
}

/* 
P, h1, h2, h3, h4, h5, a {
  overflow-wrap: break-word;
  word-wrap: break-word;
}
*/

li {
  text-align : left;
}

.center {
  text-align : center;
}

/* 5) Navbar / Header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: saturate(1.2) blur(4px);
  border-bottom: 1px solid #eaeaea;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  letter-spacing: .2px;
}

.brand .logo {
  width: 64px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: inline-block;
}

/* --- BASIS-STYLING & RESPONSIVE DESIGN --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #333;
  padding: 15px 20px;
  color: white;
  position: relative;
}

.nav {
  display: flex; 
  align-items: center; 
  justify-content: space-between;
}

.nav-links {
  display: none;
}

.nav a {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  color: var(--danger);
  font-weight: 500;
}

.nav a:hover {
  background: #f0f0f5;
}

/* hide details containing mobile menu when page is wider then 991px */
nav>details {
  display: none;
}

nav>details>summary {
  cursor: pointer;
  list-style: none;
  display: block;
  text-align: end;
  height: 2rem;
  /* slight transition */
  transition: margin-bottom 150ms ease-out;
}

nav > details > summary::after {
  content: '';
  background-image: url(menu.svg);
  background-size: 2rem 2rem;

  display: inline-block;
  width: 2rem;
  height: 2rem;
}

/* alternative image for open mobile menu */
nav > details[open] > summary::after {
  background-image: url(close.svg);
}

nav>details>ul {
  flex-direction: column;
  align-items: end;
  margin: 0;

  /** [2] **/
  /** toggle full page menu **/
  /* height: calc(100vh - 64px); */
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .6rem .95rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.15);
  background: linear-gradient(180deg, rgba(78,168,245,.9), rgba(46,140,210,.9));
  color: white; cursor: pointer; font-weight: 600;
}
.btn.secondary {
  background: transparent; border: 1px solid rgba(255,255,255,.25); color: var(--text);
}
.btn:hover { transform: translateY(-1px); }
.btn.secondary {
  background: #e5e7eb;
  color: #111;
}

/* 5) Grid- und Flex-Layouts für Inhalte */
.section { padding: 2rem 0; }
.section .section-title { color: #111;font-size: clamp(1.2rem, 3vw, 1.6rem); margin-bottom: .75rem; }

/* 6) Hauptbereich */
.main {
  flex: 1;
  padding: 2rem 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0;
}

.hero-content {
  padding: 0.25rem;
}
.hero h1 { 
  margin-bottom: 0.75rem; 
}

/* --- 1. Standard für Smartphones (Einspaltig untereinander) --- */
.grid-container {
    display: grid;
    grid-template-columns: 1fr; /* Nur 1 Spalte, die den gesamten Platz einnimmt */
    gap: 15px; /* Abstand zwischen den Elementen */
    padding: 15px;
}

/* Einfache Optik für die Boxen */
.grid-container > * {
    background-color: #ddd;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

/* 6) Responsive Grid-Beispiele */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.grid-1 {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
}

/* 9) Footer Stil */
.footer {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 1.5rem 0;
  background: rgba(10,12,28,.92);
  color: var(--muted);
}
.footer a { color: var(--muted); }
.footer p { color: var(--muted); }

/* 8) Formular-Felder (responsive) */
label { 
  display: block; 
  font-size: .9rem; 
  margin-bottom: .25rem; 
  color: var(--muted); 
}

input, textarea, select {
  width: 100%; 
  padding: .75rem .9rem; 
  border-radius: .75rem;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.04); 
  color: var(--text);
}

textarea { 
  min-height: 120px; 
  resize: vertical; 
}

/* ==========================================================================
   1. ALLE HANDYS (Standard)
   Gilt für alle Smartphones (z.B. iPhone, Galaxy) von 0px bis 575px Breite.
   ========================================================================== */
/*body {
  font-size: 14px;
  background-color: #ffffff;
}
*/
@media screen and (max-width: 400px) {
  body {
    font-size: 15px;
  }
  
  .card-container {
    flex-direction: column; /* Wechselt auf Smartphones zu untereinander */
  }

  .mobile-menu { 
    display: flex; 
    gap: 1rem; 
    align-items: center;
  }
  
  /* show mobile menu */
  nav>details {
    display: block !important;
  }

  /* header {
      align-items: start;
  } */

  /* hide desktop menu */
  nav>ul {
      display: none !important;
  }

  /* show mobile menu */
  nav>details {
      display: block !important;
  }
}

/* ==========================================================================
   2. GROSSE HANDYS / QUERFORMAT (Landscape)
   Gilt für größere Smartphones ab 576px Breite.
   ========================================================================== */
@media screen and (min-width: 576px) {
  body {
    font-size: 15px;
  }
  .mobile-menu { 
    display: flex; 
    gap: 1rem; 
    align-items: center;
  }
  /* show mobile menu */
  nav>details {
    display: block !important;
  }

  /* header {
      align-items: start;
  } */

  /* hide desktop menu */
  nav>ul {
      display: none !important;
  }

  /* show mobile menu */
  nav>details {
      display: block !important;
  }
}
/* @media only screen and (min-device-width : 375px) and (max-device-width : 667px) and (orientation : portrait) {
  body {
    background-color: #143b25;
  }
}
*/
/* ==========================================================================
   3. TABLETS (Hochformat / Portrait)
   Gilt für iPads und gängige Tablets ab 768px Breite.
   Für Tablets (ab 768px): Hauptinhalt und Sidebar nebeneinander
   ========================================================================== */
@media screen and (min-width: 768px) {
  body {
    font-size: 15px;
  }
  .grid-container {
    /* 2 Spalten: Die erste nimmt 3 Teile ein, die zweite 1 Teil */
    grid-template-columns: 3fr 1fr; 
  }

  /* Header und Footer sollen sich über beide Spalten erstrecken */
  .header, .footer {
      grid-column: span 2;
  }
  .body {
      font-size: 16px;
  }
  .nav-links { 
    display: flex; 
    gap: 1rem; 
    align-items: center;}

  .desktop-menu {
    display: flex; /* Desktop-Menü auf großen Bildschirmen anzeigen (z.B. als Flexbox) */
    justify-content: space-around;
  }

  .mobile-menu {
    display: none; /* Mobiles Menü auf großen Bildschirmen verstecken */
  }

  .burger-icon {
    display: none; /* Hamburger auf Desktop verstecken */
  }
}

/* ==========================================================================
   4. TABLETS (Querformat) / KLEINE LAPTOPS
   Gilt für große Tablets und kleinere Notebooks ab 992px Breite.
   ========================================================================== */
@media screen and (min-width: 992px) {
  body {
    font-size: 17px;
  }
}

/* --- 3. Für große Desktops (ab 1024px): Mehr Platz für die Spalten --- */
@media screen and (min-width: 1024px) {
    .grid-container {
        /* Exakte Aufteilung: Hauptinhalt breiter, Sidebar fest auf 250px */
        grid-template-columns: 1fr 250px;
        max-width: 1200px;
        margin: 0 auto; /* Zentriert die Website auf großen Monitoren */
    }
}

/* ==========================================================================
   5. DESKTOP / MONITORE
   Gilt für normale PC-Bildschirme und Laptops ab 1200px Breite.
   ========================================================================== */
@media screen and (min-width: 1200px) {
  body {
    font-size: 18px;
  }
}

/* ==========================================================================
   6. ULTRA-WIDE MONITORE (Optional)
   Gilt für sehr große Desktop-Monitore ab 1400px Breite.
   ========================================================================== */
@media screen and (min-width: 1400px) {
  body {
    max-width: 1320px; /* Begrenzt den Inhalt, damit er nicht zu breit läuft */
    margin: 0 auto;
  }
}
