/* =================================
   GEDÄCHTNISTRAINING PRO
   APPLE INSPIRED – SAND EDITION
   ================================= */

/* ========= ROOT COLORS ========= */
:root {
  --sand-bg: #fbfaf6;
  --sand-section: #f3efe4;
  --sand-accent: #e8d8a8;
  --sand-accent-hover: #d9c488;
  --text-dark: #1d1d1f;
  --text-gray: #6e6e73;
  --white: #ffffff;
}

/* ========= RESET ========= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue",
               "SF Pro Display", Arial, sans-serif;
}

body {
  background: var(--sand-bg);
  color: var(--text-dark);
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

/* =================================
   DESKTOP NAVIGATION
   ================================= */

.Desktopmenu {
  width: 100%;
  padding: 28px 0;
}

.Desktopmenu ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
}

.Desktopmenu a {
  text-decoration: none;
  color: var(--text-dark);
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--sand-section);
  font-size: 14px;
  font-weight: 500;
  transition: 0.25s ease;
}

.Desktopmenu a:hover {
  background: var(--sand-accent);
}

.Desktopmenu li[aria-current="page"] a {
  background: var(--text-dark);
  color: var(--white);
}

.Desktopmenu .Logo {
  width: 26px;
  vertical-align: middle;
  margin-right: 8px;
}

/* =================================
   MOBILE NAVIGATION
   ================================= */

.MobileNav {
  display: none;
}

.MobileNavLogo {
  position: absolute;
  top: 30px;
  left: 25px;
  width: 28px;
  height: 22px;
  cursor: pointer;
  z-index: 1001;
}

.Burger {
  position: absolute;
  top: 30px;
  right: 25px;
  width: 28px;
  height: 22px;
  cursor: pointer;
  z-index: 1001;
}

.Burger span {
  display: block;
  height: 3px;
  background: var(--text-dark);
  margin: 5px 0;
  border-radius: 3px;
  transition: 0.3s ease;
}

.MobileMenu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;

  background: rgba(251, 250, 246, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;

  transform: translateY(-100%);
  transition: transform 0.4s ease;
  z-index: 999;
}

.MobileMenu.active {
  transform: translateY(0);
}

.MobileMenu a {
  text-decoration: none;
  font-size: 24px;
  color: var(--text-dark);
}

.Burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.Burger.open span:nth-child(2) {
  opacity: 0;
}
.Burger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}
.Burger span {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.MobileLogo {
	width: 30px;
    height: 35px;
}

/* =================================
   HERO
   ================================= */

.Hero {
  text-align: center;
  padding: 164px 20px 50px;
}

.Hero-Side {
  text-align: center;
  padding: 10px 10px 50px;
}

.Small-Hero {
  padding: 70px 20px 5px;
}

.Hero h1 {
  font-size: 60px;
  font-weight: 800;
  letter-spacing: -1px;
  margin: -20px auto 15px;
}

.Hero-Capture {
  font-size: 24px;
  color: var(--text-gray);
}

/* =================================
   CONTENT SECTIONS
   ================================= */
.Content-Section {
  margin: 0 auto;
  padding: 75px 0px;
  text-align: center;
  font-size: 22px;
  width: 84%;
  max-width: 1200px;
}

.Content-Section h2 {
  margin: 0 auto;
  padding: 15px 10px;
  text-align: center;
  font-size: xx-large;
}

.Content-Section p {
  text-align: center;
}

.Bride-Section {
  margin: 30 5 30 5;
  text-align: center;
  font-size: 22px;
}


.Aufzaehlung a {
  text-align: left;
  display: inline-block;
  color: var(--sand-accent-hover);
  text-decoration: none;
}

.Aufzaehlung ul {
  display: inline-block;   /* macht die Liste "shrink-wrap" */
  text-align: left;        /* Text innerhalb links */
  padding-left: 20px;      /* optional für Einzug */
  margin: 0 auto;          /* zentriert die Liste */
  list-style-position: inside;
}

.Aufzaehlung {
  text-align: center;     
}

.Aufzaehlung a:hover {
  color: var(--sand-accent);
  text-decoration: underline;
}

/* ========= IMAGE SECTION ========= */

.Image-Section {
  height: 500px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  border-radius: 18px;
  margin: 80px 14px;
  overflow: hidden;
  background-image: url("Serengeti.JPG");
}

.Image-Overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  backdrop-filter: blur(4px);
}

.Image-Overlay h2 {
  font-size: 60px;
  font-weight: 300;
  margin-bottom: 10px;
  text-shadow: 1px 1px 4px rgba(255,255,255,0.8);
}

