/* ============================================================
   style.css — Custom Styles für Studienportal
   Uni Bamberg WIAI
   ============================================================ */

/* --- Local Fonts --- */

/* Fraunces (variable, 300–900) */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('../fonts/fraunces-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('../fonts/fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Source Sans 3 (variable, 300–900) */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('../fonts/source-sans-3-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('../fonts/source-sans-3-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
  src: url('../fonts/source-sans-3-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
  src: url('../fonts/source-sans-3-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Tailwind replacements --- */
.font-body { font-family: 'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif; }

/* --- CSS Variables --- */
:root {
  --uni-blau: #003366;
  --uni-blau-light: #1a5276;
  --uni-blau-lighter: #e8f0fe;
  --accent: #2980b9;
  --accent-light: #3498db;
  --success: #27ae60;
  --warning: #f39c12;
  --muted: #6b7280;
  --bg: #fafbfc;
  --card-bg: #ffffff;
  --border: #e5e7eb;
  --text: #1f2937;
  --text-light: #4b5563;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.1);
  --transition: 0.2s ease;
}

/* --- Base --- */
html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--uni-blau);
}

/* --- Navigation --- */
#main-nav {
  background: var(--uni-blau);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  color: white;
  font-family: 'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  letter-spacing: 0;
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}
.nav-link:hover { color: white; background: rgba(255,255,255,0.1); }

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: white;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  padding: 0.5rem 0;
  z-index: 200;
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-item {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background var(--transition);
}
.nav-dropdown-item:hover { background: var(--uni-blau-lighter); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--uni-blau) 0%, var(--uni-blau-light) 100%);
  color: white;
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}
.hero h1 {
  color: white;
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.hero p {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  opacity: 0.9;
  max-width: 640px;
  margin: 0 auto 2rem;
}

/* --- Stats Bar --- */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1rem 0;
}
.stat-item {
  text-align: center;
}
.stat-wert {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
}
.stat-label {
  display: block;
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 0.15rem;
}

/* --- Sections --- */
.section {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.section--wide {
  max-width: 1200px;
}
.section-title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.section-subtitle {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

/* --- Program Cards --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.program-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}
.program-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.program-card-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.program-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.program-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}
.program-card-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.program-card-fact {
  font-size: 0.78rem;
  background: var(--bg);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  color: var(--text-light);
}

/* --- Toggle (Bachelor/Master) --- */
.toggle-group {
  display: flex;
  gap: 0.25rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 0.25rem;
  margin-bottom: 2rem;
  width: fit-content;
}
.toggle-btn {
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-light);
  transition: all var(--transition);
  font-family: inherit;
}
.toggle-btn.active {
  background: var(--uni-blau);
  color: white;
}

/* --- Finder Widget --- */
.finder-section {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 720px;
  margin: -2rem auto 3rem;
  position: relative;
  z-index: 10;
}
.finder-wizard { padding: 2rem; }

.finder-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
}
.finder-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--bg);
  color: var(--muted);
  border: 2px solid var(--border);
  transition: all var(--transition);
}
.finder-dot.active {
  background: var(--uni-blau);
  color: white;
  border-color: var(--uni-blau);
}
.finder-dot.done {
  background: var(--success);
  color: white;
  border-color: var(--success);
}
.finder-dot-line {
  width: 24px;
  height: 2px;
  background: var(--border);
  flex-shrink: 0;
}

.finder-card { animation: fadeIn 0.3s ease; }

.finder-step-label {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.finder-question {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--uni-blau);
}

.finder-explain-toggle {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  margin-bottom: 0.5rem;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.finder-explain-text {
  font-size: 0.88rem;
  color: var(--text-light);
  background: var(--uni-blau-lighter);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.finder-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.finder-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 0.85rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  width: 100%;
}
.finder-option:hover {
  border-color: var(--accent);
  background: var(--uni-blau-lighter);
}
.finder-option.selected {
  border-color: var(--uni-blau);
  background: var(--uni-blau-lighter);
  box-shadow: 0 0 0 1px var(--uni-blau);
}
.finder-option.neutral {
  border-style: dashed;
}
.finder-option-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}
.finder-option-desc {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 0.15rem;
}

