:root {
  --bg: #F5F5F3;
  --card: #ffffff;
  --ink: #1A1A1A;
  --muted: #2C2C2C;
  --brand1: #FF6B35;
  --brand2: #0066CC;
  --green: #228B22;
  --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: 8px;
  --max-width: 880px;
}

* {
  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;
}

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: var(--radius);
}

.brand-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}

.main-nav {
  margin-left: auto;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.main-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: #eef4ff;
  color: var(--brand2);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid #e5e5e5;
  border-radius: var(--radius);
  background: var(--card);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

/* Main */
#app {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 16px 56px;
}

.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);
  padding: 16px;
  margin-bottom: 24px;
  color: #991b1b;
}

.section {
  margin-bottom: 56px;
  scroll-margin-top: 96px;
}

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

/* Hero – kompakt */
.hero {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 24px 32px;
  box-shadow: var(--ring);
  border: 1px solid #e5e5e5;
  text-align: center;
  margin-bottom: 40px;
}

.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;
  max-width: 480px;
  color: var(--text-subtitle);
  font-size: 15px;
  line-height: 1.55;
}

/* Einstiegsblöcke – Solo-Route-Stil */
.entry-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 56px;
}

.entry-block {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--ring);
  border: 1px solid #e5e5e5;
  border-left-width: 4px;
  transition: box-shadow 0.2s;
}

.entry-block:hover {
  box-shadow: var(--ring-hover);
}

.entry-block--blue {
  border-left-color: var(--brand2);
}

.entry-block--green {
  border-left-color: var(--green);
}

.entry-block--orange {
  border-left-color: var(--brand1);
}

.entry-block-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.entry-block-desc {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--text-subtitle);
  line-height: 1.5;
}

.entry-block-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.entry-block-list li {
  margin-bottom: 6px;
}

.entry-block-list li:last-child {
  margin-bottom: 0;
}

.entry-block-list a {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.entry-block-list a:hover {
  text-decoration: underline;
}

/* Materialien – Listenblöcke */
.material-list {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--ring);
  border: 1px solid #e5e5e5;
  overflow: hidden;
}

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

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

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

.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-Regal – kompakt */
.tool-list {
  background: var(--card);
  border-radius: var(--radius);
  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;
}

/* Downloads */
.download-panel {
  background: var(--card);
  border-radius: var(--radius);
  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);
}

/* Abschluss & Kontakt */
.closing-block {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--ring);
  border: 1px solid #e5e5e5;
  border-left: 4px solid var(--brand2);
}

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

.contact-block {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--ring);
  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;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: var(--radius);
  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: Credit links, Rechtliches rechts */
.footer {
  background: var(--bg);
  border-top: var(--border-light);
  padding: 16px 0;
  margin-top: 32px;
}

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

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

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

.footer-links {
  flex: 0 0 auto;
  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;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--brand2);
  text-decoration: underline;
}

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

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    width: 100%;
    order: 3;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding-top: 8px;
  }

  .main-nav a {
    padding: 12px;
    border-bottom: 1px solid #eee;
  }

  .entry-blocks {
    grid-template-columns: 1fr;
    gap: 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;
  }

  .hero h1 {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .brand-title {
    font-size: 15px;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
  }

  #app {
    padding-top: 20px;
  }
}

/* Rechtstexte (Barrierefreiheit) */
.legal-page-wrap {
  max-width: var(--max-width);
  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);
  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;
}
