/* ===========================================================
   GLOBAL STYLESHEET – Einheitliches Design für Startseite & Lebenslauf
   =========================================================== */

/* ---------- Variablen & Farbdefinition ---------- */
:root {
  --bg: #112240;
  --fg: #ffffff;
  --muted: #0771DB;
  --brand: #62bbaf;
  --brand-2: #0771DB;
  --accent: #2196f3;
  --border: rgba(255,255,255,0.12);
  --shadow: rgba(0,0,0,0.25);
  --radius: 12px;
  --maxw: 72rem;
  --space: clamp(1rem, 2vw, 2rem);
  --header-height: 64px;
  --transition: all 0.3s ease;
}

/* ===========================================================
   RESET & BASICS
   =========================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--fg);
  background: var(--bg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--space);
}

/* ===========================================================
   HEADER & NAVIGATION (gemeinsamer Stil)
   =========================================================== */
.site-header,
.home-header {
  position: relative;
  width: 100%;
  z-index: 1000;
  text-align: center;
  padding: 2.5rem 1rem 3rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.site-header .brand,
.home-header h1 {
  font-weight: 800;
  color: #dff4ff;
  -webkit-text-stroke: 1px var(--muted);
  text-shadow: 0 0 8px rgba(7, 113, 219, 0.55);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 1.5rem;
}

/* ---------- Navigation Buttons ---------- */
.nav-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.nav-buttons button {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-weight: 500;
  border-radius: var(--radius);
  padding: 10px 20px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 15px var(--shadow);
  transition: var(--transition);
}

.nav-buttons button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 180, 255, 0.3);
  color: #002b4f;
}

.nav-buttons button.active {
  background: linear-gradient(135deg, #ffffff, grey);
  color: #0056b3;
  font-weight: 600;
  box-shadow: 0 0 15px rgba(0, 140, 255, 0.5);
}

/* ===========================================================
   HERO SECTION
   =========================================================== */
.hero {
  color: var(--fg);
  text-align: center;
  padding: 7rem 0 4rem;
}

.portrait {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.95);
  box-shadow: 0 6px 18px rgba(7,113,219,0.16), 0 0 20px rgba(255,255,255,0.2);
  object-fit: cover;
  margin: 0 auto 1rem;
}

.hero-text h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.hero-text p {
  margin-top: 0.5rem;
  color: rgba(240,248,255,0.95);
  font-size: 1.1rem;
}

/* ===========================================================
   GENERISCHE SEKTIONEN
   =========================================================== */
.section {
  padding: clamp(2rem, 6vw, 3.5rem) 0;
}

.section h2 {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--fg);
  text-shadow: 0 0 6px rgba(255,255,255,0.15);
}

/* ===========================================================
   SKILLS
   =========================================================== */
.skills {
  list-style: none;
  display: grid;
  gap: 1rem;
  max-width: 50rem;
  margin: 0 auto;
}

.skills li span {
  font-weight: 600;
}

.bar {
  height: 0.75rem;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), #7C4DFF);
}

/* ===========================================================
   KONTAKTFORMULAR
   =========================================================== */
.contact-form {
  display: grid;
  gap: 0.8rem;
  max-width: 38rem;
  margin: 0 auto;
}

.contact-form label {
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1rem;
  resize: none;
}

.contact-form button {
  background: var(--brand-2);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.contact-form button:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

/* ===========================================================
   LEBENSLAUF
   =========================================================== */
.cv {
  background: var(--bg);
  color: var(--fg);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3rem var(--space);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.cv-section {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 4px 12px var(--shadow);
}

.cv-section h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  color: var(--brand-2);
}

.cv .year {
  font-weight: 600;
  opacity: 0.9;
  color: var(--fg);
}

.cv p {
  color: rgba(255,255,255,0.9);
}

.cv .nav-buttons {
  justify-content: center;
  margin-top: 1.5rem;
}

/* ---------- Zurück-Button ---------- */
.back-btn {
  background-color: #1a2e4b;
  color: #dcdfe6;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
  display: block;
  margin: 1rem auto 0;
}

.back-btn:hover {
  background-color: #233554;
  color: #ffffff;
}

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.25rem 0;
  text-align: center;
  color: rgba(255,255,255,0.85);
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 900px) {
  .portrait { width: 150px; height: 150px; }
  .hero { padding-top: 6rem; }
}

@media (max-width: 680px) {
  .cv { padding: 2rem 1rem; }
  .cv-section { padding: 1rem; }
  .hero { padding-top: 5.5rem; }
  .portrait { width: 120px; height: 120px; }
  .nav-buttons button { padding: 8px 14px; font-size: 0.9rem; }
}

/* ===========================================================
   PRINT
   =========================================================== */
@media print {
  .site-header, .home-header, .site-footer, .nav-buttons {
    display: none !important;
  }
}
