*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ink: #1a1a22;
  --muted: #5a5a6e;
  --gold: #b5934a;
  --gold-light: #d4b06a;
  --rule: #e0d9cc;
  --bg: #faf9f6;
  --white: #ffffff;
  --sidebar-bg: #1e1e28;
  --sidebar-text: #e8e4d8;
  --sidebar-muted: #9a9490;
}

html {
  font-size: 15px;
}

body {
  font-family: "Outfit", sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 1rem;
}

/* ── Page wrapper ── */
.cv {
  width: 100%;
  max-width: 960px;
  background: var(--white);
  box-shadow:
    0 4px 40px rgba(0, 0, 0, 0.1),
    0 1px 4px rgba(0, 0, 0, 0.06);
  display: grid;
  grid-template-columns: 290px 1fr;
  min-height: 100%;
}

/* ══════════════ SIDEBAR ══════════════ */
.sidebar {
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  padding: 2.4rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-photo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  display: block;
  margin: 0 auto;
}

.sidebar-name {
  text-align: center;
  margin-top: 1rem;
}
.sidebar-name h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  letter-spacing: 0.01em;
}
.sidebar-name .role {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: 0.4rem;
}

.sidebar-rule {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: 0.35;
}

.sidebar-block h3 {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.9rem;
}

/* Contact */
.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.contact-list li {
  font-size: 0.78rem;
  color: var(--sidebar-text);
  line-height: 1.4;
}
.contact-list a {
  color: var(--sidebar-text);
  text-decoration: none;
}
.contact-list a:hover {
  color: var(--gold-light);
}
.contact-icon {
  display: inline-block;
  width: 14px;
  margin-right: 6px;
  opacity: 0.6;
  vertical-align: middle;
}

/* Skills */
.skill-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.skill-list li {
  font-size: 0.78rem;
  color: var(--sidebar-text);
  padding-left: 0.9rem;
  position: relative;
  line-height: 1.45;
}
.skill-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
}

/* Languages */
.lang-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
}
.lang-name {
  font-size: 0.78rem;
  color: var(--sidebar-text);
}
.lang-level {
  font-size: 0.68rem;
  color: var(--sidebar-muted);
  font-style: italic;
}

/* ══════════════ MAIN ══════════════ */
.main {
  padding: 2.4rem 2.4rem 2.4rem 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Section header */
.sec-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.sec-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.sec-rule {
  height: 1px;
  background: var(--rule);
  margin-bottom: 1.1rem;
}

/* ── Experience ── */
.exp-entry {
  display: grid;
  grid-template-columns: 115px 1fr;
  gap: 0 1.2rem;
  margin-bottom: 1.3rem;
}
.exp-entry:last-child {
  margin-bottom: 0;
}

.exp-date {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
  padding-top: 0.18rem;
  line-height: 1.4;
}
.exp-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.exp-company {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 500;
  margin-top: 0.1rem;
}
.exp-desc {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 0.4rem;
}

/* ── Education ── */
.edu-entry {
  display: grid;
  grid-template-columns: 115px 1fr;
  gap: 0 1.2rem;
  margin-bottom: 1.1rem;
}
.edu-entry:last-child {
  margin-bottom: 0;
}

.edu-date {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
  padding-top: 0.18rem;
}
.edu-inst {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.edu-degree {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 500;
  margin-top: 0.1rem;
}
.edu-detail {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 0.35rem;
}

/* ── Print ── */
@media print {
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  body {
    padding: 0;
    background: white;
  }
  .cv {
    box-shadow: none;
    max-width: 100%;
  }
  /* Reveal entries hidden by the scroll-fade JS (opacity:0 set inline) */
  .exp-entry,
  .edu-entry,
  .sidebar-block {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── Mobile ── */
@media (max-width: 700px) {
  .cv {
    grid-template-columns: 1fr;
  }
  .sidebar {
    padding: 2rem 1.5rem;
  }
  .main {
    padding: 2rem 1.5rem;
  }
  .exp-entry,
  .edu-entry {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
  .exp-date,
  .edu-date {
    font-size: 0.68rem;
  }
}

.cv-footer {
  text-align: center;
  padding: 1.2rem 2rem;
  font-family: "Outfit", sans-serif;
  font-size: 0.78rem;
  color: #888;
  letter-spacing: 0.04em;
}

.cv-footer a {
  color: #888;
  text-decoration: none;
  transition: color 0.2s;
}

.cv-footer a:hover {
  color: #333;
}

.footer-sep {
  margin: 0 0.6rem;
  opacity: 0.5;
}

/* ══════════════ LEGAL PAGES (Impressum / Datenschutz) ══════════════ */
.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 6rem 2rem 6rem;
}

.legal-page h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.legal-page .gold-rule {
  height: 1px;
  background: linear-gradient(to right, var(--gold), transparent);
  margin-bottom: 2.5rem;
}

.legal-page h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold);
  margin: 2rem 0 0.5rem;
}

.legal-page p,
.legal-page address {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.8;
  font-style: normal;
}

.legal-page a {
  color: var(--gold);
  text-decoration: none;
}

.legal-page a:hover {
  text-decoration: underline;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 3rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--ink);
}
