/* ===========================
   AutorenWebSeite — 2025
   Modern, responsive, accessible
   =========================== */

:root{
  --bg: #0b0d12;
  --panel: #111525;
  --panel-2: #0f1320;
  --text: #f6f8ff;   /* Haupttext heller */
  --muted: #d6dcff;  /* Nebentext heller, aber noch “muted” */
  --border: rgba(255,255,255,.12);
  --shadow: 0 18px 55px rgba(0,0,0,.35);

  --brand: #7c5cff;
  --brand-2: #29d7ff;
  --ok: #2ee59d;
  --warn: #f5c542;

  --radius: 18px;
  --radius-lg: 26px;

  --max: 1120px;
  --gap: clamp(16px, 2vw, 22px);

  --h1: clamp(2.1rem, 3.6vw, 3.2rem);
  --h2: clamp(1.45rem, 2.4vw, 2rem);
  --h3: 1.15rem;
  --p: 1.02rem;

  --focus: 2px solid rgba(41, 215, 255, .85);

  --fw-body: 520;
  --fw-strong: 650;
  --fw-head: 820;
}

[data-theme="light"]{
  --bg: #fbfbff;
  --panel: #ffffff;
  --panel-2: #f4f6ff;
  --text: #000308;   /* Haupttext deutlich dunkler */
  --muted: #080b13;  /* Nebentext dunkler/kontrastreicher */
  --border: rgba(20,24,44,.12);
  --shadow: 0 18px 55px rgba(14, 18, 40, .12);
  --focus: 2px solid rgba(124, 92, 255, .75);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  font-size: var(--p);
  color: var(--text);

  /* Hintergrundbild als Cover */
  background-image: url("../img/bg.png");
  background-size: cover;        /* zeigt das Bild komplett */
  background-position: center bottom; /* oben ausrichten, nichts unten abschneiden */
  background-color: var(--bg);     /* füllt die “Ränder”, falls freie Fläche entsteht */

  background-repeat: no-repeat;
  background-attachment: scroll; /* mobile-freundlich */
}

/* Auf größeren Screens sieht fixed schicker aus */
@media (min-width: 900px){
  body{ background-attachment: fixed; }
}

/* Overlay für Lesbarkeit (theme-abhängig) */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

html[data-theme="dark"] body::before{
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(124, 92, 255, .28), transparent 60%),
    radial-gradient(900px 520px at 100% 0%, rgba(41, 215, 255, .18), transparent 60%),
    radial-gradient(900px 520px at 40% 110%, rgba(46, 229, 157, .10), transparent 60%),
    rgba(0, 0, 0, 0.55);
}

html[data-theme="light"] body::before{
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(124, 92, 255, .10), transparent 60%),
    radial-gradient(900px 520px at 100% 0%, rgba(41, 215, 255, .08), transparent 60%),
    rgba(0, 0, 0, 0.35); /* <- dunkler: 0.25–0.55 nach Geschmack */
}



a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }
img{ max-width: 100%; height: auto; display: block; }

.container{
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
}

.skip-link{
  position: absolute;
  left: -999px;
  top: 0;
  padding: 10px 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  z-index: 9999;
}
.skip-link:focus{
  left: 12px;
  top: 12px;
  outline: var(--focus);
}

/* Honeypot field (visually hidden, but accessible to bots) */
.honeypot{
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(10,12,18,.55);
  border-bottom: 1px solid var(--border);
}
[data-theme="light"] .site-header{ background: rgba(255,255,255,.75); }

.header-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
}

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: .2px;
}
.brand-mark{
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 30px rgba(124,92,255,.25);
}
.brand small{
  display: block;
  color: var(--muted);
  font-weight: 650;
  margin-top: -2px;
}

.nav{
  display: none;
  align-items: center;
  gap: 12px;
}
.nav a{
  padding: 10px 10px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 750;
}
.nav a[aria-current="page"]{
  color: var(--text);
  background: rgba(124,92,255,.18);
  border: 1px solid var(--border);
}

.header-actions{
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-weight: 850;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,.06); }
.btn:active{ transform: translateY(0); }
.btn:focus{ outline: var(--focus); outline-offset: 2px; }

.btn-primary{
  border: 0;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #0b0d12;
  box-shadow: 0 16px 38px rgba(124,92,255,.18);
}
.btn-primary:hover{ filter: brightness(1.03); }
.btn-ghost{ background: transparent; }
.menu-btn{ display: inline-flex; }

/* Mobile nav */
.mobile-nav{
  display: none;
  border-top: 1px solid var(--border);
}
.mobile-nav.open{ display: block; }
.mobile-nav a{
  display: block;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-weight: 800;
}
.mobile-nav a[aria-current="page"]{
  color: var(--text);
  background: rgba(124,92,255,.14);
}

/* Layout */
main{ padding: 22px 0 64px; }
.section{ margin-top: clamp(28px, 5vw, 64px); }

.grid{
  display: grid;
  gap: var(--gap);
}

