/* =========================
   ROOT / VARIABLEN
   ========================= */
:root {
  --primary: #348AC7;
  --accent: #6FE7DD;
  --dark: #243B55;
  --text: #0f172a;
  --muted: #6b7280;
}

/* =========================
   GLOBAL
   ========================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);

  /* BRAND BACKGROUND */
  background: linear-gradient(
    135deg,
    #6FE7DD 0%,
    #348AC7 50%,
    #243B55 100%
  );

  min-height: 100vh;
}

/* =========================
   PAGE CONTAINER
   ========================= */
main.page {
  max-width: 420px;
  margin: 0 auto;
  padding: 26px 16px calc(90px + env(safe-area-inset-bottom));
}



/* 📱 Tablet (iPad etc.) */
@media (min-width: 600px) {
  main.page {
    max-width: 95%;
  }
.card {
    max-width: 100%;
    padding: 32px;
  }
  
}

/* =========================
   CARD (einheitlich)
   ========================= */
.card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  padding: 20px 16px;
  margin-top: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.05);
  
}

.card h1,
  .card .h1,
  .card .subtitle {
  text-align: center;
}
@media (max-width: 768px) {
  main.page {
    padding: 12px 16px calc(90px + env(safe-area-inset-bottom));
  }
}
/* 📱 Mobile */
@media (max-width: 768px) {
  .card {
    padding: 16px 14px;
    margin-top: 6px;
  }
}

/* 💻 Desktop */
@media (min-width: 900px) {
  .card {
    max-width: 640px;
    margin: 20px auto 0 auto;
  }
}

.card {
  padding: clamp(14px, 3vh, 32px) 16px;
}

@media (max-width: 768px) {
  .progress-bar {
    height: 6px;
  }

  .progress-info {
    font-size: 11px;
  }
}

.progress-wrap {
  margin-bottom: 16px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: #0ea5e9;
  margin-bottom: 6px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(14,165,233,0.15);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2dd4bf, #3b82f6);
  border-radius: 999px;
  transition: width 0.3s ease;
}
/* =========================
   TYPOGRAPHY
   ========================= */
.h1 {
  font-size: clamp(26px, 6vw, 34px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 6px;
  letter-spacing: -0.3px; /* 🔥 hier rein */
}

.subtitle {
  font-size: 15px;
  color: #475569; /* etwas dunkler */
  margin-bottom: 16px;
}

.hint {
  text-align: center;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

/* =========================
   BUTTON
   ========================= */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 18px;
  border-radius: 20px;
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;

  background: linear-gradient(
    135deg,
    #2db3f1,
    #347fd1
  );

  box-shadow: 0 14px 28px rgba(52,138,199,.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* 👇 wenn man drauf tippt */
.btn-primary:active {
  transform: scale(0.97);
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}
/* =========================
   SECTION
   ========================= */
.section {
  margin-top: 20px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0, 0, 0, 0.08); /* 🔥 softer */
  border-radius: 22px;
  padding: 16px;
}

.section-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 12px;
}

/* =========================
   LIST ITEMS
   ========================= */
.item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border-radius: 18px;
  background: white;
  border: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 12px;
  text-decoration: none;
  color: inherit;
/* 🔥 Interaktion hinzufügen */

  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  max-width: 100%;
  overflow: hidden;
}

/* 👆 Desktop Hover (leicht schweben) */
.item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}

/* 👇 Tap-Effekt (Mobile wichtig!) */
.item:active {
  transform: scale(0.97);
  box-shadow: 0 4px 10px rgba(0,0,0,0.10);
}

.item:last-child {
  margin-bottom: 0;
}

.item-left {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0; /* 🔥 DAS FEHLT BEI DIR */
}

.badge {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
   background: rgba(111,231,221,0.35);
  font-size: 20px;
}

.item-title {
  font-weight: 700;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.item-sub {
  font-size: 13px;
  color: #475569;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.chev {
  color: #64748b;
}

/* =========================
   BOTTOM NAV (MOBILE)
   ========================= */
nav.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: rgba(255,255,255,0.95);
  border-top: 1px solid rgba(0,0,0,0.08);
  backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  height: 100%;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  text-decoration: none;
  color: var(--muted);
}

.nav-item .icon {
  font-size: 20px;
}

.nav-item.active {
  color: var(--primary);
  font-weight: 700;
}

/* =========================
   DESKTOP SIDEBAR
   ========================= */
@media (min-width: 900px) {

  nav.bottom-nav {
    top: 0;
    bottom: 0;
    left: 0;
    width: 240px;
    height: auto;
    padding: 24px 14px;

    background: linear-gradient(
      135deg,
      #6FE7DD 0%,
      #348AC7 50%,
      #243B55 100%
    );

    border-top: none;
    border-right: 1px solid rgba(255,255,255,0.25);
  }

  .nav-inner {
    flex-direction: column;
    gap: 10px;
  }

  .nav-item {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.92);
  }

  .nav-item .icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-item:hover {
    background: rgba(255,255,255,0.12);
  }

  .nav-item.active {
    background: rgba(255,255,255,0.22);
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
  }

  main.page {
  margin-left: 260px;
  max-width: none; /*860px;*/
}

}

/* =========================
   LINK RESET
   ========================= */
nav.bottom-nav a {
  text-decoration: none;
  color: inherit;
}

/* Form Controls (Select/Input) */
.field { display: flex; flex-direction: column; gap: 8px; }

.label {
  font-weight: 800;
  color: #0f172a;
  margin-top: 8px;
}

.control {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid rgba(15, 23, 42, 0.18);
  background: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  color: #0f172a;
  outline: none;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}

/* nicer focus */
.control:focus {
  border-color: rgba(14, 165, 233, 0.75);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.18), 0 10px 24px rgba(0,0,0,0.10);
  transform: translateY(-1px);
}

/* select arrow polish */
select.control {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(15,23,42,.65) 50%),
    linear-gradient(135deg, rgba(15,23,42,.65) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 44px;
}

/* disabled look */
.control:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  box-shadow: none;
}

/* option text */
select.control option {
  color: #0f172a;
}

/* Edge/IE: Passwort-Anzeigen-Icon & Clear-Icon ausblenden */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
  display: none;
}

/* Chromium/Edge: Autofill/credentials Button ggf. ausblenden */
input[type="password"]::-webkit-credentials-auto-fill-button {
  visibility: hidden;
  display: none !important;
  pointer-events: none;
}

.logout-form {
  margin: 0;
}

.item-btn {
  all: unset;
  display: flex;              /* 🔥 das ist der Schlüssel */
  justify-content: space-between;
  align-items: center;
  width: 100%;
  cursor: pointer;
}

/* 🔥 verhindert horizontales Scrollen (wichtig für Mobile) */
html, body {
  overflow-x: hidden;
}

.icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

/* 🔥 verhindert dass lange Themen rauslaufen */
.topic-name {
  overflow-wrap: anywhere;
  word-break: break-word;
}

summary {
  -webkit-tap-highlight-color: transparent;
  background: transparent;
}

summary:active {
  background: transparent;
}

details[open] summary {
  background: transparent;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.accordion-content.open {
  max-height: 1000px;
}

/* Pfeil drehen */
.arrow.rotate {
  transform: rotate(90deg);
}

/* =========================
   FIX: Seiten OHNE Sidebar (z.B. Login) mittig zentrieren
   👉 Diesen Block einfach ganz unten ans Ende deiner style.css anhängen
   ========================= */
@media (min-width: 900px) {
  main.page.no-nav {
    margin-left: auto;
    margin-right: auto;
    max-width: 640px;
  }
}
 