:root {
  --bg: #F5F5F3;
  --card: #ffffff;
  --ink: #1A1A1A;
  --muted: #2C2C2C;
  --brand1: #FF6B35;
  --brand2: #0066CC;
  --green: #228B22;
  --blue: #4169E1;
  --anth: #2F4F4F;
  --koffer-gelb: #FFDE7A;
  --koffer-blau: #9BD4F5;
  --koffer-gruen: #C4FDC4;
  --koffer-orange: #FFD0A0;
  --ring: 0 2px 8px rgba(0, 0, 0, 0.08);
  --ring-hover: 0 4px 12px rgba(0, 0, 0, 0.12);
  --border-light: 1px solid rgba(0, 0, 0, 0.05);
  --text-subtitle: #5A5A5A;
  --text-date: #5A5A5A;
  --radius: 16px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: var(--brand2);
}

img {
  max-width: 100%;
  height: auto;
}

/* Header – wie Solo-Route */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  color: #fff;
  background: #F5F5F3;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

.header-spacer {
  width: 80px;
  flex-shrink: 0;
}

.header-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 12px;
  min-width: 0;
}

.header-logo-wrap {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 4px;
}

.header-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

header h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: #1A1A1A;
  line-height: 1.2;
  text-align: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  width: 80px;
  justify-content: flex-end;
}

.header-icon-btn {
  width: 40px;
  height: 40px;
  background: #0066CC;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-family: inherit;
  line-height: 1;
}

.header-icon-btn:hover {
  background: #0052a3;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 3-Spalten-Layout */
.wrap {
  max-width: 1600px;
  margin: 20px auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 320px 1fr 140px;
  gap: 20px;
  align-items: start;
}

.left {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.week-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--ring);
  border: 1px solid #e5e5e5;
  overflow: visible;
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  min-height: 120px;
}

.week-card:hover {
  box-shadow: var(--ring-hover);
}

.week-card--active {
  border-color: var(--brand2);
  box-shadow: var(--ring-hover);
}

.nav-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.nav-card-icon {
  font-size: 24px;
  line-height: 1;
}

.nav-card-header strong {
  color: #1A1A1A;
  font-size: 15px;
}

.nav-card-hint {
  margin: 0;
  color: #2C2C2C;
  font-size: 13px;
  line-height: 1.45;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  height: 100%;
  align-self: stretch;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--ring);
  width: 100%;
  box-sizing: border-box;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.card-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--brand1) #f1f1f1;
}

.koffer-column {
  background: #F5F5F3;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  gap: 12px;
  box-shadow: inset -2px 0 8px rgba(0, 0, 0, 0.1);
}

.koffer-column-title {
  font-weight: bold;
  font-size: 16px;
  margin: 0 0 16px;
  color: #1A1A1A;
  text-align: center;
  width: 100%;
}

.koffer-icons {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 4px;
}

.koffer-icon-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 8px;
  font-family: inherit;
  color: inherit;
}

.koffer-icon-wrap:hover .koffer-icon {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.koffer-icon {
  width: 70px;
  height: 70px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-size: 28px;
  position: relative;
  border: 3px solid transparent;
}

.koffer-label {
  font-size: 11px;
  font-weight: 700;
  color: #1A1A1A;
  text-align: center;
  line-height: 1.2;
  max-width: 80px;
}

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal-dialog {
  background: #fff;
  padding: 32px 36px;
  border-radius: var(--radius);
  text-align: left;
  max-width: 640px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 12px;
}

.modal-header h2 {
  margin: 0;
  color: #0066CC;
  font-size: 22px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  line-height: 1;
  padding: 0;
}

.modal-body {
  line-height: 1.6;
  color: #333;
}

.modal-body h3 {
  color: #0066CC;
  margin: 20px 0 10px;
  font-size: 16px;
}

.modal-body ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.modal-body p {
  margin: 0 0 12px;
}

.help-meta {
  margin-top: 20px !important;
  font-size: 12px;
  color: #888;
  border-top: 1px solid #eee;
  padding-top: 12px;
}

/* Inhalt */
.loading {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-subtitle);
  font-style: italic;
}

.error-banner {
  background: #fef2f2;
  border-left: 4px solid #dc2626;
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 24px;
  color: #991b1b;
}

.panel-section {
  margin-bottom: 8px;
}

.section-title {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 600;
  color: var(--brand2);
}

.hero {
  text-align: center;
  padding: 24px 12px 32px;
}

.hero h1 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
}

.hero-subtitle {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--brand2);
  font-weight: 600;
}

.hero-intro {
  margin: 0 auto 16px;
  max-width: 520px;
  color: var(--text-subtitle);
  font-size: 15px;
  line-height: 1.55;
}

.hero-hint {
  margin: 0;
  color: var(--text-subtitle);
  font-style: italic;
  opacity: 0.75;
  font-size: 14px;
}

.material-list {
  background: var(--card);
  border-radius: var(--radius-sm);
  box-shadow: var(--ring);
  border: 1px solid #e5e5e5;
  overflow: hidden;
}

.material-list--overview {
  margin-bottom: 24px;
}

.material-group {
  margin-bottom: 28px;
  scroll-margin-top: 12px;
}

.material-group:last-child {
  margin-bottom: 0;
}

.material-group--highlight {
  animation: highlight-pulse 1.2s ease;
}

