/* =========================================================
   Jens Ritzert – Bewerbungs-OnePager (responsive, mobile-first)
   Anpassungspunkte: Such nach "THEME" und "CONTENT".
   ========================================================= */

/* ===== THEME ===== */
:root{
  --bg: #f5f6f7;
  --surface: #ffffff;
  --surface-2: #f5f7fb;
  --card: #ffffff;
  --card-border: rgba(15,23,42,.10);

  --text: #0f172a;
  --muted: rgb(24, 24, 70);
  --muted_Hero:rgb(224, 224, 235);
  --faint: #64748b;

  --accent: #2563eb;      /* Akzentfarbe */
  --accent-2: #0ea5e9;    /* sekundärer Akzent */
  --shadow: 0 18px 50px rgba(2,6,23,.10);
  --radius: 18px;
  --maxw: 1100px;
  --pad: clamp(18px, 3vw, 28px);
  --line: 1.65;

  /* Dark header/hero accent */
  --header-bg: #111827;
  --header-text: #ffffff;
  --header-muted: rgba(255,255,255,.78);
  --header-border: var(--card-border);
}


*{ box-sizing: border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: var(--bg);
  color: var(--text);
  line-height: var(--line);
}

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

code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: .95em;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--card-border);
  padding: .15em .35em;
  border-radius: 8px;
}

/* Accessibility */
.skip-link{
  position:absolute;
  left:-999px;
  top:10px;
  background:#fff;
  color:#000;
  padding:10px 12px;
  border-radius:10px;
  z-index: 999;
}
.skip-link:focus{ left:10px; }

/* Layout helpers */
.container{
  width:min(var(--maxw), calc(100% - 2*var(--pad)));
  margin-inline:auto;
}
.section{
  padding: clamp(44px, 6vw, 80px) 0;
}