.Image-Overlay p {
  font-size: 25px;
  max-width: 500px;
  color: var(--text-gray);
  text-shadow: 1px 1px 4px rgba(255,255,255,0.8);
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  .Image-Section {
    height: 320px;
    margin: 40px 10px;
    background-attachment: scroll;
    background-position: center 60%;
    border-radius: 14px;
  }

  .Image-Overlay h2 {
    font-size: 38px;
	font-weight: 400;
  }

  .Image-Overlay p {
    font-size: 18px;
	color: black;
    max-width: 90%;
  }
}
/* ========= 1. ABSCHNITT ========= */
#Erklaerung1 {
  padding: 10px;
}

#Erklaerung2 {
  padding-top: 40px;
}

/* ========= SLIDER ========= */

.Card-Slider {
  display: flex;
  overflow: hidden;
  max-width: 100%;
  gap: 20px;
  padding: 0 10px; /* Abstand zum Rand */
}

.Card-Slider::-webkit-scrollbar {
  display: none;
}

.Card {
  flex: 0 0 calc(100% - 20px);
  background: var(--white);
  padding: 44px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.05);
  text-align: left;
  transition: transform 0.8s ease;
  scroll-snap-align: start;
}

.Card:hover {
  transform: translateY(-6px);
}

.Card h3 {
  margin-bottom: 10px;
  font-size:x-large;
}

.Card p {
  color: var(--text-gray);
}

.Highlight {
  background: var(--sand-section);
}

/* =================================
   OVERLAY GENERAL
   ================================= */

.overlay{
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: .3s;
    z-index: 9999;
}

.overlay.active {
   opacity:1;
    visibility:visible;
    pointer-events:auto;
}

.overlay-content {
  background: white;
  border-radius: 16px;
  max-width: 1100px;
  width: 90%;
  height: 90vh;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
}

.overlay-content .overlay-header {
	padding: 1px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

  body.no-scroll,
	html.no-scroll {
  	overflow: hidden;
 	height: 100%;
  	position: fixed;
  	width: 100%;
}
}
/* =================================
   FORMULAR
   ================================= */

#Formular {
  padding: 80px 20px 120px;
  text-align: center;
}

.Form-Intro {
  max-width: 700px;
  margin: 0 auto 20px auto;
  position: relative;
}

.Form-Intro h2 {
  font-size: 36px;
  margin: 20px auto 10px auto;
}

.Form-Intro p {
  color: var(--text-gray);
  font-size: 18px;
}

.Form-Intro-Logo {
    position: absolute;
    top: 30%;
    right: -5%;
    transform: translateY(-50%);
    width: 80px;
    height: auto;
}

#AnmeldeFormular {
  position: relative;
  max-width: 800px;
  margin: 30px auto 30px;
  background: var(--white);
  padding: 5px 50px;
  border-radius: 28px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.05);
  text-align: left;
}

.LoginFormular {
  max-width: 700px;
  margin: 50px auto 50px;
  background: var(--white);
  padding: 20px 60px;
  border-radius: 28px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.05);
  text-align: left;
}

.LoginFormular h1 {
  text-align: center;
}

.password-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.password-wrapper input {
  width: 100%;
  padding-right: 40px; 
}

.togglePassword {
  position: absolute;
  right: 2%;
  top: 65%;
  transform: translateY(-50%);
  cursor: pointer;
  opacity: 0.6;
  display: flex;
  align-items: center;
  transition: opacity 0.2s ease;
}

.togglePassword:hover {
  opacity: 1;
}

.togglePassword svg {
  pointer-events: none;
  display: block;
}

.ForgotPassword-Link {
  display: block;
  margin-top: 6px;
  font-size: 0.9em;
  color: #0077cc;
  cursor: pointer;
  text-decoration: none;
}
.ForgotPassword-Link:hover {
  color: #005fa3;
  text-decoration: underline;
}

.Passwortvergessenlinks {
  display: flex;
  gap: 20px;
}

.Eingabetitel {
  font-size: 17px;
  font-weight: 700;
  margin-top: 30px;
  margin-bottom: 20px;
  text-align: left;
}

.Eingabefeld,
textarea {
  width: 100%;
  height: 50%;
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 11px;
  border-radius: 14px;
  border: 1px solid #ddd;
  font-size: 15px;
  background: #fafafa;
  transition: 0.25s ease;
}

.Eingabefeld:focus,
textarea:focus {
  outline: none;
  border-color: var(--sand-accent);
  background: var(--white);
}

