/* ==================================== */
/* 1. VARIABLEN (Design-Tokens)         */
/* ==================================== */
:root {
  /* Farben */
  --bg: #f7f9fc;
  --fg: #0f1720;
  --muted: #5b6772;
  --surface: #ffffff;
  --border: #e6ebf2;
  --digbiz: #5689c8;
  --youngbiz: #c75389;

  /* Akzent */
  --link: #0b57d0;
  --accent: #c75389; /* young-biz */
  --accent-weak: #f3d6e3;
}

/* Dark Mode (System-Präferenz) */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0c0f;
    --fg: #e9edf1;
    --muted: #9aa7b2;
    --surface: #151821;
    --border: #23293a;
    --link: #84b4ff;
    --accent: #c75389;
    --accent-weak: #3a2030;
  }
}

/* Dark Mode (manuell umschaltbar) */
/* Die Hintergrundfarbe für site-header wird hier angepasst, da sie dort explizit gesetzt wurde */
:root[data-theme="dark"] .site-header {
  background: rgba(10, 12, 16, 0.7);
}


/* ==================================== */
/* 2. RESET & BASIS-STYLING             */
/* ==================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
}

a {
  color: var(--link);
  text-decoration: none; /* Im Original nicht explizit gesetzt, hier hinzugefügt als Best Practice */
}

/* ==================================== */
/* 3. LAYOUT & HILFSKLASSEN             */
/* ==================================== */

/* Container für zentrierten Inhalt */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Button-Basis-Styling */
.btn {
  background: var(--youngbiz);
  color: #fff;
  border: none;
  padding: 0.45rem 0.7rem;
  border-radius: 0.6rem;
  cursor: pointer;
}
.butn {
  background-color: var(--digbiz);
  color: #fff;
  border: none;
  padding: 0.45rem 0.5rem;
  border-radius: 0.6rem;
  cursor: pointer;
}
.btn:hover {
  background-color: var(--muted);
}
.butn:hover {
  background-color: var(--muted);
}


/* ==================================== */
/* 4. KOMPONENTEN                       */
/* ==================================== */

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  /* Hintergrundwert aus dem Original beibehalten, aber um eine leicht transparete Version ersetzt,
     um den backdrop-filter-Effekt zu verbessern */
  background: rgba(20, 4, 27, 0.8);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Logo / Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  color: var(--fg);
  text-decoration: none;
}

.main_logo {
  width: 3rem;
  height: 3rem;
  border-radius: 25%;
}

/* Navigation */
.nav a {
  color: var(--fg);
  margin-left: 1rem;
}

.nav .active {
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.2rem;
}

/* --- Hero --- */
.hero {
  padding: 3rem 0;
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 10%, transparent), transparent);
}

/* --- Karten-Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1rem 0 2rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.card .p {
  padding: 1rem;
}

.card .title {
  font-weight: 700;
  margin: 0.3rem 0;
}

.card .meta {
  color: var(--muted);
  font-size: 0.9rem;
}

/* --- Cover Block (Bild + Caption) --- */
.cover-block {
  margin: 0.6rem 0 1rem;
}

.cover-block .cover {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: block;
}

.cover-block .caption {
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.35rem;
  font-style: italic;
}


/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1rem 0;
  color: var(--muted);
}


/* ==================================== */
/* 5. TABELLEN                          */
/* ==================================== */

/* Wrapper für responsives Scrollen */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
}

/* Grunddesign */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--accent-weak);
  color: var(--fg);
  font-weight: 600;
}

tr:last-child td {
  border-bottom: none;
}

/* Responsive Anpassungen (Mobil) */
@media (max-width: 768px) {
  .table-wrap {
    margin-left: -1rem;
    margin-right: -1rem;
  }
  table {
    /* Über gesamte Bildschirmbreite */
    width: 100vw;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  th, td {
    font-size: 0.95rem;
    padding: 0.6rem;
  }
}

a {
    text-decoration: none; 
    position: relative; 
    color: var(--digbiz); 
    padding-bottom: 5px;
    display: inline-block;
}
a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: bottom left; 
    transition: transform 0.3s ease-out;
}
a:hover::after {
    transform: scaleX(1);
}
a {
    display: inline; 
    text-decoration: none; 
    background-image: linear-gradient(var(--digbiz), var(--digbiz));
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom; 
    transition: background-size 0.3s ease-in-out; 
}

a:hover {
    background-size: 100% 2px;
    /*color: var(--digbiz);*/
}