@keyframes highlight-pulse {
  0% { background: rgba(0, 102, 204, 0.12); border-radius: var(--radius-sm); }
  100% { background: transparent; }
}

.material-group-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-subtitle);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.material-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid #eee;
}

.material-row:last-child {
  border-bottom: none;
}

.material-row-info h3 {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 600;
}

.material-row-info p {
  margin: 0;
  font-size: 13px;
  color: var(--text-subtitle);
  line-height: 1.4;
}

.tool-list {
  background: var(--card);
  border-radius: var(--radius-sm);
  box-shadow: var(--ring);
  border: 1px solid #e5e5e5;
  overflow: hidden;
}

.tool-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid #eee;
}

.tool-row:last-child {
  border-bottom: none;
}

.tool-row-main h3 {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 600;
}

.tool-use {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--text-subtitle);
}

.tool-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.tool-account {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.tag--eu {
  background: #eef4ff;
  color: var(--brand2);
}

.tag--free {
  background: #f0fdf4;
  color: var(--green);
}

.tag--m365 {
  background: #f4f5f9;
  color: #606079;
}

.tag--default {
  background: #fffbeb;
  color: #92400e;
}

.tool-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}

.download-panel {
  background: var(--card);
  border-radius: var(--radius-sm);
  box-shadow: var(--ring);
  border: 1px solid #e5e5e5;
  overflow: hidden;
}

.download-section--tools {
  border-top: 1px solid #e5e5e5;
}

.download-section-label {
  margin: 0;
  padding: 12px 18px 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-subtitle);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: #f8f9fa;
}

.download-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid #eee;
}

.download-section .download-row:last-child {
  border-bottom: none;
}

.download-row-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.closing-block {
  background: #f8f9fa;
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  border: 1px solid #e5e5e5;
  border-left: 4px solid var(--brand2);
  margin-top: 24px;
}

.closing-block p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.contact-block {
  background: #f8f9fa;
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  border: 1px solid #e5e5e5;
}

.contact-block p {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.5;
}

.contact-block p:last-child {
  margin-bottom: 0;
}

.contact-meta {
  margin-top: 12px !important;
  padding-top: 12px;
  border-top: 1px solid #eee;
  font-size: 12px !important;
  color: var(--text-date);
  opacity: 0.75;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn-sm {
  padding: 7px 12px;
  font-size: 13px;
}

.btn-primary {
  background: var(--brand2);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background: #0052a3;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background: #fff;
  color: var(--brand2);
  border: 1px solid var(--brand2);
}

.btn-secondary:hover {
  background: #eef4ff;
}

.btn-download {
  background: var(--brand2);
  color: #fff;
}

.btn-download:hover {
  background: #0052a3;
  transform: translateY(-1px);
}

/* Footer – wie Solo-Route */
.footer {
  background: #F5F5F3;
  border-top: var(--border-light);
  padding: 16px 0;
  margin-top: 32px;
}

.footer-content {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 16px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-credit {
  font-size: 13px;
  font-weight: 400;
  color: #6b7280;
  text-align: left;
  line-height: 1.45;
  min-width: 0;
  padding: 0 8px 0 0;
  overflow-wrap: break-word;
  letter-spacing: 0.01em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 12px;
  color: #666;
}

.footer-links a {
  color: #666;
  text-decoration: none;
}

.footer-links a:hover {
  color: #0066CC;
  text-decoration: underline;
}

.footer-links-sep {
  color: #bbb;
  user-select: none;
}

/* Responsive */
@media (max-width: 1200px) {
  .wrap {
    grid-template-columns: 280px 1fr 120px;
    gap: 16px;
  }
}

@media (max-width: 1024px) {
  .wrap {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .koffer-column {
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--ring);
  }

  .koffer-icons {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 20px;
  }
}

@media (max-width: 768px) {
  .wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 12px;
  }

  header {
    padding: 12px 16px;
  }

  header h1 {
    font-size: 16px;
  }

  .header-spacer,
  .header-actions {
    width: 64px;
  }

  .header-logo-wrap {
    width: 50px;
    height: 50px;
  }

  .header-icon-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .material-row,
  .tool-row,
  .download-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .tool-row-actions {
    width: 100%;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding: 0 8px;
    gap: 8px;
  }

  header {
    padding: 8px 12px;
  }

  header h1 {
    font-size: 14px;
  }

  .header-spacer,
  .header-actions {
    width: 56px;
  }

  .header-logo-wrap {
    width: 40px;
    height: 40px;
  }

  .header-icon-btn {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .footer-credit {
    font-size: 11px;
  }
}

/* Rechtstexte (Barrierefreiheit) */
.legal-page-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 28px 16px 0;
}

.legal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.legal-header h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: var(--brand2);
}

.legal-content {
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 28px 24px;
  box-shadow: var(--ring);
  border: 1px solid #e5e5e5;
  margin-bottom: 32px;
}

.legal-content h2 {
  margin: 28px 0 12px;
  font-size: 18px;
  font-weight: 600;
  color: var(--brand2);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  margin: 20px 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.legal-content p,
.legal-content li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.legal-content p {
  margin: 0 0 12px;
}

.legal-content ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.legal-content li {
  margin-bottom: 6px;
}

.legal-content a {
  color: var(--brand2);
}

.legal-meta {
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-subtitle);
  font-style: italic;
}