.Eingabeanweisung {
	font-size: 12px;
}

.Radio-Block {
  margin-top: 30px;
}

.Radio-Block label {
  margin-right: 20px;
  font-size: 15px;
  color: var(--text-gray);
}

/* ========= BUTTONS ========= */

.CTA-Button,
button.CTA-Button,
a.CTA-Button {
   appearance: none;
  -webkit-appearance: none;
  border: none;
  outline: none;
  display: inline-block;
  margin-top: 0;
  padding: 12px 20px;
  border-radius: 20px;
  background: var(--sand-accent);
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(14px, calc(1ch + 1rem), 12px);
  transition: 0.25s ease;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.CTA-Button:hover {
  background: var(--sand-accent-hover);
  transform: translateY(-2px);
}


/* Close Button oben rechts */
.Close-BTN {
  position: absolute;
  top: 2%;
  right: 25px;
  background: none;
  z-index: 1000;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-dark);
  font-weight: 600;
}

.Close-BTN:hover {
  transform: translateY(-2px);
}

.overlay . Close-BTN {
	top: 2%;
  	right: 2%;
}

#KontaktFormSlide .Close-BTN {
	position: absolute;
 	top: 20px;
  	right: 30px;
	font-size: xx-large;
  }

.Close-BTN-GREEN {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 30px;
  background: #4CAF50;
  color: white;
  font-weight: bold;
  font-size: 16px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.Close-BTN-GREEN:hover {
  background: #45a049;
  transform: translateY(-2px);
}

.Close-BTN:active {
  transform: translateY(0);
}

#AnmeldeFormular .CTA-Button,
.LoginFormular .CTA-Button {
  margin: 30px auto 0;
  padding: 16px 36px;
  font-size: 16px;
  display: flex;
  justify-content: center;
  cursor: pointer;
  transition: 0.25s ease;
}

.Content-Section .CTA-Button {
  margin: 30px 0 2px;
}

#back2categories {
	position: sticky;
	width: 90%;
	top: 1%;
	left: 5px;
  	margin-bottom: 1%;
}

/* ==========================
   KALENDER – DATEN.PHP
   ========================== */

.Kalenderbereich {
    margin-bottom: 35px;
}

.Kalendertitel {
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 600;
}

.Terminzaehler {
    margin: 15px 0 20px 0;
    font-size: 16px;
    font-weight: 600;
    color: #6e6e73;
}

.VorjahrHinweis {
    margin: 15px 0 30px 0;
}

.Kalendertag {
    padding: 12px 8px;
    border: 1px solid #d2d2d7;
    border-radius: 10px;
    background: #ffffff;
    color: #1d1d1f;
    cursor: pointer;
    text-align: center;
    font-family: inherit;
    font-size: 15px;
    transition: all 0.2s ease;
}

.Kalendertag:hover {
    background: #f5f5f7;
    border-color: #b8b8bd;
}

.Kalendertag.ausgewaehlt {
    background: #007aff;
    color: #ffffff;
    border-color: #007aff;
}

.Kalendertag.ausgewaehlt:hover {
    background: #006fe6;
    border-color: #006fe6;
}

#DienstagKalender,
#FreitagKalender {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 25px;
}

@media (max-width: 600px) {

    #DienstagKalender,
    #FreitagKalender {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .Kalendertag {
        padding: 11px 5px;
        font-size: 14px;
    }
}

/* =================================
   KONTAKT 
   ================================= */

/* Cards nebeneinander */
.Kontakt-Optionen {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Cards Style */
.Kontakt-Card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1 1 250px;
  max-width: 350px;
  height: 290px;
  padding: 30px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 20px 50px rgba(0,0,0,0.05);
  font-size: 20px;
  text-align: center;
  transition: 0.3s ease;
}
.Kontakt-Card:hover {
  transform: translateY(-6px);
}

#KontaktFormSlide {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(251, 250, 246, 0.95);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(50px);
  transition: all 0.4s ease;
  z-index: 1000;
}

#KontaktFormSlide.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#overlay-box {
	position:relative;
}

#KontaktFormSlide form {
  background: var(--white);
  padding: 50px;
  border-radius: 28px;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  box-sizing: border-box;
  box-shadow: 0 25px 60px rgba(0,0,0,0.08);
}

.geburtsort {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
/* =================================
   IMPRESSUM 
   ================================= */

.Impressum-Content-Text {
  max-width: 768px;
  margin: 60px auto;
  padding: 50px 55px;
  background: var(--white);
    background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
  text-align: left;
  line-height: 1.7;
}

/* Überschriften im Impressum */
.Impressum-Content-Text strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
}