/* Dark hero accent (header-style) */
.section.hero{
  background: var(--header-bg);
  color: var(--header-text);
  border-bottom: 1px solid var(--header-border);
}
.section.hero .kicker,
.section.hero .lede{ color: var(--header-muted); }
.section-alt{
  background: linear-gradient(to bottom, rgba(255,255,255,.03), rgba(255,255,255,.00));
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.section-head{
  margin-bottom: 18px;
}
.section-head h2{
  margin:0 0 6px 0;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.02em;
}
.subhead{
  margin:0;
  color: var(--muted);
}

/* Header */
.site-header{
  position: sticky;
  top:0;
  z-index: 50;
  background: var(--header-bg);
  color: var(--header-text);
  border-bottom: 1px solid var(--header-border);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 180px;
}
.brand-dot{
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 6px rgba(37,99,235,.18);
}
.brand-name{
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a{
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}

/* Header-specific link colors */
.site-header .nav a{ color: var(--header-muted); }
.site-header .nav a:hover{ color: var(--header-text); border-color: var(--header-border); }
.site-header .nav a.nav-muted{ opacity: .85; }
.site-header .brand-name{ color: var(--header-text); }
.nav a:hover{
  color: var(--text);
  border-color: var(--card-border);
  text-decoration: none;
}
.nav-muted{ opacity:.85; }

/* Cards */
.card{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(16px, 2.2vw, 22px);
}
.card-title{
  margin:0 0 10px 0;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.muted{ color: var(--muted); }
.tiny{ font-size: 13px; color: var(--faint); }

/* Hero */
.hero{ padding-top: clamp(26px, 4vw, 40px); }
.hero-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.kicker{
  margin:0 0 10px 0;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 12px;
}
.hero h1{
  margin:0 0 10px 0;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.lede{
  margin:0 0 16px 0;
  color: var(--muted);
  font-size: 16px;
  max-width: 60ch;
}
.hero-cta{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 16px 0;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(139,209,124,.22), rgba(122,169,255,.18));
  border: 1px solid rgba(255,255,255,.14);
  font-weight: 600;
  /* Rt color: var(--text); */
  color: var(--text);
  text-decoration: none;
}
.btn_Hero{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(139,209,124,.22), rgba(122,169,255,.18));
  border: 1px solid rgba(255,255,255,.14);
  font-weight: 600;
  /* Rt color: var(--text); */
  color: var(--muted_Hero);
  text-decoration: none;
}
.btn:hover{ text-decoration:none; border-color: rgba(255,255,255,.22); }
.btn-ghost{
  background: transparent;
  border: 1px solid rgba(255,255,255,.14);
}
.hero-facts{
  list-style:none;
  padding:0;
  margin: 10px 0 0 0;
  display:grid;
  gap: 8px;
}
.hero-facts li{
  color: var(--muted);
  display:flex;
  align-items:center;
  gap: 10px;
}
.pill{
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(57, 109, 221, 0.14);
  background: rgba(255,255,255,.04);
  /* Rt color: var(--text);*/
}

/* Bullets */
.bullets_Hero{
  margin:0;
  padding-left: 18px;
  color: var(--muted_Hero);
}
.bullets{
  margin:0;
  padding-left: 18px;
  color: var(--muted);
}
.bullets li{ margin: 7px 0; }

/* Grids */
.grid-2{
  display:grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 14px;
}
.grid-3{
  display:grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 14px;
}

/* Timeline */
.timeline{
  display:grid;
  gap: 12px;
}
.t-item{
  display:grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,.02);
}
.t-when{
  color: var(--faint);
  font-weight: 600;
  font-size: 13px;
}
.t-what{
  color: var(--muted);
  font-size: 14px;
}
.t-what strong{ color: var(--text); }

/* Links */
.linklist{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.linklist a{
  display:inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(37,99,235,.14);
  background: rgba(255,255,255,.03);
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
}
.linklist a:hover{ text-decoration:none; border-color: rgba(255,255,255,.22); }

/* Contact */
.contact-card{
  display:flex;
  flex-direction: column;
  gap: 16px;
}
.contact-line{
  margin: 6px 0 0 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.contact-mail:hover{ text-decoration: underline; }
.contact-actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Footer */
.footer{
  padding-bottom: 46px;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.footer-title{
  margin: 0 0 8px 0;
  font-size: 16px;
}
.footer-bottom{
  margin-top: 18px;
  border-top: 1px solid var(--card-border);
  padding-top: 14px;
}

/* Responsive breakpoints */
@media (min-width: 820px){
  .hero-grid{
    grid-template-columns: 1.4fr .9fr;
    align-items:start;
    gap: 18px;
  }
  .grid-2{ grid-template-columns: 1fr 1fr; }
  .grid-3{ grid-template-columns: 1fr 1fr 1fr; }
  .contact-card{
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}


/* --- Kontaktformular (Add-on) --- */
.contact-form-wrap{margin-top:1.25rem;padding-top:1.25rem;border-top:1px solid rgba(255,255,255,.10)}
.section:not(.hero) .contact-form-wrap{border-top:1px solid rgba(0,0,0,.08)}
.contact-form{margin-top:.75rem}
.form-grid{display:grid;grid-template-columns:1fr;gap:.75rem}
@media (min-width:720px){.form-grid{grid-template-columns:1fr 1fr}}
.contact-form label{display:block;font-weight:600;font-size:.95rem}
.contact-form input,.contact-form textarea{
  width:100%;
  margin-top:.35rem;
  padding:.7rem .8rem;
  border:1px solid rgba(0,0,0,.14);
  border-radius:.6rem;
  font:inherit;
  background:#fff;
  color: var(--text);
}
.contact-form textarea{resize:vertical;min-height:140px}
.contact-form input:focus,.contact-form textarea:focus{
  outline:2px solid rgba(37,99,235,.25);
  border-color:rgba(37,99,235,.55);
}
.form-actions{display:flex;gap:1rem;align-items:center;flex-wrap:wrap;margin-top:.75rem}
.form-success{
  padding:.75rem 1rem;
  border-radius:.6rem;
  background:rgba(16,185,129,.12);
  border:1px solid rgba(16,185,129,.25);
}
.req{color:#ef4444;font-weight:700}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}


/* Mobile nav (hamburger) */
.nav-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  cursor: pointer;
}
.nav-toggle:hover{ border-color: rgba(255,255,255,.18); }
.nav-toggle:focus{ outline: 2px solid rgba(37,99,235,.35); outline-offset: 2px; }
.nav-toggle-bar{
  display:block;
  width: 18px;
  height: 2px;
  background: rgba(255,255,255,.9);
  border-radius: 2px;
}
.nav-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,.55);
  z-index: 45;
}

/* Default: mobile = hamburger, nav hidden until open */
@media (max-width: 819px){
  .nav{
    display:none;
  }
  .site-header.nav-open .nav{
    display:flex;
    position: fixed;
    top: 64px; /* header height approx */
    right: 12px;
    left: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 12px;
    background: rgba(17,24,39,.98);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(2,6,23,.35);
    z-index: 60;
  }
  .site-header.nav-open .nav a{
    font-size: 16px;
    padding: 12px 12px;
    border-radius: 12px;
    color: rgba(255,255,255,.92);
    border-color: transparent;
  }
  .site-header.nav-open .nav a:hover{
    border-color: rgba(255,255,255,.10);
    background: rgba(255,255,255,.06);
    text-decoration: none;
  }

  /* prevent background scroll when nav open */
  body.nav-open{ overflow:hidden; }
}

/* Desktop: show nav, hide hamburger/backdrop */
@media (min-width: 820px){
  .nav-toggle{ display:none; }
  .nav{ display:flex; }
  .nav-backdrop{ display:none !important; }
}
