﻿:root {
  --bg:           #ffffff;
  --bg-alt:       #f5f5f3;
  --sidebar-bg:   #f0eeea;
  --text:         #1a1a1a;
  --text-mute:    #6b6b6b;
  --accent:       #1a56db;
  --accent-dk:    #1340a8;
  --border:       #e0ddd8;
  --tag-bg:       #e8edf8;
  --tag-text:     #1a56db;
  --entry-line:   #d0cdc8;
  --card-bg:      #f5f5f3;
  --card-hover:   #1a56db;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 5px;
}

[data-theme="dark"] {
  --bg:           #0f1117;
  --bg-alt:       #181c25;
  --sidebar-bg:   #13161e;
  --text:         #e8e8e8;
  --text-mute:    #8892a4;
  --accent:       #4d90f0;
  --accent-dk:    #3070d0;
  --border:       #252b38;
  --tag-bg:       #1a2340;
  --tag-text:     #60a5fa;
  --entry-line:   #2a3040;
  --card-bg:      #181c25;
  --card-hover:   #4d90f0;
}

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

html { font-size: 15px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow: hidden;
  height: 100vh;
  transition: background 0.2s, color 0.2s;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  height: 100vh;
}

.sidebar {
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  height: 100vh;
  overflow-y: auto;
  padding: 28px 22px 40px;
  scrollbar-width: thin;
}

.sidebar-top {
  margin-bottom: 22px;
  text-align: left;
}

.profile-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 2px solid var(--border);
  margin-bottom: 14px;
  display: block;
}

.sidebar-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 6px;
}

.sidebar-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.sidebar-subtitle {
  font-size: 0.78rem;
  color: var(--text-mute);
}

.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 18px 0;
}

.sidebar-section { margin-bottom: 4px; }

.sidebar-heading {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  margin-bottom: 10px;
}

.info-list { display: flex; flex-direction: column; gap: 7px; }

.info-row {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.info-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-mute);
  font-weight: 600;
}

.info-row a, .info-row span:not(.info-label) {
  font-size: 0.8rem;
  color: var(--text);
  word-break: break-all;
}

.info-row a { color: var(--accent); }

.social-links {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--card-bg);
  color: var(--text);
  border: 1px solid var(--border);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.social-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.lang-list { display: flex; flex-direction: column; gap: 6px; }

.lang-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
}

.lang-level {
  font-size: 0.75rem;
  color: var(--text-mute);
}

.skill-category {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-mute);
  font-weight: 600;
  margin-top: 12px;
  margin-bottom: 6px;
}

.tag-list { display: flex; flex-wrap: wrap; gap: 5px; }

.tag {
  display: inline-block;
  padding: 2px 9px;
  background: var(--tag-bg);
  color: var(--tag-text);
  border-radius: 20px;
  font-size: 0.73rem;
  font-weight: 500;
  line-height: 1.8;
}

.content {
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  height: 48px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
  flex-shrink: 0;
}

.topbar-nav { display: flex; gap: 20px; }

.topbar-nav a {
  font-size: 0.8rem;
  color: var(--text-mute);
  font-weight: 500;
  transition: color 0.15s;
  text-decoration: none;
}

.topbar-nav a:hover { color: var(--accent); text-decoration: none; }

.topbar-controls { display: flex; gap: 8px; }

.ctrl-btn {
  padding: 4px 11px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  font-family: var(--font);
  line-height: 1.6;
}

.ctrl-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.content-section { padding: 28px 36px; }

.intro-text {
  font-size: 0.92rem;
  color: var(--text-mute);
  line-height: 1.7;
  max-width: 680px;
  border-left: 3px solid var(--accent);
  padding-left: 16px;
}

.two-col-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.two-col-section > section {
  padding: 28px 36px;
}

.two-col-section > section:first-child {
  border-right: 1px solid var(--border);
}

.section-heading {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  margin-bottom: 18px;
}

.entry {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--entry-line);
}

.entry:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.entry-date {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 3px;
}

.entry-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 2px;
}

.entry-org {
  font-size: 0.78rem;
  color: var(--text-mute);
  margin-bottom: 6px;
}

.entry-list {
  padding-left: 14px;
  margin-top: 4px;
}

.entry-list li {
  font-size: 0.8rem;
  color: var(--text-mute);
  margin-bottom: 2px;
  line-height: 1.5;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: border-color 0.15s;
}

.project-card:hover { border-color: var(--card-hover); }

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.project-header h3 {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
}

.project-tag {
  font-size: 0.65rem;
  color: var(--text-mute);
  white-space: nowrap;
  flex-shrink: 0;
}

.project-card p {
  font-size: 0.78rem;
  color: var(--text-mute);
  line-height: 1.55;
}

.contact-strip {
  padding: 28px 36px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: auto;
}

.contact-avail {
  font-size: 0.85rem;
  color: var(--text-mute);
  flex: 1;
}

.contact-actions { display: flex; gap: 10px; }

.btn-primary {
  display: inline-block;
  padding: 8px 18px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 500;
  transition: background 0.15s;
  text-decoration: none;
}

.btn-primary:hover { background: var(--accent-dk); text-decoration: none; }

.btn-secondary {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 500;
  transition: border-color 0.15s, color 0.15s;
  text-decoration: none;
}

.btn-secondary:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

@media (max-width: 900px) {
  body { overflow: auto; }
  .layout { grid-template-columns: 1fr; height: auto; }
  .sidebar { height: auto; overflow-y: visible; border-right: none; border-bottom: 1px solid var(--border); }
  .content { height: auto; overflow-y: visible; }
  .two-col-section { grid-template-columns: 1fr; }
  .two-col-section > section:first-child { border-right: none; border-bottom: 1px solid var(--border); }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .topbar-nav { display: none; }
}

@media (max-width: 560px) {
  .projects-grid { grid-template-columns: 1fr; }
  .contact-strip { flex-direction: column; align-items: flex-start; gap: 16px; }
}

.project-card { cursor: pointer; }

.card-hint {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  opacity: 0.8;
}

.project-card:hover .card-hint { opacity: 1; }

#modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(3px);
}

#modal-overlay.active { display: flex; }

#modal-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 32px 24px;
  max-width: 560px;
  width: 100%;
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
}

#modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text-mute);
  line-height: 1;
  padding: 4px 8px;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
  font-family: var(--font);
}

#modal-close:hover {
  color: var(--text);
  background: var(--bg-alt);
}

.modal-tags {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 6px;
}

#modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 14px;
  padding-right: 28px;
  line-height: 1.3;
}

#modal-desc {
  font-size: 0.875rem;
  color: var(--text-mute);
  line-height: 1.75;
  margin-bottom: 18px;
}

#modal-links-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.modal-link-btn {
  display: inline-block;
  padding: 6px 18px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
}

.modal-link-btn:hover {
  background: var(--accent-dk);
  text-decoration: none;
}

.modal-confidential {
  display: none;
  font-size: 0.78rem;
  color: var(--text-mute);
  border-left: 3px solid var(--border);
  padding: 6px 12px;
  font-style: italic;
  line-height: 1.5;
}

.impressum-link {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-mute);
  text-decoration: none;
  transition: color 0.15s;
}

.impressum-link:hover { color: var(--accent); text-decoration: none; }

