/* =========================
   BrrBook – Minimal CSS
   ========================= */

/* Systemtypografie & Color-Schemes */
:root {
  /* Dark default */
  --bg: #0b0c10;
  --fg: #e8e8e8;
  --muted: #9aa0a6;
  --line: #1a1b22;
  --card: #0f1116;
  --btn-bg: #12131a;
  --btn-line: #2a2c35;
  --focus: #9ad; /* sanftes Blau/Violett */

  --radius: 12px;
  --radius-sm: 8px;
  --space: 16px;
  --space-sm: 10px;
  --maxw: 85%;
  --font: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --fg: #121212;
    --muted: #555b62;
    --line: #e7e7ea;
    --card: #f7f7fa;
    --btn-bg: #f4f4f7;
    --btn-line: #d9d9df;
    --focus: #345fdd;
  }
}

* { box-sizing: border-box; }
html { font: 16px/1.55 var(--font); color-scheme: dark light; }
body {
  margin: 0;
    padding-bottom: 40px;        /* gleiche Höhe wie Footer */
  background: var(--bg);
  color: var(--fg);
}

/* Grundlayout */

header, main, footer {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: var(--space);
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted transparent;
}
a:hover { border-bottom-color: currentColor; }

/* Fokus sichtbar & zugänglich */

/* Navigation (Header + Footer) */
nav[aria-label="Hauptnavigation"],
nav[aria-label="Fußnavigation"] {
  padding: 0;
}

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

nav li a {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
}

nav li a:hover {
  background: var(--card);
}

/* Typografie */
h1, h2, h3 { line-height: 1.25; margin: 0 0 8px 0; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.05rem; }


/* Formulare */
label { display: block; margin: 10px 0 6px; }

input[type="text"],
input[type="search"],
select,
/* Footer */
footer p { color: var(--muted); margin: 8px 0 0; }

textarea {
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
}

/* Zitate: leiser, eingerückt, ohne harte Boxen */
blockquote {
  margin: 1rem 0 1.25rem;
  padding-left: 1rem;
  border-left: 2px solid #dddddd;
  color: var(--muted);
  font-style: italic;
}

ul.principles, ul.ethics {
  list-style: none;
  padding-left: 0;
  
}

ul.principles li strong, ul.ethics li strong {
  color: #111;
}

button {
  background: #0078d7;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  background: #005fa3;
}

.admin-filter a {
  color: #000;
  text-decoration: none;
  border-bottom: 1px dotted transparent;
}
.admin-filter  a:hover { border-bottom-color: currentColor; }
.admin-ops button {
  color: #000;
}
.hidden {
  display: none;
}

.toggle-box {
  width: 300px;
  font-family: sans-serif;
  margin: 20px;
}

.thought {
  border-left: 2px solid #333;
  padding-left: 1.2rem;
  margin-bottom: 2rem;
  background: #dddddd;
  border-radius: 10px;
  padding: 1rem 1.5rem;
  transition: background .3s;
  max-width: 75vh;
}

.thought:hover {
  background: rgba(59, 47, 47, 0.04);
}

.thought-left {
  width: 55%; 
}

.thought-right {
  width: 40%; 
}

.input-box {
  padding: 20px; border-left: 1px solid #000; border-radius: 10px; background-color: white;
}

.text {
  font-size: 1.1rem;
  margin: 0 0 .4rem 0;
}
/* Meta/kleiner Text */
.small { color: var(--muted); font-size: .875rem; }

.meta {   margin: 0;
color: var(--muted); font-size: .92rem; }

.lead { color: var(--muted); margin: 4px 0 10px; }

.image-box {
  position: relative;
  display: inline-block;
  width: 100%;
  overflow: hidden;
}

.image-box img {
  width: 100%;
  display: block;
  border-radius: 0.25rem;
}

.image-caption {
  position: absolute;
  bottom: 8%; /* etwas über dem unteren Rand */
  left: 40%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.4); /* halbtransparentes Schwarz für Kontrast */
  color: #fff;
  padding: 0.5em 1em;
  border-radius: 0.25em;
  font-size: 1.3rem;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.7);
}

.css-text.my-name::after {
	padding-left: 7px;
	content: "Spano\'";
	cursor: text;
} 

.css_adr_place::before {
    padding-right: 7px;
    content: "42105 Wuppertal, NRW,";
    cursor: text;
}

.css_adr_email::after {
    padding-left: 7px;
    content: "info@brrbook.com";
    cursor: text;
}

/* Panel/Card */
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: calc(var(--space) - 2px);
  margin: var(--space) 0;
}

/* Buttons */
.btn--active {
  padding: 6px 10px;
  border: 1px solid #aaa;
  border-radius: 6px;
  background: transparent;
}

.btn--ghost {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
}

.btn {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--btn-line);
  border-radius: var(--radius-sm);
  background: var(--btn-bg);
  color: var(--fg);
  text-decoration: none;
  cursor: pointer;
  transition: transform .06s ease, background .15s ease;
}
.btn:hover { background: var(--card); }
.btn:active { transform: translateY(1px); }

.btn--action {
  background: #0a98ae;
  color: rgb(61, 61, 61);
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgb(150, 148, 148);
}
a.btn--action {
  color: white;
}
a:hover.btn--action {
  color: #000;
}

.btn--action:hover {
  background: transparent;
  border: 1px solid rgb(150, 148, 148);
}

/* Honeypot (unsichtbar, aber im DOM) */
.hp {
  position: absolute !important;
  left: -9999px !important;
}


/* Responsive Feinheiten */
@media (min-width: 720px) {
  h1 { font-size: 1.9rem; }
}

/* Optionale Utility-Grid, falls Listen als Kacheln kommen */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 920px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    
  .thought-left {
    width: 100%; 
  }

  .thought-right {
    width: 100%; 
  }
}
/* Blockquote dezent */
blockquote {
  margin: 10px 0;
  padding-left: 12px;
  border-left: 3px solid var(--line);
  color: var(--muted);
}

/* Reduzierte Bewegung */
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

/* Druck (nur Text) */
@media print {
  nav, .btn { display: none !important; }
  body { background: #fff; color: #000; }
  .panel { border: 0; background: transparent; }
}

@media (prefers-color-scheme: dark) {
  .thought, .input-box { 
    background:#7b7d80; 
    color:#e5e7eb; 
  }
  .meta, .lead {
    color: white;
  }
}