.finder-collapsed-header {
  margin-bottom: 1rem;
}
.finder-collapsed-sub {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}
.finder-collapsed-preview {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1.25rem;
}
.finder-collapsed-first-q {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-top: 0.75rem;
  font-weight: 500;
}
.finder-collapsed-btns {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.finder-hint {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.finder-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
}

.finder-btn {
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  border: none;
}
.finder-btn-next {
  background: var(--uni-blau);
  color: white;
  margin-left: auto;
}
.finder-btn-next:hover { background: var(--uni-blau-light); }
.finder-btn-back {
  background: var(--bg);
  color: var(--text-light);
  border: 1px solid var(--border);
}
.finder-btn-back:hover { background: var(--border); }

/* --- Finder Results --- */
.finder-result-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.finder-result-note {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.finder-result-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.finder-result-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  transition: box-shadow var(--transition);
}
.finder-result-item:first-child {
  border-width: 2px;
  box-shadow: var(--shadow);
}
.finder-result-item.passung-sehr-gut { border-color: var(--success); }
.finder-result-item.passung-gut { border-color: var(--accent); }
.finder-result-item.passung-teilweise { border-color: var(--warning); }
.finder-result-item.passung-weniger { border-color: var(--muted); }

.finder-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.finder-result-name-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.finder-result-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.finder-result-name {
  font-weight: 600;
  font-size: 1.05rem;
}
.finder-result-passung {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}
.finder-result-passung.passung-sehr-gut { background: #d5f5e3; color: #1e8449; }
.finder-result-passung.passung-gut { background: #d6eaf8; color: #1a5276; }
.finder-result-passung.passung-teilweise { background: #fef9e7; color: #9a7d0a; }
.finder-result-passung.passung-weniger { background: #f2f3f4; color: #6b7280; }

.finder-bar-outer {
  background: var(--bg);
  border-radius: 4px;
  height: 6px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.finder-bar-inner {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}

.finder-result-expl {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}
.finder-result-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.fact {
  font-size: 0.75rem;
  background: var(--bg);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  color: var(--text-light);
}
.finder-result-link {
  font-size: 0.88rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.finder-result-link:hover { text-decoration: underline; }

.finder-result-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.finder-beratung {
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}
.finder-beratung a { color: var(--accent); }

/* --- Gemeinsam Block --- */
.gemeinsam-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gemeinsam-text {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.55;
}

/* --- Program Quick-Nav --- */
.program-quicknav {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
}
.program-quicknav-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.program-quicknav-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light);
  flex-shrink: 0;
}
.program-quicknav-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.program-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  text-decoration: none;
  transition: all var(--transition);
}
.program-pill:hover {
  border-color: var(--pill-color, var(--uni-blau));
  background: var(--uni-blau-lighter);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.program-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- Comparison Bars --- */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 2rem 3rem;
}
.compare-row {
  margin-bottom: 0;
}
.compare-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.compare-bars {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.compare-bar-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.compare-bar-name {
  width: 45px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-light);
  text-align: right;
  flex-shrink: 0;
}
.compare-bar-outer {
  flex: 1;
  background: var(--bg);
  border-radius: 4px;
  height: 20px;
  overflow: hidden;
  position: relative;
}
.compare-bar-fill {
  height: 100%;
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: white;
  min-width: fit-content;
  transition: width 0.6s ease;
}
.compare-bar-value {
  font-size: 0.75rem;
  color: var(--text-light);
  flex-shrink: 0;
  width: 50px;
  text-align: right;
}

/* --- Module Table --- */
.module-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.module-table th {
  background: var(--uni-blau);
  color: white;
  padding: 0.6rem 0.75rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.78rem;
}
.module-table th:first-child { text-align: left; }
.module-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.module-table td:first-child { text-align: left; font-weight: 500; }
.module-table tr:hover { background: var(--uni-blau-lighter); }
.module-pflicht {
  background: var(--uni-blau);
  color: white;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.72rem;
}
.module-wp {
  background: #d5e5f0;
  color: var(--uni-blau);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.72rem;
}
.module-none {
  color: var(--border);
}

/* --- Master Pfad Matrix --- */
.pfad-matrix {
  overflow-x: auto;
}
.pfad-hauptpfad { background: #d5f5e3; color: #1e8449; font-weight: 600; }
.pfad-moeglich { background: #fef9e7; color: #9a7d0a; }
.pfad-untypisch { background: #fce4e4; color: #c0392b; }

/* --- FAQ --- */
.faq-search {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  margin-bottom: 1.5rem;
  transition: border-color var(--transition);
}
.faq-search:focus {
  outline: none;
  border-color: var(--uni-blau);
}
.faq-item {
  background: white;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border: none;
  background: white;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  gap: 1rem;
  transition: background var(--transition);
}
.faq-toggle:hover { background: var(--uni-blau-lighter); }
.faq-chevron {
  transition: transform var(--transition);
  flex-shrink: 0;
  font-size: 1.2rem;
  color: var(--muted);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer-inner {
  padding: 0.75rem 1.25rem 1.25rem;
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.65;
  border-top: 1px solid var(--border);
  margin-top: 0;
}
.faq-answer-inner .faq-category {
  margin-bottom: 0.75rem;
}
.faq-answer-inner p {
  margin-top: 0.5rem;
}
.faq-category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  background: var(--uni-blau-lighter);
  color: var(--uni-blau);
  margin-bottom: 0.75rem;
}
.faq-answer-inner .faq-category + p,
.faq-answer-inner p {
  margin-top: 0.25rem;
}

/* --- Footer --- */
.site-footer {
  background: var(--uni-blau);
  color: rgba(255,255,255,0.8);
  padding: 2.5rem 1.5rem;
  margin-top: 3rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}
.footer-col h4 {
  color: white;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: white; }
.footer-bottom {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.8rem;
  opacity: 0.6;
}

/* --- Study Page Layout --- */
.page-hero {
  background: linear-gradient(135deg, var(--uni-blau) 0%, var(--uni-blau-light) 100%);
  color: white;
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
}
.page-hero h1 { color: white; font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 0.5rem; }
.page-hero .einzeiler { font-size: 1.1rem; opacity: 0.9; max-width: 600px; margin: 0 auto; }

.key-facts-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.key-fact {
  text-align: center;
  min-width: 80px;
}
.key-fact-value {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
}
.key-fact-label {
  display: block;
  font-size: 0.78rem;
  opacity: 0.75;
}

.content-section {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}
.content-section h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--uni-blau-lighter);
}
.content-section p,
.content-section li {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
}
.content-section ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.content-section li { margin-bottom: 0.35rem; }

/* ECTS Bar visualization */
.ects-bars {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1.5rem 0;
}
.ects-bar-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ects-bar-label {
  width: 180px;
  font-size: 0.82rem;
  text-align: right;
  flex-shrink: 0;
  color: var(--text-light);
}
.ects-bar-outer {
  flex: 1;
  background: var(--border);
  border-radius: 4px;
  height: 28px;
  overflow: hidden;
  position: relative;
}
.ects-bar-fill {
  height: 100%;
  border-radius: 4px;
  display: flex;
  align-items: center;
  font-size: 0;
  font-weight: 600;
  color: white;
  white-space: nowrap;
}
.ects-bar-value {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  margin-left: 0.5rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* --- Mini Widget --- */
.mini-widget {
  background: var(--uni-blau-lighter);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
}
.mini-widget h3 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
}
.mini-widget-question {
  background: white;
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 0.75rem;
}
.mini-widget-q {
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}
.mini-widget-a {
  font-size: 0.85rem;
  color: var(--text-light);
}
.mini-widget-a a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.mini-widget-a a:hover { text-decoration: underline; }

/* --- News Banner --- */
.news-ticker {
  background: var(--uni-blau-lighter);
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}
.news-ticker-label {
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--uni-blau);
  flex-shrink: 0;
}
.news-ticker a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.news-ticker a:hover { text-decoration: underline; }

.news-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.news-card {
  background: white;
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.news-card-date {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}
.news-card h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}
.news-card p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.55;
}
.news-card a {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  margin-top: 0.5rem;
  display: inline-block;
}

/* --- Testimonials --- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.testimonial-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  position: relative;
}
.testimonial-card::before {
  content: '\201E';
  font-family: 'Fraunces', Georgia, serif;
  font-size: 3rem;
  color: var(--uni-blau-lighter);
  line-height: 1;
  position: absolute;
  top: 0.75rem;
  left: 1rem;
}
.testimonial-quote {
  font-size: 1rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 1rem;
  padding-top: 1.5rem;
}
.testimonial-meta {
  font-size: 0.85rem;
  color: var(--muted);
}
.testimonial-name {
  font-weight: 600;
  color: var(--text-light);
}
.testimonial-inline {
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.5;
}
.testimonial-inline-meta {
  font-size: 0.78rem;
  opacity: 0.65;
  margin-top: 0.35rem;
  font-style: normal;
}

/* --- Textbausteine (reusable blocks) --- */
.textbaustein {
  background: white;
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  max-width: 420px;
}
.textbaustein h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.textbaustein p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.55;
  margin-bottom: 0.75rem;
}
.textbaustein a {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.textbaustein a:hover { text-decoration: underline; }

/* --- Gemeinsam (no emojis, checkmark style) --- */
.gemeinsam-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem;
  background: white;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.gemeinsam-check {
  width: 20px;
  height: 20px;
  background: var(--uni-blau);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.gemeinsam-check::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -1px;
}

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.3s ease; }

.hidden { display: none !important; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--uni-blau);
    padding: 1rem;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-sm);
    margin-top: 0.25rem;
  }
  .nav-dropdown-item { color: rgba(255,255,255,0.8); }
  .nav-dropdown-item:hover { background: rgba(255,255,255,0.1); }

  .hero { padding: 3rem 1rem 2rem; }
  .stats-bar { gap: 1rem; }
  .stat-wert { font-size: 1.3rem; }

  .finder-wizard { padding: 1.25rem; }
  .finder-section { margin: -1.5rem 1rem 2rem; }
  .finder-question { font-size: 1.15rem; }

  .cards-grid { grid-template-columns: 1fr; }
  .gemeinsam-grid { grid-template-columns: 1fr !important; }
  .compare-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .news-list { grid-template-columns: 1fr; }

  .key-facts-bar { gap: 0.75rem; }
  .ects-bar-label { width: 120px; font-size: 0.75rem; }

  .footer-inner { flex-direction: column; }

  .compare-bar-name { width: 36px; font-size: 0.65rem; }

  .module-table { font-size: 0.75rem; }
  .module-table th, .module-table td { padding: 0.4rem; }
}
