:root{
  --bg: #ffffff;
  --text: #111111;
  --muted: #6b7280;
  --line: #e5e7eb;
  --card: #ffffff;
  --shadow: 0 10px 25px rgba(0,0,0,0.08);
  --radius: 14px;
  --max: 1100px;
  --accent: #111111; /* bewusst neutral: passt zu fast jedem Logo */
  --accent-2: #2563eb;
}

*{ box-sizing: border-box; }

html, body{
  height: 100%;
}

body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

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

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }

/* Header: Logo + Link-Styling (wie auf jetztstarten.de) */
.header-link{ text-decoration: none; }
.header-link:hover{ text-decoration: none; }
.site-header .logo{ width:56px !important; height:56px !important; object-fit:contain; }
.site-title{
  margin:0;
  font-size:clamp(28px,4vw,40px);
  font-weight:700;
  line-height:1.1;
}

.container{
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.brand__logo{
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.brand__text{
  display: none; /* Fallback falls kein Logo geladen werden kann */
  font-size: 1.05rem;
}


/* Header: Logo + Titel neben Logo */
.header-link:hover{ text-decoration:none; }

.site-header .logo{
  width: 56px !important;
  height: 56px !important;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-copy{
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.site-title{
  margin: 0;
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 700;
  line-height: 1.1;
}

.site-subtitle{
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.2;
  max-width: 70ch;
}

@media (max-width: 900px){
  .site-subtitle{ display:none; }
}
.nav{
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.nav a{
  padding: 0.35rem 0.5rem;
  border-radius: 10px;
  color: var(--text);
}
.nav a[aria-current="page"]{
  background: #f3f4f6;
  text-decoration: none;
}

.nav-toggle{
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
}

main{
  padding: 2rem 0 3rem;
}

.hero{
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.hero h1{
  margin: 0 0 0.35rem 0;
  font-size: clamp(28px,4vw,40px);
  font-weight: 700;
  line-height: 1.1;
}

.hero p{
  margin: 0.35rem 0 1rem 0;
  color: var(--muted);
}

.kicker{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.actions{
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  text-decoration: none !important;
}

.btn--primary{
  border-color: var(--accent-2);
  background: var(--accent-2);
  color: #fff;
}

.btn--ghost{
  background: #fff;
}

.btn--small{
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
}

.grid{
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1rem;
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
}

.card h2{
  margin: 0 0 0.35rem 0;
  font-size: 1.05rem;
}

.grid .card p{
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.section-title{
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
}

.breadcrumbs{
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.breadcrumbs a{
  color: inherit;
}

.prose{
  max-width: 75ch;
}

.prose h1, .prose h2, .prose h3{
  line-height: 1.2;
}

.prose h1{ margin-top: 0; }
.prose p{ color: #1f2937; }


/* Textseiten: kleinere Überschriften + mehr Abstand zwischen Absätzen */
.prose h1{
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
}
.prose h2{
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
}
.prose p{
  margin: 0 0 1rem 0;
}
/* --------------------------------------------------------------------------
   Text/Prose: bessere Lesbarkeit auf allen Unterseiten
---------------------------------------------------------------------------*/
.prose{
  font-size: 1.05rem;
}

.prose h1{
  font-size: clamp(22px, 2.6vw, 30px);
  margin: 0 0 0.75rem 0;
}
.prose h2{
  font-size: clamp(18px, 2.2vw, 24px);
  margin: 1.5rem 0 0.5rem 0;
}
.prose h3{
  font-size: clamp(16px, 2vw, 20px);
  margin: 1.2rem 0 0.4rem 0;
}
.prose p{
  margin: 0 0 1rem 0; /* 'freie Zeile' zwischen Absätzen */
  color: #1f2937;
}
.prose p:last-child{ margin-bottom: 0; }
.prose ul, .prose ol{
  margin: 0 0 1rem 1.25rem;
}
.prose li{ margin: 0.25rem 0; }
.prose code{ font-size: 0.95em; }

/* Falls noch alte Sidebar-Labels gerendert werden: ausblenden */
.page-sidebar .side-title,
.page-sidebar .side-meta{ display:none; }

hr.sep{
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.5rem 0;
}

.site-footer{
  border-top: 1px solid var(--line);
  padding: 1.25rem 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer__inner{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.footer__links{
  display: inline-flex;
  gap: 0.9rem;
}

.note{
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px dashed var(--line);
  color: var(--muted);
  background: #fafafa;
}

.form{
  max-width: 720px;
}

.form-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label{
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}

input, textarea{
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  font: inherit;
  background: #fff;
}

textarea{
  min-height: 140px;
  resize: vertical;
}

.helper{
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.form-actions{
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.success{
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.error{
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

/* --------------------------------------------------------------------------
   Unterseiten-Navigation (Sidebar)
   Wird per JS in /seiten/*.html eingeblendet (Dropdown + Vor/Weiter)
---------------------------------------------------------------------------*/

.page-layout{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 980px){
  .page-layout{
    grid-template-columns: 280px 1fr;
    align-items: start;
  }
}

.page-sidebar{
  position: sticky;
  top: 90px;
  align-self: start;
  background: #fff;
  border: 1px solid #e8ecf5;
  border-radius: 16px;
  padding: 14px;
}

.page-sidebar .side-title{
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.side-meta{
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.side-actions{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.side-actions .btn{
  width: 100%;
  justify-content: center;
}

.side-label{
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 6px;
}

.side-select{
  width: 100%;
  border: 1px solid #dbe2f3;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  font: inherit;
}


/* Sidebar: aktueller Seitentitel */
.side-current{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fafafa;
  font-size: 13px;
  color: var(--muted);
}
.side-links{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eef2ff;
  display: grid;
  gap: 8px;
}

.side-links a{
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.side-links a:hover{
  color: var(--text);
  text-decoration: underline;
}

/* alte "Weiter/Zurück"-Buttons im Artikel ausblenden, sobald Sidebar aktiv ist */
.page-layout .actions{
  display: none;
}

/* Responsive */
@media (max-width: 900px){
  .hero{ grid-template-columns: 1fr; }
  .grid{ grid-template-columns: 1fr; }
  .form-grid{ grid-template-columns: 1fr; }
  .nav{
    position: absolute;
    top: 62px;
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.75rem;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow);
  }
  .nav[data-open="true"]{ display: flex; }
  .nav-toggle{ display: inline-flex; }
}


/* --------------------------------------------------------------------------
   Zusätze
---------------------------------------------------------------------------*/

.table-wrap{
  overflow-x: auto;
}

.prose table{
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.prose th, .prose td{
  border: 1px solid var(--line);
  padding: 0.55rem 0.6rem;
  text-align: left;
  vertical-align: top;
}

.prose th{
  background: #f9fafb;
}

.is-disabled{
  opacity: 0.45;
  pointer-events: none;
}


/* Footer Links: nicht blau, nicht unterstrichen */
.site-footer a,
.site-footer a:hover{
  color: inherit;
  text-decoration: none;
}


/* Tabellen */
.table-wrap{ overflow-x:auto; }
.table{
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.table th, .table td{
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.75rem;
  border-top: 1px solid var(--line);
}
.table thead th{
  border-top: 0;
  background: #fafafa;
  color: #374151;
  font-size: 0.95rem;
}
.table tbody td{
  color: #111827;
}


/* Karten als Links */
a.card:hover{ text-decoration: none; }


/* Footer link styling */
.site-footer a, .site-footer a:hover{
  text-decoration: none;
}


/* Inline links that should not underline/bold */
.link-plain{
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 500;
}
.link-plain:hover{
  text-decoration: none;
}


/* --------------------------------------------------------------------------
   Link styles
---------------------------------------------------------------------------*/
.footer-link{
  color: inherit;
  text-decoration: none;
}
.footer-link:hover{
  text-decoration: none;
}

.link-neutral{
  color: inherit;
  font-weight: 400;
  text-decoration: none;
}
.link-neutral:hover{
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Subtle colored cards on the start page
---------------------------------------------------------------------------*/
.card--tone-1{ background: #f8fafc; }
.card--tone-2{ background: #f0f9ff; }
.card--tone-3{ background: #f0fdf4; }
.card--tone-4{ background: #fff7ed; }
.card--tone-5{ background: #fdf2f8; }
.card--tone-6{ background: #f5f3ff; }

/* FAQ note box (subtle color, no dashed border) */
.note--faq{
  border-style: solid;
  border-color: #e9d5ff;
  background: #faf5ff;
}
