:root {
  --color-bg:      #FFFDF7;
  --color-primary: #4A90D9;
  --color-success: #5CB85C;
  --color-wrong:   #E74C3C;
  --color-text:    #2C3E50;
  --radius-card:   20px;
  --radius-btn:    14px;
  --touch-min:     64px;
  --font-main:     'Segoe UI', Arial, sans-serif;
  --font-greek:    'Arial Unicode MS', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--color-bg);
  font-family: var(--font-main);
  min-height: 100dvh;
  overflow: hidden;
}

.view        { display: none;  height: 100dvh; overflow-y: auto; }
.view.active { display: flex;  flex-direction: column; }

.app-header {
  display: flex;
  align-items: center;
  padding: 16px;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-bottom: 8px;
}

.app-header h2 {
  flex: 1;
  text-align: center;
  font-size: 1.2rem;
  color: var(--color-text);
  margin-right: 40px; /* balance back button */
}

.btn-back {
  background: transparent;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  padding: 8px 12px;
  cursor: pointer;
  min-height: var(--touch-min);
  display: flex;
  align-items: center;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 16px;
}

/* 3 Spalten für 6 Module */
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 16px;
}

.theme-card, .module-card {
  min-height: var(--touch-min);
  border-radius: var(--radius-card);
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.1s;
  background: white;
}
.theme-card:active,
.module-card:active { transform: scale(0.96); }

.theme-icon, .module-icon { font-size: 2.5rem; }
.theme-label  { font-size: 1rem;  font-weight: 700; color: var(--color-text); }
.theme-label-gr { font-size: 0.85rem; color: #666; font-family: var(--font-greek); }
.module-label { font-size: 0.85rem; font-weight: 600; color: var(--color-text); }

/* Home view styles */
#view-home {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}
.home-logo {
  font-size: 5rem;
  margin-bottom: 20px;
}
.home-title {
  font-size: 2.2rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.home-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 40px;
}
.btn-primary {
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-btn);
  padding: 16px 32px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(74, 144, 217, 0.4);
  min-height: var(--touch-min);
}
.btn-primary:active { transform: scale(0.96); }

/* Confetti Overlay */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
}
