/* =========================
   Globale Farben & Variablen
   ========================= */
:root {
  --bg: #0b0d10;
  --panel: #111419;
  --panel-2: #0e1116;
  --text: #e7ecf3;
  --muted: #a9b1bc;
  --accent: #4cc9f0;
  --accent-2: #80ed99;
  --border: #1c2129;
  --chip: #1a2029;
  --shadow: 0 10px 30px rgba(0,0,0,.5);
  --radius: 18px;
  --maxw: 1100px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f9fc;
    --panel: #ffffff;
    --panel-2: #f5f7fb;
    --text: #0b0d10;
    --muted: #4c5665;
    --border: #e6eaf0;
    --chip: #eef2f7;
    --shadow: 0 10px 30px rgba(0,0,0,.08);
  }
}

/* =========================
   Grundlayout
   ========================= */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }

body {
  font: 500 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu,
        Cantarell, Noto Sans, Helvetica, Arial;
  color: var(--text);
  background:
    radial-gradient(1200px 800px at 80% -50%, rgba(76,201,240,.10), transparent 60%),
    radial-gradient(900px 600px at -20% 120%, rgba(128,237,153,.08), transparent 50%),
    var(--bg);
}

.wrap {
  max-width: var(--maxw);
  margin: 48px auto;
  padding: 0 24px;
}

.card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}

.card:last-of-type {
  margin-bottom: 0;
}

/* =========================
   Header + Navigation
   ========================= */
header.card {
  padding: 16px 28px;
  position: relative;
  overflow: hidden;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  align-items: center;
}

nav ul li a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  padding: 6px 4px;
  transition: all 0.2s ease-in-out;
}

nav ul li a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* =========================
   Akzentstreifen
   ========================= */
.accent-bar,
.header-accent-bar {
  position: absolute;
  inset: auto auto 0 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  opacity: .6;
}

/* Akzentstreifen als Block-Element (z.B. in main/section) */
.card-accent {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  opacity: .6;
  margin-top: 24px;
}

/* =========================
   Hauptinhalte (index.html)
   ========================= */
main.card,
section.card {
  display: flex;
  flex-direction: column;
  padding: 40px;
}

.center-justify {
  text-align: justify;
  margin-left: auto;
  margin-right: auto;
}

/* =========================
   Fußnote
   ========================= */
.footer-note {
  color: var(--muted);
  text-align: right;
  padding: 18px 24px;
  font-size: 13px;
}

/* =========================
   Timeline / Items (seite1)
   ========================= */
.timeline {
  display: grid;
  gap: 16px;
}

.item {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
}

.item .when {
  font-size: 13px;
  color: var(--muted);
}

.item h3 {
  margin: 6px 0 4px;
  font-size: 17px;
}

.item h4 {
  margin: 0 0 8px;
  font-weight: 600;
  color: var(--muted);
}

.item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.item ul {
  margin: 8px 0 0 20px;
  padding: 0;
}

.item ul li {
  margin: 4px 0;
}

/* =========================
   Seite1: Profilkarte
   ========================= */
.profile-card {
  padding: 28px 28px 0 28px;
  position: relative;
  overflow: hidden;
}

.profile-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.name {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: .2px;
}

.title {
  color: var(--muted);
  font-weight: 600;
  margin-top: 6px;
}

.contact {
  display: grid;
  gap: 6px;
  align-content: start;
  font-size: 15px;
  text-align: right;
}

.contact a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255,255,255,.15);
}

.contact a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Profilbild: seite1 – linksbündig, klein */
.profile-img-wrap {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  margin-top: 24px;
}

.profilbild {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 14px;
  object-fit: cover;
  display: block;
}

/* Inhaltsblöcke seite1 */
.section {
  padding: 22px 28px;
  position: relative;
  overflow: hidden;
}

.section h2 {
  margin: 0 0 14px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--muted);
}

/* =========================
   Chips (optional)
   ========================= */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--chip);
  border: 1px solid var(--border);
  font-size: 13px;
}

/* =========================
   Responsive – Mobil
   ========================= */
@media (max-width: 600px) {
  .wrap {
    margin: 20px auto;
    padding: 0 12px;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  nav ul li a {
    display: block;
    padding: 8px 4px;
  }

  .profile-top {
    flex-direction: column;
  }

  .contact {
    text-align: left;
  }

  .profilbild {
    max-width: 100%;
  }

  main.card,
  section.card {
    padding: 24px 16px;
  }
}

/* =========================
   Print
   ========================= */
@media print {
  body { background: #fff; color: #000; }
  .card, .item { box-shadow: none; background: #fff; }
  .accent-bar, .header-accent-bar, .card-accent { display: none; }
  a { color: #000; text-decoration: underline; }
}
