/*css\style.css*/

/* =========================================================
   Spirealismus – Base Styles
   Ziel: klar, leicht, ohne Overlaps/„Fix-Flicken“
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root{
  --font-sans: system-ui,-apple-system,"Segoe UI",Roboto,Ubuntu,Cantarell,"Helvetica Neue",Arial,"Noto Sans",sans-serif;
  --fg: #111;
  --fg-muted:#444;
  --muted:#666;
  --bg:#fff;
  --brand:#2f4f8f;
  --brand-weak:#e9eef8;
  --maxw: 960px;

  --r-xs:6px; --r-sm:10px; --r-lg:16px;
  --s-1:4px; --s-2:8px; --s-3:12px; --s-4:16px;
  --s-5:20px; --s-6:24px; --s-7:32px; --s-8:40px; --s-9:48px;
  --shadow: 0 2px 8px rgba(0,0,0,.06);
}

/* ---------- Base Reset ---------- */
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font:16px/1.6 var(--font-sans);
  color:var(--fg);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
img{ max-width:100%; display:block; }
a{ color:var(--brand); text-decoration:none; }
a:hover{ text-decoration:underline; }

/* ---------- Layout ---------- */
.container{ max-width:var(--maxw); margin:var(--s-7) auto; padding:0 var(--s-4); }
.section{ margin: var(--s-8) 0; }
.prose p{ margin: 0 0 var(--s-4); color: var(--fg-muted); }

/* =========================================================
   Header & Navigation
   ========================================================= */
.site-header{
  display:flex; align-items:center; justify-content:space-between;
  gap:var(--s-4);
  padding: var(--s-4) var(--s-4);
  border-bottom:1px solid #eee;
  background:#fff;
  position:sticky; top:0; z-index:10;
}

#logo{
  display:flex; align-items:center; gap:var(--s-3);
}
#logo img{
  width:100px; height:100px; object-fit:contain;
}
.site-title{ font-weight:800; font-size:22px; letter-spacing:.2px; color:var(--fg); }

/* Haupt-Navigation */
.nav{
  display:flex; align-items:center; gap:var(--s-5);
}
.nav-main a{
  margin-right:var(--s-3);
  font-weight:600; letter-spacing:.2px;
}
.nav-main a:last-child{ margin-right:0; }

/* Sprachwahl */
.lang-switch select{
  font: inherit;
  padding: 6px 8px;
  border:1px solid #ddd;
  border-radius: var(--r-xs);
  background:#fff;
}

/* =========================================================
   Typografie
   ========================================================= */
h1,h2,h3,h4{ margin:0 0 var(--s-3); line-height:1.25; color:var(--fg); }
h1{ font-size: clamp(28px, 3.2vw, 36px); font-weight:800; }
h2{ font-size: clamp(22px, 2.4vw, 28px); font-weight:700; }
h3{ font-size: clamp(18px, 2vw, 22px); font-weight:700; }
p, ul, ol{ margin:0 0 var(--s-4); }
.lead{ font-size:18px; color:var(--fg); }

/* Standard-Abstände in Main */
main.container{ margin-top: var(--s-7); }

/* =========================================================
   Manifest-Seite (Blöcke & Artikel)
   ========================================================= */


.manifest-block{
  margin: var(--s-7) 0;
  padding: var(--s-5);
  border-left: 4px solid var(--brand);
  background: var(--brand-weak);
  border-radius: var(--r-sm);
}

.manifest-block__title{
  margin: 0 0 var(--s-3);
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 800;
  color: var(--brand);
  /* optional: untere Linie
  border-bottom: 1px solid rgba(0,0,0,.08);
  padding-bottom: var(--s-2);
  */
}

.manifest-items{ margin:0; padding:0; list-style:none; }

.manifest-item{
  background:#fff;
  border:1px solid #eee;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow);
  padding: var(--s-4);
  margin: 0 0 var(--s-4);
}

.manifest-item__title{
  margin:0 0 var(--s-2);
  font-weight: 700;
  font-size: 18px;
  color: var(--fg);
}

.manifest-item__content{
  color: var(--fg-muted);
}

/* =========================================================
   Buttons & Links
   ========================================================= */
.btn{
  display:inline-block;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: var(--brand);
  color:#fff;
  text-decoration:none;
  font-weight:600;
  box-shadow: var(--shadow);
}
.btn:hover{ opacity:.95; }

/* Link-Buttons in Zeile */
.btn-row{ display:flex; flex-wrap:wrap; gap: var(--s-3); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer{
  margin-top: var(--s-8);
  border-top:1px solid #eee;
  padding: var(--s-5) var(--s-4);
  background:#fafafa;
}
.footer-content{
  display:flex; align-items:center; justify-content:space-between;
  gap: var(--s-4);
}
.footer-right a{ margin-left: var(--s-4); }
.footer-bottom{
  text-align:center; color: var(--muted); font-size:14px; margin: var(--s-3) 0 0;
}

/* =========================================================
   Utilities
   ========================================================= */
.m-0{ margin:0!important; }
.mt-0{ margin-top:0!important; }
.mt-2{ margin-top: var(--s-2)!important; }
.mt-4{ margin-top: var(--s-4)!important; }
.mt-6{ margin-top: var(--s-6)!important; }
.mb-0{ margin-bottom:0!important; }
.mb-4{ margin-bottom: var(--s-4)!important; }
.text-center{ text-align:center!important; }




/* ========== Admin / Intern-UI (leichtgewichtig, projektweit nutzbar) ========== */
.admin-shell { padding: 16px 0 28px; }
.admin-shell h1 { margin: 0 0 12px; font-size: 24px; }
.admin-shell h2 { margin: 12px 0 8px; font-size: 20px; }
.admin-shell h3 { margin: 10px 0 6px; font-size: 18px; }

.note {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  color: #334155;
  margin: 8px 0 16px;
}

.user-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 12px;
  margin: 12px 0;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}

