/* ============================================================
   main.css — Nadine Mlakar Portfolio 2026
   Light/White Theme — ersetzt Bootstrap + dark-override.css
   ============================================================ */

:root {
  --bg:             #ffffff;
  --bg-card:        #f5f5f5;
  --text-primary:   #111111;
  --text-secondary: #888888;
  --accent-purple:  #7c3fd4;
  --accent-cyan:    #0088bb;
  --accent-orange:  #d4520e;
  --border-subtle:  rgba(0,0,0,0.1);
  --font-main:      'Inter', sans-serif;
  --radius:         6px;
}

/* ─── Reset & Base ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 100%; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.75; }

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
h3 { font-size: 1.1rem; }

p { color: var(--text-secondary); font-size: 1rem; line-height: 1.75; }
p + p { margin-top: 1rem; }

/* ─── Navigation ───────────────────────────── */
.nav-container {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 0 3rem;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: transform 0.35s ease, background 0.3s ease;
}
.nav-container.nav--hidden { transform: translateY(-100%); }
.nav-container.nav--scrolled { background: rgba(255,255,255,0.98); }
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1280px;
  margin: 0 auto;
}
.brand a {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.3rem;
  text-transform: uppercase;
  color: var(--text-primary);
}
.menupoints a {
  font-size: 0.75rem;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.menupoints a:hover { color: var(--text-primary); opacity: 1; }

/* ─── Project Hero ─────────────────────────── */
/* Hintergrundbild wird inline im HTML gesetzt: style="background-image: url(...)" */
.project-hero {
  position: relative;
  min-height: 45vh;
  padding-top: 68px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-card);
  will-change: transform;
}
.project-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.5) 55%, rgba(255,255,255,0.1) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.hero-inner h1 { color: var(--text-primary); margin-bottom: 0.5rem; }
.hero-inner .tagline {
  color: rgba(17,17,17,0.65);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

/* ─── Project Content ──────────────────────── */
.project-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

/* Spark — kurze Kernidee */
.spark { margin-bottom: 3.5rem; }
.spark h2 {
  font-size: 0.72rem;
  letter-spacing: 0.22rem;
  text-transform: uppercase;
  color: var(--accent-purple);
  margin-bottom: 1rem;
  font-weight: 400;
}
.spark p {
  font-size: 1.15rem;
  color: rgba(17,17,17,0.75);
  line-height: 1.8;
  max-width: 680px;
}

/* Galerie */
.work-gallery { margin-bottom: 3rem; }
.work-gallery figure { margin-bottom: 1.5rem; }
.work-gallery img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  aspect-ratio: 16/9;
  object-fit: cover;
  filter: brightness(1) contrast(1.02) saturate(0.95);
  transition: filter 0.3s ease;
  loading: lazy;
  decoding: async;
}
.work-gallery img:hover { filter: brightness(1.03) contrast(1.04) saturate(1); }
.work-gallery figcaption {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

/* Accordion */
.context-accordion {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 3rem;
}
.context-accordion summary {
  cursor: pointer;
  font-size: 0.78rem;
  letter-spacing: 0.15rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.context-accordion summary::after {
  content: '+';
  font-size: 1rem;
  color: var(--accent-purple);
  transition: transform 0.2s;
}
.context-accordion[open] summary::after { transform: rotate(45deg); }

.context-accordion dl {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1.5rem;
}
.context-accordion dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  color: var(--accent-cyan);
  font-weight: 600;
  align-self: start;
  padding-top: 0.15rem;
  white-space: nowrap;
}
.context-accordion dd {
  color: rgba(17,17,17,0.75);
  font-size: 0.9rem;
  margin: 0;
}
.context-accordion p {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
}

/* Projekt-Navigation */
.project-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}
.project-nav a {
  font-size: 0.78rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.project-nav a:hover { color: var(--text-primary); opacity: 1; }

/* ─── Abschnitt-Label (generisch) ──────────── */
.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.22rem;
  text-transform: uppercase;
  color: var(--accent-purple);
  font-weight: 400;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent-purple);
}