@media (min-width: 980px){
  .nav{ display: flex; }
  .menu-btn{ display: none; }
  .mobile-nav{ display: none !important; }
  .grid-2{ grid-template-columns: 1.2fr .8fr; }
  .grid-3{ grid-template-columns: repeat(3, 1fr); }
}

/* Cards */
.card{
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-inner{ padding: clamp(16px, 2.2vw, 24px); }
.card h2, .card h3{ margin: 0 0 10px; }
.card p{ margin: 0; color: var(--muted); }

.kicker{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  letter-spacing: .2px;
  color: var(--text);
  background: rgba(124,92,255,.14);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 12px;
}
.kicker .dot{
  width: 9px; height: 9px; border-radius: 99px;
  background: var(--ok);
  box-shadow: 0 0 0 6px rgba(46,229,157,.12);
}

.hr{ height: 1px; background: var(--border); margin: 18px 0; }

/* Hero */
.hero{
  display: grid;
  gap: var(--gap);
  align-items: center;
}
@media (min-width: 980px){
  .hero{ grid-template-columns: 1.15fr .85fr; }
}
.hero h1{
  font-size: var(--h1);
  line-height: 1.12;
  margin: 12px 0 10px;
  letter-spacing: -0.6px;
}
.hero .sub{
  color: var(--muted);
  margin: 0 0 18px;
  font-size: 1.08rem;
}

.hero-cta{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.hero-meta{
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-weight: 750;
}
.pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
}

.badges{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.badge{
  font-weight: 900;
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  padding: 7px 10px;
  border-radius: 999px;
}

/* Cover */
.cover{
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(600px 300px at 20% 10%, rgba(41,215,255,.26), transparent 60%),
    radial-gradient(500px 260px at 90% 30%, rgba(124,92,255,.26), transparent 60%),
    rgba(255,255,255,.02);
  min-height: 320px;
}
.cover .label{
  position: absolute;
  left: 14px;
  top: 14px;
  font-weight: 950;
  letter-spacing: .2px;
  background: rgba(0,0,0,.35);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 999px;
}
[data-theme="light"] .cover .label{ background: rgba(255,255,255,.65); }
.cover .mock{
  padding: 18px;
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 320px;
}
.cover .mock img{
  aspect-ratio: 2/3;
  object-fit: contain;
}

/* Two worlds tiles */
.tiles{
  display: grid;
  gap: var(--gap);
}
@media (min-width: 980px){
  .tiles{ grid-template-columns: 1fr 1fr; }
}
.tile{
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.02);
  box-shadow: var(--shadow);
  padding: 18px;
}
.tile h3{ margin: 0 0 8px; font-size: 1.2rem; }
.tile p{ margin: 0; color: var(--muted); }
.tile .tile-cta{ margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.tile::after{
  content:"";
  position:absolute;
  inset:-40%;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.18), transparent 45%);
  transform: rotate(12deg);
  pointer-events:none;
}
.tile.ratgeber{ background: radial-gradient(600px 300px at 15% 20%, rgba(46,229,157,.18), transparent 60%), rgba(255,255,255,.02); }
.tile.roman{ background: radial-gradient(600px 300px at 15% 20%, rgba(245,197,66,.16), transparent 60%), rgba(255,255,255,.02); }

/* Book cards */
.book-card{
  display: grid;
  gap: 12px;
}
.book-cover{
  border-radius: 18px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: rgba(255,255,255,.02);
}
.book-cover img{ 
  width: 100%; 
  height: auto; 
  display:block; 
  aspect-ratio: 2/3; 
  object-fit: contain; 
  background: rgba(255,255,255,.02);
}

.filters{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.filters .btn[aria-pressed="true"]{
  background: rgba(124,92,255,.18);
  border-color: rgba(124,92,255,.35);
}

/* Forms */
.form{ display: grid; gap: 10px; }
.field{ display: grid; gap: 6px; }
label{ font-weight: 900; }
input, textarea, select{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--text);
  font: inherit;
}
textarea{ min-height: 130px; resize: vertical; }
input:focus, textarea:focus, select:focus{
  outline: var(--focus);
  outline-offset: 2px;
}
.help{ color: var(--muted); font-size: .92rem; }

/* Big consent checkbox */
.check{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.02);
}
.check input[type="checkbox"]{
  width: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: var(--brand-2);
}
.check label{
  font-weight: 850;
  cursor: pointer;
}
.check .help{ margin-top: 4px; }

/* Reviews stars (base + overlay) */
.stars{
  position: relative;
  display: inline-block;
  line-height: 1;
  letter-spacing: .08em;
  font-size: 1.15rem;
}
.stars-base{ opacity: .45; }
.stars-fill{
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  width: 0%;
  white-space: nowrap;
  height: 100%;
}
html[data-theme="dark"] .stars-base{ color: rgba(255,255,255,.35); }
html[data-theme="light"] .stars-base{ color: rgba(0,0,0,.35); }
.stars-fill{ color: var(--warn); }