.small { font-size: 14px; line-height: 1.5; }
.muted { color: #64748b; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; }

/* Buttons */
.btn-ghost {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: var(--fg);
  text-decoration: none;
  cursor: pointer;
}
.btn-ghost:hover { background: #f1f5f9; }

/* Form Controls (kompakt & einheitlich) */
.admin-shell input[type="text"],
.admin-shell input[type="search"],
.admin-shell select,
.admin-shell textarea {
  width: 100%;
  max-width: 100%;
  padding: .55em .6em;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  outline: none;
}
.admin-shell textarea { resize: vertical; }

/* Zeilen-Layout für kompakte Filterbereiche */
.form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.form-row > .col { min-width: 180px; }

/* Tabellen */
.admin-shell table { width: 100%; border-collapse: collapse; }
.admin-shell thead th {
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid #e5e7eb;
  padding: 8px;
  background: #f8fafc;
}
.admin-shell tbody td {
  border-bottom: 1px solid #f1f5f9;
  padding: 8px;
  vertical-align: top;
}

/* Status-Meldungen */
.msg-ok {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 8px 10px; border-radius: 8px; margin: 8px 0;
}
.msg-err {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  padding: 8px 10px; border-radius: 8px; margin: 8px 0;
}

/* Utility für Button-Reihen rechtsbündig */
.actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }


/* ========== HELL (Standard) ========== */
.theme-default .site-header,
.theme-default .site-footer {
  background: #fff;
  color: #111;
}



.theme-default .site-title {
  color: #111;
}

.theme-default .nav a {
  color: #222;
}
.theme-default .nav a:hover {
  color: #000;
}

/* Falls du irgendwo sehr generische Farbangaben hast,
   die dazwischenfunken, hebt das hier die Priorität an: */
.theme-default .site-header a,
.theme-default .site-footer a {
  color: inherit;
}



/* ====== Assets-Editor Layout ====== */
.asset-edit-grid{
  display:grid;
  grid-template-columns: minmax(0,1fr) 320px;
  gap: 14px;
}

/* Rechte Vorschau-Spalte */
.asset-preview{
  background:#fafbff;
  border:1px dashed #ccd3ee;
  border-radius:8px;
  padding:10px;
  position:sticky; top:12px;
}
.asset-preview img{ width:100%; height:auto; display:block; border-radius:6px; }
.asset-preview .ph{ display:grid; place-items:center; aspect-ratio:1/1; background:#eef2ff; border-radius:6px; color:#667 }

/* Unterer Vollbreiten-Container */
.asset-stack{ margin-top: 14px; }

/* Kompakte Zeilen: Label links, Feld rechts */
.form-row.compact{
  display:flex; flex-wrap:wrap; gap:10px; align-items:center;
}
.form-row.compact .f{
  display:flex; align-items:center; gap:8px;
  min-width: 260px; /* Responsiv ausreichend breit */
}
.form-row.compact .f .lbl{
  min-width: 92px; text-align:right; color:#475569; font-size:14px;
}
.form-row.compact .f .ctl{
  flex:1 1 auto;
}
.form-row.compact .f .ctl > input[type="text"],
.form-row.compact .f .ctl > input[type="date"],
.form-row.compact .f .ctl > select,
.form-row.compact .f .ctl > textarea{
  width:100%;
}

/* Kartenoptik analog */
.card{ background:#fff; border:1px solid #e6e8ef; border-radius:10px; padding:14px; margin:14px 0; }

.prose img { max-width: 100%; height: auto; }


/* Hauptmenü horizontal */
.nav { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.nav .nav-main { display:flex; align-items:center; gap:16px; }

/* Menülinks */
.nav .nav-main > a,
.nav .nav-item > a {
  display:inline-block;
  padding:8px 10px;
  text-decoration:none;
}

/* Dropdown-Grundlage */
.nav .nav-item { position:relative; }
.nav .nav-item .dropdown {
  position:absolute;
  left:0; top:100%;
  min-width: 220px;
  background:#fff;
  border:1px solid #e6e8ef;
  border-radius:8px;
  padding:6px;
  display:none;         /* versteckt, bis Hover */
  z-index: 1000;
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
}

/* Dropdown zeigen bei Hover/Fokus */
.nav .nav-item:hover .dropdown,
.nav .nav-item:focus-within .dropdown { display:block; }

/* Dropdown-Links */
.nav .dropdown a {
  display:block;
  padding:6px 10px;
  border-radius:6px;
  color:inherit;
  text-decoration:none;
  white-space:nowrap;
}
.nav .dropdown a:hover { background:#f6f7fb; }

/* Sprachumschalter rechts */
.nav .lang-switch select {
  padding:6px 8px;
  border-radius:6px;
}


/* Dropdown-Menü-Container (weißer Hintergrund) */
.nav .dropdown {
  background: #fff;
  border: 1px solid #ccc;
}

/* Links im Dropdown */
.nav .dropdown a {
  color: #000;   /* immer schwarz */
  display: block;
  padding: 6px 10px;
  text-decoration: none;
}

/* Hover-Effekt */
.nav .dropdown a:hover {
  background: #f0f0f0;
}