/* ─── Footer ───────────────────────────────── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 2rem;
  text-align: center;
}
footer p, footer a {
  font-size: 0.78rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}
footer a:hover { color: var(--text-primary); opacity: 1; }

.social-icon {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}
.social-icon li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.social-icon li a:hover {
  border-color: var(--accent-purple);
  color: var(--accent-purple);
  opacity: 1;
}

/* ─── Responsive ───────────────────────────── */
@media (max-width: 768px) {
  .nav-container { padding: 0 1.5rem; }
  .hero-inner { padding: 1.5rem; }
  .project-content { padding: 3rem 1.2rem 4rem; }
  .spark p { font-size: 1rem; }
}


/* ─── Additions ─────────────────────────────── */
/* ─── Meine Rolle ────────────────────────────── */
.my-role { margin: 4rem 0; }
.my-role h2 {
  font-size: 0.72rem; letter-spacing: 0.22rem; text-transform: uppercase;
  color: var(--accent-cyan); font-weight: 400; margin-bottom: 1.2rem;
}
.role-highlight {
  font-size: 1.25rem; line-height: 1.6;
  border-left: 3px solid var(--accent-cyan);
  padding-left: 1.5rem; margin: 0; color: var(--text-primary);
}

/* ─── Tools & Stärken ───────────────────────── */
.tools-strengths { display: flex; gap: 3rem; margin-bottom: 4rem; flex-wrap: wrap; }
.tools, .strengths { flex: 1; min-width: 220px; }
.tools-strengths h3 {
  font-size: 0.72rem; letter-spacing: 0.18rem; text-transform: uppercase;
  color: var(--text-secondary); font-weight: 400; margin-bottom: 0.75rem;
}
.tag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag-list li {
  background: var(--bg); border: 1px solid var(--border-subtle);
  padding: 4px 12px; border-radius: 4px; font-size: 0.82rem; color: var(--text-secondary);
}
.tag-list.highlight li {
  border-color: rgba(124,63,212,0.4); color: var(--text-primary);
  background: rgba(124,63,212,0.06);
}

/* ─── Spark ─────────────────────────────────── */
.spark { margin-top: 2rem; margin-bottom: 3rem; }
.spark p { font-size: 1.25rem; color: rgba(17,17,17,0.75); line-height: 1.7; }

/* ─── Galerie ────────────────────────────────── */
.work-gallery { display: flex; flex-direction: column; gap: 2.5rem; margin: 4rem 0; }
.work-gallery figure { margin: 0; }
.work-gallery img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border-radius: 4px; border: 1px solid var(--border-subtle);
  filter: brightness(1) contrast(1.02) saturate(0.95);
  transition: filter 0.3s ease; display: block;
}
.work-gallery img:hover { filter: brightness(1.03) contrast(1.04) saturate(1); }
.work-gallery figcaption {
  margin-top: 0.5rem; font-size: 0.72rem; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.1em;
}

/* ─── Bild-Platzhalter ──────────────────────── */
.img-placeholder {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, rgba(124,63,212,0.08) 0%, rgba(0,136,187,0.06) 50%, rgba(212,82,14,0.04) 100%);
  border: 1px dashed rgba(124,63,212,0.2); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(17,17,17,0.3); font-size: 0.72rem;
  letter-spacing: 0.12em; text-transform: uppercase;
}

/* ─── Context Accordion ─────────────────────── */
details.context-accordion, details.project-context {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: 4px; padding: 1.5rem; margin: 4rem 0;
}
details summary {
  cursor: pointer; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-secondary);
  list-style: none; display: flex; align-items: center; justify-content: space-between;
}
details summary::after { content: '+'; font-size: 1.1rem; color: var(--accent-purple); transition: transform 0.2s; }
details[open] summary { margin-bottom: 1.25rem; }
details[open] summary::after { transform: rotate(45deg); }
details dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1.5rem; margin-bottom: 1rem; }
details dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1rem; color: var(--accent-cyan); font-weight: 600; align-self: start; padding-top: 0.15rem; }
details dd { font-size: 0.9rem; color: rgba(17,17,17,0.75); margin: 0; }
details p { margin-top: 1.25rem; font-size: 0.9rem; border-top: 1px solid var(--border-subtle); padding-top: 1.25rem; }
details a { color: var(--accent-cyan); transition: opacity 0.2s; }
details a:hover { opacity: 0.7; }

/* ─── Projekt-Navigation ────────────────────── */
.project-nav { display: flex; justify-content: space-between; margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--border-subtle); }
.project-nav a { font-size: 0.75rem; letter-spacing: 0.1rem; text-transform: uppercase; color: var(--text-secondary); transition: color 0.2s; }
.project-nav a:hover { color: var(--text-primary); opacity: 1; }