/* erster Block etwas näher nach oben */
.Impressum-Content-Text strong:first-child {
  margin-top: 0;
}

/* Absätze */
.Impressum-Content-Text p {
  color: var(--text-gray);
  font-size: 18px;
  margin-bottom: 14px;
  text-align: left;
}

/* feiner Hover-Effekt (optional, aber sehr Apple 😏) */
.Impressum-Content-Text:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.08);
  transition: 0.35s ease;
}

/* =================================
   LOGIN 
   ================================= */

.Fehler {
    color: red;
    font-weight: bold;
    margin-bottom: 10px;
}

.form-success-overlay {
  position: absolute;
  display: flex;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.9);
  justify-content: center;
  align-items: center;
  border-radius: 16px;
  animation: fadeIn 0.4s ease;
}

/* Die weiße Card */
.success-card {
  background: white;
  padding: 30px 40px;
  border-radius: 16px;
  width: 90%;
  height: 40%;
  max-width: 800px;
  max-height: 800px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  animation: scaleIn 0.4s ease;
}

/* Grüner Kreis */
.checkmark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid #4CAF50;
  position: relative;
  margin: 0 auto 20px;
}
/* Grüner √ */
.checkmark::after {
  content: "";
  position: absolute;
  left: 35%;    /* leicht nach links verschoben */
  top: 15%;     /* nach oben, damit es mittig im Kreis sitzt */
  width: 20px;   /* Breite des Häkchens */
  height: 40px;  /* Höhe des Häkchens */
  border-right: 4px solid #4CAF50;
  border-bottom: 4px solid #4CAF50;
  transform: rotate(45deg) scale(0);
  transform-origin: center;
  animation: checkAnim 0.4s ease forwards;
  animation-delay: 0.3s;
}

.crossmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #e74c3c;
    position: relative;
    margin: 0 auto 20px;
}

.crossmark::before,
.crossmark::after {
    content: "";
    position: absolute;
    left: 36px;
    top: 16px;
    width: 4px;
    height: 44px;
    background: #e74c3c;
}

.crossmark::before {
    transform: rotate(45deg);
}

.crossmark::after {
    transform: rotate(-45deg);
}

/* Animationen */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes checkAnim {
  to {
    transform: rotate(45deg) scale(1);
  }
}

/* LOGIN OVERLAY (WENN NUTZER BEREITS EINGELLOGGT KEIN LOGIN MEHR) */
#LoginOverlay {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(251, 250, 246, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
}

/* Card – nutzt deinen Apple Style */
.overlay-card {
  background: var(--white);
  padding: 50px;
  border-radius: 28px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.08);
  max-width: 400px;
  text-align: center;
  animation: scaleIn 0.3s ease;
}
.Desktopmenu a.logout-btn {
  background: #f6caca; /* sanftes Pastellrot */
  color: #8b2e2e;      /* dunkler Rotton für Text */
  transition: 0.25s ease;
}

.Desktopmenu a.logout-btn :hover {
  background: #efb3b3; /* etwas intensiver beim Hover */
  color: #6e1f1f;
  transform: translateY(-2px);
}

/* =================================
   DASHBOARD SECTION
   ================================= */
/* Passwort beim ersten Mal ändern */
.modal {
    display: none; /* Standardmäßig versteckt */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 20px;
    margin: 15% auto;
    width: 300px;
    text-align: center;
    border-radius: 5px;
}

/* Dashboard Inhalt */
.kachel-section {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 50px 0;
}

.kachel-section .glass-tile {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 470px;
  height: 370px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.99);
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  color: var(--text-dark);
  padding: 30px;
  font-size: 50px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
}

.kachel-section .glass-tile:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.25);
}

#Adminbereich {
  gap: 30px;
  flex-wrap: nowrap;
}

#Adminbereich .glass-tile {
  width: clamp(220px, 25vw, 470px);
  height: clamp(180px, 20vw, 370px);
  padding: 20px;
  font-size: clamp(24px, 3vw, 50px);
}

/* ================= MOBILE-DASHBOARD ================= */
@media (max-width: 768px) {
  .kachel-section {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
  }

  .kachel-section .glass-tile {
    width: 90%;
    max-width: 320px;
    max-height: 250px;
    padding: 18px;
    font-size: 40px;
    border-radius: 14px;
  }

  #Adminbereich {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 20px;
  }

  #Adminbereich .glass-tile {
    width: 90%;
    max-width: 320px;
    height: auto;
    min-height: 180px;
    font-size: 40px;
  }
}
/* =================================
   USERDATA-OVERLAY
   ================================= */

