/* ===== Franca Lenz Portfolio – Minimal Black & White ===== */
:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-100: #f5f5f5;
  --gray-200: #e0e0e0;
  --gray-500: #808080;
  --gray-700: #333333;
  --accent: #0a0a0a;
}

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

body {
  background: var(--white);
  color: var(--black);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== Header ===== */
header {
  background: var(--black);
  color: var(--white);
  padding: 3rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--black);
}

header h1 {
  font-family: 'Space Mono', monospace;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}

.typewriter-line {
  margin-top: 0.75rem;
  font-family: 'Space Mono', monospace;
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
  color: var(--gray-500);
  letter-spacing: 0.03em;
  min-height: 1.6em;
}

.cursor {
  display: inline-block;
  color: var(--white);
  animation: blink 0.7s step-end infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ===== Navbar ===== */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--black);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 1rem;
  color: var(--black) !important;
  text-decoration: none !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
}

.nav-links li a {
  text-decoration: none;
  color: var(--gray-500);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--black);
}

.nav-links li a.active {
  border-bottom: 2px solid var(--black);
  padding-bottom: 2px;
}

.nav-toggle {
  background: none;
  border: 1px solid var(--black);
  font-size: 1.2rem;
  display: none;
  color: var(--black);
  cursor: pointer;
  padding: 0.3rem 0.6rem;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    border-top: 1px solid var(--black);
    border-bottom: 1px solid var(--black);
    padding: 1.5rem 2rem;
    gap: 1.5rem;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ===== Layout ===== */
.about-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0;
}

@media (max-width: 900px) {
  .about-container {
    grid-template-columns: 1fr;
  }
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  max-width: 1200px;
  margin: 2rem auto;
  gap: 1.5rem;
  padding: 0 2rem 2rem;
  border: none;
}

/* ===== Cards ===== */
.profile-card {
  padding: 3rem 2rem;
  border-right: 1px solid var(--black);
  background: var(--gray-100);
}

.profile-intro {
  margin-bottom: 2.5rem;
}

.profile-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.profile-name {
  font-family: 'Space Mono', monospace;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0.5rem 0 1rem;
  color: var(--black);
  text-align: left;
}

.profile-bio {
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.7;
  max-width: 320px;
}

.profile-section {
  margin-bottom: 2rem;
}

.profile-section-label {
  font-family: 'Space Mono', monospace;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--black);
  display: block;
  margin-bottom: 0.75rem;
}

.skill-group {
  margin-bottom: 1rem;
}

.skill-group-label {
  font-size: 0.7rem;
  font-family: 'Space Mono', monospace;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.4rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skill-tags span {
  font-size: 0.78rem;
  font-family: 'Space Mono', monospace;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--gray-200);
  border-radius: 2rem;
  background: var(--white);
  color: var(--black);
}

@media (max-width: 900px) {
  .profile-card {
    border-right: none;
    border-bottom: 1px solid var(--black);
  }
}

.about-main {
  padding: 3rem 2rem;
}

.profile-card h2,
.about-main h2 {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 1.5rem;
  margin-top: 2rem;
  text-align: center;
}

.profile-card h2:first-child,
.about-main h2:first-child {
  margin-top: 0;
}

.profile-card h3 {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.profile-card p,
.about-main p {
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.8;
}

/* ===== Education List ===== */
.education-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.education-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.6;
}

.education-list li:last-child {
  border-bottom: none;
}

.education-list li strong {
  display: block;
  color: var(--black);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

/* ===== Hobbies Grid (CV cards) ===== */
.hobbies-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
  max-width: 480px;
}

/* ===== Timeline ===== */
.timeline {
  position: relative;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: var(--gray-200);
}

.timeline-item {
  position: relative;
  width: 45%;
  margin-bottom: 1.5rem;
}

.timeline-item:nth-child(odd) {
  align-self: flex-start;
  margin-right: auto;
  padding-right: 2rem;
}

.timeline-item:nth-child(even) {
  align-self: flex-end;
  margin-left: auto;
  padding-left: 2rem;
}

.timeline-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--black);
  border-radius: 50%;
  top: 1.2rem;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -6px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -6px;
}

@media (max-width: 768px) {
  .timeline::before { left: 16px; transform: none; }
  .timeline-item { width: 100%; padding-left: 2.5rem; padding-right: 0; align-self: stretch !important; margin: 0 0 1.25rem 0; }
  .timeline-dot { left: 10px !important; right: auto !important; }
  .hobby-card { width: 320px; }
  .projects-grid { grid-template-columns: 1fr; padding: 0 1rem 1.5rem; }
}

.hobby-card {
  display: block;
  padding: 1.5rem;
  border: 1px solid var(--gray-200);
  border-radius: 1rem;
  text-decoration: none;
  color: var(--black);
  background: var(--gray-100);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hobby-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.hobby-card h3 {
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--black);
}

.hobby-card p {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* ===== Project Cards ===== */
.project-card {
  display: block;
  padding: 2.5rem 2rem;
  border: 1px solid var(--gray-200);
  border-radius: 1.25rem;
  text-decoration: none;
  color: var(--black);
  background: var(--gray-100);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.project-card:hover {
  background: var(--black);
  color: var(--white);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.project-card:hover h3,
.project-card:hover p {
  color: var(--white);
}

.project-card h3 {
  font-family: 'Space Mono', monospace;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--black);
}

.project-card p {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ===== Projekte Section ===== */
.projekte-section {
  border-top: 1px solid var(--black);
  padding-top: 2rem;
}

.section-header {
  padding: 2rem 2rem 0;
  text-align: center;
}

.section-header h2 {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin: 0;
}

/* smooth scroll */
html {
  scroll-behavior: smooth;
}

/* offset for sticky nav */
section[id] {
  scroll-margin-top: 65px;
}

/* ===== Footer ===== */
footer {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 1.5rem 2rem;
  font-size: 0.8rem;
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.05em;
  margin-top: 4rem;
  border-top: 1px solid var(--black);
}

/* ===== General ===== */
h1, h2, h3 {
  font-family: 'Space Mono', monospace;
  color: var(--black);
}

a {
  color: var(--black);
  text-decoration: underline;
  transition: color 0.2s ease;
}

a:hover { color: var(--gray-500); }

main {
  border-top: 1px solid var(--black);
}
