:root {
  --bg: #0b0d10;
  --bg-elev: #101419;
  --text: #e6e9ef;
  --muted: #a0a7b2;
  --accent: #6ea8fe;
  --accent-2: #7ee787;
  --card: #0f1216;
  --border: rgba(255,255,255,0.08);
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
  --radius: 18px;
  --header-h: 64px;
  
  /* MIEVO-spezifische Variablen */
  --mievo-primary: #3b82f6;
  --mievo-secondary: #f59e0b;
  --mievo-accent: #22c55e;
  --mievo-light: #dbeafe;
  --mievo-dark: #1e40af;
  --mievo-mi-color: #004D40;
  --mievo-evo-color: #6b7280;
}

[data-theme="light"] {
  --bg: #f7f8fb;
  --bg-elev: #ffffff;
  --text: #0c1116;
  --muted: #475569;
  --accent: #2563eb;
  --accent-2: #059669;
  --card: #ffffff;
  --border: rgba(0,0,0,0.08);
  --shadow: 0 10px 30px rgba(0,0,0,0.12);
  
  /* MIEVO-spezifische Variablen für Light Mode */
  --mievo-primary: #3b82f6;
  --mievo-secondary: #f59e0b;
  --mievo-accent: #22c55e;
  --mievo-light: #dbeafe;
  --mievo-dark: #1e40af;
  --mievo-mi-color: #004D40;
  --mievo-evo-color: #6b7280;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  padding-top: 64px; /* Abstand für den fixed Header */
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(12px);
  background: color-mix(in oklab, var(--bg) 50%, transparent);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

/* Glass-Effekt beim Scrollen */
.site-header.scrolled {
  background: color-mix(in oklab, var(--bg) 75%, transparent);
  backdrop-filter: saturate(200%) blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .site-header .header-inner h1 {
    font-size: 1.2rem;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 2rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}
.main-nav a {
  color: var(--text);
  text-decoration: none;
  margin: 0 12px;
  opacity: 0.85;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s ease;
}

.main-nav a svg {
  width: 16px;
  height: 16px;
  opacity: 0.8;
}
.main-nav a:hover { opacity: 1; }

.btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow);
}

.btn-ghost { background: transparent; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: white; border-color: transparent; }
.btn-secondary { background: var(--bg-elev); }

/* Spezielle Styles für die Hero-Buttons (Apps ansehen, Leitideen, Kontakt) */
.hero-ctas .btn {
  border: none;
  background: transparent;
  color: var(--text);
  position: relative;
}

.hero-ctas .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  padding: 4px;
  background: linear-gradient(135deg, #3b82f6, #10b981);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-ctas .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Spezielle Styles für Kontakt-Buttons (Nachricht senden, Kontaktformular öffnen) */
.btn-kontakt-style {
  border: none !important;
  background: transparent !important;
  color: var(--text) !important;
  position: relative !important;
}

.btn-kontakt-style::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  padding: 4px;
  background: linear-gradient(135deg, #3b82f6, #10b981);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.btn-kontakt-style:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Allgemeiner Hover-Effekt für alle Buttons */
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

/* Hero */
.hero {
  padding: 72px 20px 48px; /* Mehr Platz links und rechts */
  overflow: visible; /* Verhindert das Abschneiden der Buttons */
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
}
.headline {
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 12px;
  opacity: 0;
  transform: translateY(20px);
}
.accent { 
  color: var(--accent); 
  font-size: clamp(28px, 4vw, 56px);
  white-space: nowrap;
}

.accent .word {
  display: inline-block;
  opacity: 0;
  transform: translateX(30px);
  margin-right: 8px;
}
.subhead { 
  color: var(--muted); 
  margin: 0 0 24px; 
  opacity: 0;
  transform: translateY(20px);
}
.hero-ctas { 
  display: flex; 
  gap: 12px; 
  opacity: 0;
  transform: translateY(20px);
  justify-content: flex-start; /* Linksbündig ausrichten */
}

.hero-visual {
  display: grid;
  place-items: center;
}


.device {
  width: min(380px, 90%);
  aspect-ratio: 0.52;
  border-radius: calc(var(--radius) * 1.4);
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in oklab, var(--accent) 25%, transparent), var(--card));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 12px;
  transform-style: preserve-3d;
}
.status-bar { height: 26px; background: color-mix(in oklab, var(--text) 10%, transparent); border-radius: 14px; opacity: 0.5; }
.screen {
  margin-top: 10px;
  height: calc(100% - 36px);
  border-radius: calc(var(--radius) * 1.1);
  background: linear-gradient(180deg, color-mix(in oklab, var(--bg-elev) 92%, transparent), color-mix(in oklab, var(--bg) 60%, transparent));
  border: 1px solid var(--border);
  overflow: hidden;
  padding: 16px;
}
.pill { height: 12px; width: 44%; background: color-mix(in oklab, var(--text) 14%, transparent); border-radius: 999px; margin: 2px auto 16px; }
.pill-lg { height: 14px; width: 64%; opacity: 0.6; }
.rows { display: grid; gap: 12px; }
.row { display: flex; gap: 8px; }
.chip { height: 10px; flex: 1; background: color-mix(in oklab, var(--text) 14%, transparent); border-radius: 999px; }
.chip-sm { flex: 0.5; opacity: 0.7; }
.card { height: 48px; border-radius: 16px; border: 1px solid var(--border); background: var(--bg-elev); opacity: 0.9; }
.card-2 { height: 86px; }
.card-3 { height: 120px; }