/* Overlay-Hintergrund */
.user-card-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: flex-start;
    padding-top: 80px;
    z-index: 1000;
    overflow-y: auto;
}

.user-card-overlay.active {
    display: flex;
}

/* Große Card */
.user-card-content {
    background: #fff;
    border-radius: 25px;
    padding: 50px 60px;
    width: 95%;
    height: auto;
    max-width: 1100px;
    min-height: 75vh;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 30px;
    font-family: 'Segoe UI', Roboto, sans-serif;
    font-size: 20px;
    animation: fadeInScale 0.35s ease-out;
}

/* Überschrift */
.user-card-content h2 {
    font-size: 36px;
    border-bottom: 2px solid #eee;
    padding-bottom: 12px;
    margin-bottom: 10px;
}

/* ================= DESKTOP: 2 SPALTEN ================= */
@media (min-width: 768px) {
    .user-card-body {
        display: grid;
        grid-template-columns: 1fr 1fr; /* linke Spalte größer, rechte kleiner */
        gap: 40px;
        align-items: start;
    }

    .user-quarters {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%; /* füllt die rechte Spalte */
    }
}

/* ================= MOBILE: 1 SPALTE ================= */
@media (max-width: 768px) {

    .user-card-content {
        padding: 30px 33px;
        height: auto;
        min-height: auto;
    }

    .user-quarters {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
      margin-top: 10px;
    }

    .quarter-box {
        width: 100%;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        flex-wrap: wrap;
    }

    .quarter-box span {
        word-break: break-word;
    }

    .quarter-box span:last-child {
        white-space: normal;
    }
}

/* ========== LINKER BEREICH: USERDATEN ========== */
.user-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.user-details p {
    margin: 0;
    background: #f7f7f7;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 18px;
    color: #333;
}

.user-details strong {
    color: #111;
}

/* Passwort-Info + Button */
.password-row {
    display: flex;
    background: #f7f7f7;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 18px;
}

.password-info {
    display: block;
    margin-bottom: 8px;
    font-size: 10px;
    color: #666;
}

.password-BTN {
    padding: 5px 10px;
    font-size: 12px;
    border: none;
    border-radius: 10px;
    background: #1976d4;
    color: white;
    cursor: pointer;
    transition: background 0.2s ease;
}

.password-BTN:hover {
    background: #1565c0;
}

/* ========== RECHTER BEREICH: QUARTALE ========== */
.quarter-box {
    padding: 20px;
    border-radius: 15px;
    background: #f4f6f8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    font-size: 18px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    flex-wrap: nowrap;
}

.quarter-box span:last-child {
    white-space: nowrap;
}

.quarter-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Statusfarben */
.paid {
    color: #2e7d32;
    font-weight: 600;
}

.unpaid {
    color: #c62828;
    font-weight: 600;
}

/* ================= KURSDATEN ================= */

.Kursvorschau {
    margin-top: 40px;
}

.course-data {
    margin-top: 25px;
    width: 100%;
}

.course-data > strong {
    display: block;
    margin-bottom: 15px;
    font-size: 18px;
}

.course-previews {
    display: flex;
    gap: 20px;
    width: 100%;
}