/* ─── Lang-Switch ───────────────────────────── */
.lang-switch { display: flex; align-items: center; gap: 0.35rem; margin-left: 1.5rem; }
.lang-divider { color: rgba(0,0,0,0.15); font-size: 0.8rem; }
.lang-btn { background: none; border: none; cursor: pointer; font-family: inherit; font-size: 0.68rem; letter-spacing: 0.15rem; color: rgba(17,17,17,0.35); padding: 0; transition: color 0.2s; }
.lang-btn.active, .lang-btn:hover { color: var(--text-primary); }

@media (max-width: 640px) { .tools-strengths { flex-direction: column; gap: 1.5rem; } }

/* ─── Kompakte Rolle (unter Galerie) ────────── */
.role-compact {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin: 2.5rem 0 0;
  max-width: 700px;
  padding: 0.25rem 0 0.25rem 1.5rem;
  border-left: 3px solid var(--accent-cyan);
}
.role-compact strong {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.18rem;
  text-transform: uppercase;
  color: var(--accent-cyan);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

/* ─── Skills sichtbar (nach Galerie) ────────── */
.skills-visible {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  margin: 2.5rem 0 0;
  padding: 2rem 0;
  border-top: 1px solid var(--border-subtle);
}
.skills-col { flex: 1; min-width: 180px; }
.skills-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.18rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}

/* ─── Galerie: 2 Hero + Thumbnails ──────────── */
.gallery-hero {
  margin: 0 0 2rem;
}
.gallery-hero img,
.gallery-hero video {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  display: block;
  filter: brightness(1) contrast(1.02) saturate(0.95);
  transition: filter 0.3s ease;
}
.gallery-hero img:hover,
.gallery-hero video:hover { filter: brightness(1.03) contrast(1.04) saturate(1); }
.gallery-hero figcaption {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
.gallery-thumbnails figure { margin: 0; }
.gallery-thumbnails img,
.gallery-thumbnails video {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  display: block;
  filter: brightness(0.98) saturate(0.9);
  transition: filter 0.3s ease;
}
.gallery-thumbnails img:hover,
.gallery-thumbnails video:hover { filter: brightness(1.03) saturate(1); }

/* ─── Research Note ─────────────────────────── */
.research-note {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-style: italic;
  border-left: 2px solid var(--accent-purple);
  padding-left: 1rem;
  margin: -1.5rem 0 3rem;
  line-height: 1.65;
}
.research-note span {
  color: var(--accent-purple);
  font-style: normal;
  font-weight: 600;
}

/* ─── Vimeo/Video Embed ─────────────────────── */
.video-facade iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

/* ─── Über mich ─────────────────────────────── */
.about-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 3rem 6rem;
}

.profile-section {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 6rem;
}

.profile-img img {
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  aspect-ratio: 3/4;
  object-fit: cover;
  width: 100%;
  filter: brightness(1) contrast(1.02) saturate(0.95);
}

.profile-img-placeholder {
  border-radius: 10px;
  border: 1px dashed rgba(124,63,212,0.25);
  aspect-ratio: 3/4;
  background: linear-gradient(160deg,
    rgba(124,63,212,0.1) 0%,
    rgba(0,136,187,0.07) 50%,
    rgba(212,82,14,0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(17,17,17,0.2);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.profile-lead {
  font-size: 1.2rem;
  line-height: 1.75;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.profile-body {
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(17,17,17,0.65);
  margin: 0;
}

.strength-section { margin-top: 2rem; }

.strength-section .section-label {
  margin-bottom: 2rem;
}

.strength-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.strength-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 2rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.strength-card:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 0 30px rgba(124,63,212,0.1);
}
.strength-card h3 {
  font-size: 0.78rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--accent-purple);
  font-weight: 600;
  margin-bottom: 1rem;
}
.strength-card p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: rgba(17,17,17,0.65);
  margin: 0;
}

/* ─── Preloader ─────────────────────────────── */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.preloader-spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--accent-purple);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 768px) {
  .about-content { padding: 3rem 1.5rem 4rem; }
  .profile-section { grid-template-columns: 1fr; }
  .strength-grid { grid-template-columns: 1fr; }
}