/* Features */
.features { padding: 56px 0; }
.section-title { font-size: 28px; margin: 0 0 20px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.feature-card .icon { font-size: 20px; margin-bottom: 8px; }

/* Showcase */
.showcase { padding: 56px 0; }
.cards { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 18px;
  align-items: stretch;
}
.app-card {
  display: grid;
  grid-template-rows: 160px auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.1);
  overflow: hidden;
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition: all 0.4s ease-out;
}

.app-card {
  display: grid;
  grid-template-rows: 160px auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.1);
  overflow: hidden;
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition: all 0.4s ease-out;
  transform: scale(1);
  height: 100%;
}

.app-card:hover {
  transform: scale(1.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

/* Hover-Effekt für andere Karten entfernt - nur die überfahrene Karte reagiert */

@keyframes fadeInColor {
  0% {
    filter: grayscale(100%);
  }
  100% {
    filter: grayscale(0%);
  }
}
.app-media { background: var(--bg-elev); }
.gradient-1 { background: linear-gradient(135deg, #6366f1, #22d3ee); }
.gradient-2 { background: linear-gradient(135deg, #f97316, #ef4444); }
.gradient-3 { background: linear-gradient(135deg, #10b981, #84cc16); }

/* Födima App Styles */
.foedima-gradient {
  background: linear-gradient(135deg, #4A7C7C, #7FB3B3) !important;
  position: relative;
  overflow: hidden;
}

/* Alles nur Zufall App Styles */
.alles-zufall-gradient {
  background: linear-gradient(135deg, #2563eb, #3b82f6, #60a5fa) !important;
  position: relative;
  overflow: hidden;
}

/* Content Layout Styles */
.content-layout {
  display: grid;
  grid-template-columns: 70% 30%;
  gap: 3rem;
  align-items: start;
  margin-top: 0;
  padding-top: 0;
}

.ipad-container {
  position: sticky;
  top: 2rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 1rem 0;
  margin: 0;
}

.ipad-frame {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 0.75;
  overflow: hidden;
  margin: 0;
  padding: 0;
  max-height: 80vh;
}

.ipad-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: all 0.6s ease-in-out;
  opacity: 1;
}

.ipad-frame img.fade-out {
  opacity: 0;
}

.content-sections {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding-top: 14vh;     /* kleiner als vorher, damit 2. Karte sauber greift */
  padding-bottom: 40vh;  /* genug Platz, damit letzte Karte hochscrollen kann */
}

@media (max-width: 768px) {
  .content-sections {
    padding-bottom: 50vh; /* mobil mehr Platz unten */
  }
}

.content-section {
  padding: 2rem;
          background: color-mix(in oklab, var(--mievo-light) 30%, transparent);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
          border: 1px solid var(--mievo-accent);
  transition: all 0.3s ease;
  opacity: 0.9;
  transform: scale(0.98);
}

@media (max-width: 768px) {
  .content-section {
    background: rgba(232, 244, 244, 0.95);
  }
}

.content-section:hover {
  transform: translateY(-2px) scale(1);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  opacity: 1;
}

.content-section.active {
  opacity: 1;
  transform: scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
          border: 2px solid var(--mievo-primary);
  background: white;
}

.content-section h3 {
          color: var(--mievo-primary);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.content-section p {
          color: var(--text);
  line-height: 1.7;
  margin: 0;
}

/* Responsive Design */
/* Modern Mobile Layout: iPad-Hintergrund + Card-Overlay */
@media (max-width: 768px) {
  .foedima-screens {
    position: relative;
    min-height: 100vh;
    padding: 0;
  }
  
  .content-layout {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }

  /* iPad als Hintergrund in der oberen Hälfte */
  .ipad-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
            background: linear-gradient(180deg, var(--mievo-light) 0%, var(--mievo-light) 70%, transparent 100%);
    padding: 2rem 1rem 1rem 1rem;
  }
  
  .ipad-frame {
    width: 100%;
    max-width: 90vw;
    margin: 0;
    height: auto;
    max-height: 50vh;
  }
  
  .ipad-frame img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 50vh;
  }

  /* Text-Cards schweben unter dem iPad */
  .content-sections {
    position: relative;
    z-index: 1;
    margin-top: 55vh;
    background: transparent;
    border-radius: 30px 30px 0 0;
    padding: 2rem 1rem;
    gap: 2rem;
    min-height: 60vh;
  }

  /* keine Skalierung der aktiven Karte */
  .content-section.active { 
    transform: none; 
  }
}

.foedima-preview {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  height: 85%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.foedima-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: none;
  background: transparent;
}

.foedima-card .app-body {
  border-top: 3px solid #2D5A5A;
}

.foedima-btn {
  border: none;
  background: transparent;
  color: white !important;
  margin-top: 1rem;
  transition: all 0.3s ease;
  position: relative;
}

/* Light-Modus: Schwarzer Text für bessere Lesbarkeit */
[data-theme="light"] .foedima-btn {
  color: #000000 !important;
}

.foedima-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  padding: 3px;
  background: linear-gradient(135deg, #0f766e, #14b8a6, #2dd4bf);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.foedima-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(74, 124, 124, 0.3);
}

.alles-zufall-preview {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  height: 85%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.alles-zufall-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: none;
  background: transparent;
}

.alles-zufall-card .app-body {
  border-top: 3px solid #2563eb;
}

.alles-zufall-btn {
  border: none;
  background: transparent;
  color: white !important;
  margin-top: 1rem;
  transition: all 0.3s ease;
  position: relative;
}

/* Light-Modus: Schwarzer Text für bessere Lesbarkeit */
[data-theme="light"] .alles-zufall-btn {
  color: #000000 !important;
}

.alles-zufall-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  padding: 3px;
  background: linear-gradient(135deg, #2563eb, #3b82f6, #60a5fa);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.alles-zufall-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

/* Ludo App Styles */
.ludo-gradient {
  background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706) !important;
  position: relative;
  overflow: visible;
}

.ludo-preview {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  height: 85%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.ludo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: none;
  background: transparent;
}

.ludo-card .app-body {
  border-top: 3px solid #f59e0b;
}

.ludo-btn {
  border: none;
  background: #ffffff;
  color: #000000 !important;
  margin-top: 1rem;
  transition: all 0.3s ease;
  position: relative;
}

/* Dark-Modus: Schwarzer/transparenter Hintergrund für den Ludo-Button */
[data-theme="dark"] .ludo-btn {
  background: #000000;
  color: #ffffff !important;
}



.ludo-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  padding: 3px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.ludo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

/* MIEVO App Styles */
.mievo-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.mievo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.mievo-gradient {
  background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706) !important;
  position: relative;
  overflow: visible;
}

.mievo-preview {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  height: 85%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.mievo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: none;
  background: transparent;
}

.mievo-card .app-body {
  border-top: 3px solid #f59e0b;
}
.app-body { 
  padding: 16px; 
  display: flex;
  flex-direction: column;
  height: 100%;
}

.app-body h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.app-body p {
  margin-bottom: 16px;
  flex-grow: 1;
}

.app-body .tags {
  margin-bottom: 16px;
}

.app-body .btn {
  margin-top: auto;
  align-self: flex-start;
}
.tags { display: flex; gap: 8px; margin-top: 8px; }
.tag { 
  font-size: 12px; 
  padding: 4px 8px; 
  border-radius: 999px; 
  background: color-mix(in oklab, var(--accent) 15%, transparent); 
  color: var(--accent); 
  border: 1px solid var(--accent);
}

/* Contact */
.contact { padding: 56px 0; }
.contact-form { display: grid; gap: 14px; max-width: 720px; }
.form-row { display: grid; gap: 6px; }
label { font-weight: 600; }
input, textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.form-actions { display: flex; align-items: center; gap: 12px; }
.form-status { color: var(--muted); font-size: 14px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 20px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
}

/* Privacy Page Styles */
.privacy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

.privacy-content h2 {
  font-size: 28px;
  margin: 40px 0 20px;
  color: var(--text);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 8px;
}

.privacy-content h3 {
  font-size: 22px;
  margin: 30px 0 15px;
  color: var(--text);
}

.privacy-content p {
  margin: 0 0 16px;
  line-height: 1.7;
  color: var(--text);
}

.privacy-content ul {
  margin: 16px 0;
  padding-left: 24px;
}

.privacy-content li {
  margin: 8px 0;
  line-height: 1.6;
}

.app-privacy {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
  box-shadow: var(--shadow);
}

.app-privacy h3 {
  margin-top: 0;
  color: var(--accent);
}

.last-updated {
  margin-top: 40px;
  padding: 16px;
  background: color-mix(in oklab, var(--accent) 10%, transparent);
  border-radius: 8px;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 12px;
}

/* Privacy Page Hero */
.privacy-hero {
  padding: 40px 0;
  text-align: center;
  background: transparent;
}

.privacy-hero .headline {
  margin-bottom: 16px;
  opacity: 1;
  transform: none;
}

.privacy-hero .subhead {
  opacity: 1;
  transform: none;
}

/* Theme Toggle Icons */
.light-icon, .dark-icon {
  transition: opacity 0.3s ease;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  color: var(--text);
}

/* Light Mode: Sonne sichtbar, Mond versteckt */
[data-theme="light"] .light-icon {
  opacity: 1;
}

[data-theme="light"] .dark-icon {
  opacity: 0;
}

/* Dark Mode: Mond sichtbar, Sonne versteckt */
[data-theme="dark"] .light-icon {
  opacity: 0;
}

[data-theme="dark"] .dark-icon {
  opacity: 1;
}

/* Theme Toggle Button Styling */
#themeToggle {
  position: relative;
  min-width: 40px;
  min-height: 40px;
}

/* Utilities */
.tilt {
  will-change: transform;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tilt:hover { box-shadow: 0 20px 50px rgba(0,0,0,0.35); }

/* Smooth scroll spacing for sticky header */
:target { scroll-margin-top: 76px; }

/* Ludo Beta Badge Overlay - Schräges Banner 45° - TEST ÄNDERUNG */
.beta-badge-overlay {
  position: absolute;
  top: calc(80% - 4px);
  left: -13px;
  transform: rotate(-45deg) translateY(-50%);
  z-index: 10;
  padding: 0.3rem 2.5rem;
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  color: white !important;
  font-weight: 700;
  font-size: 0.75rem;
  border-radius: 0;
  box-shadow: none;

  backdrop-filter: none;
  white-space: normal;
  text-align: center;
  line-height: 1.1;
  border: none;
  transform-origin: left top;
  max-width: 800px;
  overflow: visible;
}



[data-theme="dark"] .beta-badge-overlay {
  background: linear-gradient(135deg, #f87171, #ef4444);
  box-shadow: 0 4px 15px rgba(248, 113, 113, 0.4);
}

/* --- Alles-nur-Zufall: Scroll-Puffer & Farboverrides --- */
.zufall-screens .content-sections {
  padding-top: 14vh;     /* frühe Aktivierung der 2. Karte */
  padding-bottom: 40vh;  /* letzte Karte erreicht Zielzone */
}
@media (max-width: 768px) {
  .zufall-screens .content-sections { padding-bottom: 50vh; }
}

/* Ludo-Reste überschreiben: hier konsequent Zufall-Variablen nutzen */
.zufall-screens .content-section {
  background: color-mix(in oklab, var(--zufall-light) 30%, transparent);
  border: 1px solid var(--zufall-accent);
}
.zufall-screens .content-section.active {
  background: #fff;
  border: 2px solid var(--zufall-primary);
}
.zufall-screens .content-section h3 { color: var(--zufall-primary); }
.zufall-screens .content-section p  { color: var(--text); }

/* Crossfade-Stack */
.zufall-screens .ipad-frame { position: relative; }
.zufall-screens .ipad-frame .layer {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  transition: opacity .6s ease;
}
.zufall-screens #dynamicImage     { opacity: 1; }
.zufall-screens #dynamicImageNew  { opacity: 0; }

/* --- Fachdidaktische Prinzipien Sektion --- */
.principles {
  padding: 6rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

[data-theme="dark"] .principles {
  background: var(--bg);
}

.principles .section-title {
  text-align: left;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.principle-card {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
}

[data-theme="dark"] .principle-card {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Farbige Ränder mit verschiedenen Farben (Lila, Grün, Orange) */
.principle-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #8b5cf6, #7c3aed, #6d28d9);
  border-radius: 20px 20px 0 0;
}

.principle-card:nth-child(2)::before {
  background: linear-gradient(90deg, #10b981, #059669, #047857);
}

.principle-card:nth-child(3)::before {
  background: linear-gradient(90deg, #f97316, #ea580c, #dc2626);
}

.principle-card:nth-child(4)::before {
  background: linear-gradient(90deg, #f59e0b, #d97706, #b45309);
}

.principle-card:nth-child(5)::before {
  background: linear-gradient(90deg, #ef4444, #dc2626, #b91c1c);
}

.principle-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .principle-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.principle-content h3 {
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.principle-content p {
  color: var(--text);
  line-height: 1.6;
  margin: 0;
  opacity: 0.9;
}

.principle-short {
  margin-bottom: 1.5rem;
}

.principle-expanded {
  margin-bottom: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .principle-expanded {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.principle-expanded ul {
  margin: 1rem 0 0 0;
  padding-left: 1.5rem;
}

.principle-expanded li {
  margin-bottom: 0.5rem;
  color: var(--text);
  opacity: 0.9;
}

/* Expand Button Styling */
.expand-btn {
  background: none;
  border: 2px solid;
  border-radius: 25px;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .expand-btn {
  border-color: rgba(255, 255, 255, 0.2);
}

.expand-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .expand-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

.chevron-icon {
  transition: transform 0.3s ease;
  width: 16px;
  height: 16px;
}

/* Erweiterte Karte */
.principle-card.expanded {
  transform: translateY(-4px);
}

/* Blockquote Styling */
.principle-expanded blockquote {
  background: rgba(0, 0, 0, 0.05);
  border-left: 4px solid;
  border-left-color: inherit;
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  position: relative;
}

[data-theme="dark"] .principle-expanded blockquote {
  background: rgba(255, 255, 255, 0.05);
}

.principle-expanded blockquote::before {
  content: '"';
  font-size: 3rem;
  position: absolute;
  top: -0.5rem;
  left: 0.5rem;
  opacity: 0.3;
  font-family: serif;
}

/* Source Link Styling */
.principle-expanded .source {
  color: #6b7280;
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.9;
  border-bottom: 1px solid #6b7280;
  transition: all 0.2s ease;
}

.principle-expanded .source:hover {
  opacity: 1;
}

/* Strong Text Styling */
.principle-expanded strong {
  color: var(--text);
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
  .principles {
    padding: 4rem 0;
  }
  
  .principles-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }
  
  .principle-card {
    padding: 1.5rem;
  }
  
  .principle-content h3 {
    font-size: 1.1rem;
  }
}