.course-preview {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.pdf-card {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}

/* ================= PDF-MINIATUR ================= */

.homepage-course-data .course-previews {
    justify-content: center; gap: 30px;
}

.homepage-course-data .course-preview {
    width: 45%; max-width: 280px; margin-top: 20px;
}

.course-preview .pdf-preview-no-blur {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.414;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* Die eigentliche PDF */
.pdf-background {
    position: absolute;
    inset: 0;

    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;

    filter: blur(0);
    transform: scale(1);

    transition: filter 0.2s ease, transform 0.2s ease;

    z-index: 1;
}

/* Nur PDF wird geblurred */
.pdf-preview-no-blur:hover .pdf-background {
    filter: blur(4px);
    transform: scale(1.03);
}

/* Titel liegt über der PDF */
.pdf-title {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;

    z-index: 3;

    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Titel erscheint bei Hover */
.pdf-preview-no-blur:hover .pdf-title {
    opacity: 1;
}

/* Buttons liegen ebenfalls über der PDF */
.card-actions {
    z-index: 4;
}
/* ================= TITEL AUF MINIATUR ================= */

.pdf-title {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 10px;
    background: rgba(0, 0, 0, 0.68);
    color: white;
    text-align: center;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;
    z-index: 3;
}

.pdf-title span {
    font-size: 13px;
    font-weight: 400;
}

/* ================= BUTTONS ================= */

.course-preview .card-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    z-index: 4;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.course-preview .pdf-preview-no-blur:hover .card-actions {
    opacity: 1;
    pointer-events: auto;
}

.course-preview .card-actions a {
    display: inline-block;
}

.pdf-title {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.course-preview .pdf-preview-no-blur:hover .pdf-title {
    opacity: 1;
}

/* =========================
   KURSDATENVORSCHAU AUF HOMEPAGE – MOBILANSICHT
   ========================= */

@media (max-width: 600px) {

    .homepage-course-data .course-previews {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: flex-start;
        justify-content: center;
        gap: 5px;
        width: 110%;
        margin-left: -5%;
    }

    .homepage-course-data .course-preview {
        flex: 0 0 calc(50% - 2px);
        width: calc(50% - 2px);
        max-width: none;
        min-width: 0;
        margin-top: 20px;
    }

    .homepage-course-data .pdf-preview-no-blur {
        width: 100%;
        aspect-ratio: 1 / 1.414;
    }
	
	.homepage-course-data .pdf-card,
    .homepage-course-data .pdf-preview-no-blur {
        background: #fff;
    }

    /* Auf Mobile keinen Öffnen-Button anzeigen */
    .homepage-course-data .card-actions {
        display: none;
    }

    /* Ganze Vorschau ist anklickbar */
    .homepage-course-data .course-preview {
        cursor: pointer;
    }

    /* Kein künstlicher Blur beim Berühren */
    .homepage-course-data .pdf-preview-no-blur:hover .pdf-background {
        filter: none;
        transform: none;
    }
}
/* ================= KEIN DATENBLATT ================= */

.pdf-preview-no-blur.no-data {
    background: #f1f1f1;
    background-image: none !important;
}

.no-data-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #c62828;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {

    .course-previews {
        gap: 12px;
    }

    .pdf-title {
        padding: 9px 6px;
        font-size: 12px;
    }

    .pdf-title span {
        font-size: 11px;
    }

    .no-data-text {
        font-size: 17px;
    }

    .course-preview .card-actions {
        flex-direction: column;
        gap: 6px;
    }

}

/* Buttons */
.user-card-content button {
    margin-top: 10px;
    align-self: flex-start;
    padding: 14px 28px;
    font-size: 18px;
    border: none;
    border-radius: 12px;
    background: #4CAF50;
    color: white;
    cursor: pointer;
    transition: background 0.2s ease;
}

.user-card-content button:hover {
    background: #45a049;
}

/* ================= ANIMATION ================= */
@keyframes fadeInScale {
    0% {opacity: 0; transform: scale(0.95);}
    100% {opacity: 1; transform: scale(1);}
}
/* ================================= ARBEITSBLÄTTER ================================= */ 
.Worksheet-Section { text-align: center; padding: 15px 10px; margin-bottom: 10px; } 

.Card-Deck { position: relative; width: 100%; max-width: 900px; margin: 40px auto; height: 400px; perspective: 1000px; /* für 3D-Rotation */ } 

.Deck-Card { position: absolute; width: 55%; height: 140%; background: white; border-radius: 28px; cursor: pointer; transform-style: preserve-3d; transition: left 0.5s ease, z-index 0.3s ease; will-change: transform; overflow: visible; } 

.Deck-Card.left h3, 

.Deck-Card.right h3, 

.Deck-Card.front h3 { position: relative; z-index: 5; padding: 4px 10px; border-radius: 8px; display: inline-block; transition: transform 0.35s ease; } 

.pdf-preview { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(1px); opacity: 0.5; border-radius: 28px; transition: filter 0.35s ease, opacity 0.35s ease; z-index: 1; } 

.card-actions { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; gap: 20px; z-index: 999; transition: 0.3s ease; } 

.pdf-preview.main { filter: blur(0.75px); opacity: 0.8; } 

.Deck-Card.active { left: 25%; transform: scale(1) rotateY(0deg); z-index: 3; font-size: 25px; text-shadow: 1px 1px 4px rgba(255,255,255,0.8); } 

.Deck-Card.front { left: 25%; z-index: 3; } 

.Deck-Card.left { left: -15%; z-index: 2; } 

.Deck-Card.right { left: 70%; z-index: 2; } 

.card-inner { width: 100%; height: 100%; border-radius: 28px; transform-style: preserve-3d; transition: transform 0.35s ease, box-shadow 0.35s ease; } .Deck-Card.left .card-inner { transform: scale(0.75) rotateY(-15deg); } 

.Deck-Card.right .card-inner { transform: scale(0.75) rotateY(15deg); } .Deck-Card.front .card-inner { transform: scale(1) rotateY(0deg); } 

.Deck-Card.left .pdf-preview, .Deck-Card.right .pdf-preview { opacity: 0.5; } 

.archive-thumb { position: relative; width: 100%; padding-top: 100%; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); display: block; cursor: pointer; position: relative; overflow: hidden; isolation: isolate; z-index: 1; } 

.archive-grid { display: grid; padding: 20px; grid-template-columns: repeat(3, 1fr); gap: 10px; } .archive-thumb-link { position: absolute; inset: 0; z-index: 2; } 

.archive-cell .pdf-preview { position: relative; width: 100%; padding-top: 100%; background-size: cover; background-position: center; } .Deck-Card.inactive { opacity: 0; pointer-events: none; } 

@media (hover: hover) { 
	.Deck-Card:hover { transform: translateY(-8px) scale(1.03); z-index: 20; box-shadow: 0 25px 60px rgba(0,0,0,.18); } 
	.Deck-Card:hover .pdf-preview { opacity: .65; filter: blur(2px) brightness(1.05); } 
	.Deck-Card:hover h3 { transform: translateY(-2px); } 
	.Deck-Card .card-actions { opacity: 0; pointer-events: none; } 
	
	.archive-thumb .card-actions { opacity: 0; pointer-events: none; } 
	
	.Deck-Card:hover .card-actions { opacity: 1; pointer-events: auto; } 
	.Deck-Card.active:hover .card-actions { opacity: 1; pointer-events: auto; } 
	.Deck-Card:hover .card-inner { transform: translateY(-8px) scale(1.03); box-shadow: 0 25px 60px rgba(0,0,0,.18); } 
	.Deck-Card:hover::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.10); border-radius: 28px; z-index: 2; } 
	
	.archive-thumb:hover .pdf-preview { filter: blur(1.5px); transform: scale(1.05) brightness(1.05); } 
	.archive-thumb:hover .card-actions { opacity: 1; pointer-events: auto; } 
	.archive-thumb:hover .kw-overlay { position: absolute; top: 30%; left: 50%; transform: translate(-50%, -50%); display: inline-block; font-size: 30px; z-index: 10; } 
	
	.card-actions a:hover { transform: scale(1.12); } 
	
	.mode-history .category-view, .mode-history .files-view { display: none; } 
	.mode-categories .history-view, .mode-categories .files-view { display: none; } 
	.mode-files .history-view, .mode-files .category-view { display: none; } } 