.quote{
  margin-top: 12px;
  padding: 14px 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.02);
}
.quote p{ margin: 0; }
.quote footer{
  margin-top: 10px;
  color: var(--muted);
  font-weight: 850;
}

/* Footer */
.site-footer{
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--muted);
}
.footer-row{ display: grid; gap: 14px; }
@media(min-width: 900px){
  .footer-row{ grid-template-columns: 1.3fr .7fr; align-items: start; }
}
.footer-links{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-links a{
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.08);
  color: var(--text);
  font-weight: 850;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.footer-links a:hover{
  background: rgba(255,255,255,.12);
  border-color: rgba(124,92,255,.4);
  transform: translateY(-1px);
  text-decoration: none;
}
.footer-links a[aria-current="page"]{
  background: rgba(124,92,255,.18);
  border-color: rgba(124,92,255,.5);
  color: var(--text);
}
.social{ display: flex; flex-wrap: wrap; gap: 10px; }

.notice{
  font-weight: 900;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(46,229,157,.10);
  color: var(--text);
}
.notice.warn{ background: rgba(245,197,66,.12); }

/* Disclaimer / Wichtiger Hinweis */
.disclaimer{
  padding: 16px 18px;
  border-radius: 16px;
  border: 2px solid #dc2626;
  background: rgba(220,38,38,.15);
  color: var(--text);
  font-weight: 750;
  font-size: 1rem;
  line-height: 1.5;
  margin: 18px 0;
}
.disclaimer strong{
  color: #dc2626;
  font-weight: 900;
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
}
html[data-theme="light"] .disclaimer{
  background: rgba(220,38,38,.20);
  border-color: #dc2626;
  color: #111;
}
html[data-theme="light"] .disclaimer strong{
  color: #b91c1c;
}

/* Light Theme tweaks */
html[data-theme="light"] .card{
  background: rgba(248,248,248,.92);
  color: #111;
  border: 1px solid rgba(0,0,0,.10);
}
html[data-theme="light"] .help,
html[data-theme="light"] small,
html[data-theme="light"] .quote footer{ color: rgba(0,0,0,.75); }
html[data-theme="light"] p{ color: rgba(0,0,0,.92); }
html[data-theme="light"] .btn{
  color: #111;
  border-color: rgba(0,0,0,.18);
  background: rgba(248,248,248,.88);
}
html[data-theme="light"] .btn.btn-primary{
  color: #fff;
  background: #111;
}
html[data-theme="light"] .footer-links a{
  background: rgba(0,0,0,.06);
  border-color: rgba(0,0,0,.15);
  color: #111;
}
html[data-theme="light"] .footer-links a:hover{
  background: rgba(0,0,0,.10);
  border-color: rgba(124,92,255,.4);
}
html[data-theme="light"] .footer-links a[aria-current="page"]{
  background: rgba(124,92,255,.15);
  border-color: rgba(124,92,255,.4);
  color: #111;
}
/* ===========================
   Kontaktformular: DSGVO-Checkbox schöner & besser klickbar
   =========================== */

.form .check{
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;

  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
}

[data-theme="light"] .form .check{
  background: rgba(0,0,0,.04);
}

.form .check input[type="checkbox"]{
  width: 22px;
  height: 22px;
  margin: 2px 0 0 0;
  accent-color: var(--brand);
  cursor: pointer;
}

.form .check label{
  cursor: pointer;
  font-weight: 650;
  line-height: 1.35;
  display: inline-block;
}

.form .check .help{
  margin-top: 6px;
  font-size: .95rem;
  opacity: .92;
}

/* Extra: Wenn man irgendwo in die Box klickt, wirkt es wie ein Button */
.form .check:hover{
  border-color: rgba(124, 92, 255, .35);
}

/* Fokus sichtbar (Tastaturbedienung) */
.form .check:focus-within{
  outline: var(--focus);
  outline-offset: 2px;
}

/* Mobile: Checkbox + Text noch besser lesbar */
@media (max-width: 520px){
  .form .check{
    grid-template-columns: 28px 1fr;
    padding: 16px 14px;
  }
  .form .check input[type="checkbox"]{
    width: 24px;
    height: 24px;
  }
}
/* ===========================
   Typo: kräftiger, aber sauber
   =========================== */

body{
  font-weight: var(--fw-body);
  letter-spacing: 0.1px;
}

/* Headlines */
h1, h2, h3{
  font-weight: var(--fw-head);
  letter-spacing: -0.2px;
}

/* Buttons/Navigation etwas kräftiger */
.nav a,
.btn{
  font-weight: var(--fw-strong);
}

/* Hilfstexte nicht zu blass */
.help,
.sub{
  font-weight: 560;
}

/* Theme-spezifischer Kontrast für muted/help */
html[data-theme="dark"]{
  --muted: #e2e6ff; /* heller als vorher -> besser lesbar */
}

html[data-theme="light"]{
  --muted: #1f283a; /* dunkler -> besser lesbar */
}
