/* Personal page — clean light theme.
   Change the accent color by editing --accent below. */

:root {
  --accent: #0f766e;        /* teal; try #1d4ed8 (blue) or #b45309 (amber) */
  --text: #1f2937;
  --text-soft: #4b5563;
  --background: #f5f5f4;    /* leicht ausgegrautes Off-White; Karten bleiben weiß */
  --card: #ffffff;
  --border: #e5e7eb;
  --max-width: 46rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--background);
}

main,
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Header */

.hero {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

/* Avatar row: photo on the left, text beside it; wraps on small screens */

.hero-row {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.avatar {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 50%;      /* any photo becomes a circle */
  object-fit: cover;       /* crops non-square photos from the center */
  border: 3px solid var(--border);
  background: var(--card);
}

.nav {
  margin-bottom: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.nav a {
  color: var(--text-soft);
  text-decoration: none;
}

.nav a:hover {
  color: var(--accent);
}

h1 {
  font-size: 2.25rem;
  line-height: 1.15;
  margin: 0 0 0.25rem;
}

.tagline {
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 1.25rem;
}

.intro {
  font-size: 1.2rem;
  color: var(--text-soft);
  margin: 0 0 0.75rem;
}

.meta {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin: 0;
}

/* Sections */

section {
  padding-top: 2.5rem;
  padding-bottom: 1rem;
}

h2 {
  font-size: 1.35rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

a {
  color: var(--accent);
}

/* Experience */

.job {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.job:hover {
  transform: translateY(-3px);
  border-color: #a3c2bf;
  border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
  box-shadow: 0 10px 24px -12px rgba(31, 41, 55, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  .job {
    transition: none;
  }
  .job:hover {
    transform: none;
  }
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.job-header h3 {
  margin: 0;
}

.dates {
  color: var(--text-soft);
  font-size: 0.9rem;
  white-space: nowrap;
}

.employer {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

.job-desc {
  margin: 0.6rem 0 0.9rem;
}

.job .chips {
  margin-top: 0.25rem;
}

/* Skills */

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

.chips {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chips li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.8rem;
  font-size: 0.9rem;
}

/* Skill-Tags pro Station im Experience-Bereich: etwas kleiner,
   gefüllt statt nur umrandet; color-mix koppelt die Tönung ans Accent. */

.tags li {
  background: #eef4f3;
  border-color: #d3e3e0;
  background: color-mix(in srgb, var(--accent) 7%, white);
  border-color: color-mix(in srgb, var(--accent) 18%, white);
  font-size: 0.82rem;
  padding: 0.1rem 0.65rem;
}

/* Contact */

.links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Figure (e.g. Blockschaltbild) */

.figure {
  margin: 1.5rem 0 0.5rem;
}

.figure-thumb {
  display: block;
  width: min(100%, 20rem);   /* kleines Vorschaubild */
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.figure-thumb img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
}

.figure figcaption {
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: 0.5rem;
  text-align: center;
}

/* Lightbox: kleines Bild groß betrachten, zoomen und verschieben */

#lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
  /* display: none für geschlossene Dialoge bleibt unangetastet; flex erst, wenn offen */
}

#lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightbox::backdrop {
  background: rgba(0, 0, 0, 0.85);
}

#lightbox img {
  max-width: 94vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: none;
  cursor: zoom-in;
  transform-origin: top left;
}

#lightbox img.pannable {
  cursor: grab;
}

#lightbox img.pannable:active {
  cursor: grabbing;
}

.lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.65rem;
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  pointer-events: none;
}

body.no-scroll {
  overflow: hidden;
}

/* Footer */

footer {
  max-width: var(--max-width);
  margin: 3rem auto 0;
  padding: 1.5rem 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.9rem;
}

/* Small screens: slightly smaller heading */

@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem;
  }
  .hero {
    padding-top: 2rem;
  }
}