/* ================= MOBILE ANSICHT VON UEBUNGEN ================= */ 
@media (max-width: 768px) { 
	.archive-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-top: 12px; padding-bottom: 10px; } .Deck-Card .archive-cell:nth-child(n+5) { display: none; } 
	.archive-cell .pdf-preview { width: 100%; aspect-ratio: 3 / 4; padding-top: 0; margin: 0; } 
	.Card-Deck{ display:flex; flex-direction:column; align-items:center; gap:20px; height:auto; perspective:none; margin:20px auto; } 
	.Deck-Card { position:relative; width:95%; max-width:420px; min-height:300px; height:auto; left:auto !important; transform:none !important; display:flex; flex-direction:column; } 
	.Deck-Card:hover { transform: none; box-shadow: none; } 
	.Deck-Card:hover::after { display: none; } 
	.Deck-Card:hover .pdf-preview { filter: none; opacity: 1; } 
	.Deck-Card:hover h3 { transform: none; } 
	.pdf-preview { position:relative; width:85%; aspect-ratio: 1 / 1; height: auto; border-radius:18px; filter:none; opacity:1; } .Deck-Card h3{ margin-top:18px; font-size:1.2rem; } } 
.archive-switch{ position:absolute; top:20px; right:70px; z-index:100; } .archive-cell { position: relative; } .kw-overlay { position: absolute; top: 6px; left: 6px; background: rgba(255,255,255,0.2); color: black; font-size: 16px; font-weight: bold; padding: 3px 6px; border-radius: 6px; z-index: 3; } 

/* Overlay */ 
.archive-thumb:hover .preview { opacity: 1; } 
.archive-thumb .preview { display: none; /* Das ist komisch... */ position: fixed; inset: 0; z-index: 9999; background: rgba(251, 250, 246, 0.95); justify-content: center; align-items: center; gap: 10px; } 

