/* =============================================================================
   allein-unter-menschen.de — eigenstaendiges Theme
   -----------------------------------------------------------------------------
   Begleit-Site zum Sachbuch "Allein unter Menschen: Warum Einsamkeit unsere
   Gesellschaft veraendert" von Stephan Paul. Bewusst NICHT von
   theme-watch-and-alert, theme-php-buch, theme-windows-absichern oder
   theme-mesh-verstehen abgeleitet -- eigene Variablen mit "aum-"-Prefix,
   eigenes Farbsystem.

   Bildsprache: direkt aus dem cover_prompt des Buchs abgeleitet (siehe
   /srv/8tb/ai-storage/Buch-Creator/work_einsamkeit/project_config.json) --
   ein einzelnes kleines warmes Licht (Amber/Terrakotta) in einem weiten,
   stillen dunklen Raum (dunkles Dusky-Blau/Anthrazit). Anders als
   windows-absichern.de und mesh-verstehen.de (beide hell, freundlich)
   ist dieses Theme bewusst DUNKEL: die Farbwelt traegt den Buchinhalt
   (Einsamkeit, Isolation, aber auch leise Hoffnung), keine Kompromiss-
   Aufhellung fuer "Web-Freundlichkeit".

   Kein wiederkehrendes Maskottchen (anders als windows-absichern.de) --
   dieses Buch hat keine Titelfigur, die Bildsprache ist rein abstrakt/
   atmosphaerisch, ausdruecklich ohne sichtbare menschliche Gesichter.
   -----------------------------------------------------------------------------
   Konvention: jeder Selektor und jede Variable mit .aum- / --aum- Prefix,
   damit das Theme in dieser Multi-Site-Contao-Instanz kollisionsfrei
   koexistiert.
   ============================================================================= */

:root {
  --aum-bg:          #14171d;            /* dusky-dunkles Anthrazit-Blau */
  --aum-bg-soft:     #1a1e26;
  --aum-surface:     #1f2530;
  --aum-surface-2:   #262d3a;

  --aum-ink:         #f2ede6;            /* warmes Off-White, kein reines Weiss */
  --aum-ink-soft:    #cbc6bd;
  --aum-muted:       #8b8f9c;
  --aum-line:        #333a48;

  --aum-brand:       #e0995e;            /* Amber/Terrakotta -- das "Licht" */
  --aum-brand-2:     #f2b98a;            /* helleres Glimmen (Hover) */
  --aum-brand-dim:   #b97843;            /* gedaempft (auf hellem Grund) */
  --aum-brand-soft:  rgba(224, 153, 94, 0.14);

  --aum-radius:      10px;
  --aum-radius-lg:   16px;
  --aum-shadow-sm:   0 1px 2px rgba(0, 0, 0, .25);
  --aum-shadow:      0 6px 22px rgba(0, 0, 0, .35);
  --aum-shadow-lg:   0 22px 60px rgba(0, 0, 0, .45);

  --aum-shell:       1120px;
  --aum-gutter:      24px;
}

/* --- Reset / Basis -------------------------------------------------------- */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body.aum-site {
  font-family: "Iowan Old Style", "Georgia", "Charter", ui-serif, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--aum-ink);
  background: var(--aum-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a {
  color: var(--aum-brand-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
a:hover { border-bottom-color: var(--aum-brand-2); }

h1, h2, h3, h4, h5, h6 {
  font-family: "Inter", "Helvetica Neue", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.012em;
  color: var(--aum-ink);
  margin: 0 0 .55em;
  line-height: 1.2;
}
h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; }

p { margin: 0 0 1.15em; }
ul, ol { margin: 0 0 1.15em; padding-left: 1.4em; }
li { margin-bottom: .4em; }

code, pre, kbd, samp {
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: .92em;
}

hr {
  border: none;
  border-top: 1px solid var(--aum-line);
  margin: 2.2rem 0;
}

/* --- Shell --------------------------------------------------------------- */

.aum-shell {
  max-width: var(--aum-shell);
  margin: 0 auto;
  padding: 0 var(--aum-gutter);
}

/* --- Skip-Link (Barrierefreiheit) ---------------------------------------- */

.aum-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--aum-brand);
  color: #1a1207;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 700;
  padding: 12px 18px;
  z-index: 1000;
  border-radius: 0 0 var(--aum-radius) var(--aum-radius);
}
.aum-skip:focus { left: 12px; top: 12px; }

/* --- Header / Nav -------------------------------------------------------- */

.aum-header {
  background: rgba(20, 23, 29, 0.92);
  border-bottom: 1px solid var(--aum-line);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(8px);
}

.aum-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 18px var(--aum-gutter);
  max-width: var(--aum-shell);
  margin: 0 auto;
  font-family: "Inter", system-ui, sans-serif;
}

.aum-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--aum-ink);
  border-bottom: none;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}
