/* ==========================================================================
   Gilg-Computer – gemeinsames Stylesheet
   Sanfte Modernisierung: gleiche Farben, abgerundete Ecken, mehr Weißraum,
   moderne Schrift, responsiv.
   Farben zentral als CSS-Variablen -> leicht anpassbar.
   ========================================================================== */

:root {
  /* Markenfarben (aus dem Original übernommen) */
  --bg: #a8b0d8;            /* Außenhintergrund (Lavendel/Periwinkle) */
  --card: #ffffff;          /* Inhaltsfläche */
  --orange: #f5971d;        /* Menüleiste / Akzentflächen */
  --orange-light: #f7a83e;  /* heller Ton für Verlauf */
  --btn: #8b3a2b;           /* Buttons (Bordeaux, etwas heller) */
  --btn-hover: #a24936;     /* Button beim Überfahren */
  --btn-active: #9a4234;    /* aktiver Menüpunkt */
  --blue: #26619c;          /* Überschriften */
  --blue-soft: #5f88ba;     /* blauer Zierbalken */
  --accent: #e8781b;        /* Akzenttext (orange) */
  --text: #2c2c2c;          /* Fließtext */
  --muted: #6b6b6b;         /* Hinweise / Fußzeile */

  /* Formsprache */
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(40, 50, 90, 0.18);
  --shadow-soft: 0 2px 6px rgba(0, 0, 0, 0.10);

  --font-text: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-script: "Marck Script", "Segoe Script", "Brush Script MT", cursive;

  --maxw: 990px;
  --sidebar-w: 194px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 28px 16px 48px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
}

/* ---- Weiße Seitenkarte -------------------------------------------------- */
.page {
  max-width: var(--maxw);
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;   /* klippt Zierbalken sauber an die runden Ecken */
}

/* ---- Kopfbereich -------------------------------------------------------- */
.topbar {
  height: 6px;
  background: linear-gradient(90deg, #ef7f1a 0%, #f6a23a 55%, #ffe9cf 100%);
}

.brand {
  padding: 18px 26px 14px;
}
.brand img {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
}

.headerline {
  height: 8px;
  background: linear-gradient(90deg, #eef3fa 0%, #9fb9db 45%, var(--blue-soft) 100%);
}

/* ---- Layout: Menü links, Inhalt rechts --------------------------------- */
.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  gap: 26px;
  padding: 26px;
  align-items: start;
}

/* ---- Menüleiste (das "orangene Feld") ---------------------------------- */
.sidebar {
  background: linear-gradient(180deg, var(--orange) 0%, var(--orange-light) 100%);
  border-radius: var(--radius);
  padding: 16px 16px 20px;
  box-shadow: var(--shadow-soft);
}

.sidebar-head {
  display: none; /* nur mobil sichtbar */
  align-items: center;
  justify-content: space-between;
}
.sidebar-head .menu-label {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.menu-toggle {
  display: none; /* nur mobil sichtbar */
  border: 0;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  width: 44px;
  height: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-toggle:hover { background: rgba(255, 255, 255, 0.30); }
.menu-toggle .bars,
.menu-toggle .bars::before,
.menu-toggle .bars::after {
  display: block;
  width: 22px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  position: relative;
}
.menu-toggle .bars::before,
.menu-toggle .bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-toggle .bars::before { top: -7px; }
.menu-toggle .bars::after { top: 7px; }

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
/* Abstand zwischen den Menü-Gruppen (wie im Original) */
nav .group + .group { margin-top: 16px; }

nav a {
  display: block;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: var(--btn);
  padding: 10px 12px;
  width: 76%;
  margin: 8px auto;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.10);
  font-weight: 600;
  font-size: 15px;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
nav a:hover {
  background: var(--btn-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
}
nav a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
nav a.active {
  background: var(--btn-active);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

/* ---- QR-Code (Platzhalter) --------------------------------------------- */
.qr {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.qr-box {
  width: 128px;
  height: 128px;
  background: #fff;
  border: 2px dashed rgba(94, 28, 21, 0.45);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--btn);
  font-weight: 700;
  font-size: 14px;
}
.qr-caption {
  color: #01426a; /* Logo-Dunkelblau wie die Schrift der Menü-Schaltflächen */
  font-size: 12px;
  font-weight: 600;
}

/* ---- Inhaltsbereich ---------------------------------------------------- */
.content { min-width: 0; }

.content h1 {
  color: var(--blue);
  font-size: 26px;
  font-weight: 700;
  margin: 6px 0 4px;
}
.content h1 + .rule {
  height: 1px;
  background: linear-gradient(90deg, var(--blue) 0%, rgba(38, 97, 156, 0.15) 100%);
  margin-bottom: 22px;
}

.content h2 {
  color: var(--blue);
  font-size: 20px;
  margin: 26px 0 10px;
}

.lead {
  font-weight: 700;
  color: #1f1f1f;
  font-size: 17px;
  margin: 0 0 18px;
}

.content p { margin: 0 0 16px; }

/* Absatz mit kleinem Logo-Zeichen davor */
.with-badge {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.badge {
  flex: 0 0 auto;
  width: 40px;
  height: auto;
  border-radius: 7px;
  box-shadow: var(--shadow-soft);
}

.accent { color: var(--accent); font-weight: 600; }

/* ---- Zitatkasten ------------------------------------------------------- */
.quote {
  max-width: 340px;
  margin: 40px auto 24px;
  border: 1px solid #cddaea;
  border-radius: var(--radius);
  background: #fbfdff;
  padding: 14px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.quote img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* ---- Fußzeile im Inhalt ------------------------------------------------ */
.updated {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  margin-top: 34px;
}

/* Platzhalter-Hinweis auf Unterseiten */
.placeholder {
  background: #f6f8fc;
  border: 1px solid #e2e8f2;
  border-left: 4px solid var(--orange);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: var(--muted);
}

/* ==========================================================================
   Responsiv: schmale Bildschirme -> Menü nach oben, klappbar
   ========================================================================== */
@media (max-width: 760px) {
  body { padding: 14px 10px 30px; }

  .layout {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 16px;
  }

  .brand { padding: 14px 16px 10px; }

  .sidebar { padding: 12px; }

  .sidebar-head { display: flex; }
  .menu-toggle { display: flex; }

  /* Menüinhalt standardmäßig eingeklappt */
  .sidebar-collapse {
    display: none;
    margin-top: 12px;
  }
  .sidebar.open .sidebar-collapse { display: block; }

  nav a { width: 90%; font-size: 16px; padding: 12px; }

  /* QR-Code mittig unter dem Inhalt lassen */
  .qr { margin-top: 16px; }

  .content h1 { font-size: 23px; }
  .quote { margin: 30px auto 18px; }
}

/* Sehr kleine Geräte */
@media (max-width: 380px) {
  body { font-size: 15px; }
  .content h1 { font-size: 21px; }
}

/* QR-Code (Visitenkarte) im Menü */
.qr-code {
  display: block;
  width: 116px;
  background: #fff;
  border-radius: 14px;
  padding: 4px;
  box-shadow: inset 2px 3px 6px rgba(150, 65, 0, 0.18), inset -1px -1px 3px rgba(255, 255, 255, 0.9);
}
.qr-code img { display: block; width: 100%; height: auto; border-radius: 10px; }