#worksheetArchiveOverlay { display: none; position: fixed; inset: 0; z-index: 5000; background: rgba(251, 250, 246, 0.95); backdrop-filter: blur(4.5px); } 

#worksheetArchiveOverlay.active { display: flex; justify-content: center; align-items: center; } 

/* Overlay 2*/ 
.category-buttons { position: sticky; margin-top: 2%; display: flex; justify-content: space-between; width: 100%; } 
.category-buttons .CTA-Button { width: 180%; gap: 10px; } 
.overlay-header { position: sticky; top: 0; z-index: 100; background: rgb(var(--white) / 0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); } 
.overlay-header-content { padding: 30px; } 
.overlay-title { font-size: xx-large; } 
.overlay-header .overlay-title { right: 2%; } 
.archive-year { font-size: large; padding: 30px; } 
.overlay-BTN-header { position: absolute; background: rgba(251, 250, 246, 0.6); top: 26%; right: 4%; align-self: flex-start; z-index: 150; } 
.overlay-all { position: absolute; background: rgba(251, 250, 246, 0.6); align-self: flex-start; z-index: 150; top: 30%; left: 77%; } 
.overlay-close { position: absolute; top: 30%; right: 2%; cursor: pointer; font-size: 40px; line-height: 1; z-index: 1001; } .category-files { margin-top: 3%; } 

/* ================= MOBILE ANSICHT VON ARCHIV-OVERLAYS ================= */ 
@media (max-width: 768px) { 
	#worksheetArchiveOverlay.active { align-items: flex-start;} 
	.overlay-content { width: 100%; height: 100vh; overflow-y: auto; -webkit-overflow-scrolling: touch; } 
	.overlay-header { position: sticky; top: 0; z-index: 100; background: rgb(var(--white) / 0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); } 
	.overlay-header-content { padding: 10px 8px; } 
	.overlay-title { margin-top: 25%; font-size: 22px; } /* Jahr / Monat Abstand reduzieren */ 
	.archive-year { padding: 8px 10px; font-size: 18px; } 
	.archive-year h3 { margin: 5px 0; font-size: 18px; } /* GRID kompakt + mobile tauglich */ 
	.overlay .archive-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 6px; } } 

@media (max-width: 500px) { 
	.overlay .archive-grid { grid-template-columns: repeat(2, 1fr); padding: 0; gap: 8px; } 
	.overlay .archive-thumb { display: flex; flex-direction: column; gap: 6px; } 
	.overlay .pdf-preview { position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 10px; background-size: cover; background-position: center; } 
	.overlay .card-actions { display: none; } 
	.archive-cell { cursor: pointer; } 
	.overlay .kw-overlay { position: absolute; top: 8px; left: 8px; z-index: 2; background: rgba(255, 255, 255, 0.85); padding: 2px 6px; border-radius: 6px; font-size: 16px; font-weight: 600; line-height: 1; -webkit-text-stroke: 0.2px white; } 
	.category-buttons .CTA-Button { flex: 1; width: auto; font-size: 13px; padding: 8px; } /* Overlay Rand / Padding reduzieren */ 
	.archive-year { padding-left: 10px; padding-right: 10px; display: flex; flex-direction: column; gap: 6px; } 
	.archive-year h3 { margin: 0 0 6px 0; } 
	.overlay-all { width: 88%; margin-top: 0; left: 1%; } }

/* =================================
   DSG SECTION
   ================================= */

.revDSG {
  background: var(--sand-section);
  height: auto;
  padding: 40px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--text-gray);
}

.DSG-Box {
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-gray);
  text-decoration: none;
}

.DSG-Box h3 {
  margin-bottom: 20px;
  color: var(--text-dark);
}

.revDSG a {
  text-decoration: none;
  color: var(--sand-accent-hover);
}
.revDSG a:hover {
  color: var(--text-dark);
}

/* =================================
   FOOTER
   ================================= */

footer {
  background: var(--sand-section);
  padding: 30px 20px 10px 40px;
  text-align: center;
  font-size: 14px;
  color: var(--text-gray);
}

footer a {
  text-decoration: none;
  color: var(--text-gray);
}

footer a:hover {
  color: var(--text-dark);
}

/* =================================
   RESPONSIVE
   ================================= */

@media (max-width: 900px) {

  .Desktopmenu {
    display: none;
  }

  .MobileNav {
    display: flex;
	position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--sand-accent);
  }

  .Hero h1 {
    font-size: 38px;
    z-index: 2000;
  }

  .Hero-Capture {
    font-size: 18px;
  }

  #AnmeldeFormular {
    padding: 30px;
  }
}