.aum-brand:hover { border-bottom: none; color: var(--aum-brand-2); }
.aum-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background:
    radial-gradient(circle at 45% 40%, var(--aum-brand-2) 0%, var(--aum-brand) 45%, rgba(224,153,94,0) 75%);
}
.aum-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.aum-brand-name { color: var(--aum-ink); font-weight: 700; }
.aum-brand-tag {
  color: var(--aum-muted);
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  font-family: "Iowan Old Style", Georgia, serif;
  font-style: italic;
}

.aum-primary-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.aum-primary-nav a {
  color: var(--aum-ink-soft);
  font-weight: 500;
  font-size: .94rem;
  border-bottom: none;
}
.aum-primary-nav a:hover { color: var(--aum-brand-2); }
.aum-primary-nav a.aum-btn-buy {
  background: var(--aum-brand);
  color: #1a1207;
  padding: 8px 18px;
  border-radius: var(--aum-radius);
  font-weight: 700;
}
.aum-primary-nav a.aum-btn-buy:hover { background: var(--aum-brand-2); color: #1a1207; }

/* Mobile-Toggle (Hamburger) */
.aum-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--aum-line);
  border-radius: var(--aum-radius);
  padding: 10px 12px;
  cursor: pointer;
}
.aum-nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--aum-ink);
  margin: 4px 0;
}

@media (max-width: 860px) {
  .aum-nav-toggle { display: block; }
  .aum-primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--aum-bg-soft);
    border-bottom: 1px solid var(--aum-line);
    padding: 18px var(--aum-gutter);
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .aum-primary-nav[data-open="true"] { display: flex; }
  .aum-primary-nav a.aum-btn-buy { order: -1; }
}

/* --- Main / Content ------------------------------------------------------ */

.aum-main {
  padding: 48px 0 88px;
  min-height: 60vh;
}

.aum-section {
  padding: 56px 0;
}
.aum-section + .aum-section { border-top: 1px solid var(--aum-line); }

/* --- Buttons --------------------------------------------------------------*/

.aum-btn {
  display: inline-block;
  font-family: "Inter", system-ui, sans-serif;
  padding: 13px 26px;
  border-radius: var(--aum-radius);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.aum-btn-primary {
  background: var(--aum-brand);
  color: #1a1207;
  border-color: var(--aum-brand);
}
.aum-btn-primary:hover {
  background: var(--aum-brand-2);
  border-color: var(--aum-brand-2);
  color: #1a1207;
}
.aum-btn-ghost {
  background: transparent;
  color: var(--aum-ink);
  border-color: var(--aum-line);
}
.aum-btn-ghost:hover {
  border-color: var(--aum-brand-2);
  color: var(--aum-brand-2);
}

/* --- Footer -------------------------------------------------------------- */

.aum-footer {
  background: var(--aum-bg-soft);
  border-top: 1px solid var(--aum-line);
  padding: 48px 0 32px;
  margin-top: 64px;
  font-family: "Inter", system-ui, sans-serif;
}
.aum-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.aum-footer-brand {
  font-weight: 700;
  color: var(--aum-ink);
  font-size: 1.02rem;
  margin: 0 0 6px;
}
.aum-footer-meta { color: var(--aum-muted); font-size: .9rem; margin: 0; }
.aum-footer-head {
  font-size: .78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--aum-ink-soft);
  font-weight: 700;
  margin: 0 0 14px;
}
.aum-footer nav a {
  display: block;
  padding: 5px 0;
  color: var(--aum-ink-soft);
  font-size: .94rem;
  border-bottom: none;
}
.aum-footer nav a:hover { color: var(--aum-brand-2); }
.aum-footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--aum-line);
  text-align: center;
  color: var(--aum-muted);
  font-size: .86rem;
}
@media (max-width: 860px) {
  .aum-footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* --- Legal-Pages Wrapper (Impressum/Datenschutz) ------------------------- */

.inside.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: .98rem;
}
.inside.legal h1 { font-size: 1.8rem; }
.inside.legal h2 { margin-top: 32px; font-size: 1.25rem; }
.inside.legal h3 { margin-top: 24px; font-size: 1.02rem; }
.inside.legal p, .inside.legal li { color: var(--aum-ink-soft); }

/* --- Utility ------------------------------------------------------------- */

.aum-mt-0 { margin-top: 0; }
.aum-mt-1 { margin-top: .5rem; }
.aum-mt-2 { margin-top: 1rem; }
.aum-mt-3 { margin-top: 1.5rem; }
.aum-mt-4 { margin-top: 2rem; }
.aum-text-muted { color: var(--aum-muted); }
.aum-text-center { text-align: center; }
.aum-kicker {
  display: inline-block;
  font-family: "Inter", system-ui, sans-serif;
  font-size: .8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--aum-brand-2);
  font-weight: 700;
  margin-bottom: 14px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
