/* ============================================================
   Portfolio – Jacob Laurin Wöss Nowotny
   styles.css
   ============================================================ */

/* Google Fonts importieren */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Open+Sans:wght@400;600&display=swap');


/* ============================================================
   CSS-VARIABLEN
   ============================================================ */
:root {
  --bg:         #0f0f13;
  --surface:    #1a1a22;
  --border:     rgba(255, 255, 255, 0.1);
  --text:       #e0e0e8;
  --muted:      #888899;
  --accent:     #5b8dee;
  --accent2:    #ee5b8d;
  --gold:       #f5c518;
  --radius:     10px;
  --header-h:   64px;
  --font-head:  'Poppins', sans-serif;
  --font-body:  'Open Sans', sans-serif;
  --trans:      0.25s ease;
}

body.light {
  --bg:      #f0f0f5;
  --surface: #ffffff;
  --border:  rgba(0, 0, 0, 0.1);
  --text:    #1a1a28;
  --muted:   #666677;
}


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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color var(--trans), color var(--trans);
}

ul { list-style: none; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--accent2); }
h1, h2, h3 { font-family: var(--font-head); }


/* ============================================================
   HINTERGRUNDVIDEO
   ============================================================ */
#bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

/* Overlay damit Text lesbar bleibt */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15,15,19,0.85), rgba(15,15,19,0.7));
  z-index: -1;
  pointer-events: none;
  transition: background var(--trans);
}

body.light::before {
  background: rgba(240,240,245,0.9);
}


/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 9000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--trans), background var(--trans);
}

#main-header.scrolled {
  opacity: 1;
  pointer-events: all;
  background: rgba(15,15,19,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

body.light #main-header.scrolled {
  background: rgba(240,240,245,0.9);
}

body.light #main-header.scrolled nav a,
body.light #main-header.scrolled #theme-btn {
  color: #1a1a28;
}

body.light #main-header.scrolled nav a:hover {
  color: var(--accent2);
}

#menu-toggle { display: none; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 2rem;
}

/* Logo */
.logo img { height: 32px; width: auto; }
.logo-light { display: none; }
body.light .logo-dark  { display: none; }
body.light .logo-light { display: block; }

/* Nav-Links */
nav ul {
  display: flex;
  gap: 1.6rem;
}

nav a {
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text);
  position: relative;
  padding-bottom: 3px;
  transition: color var(--trans);
}

/* Hover-Unterstrich (CSS-Animation) */
nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width var(--trans);
}

nav a:hover { color: var(--accent); }
nav a:hover::after { width: 100%; }
nav a.active { color: var(--accent); }
nav a.active::after { width: 100%; }

/* Theme-Button */
#theme-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1rem;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--trans), transform var(--trans);
}

#theme-btn:hover {
  border-color: var(--accent);
  transform: rotate(12deg) scale(1.1);
}


/* ============================================================
   HAMBURGER (nur Mobile – Checkbox-Trick)
   ============================================================ */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 9100;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--trans), opacity var(--trans);
}

/* X-Animation wenn geöffnet */
#menu-toggle:checked ~ .header-inner .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#menu-toggle:checked ~ .header-inner .hamburger span:nth-child(2) {
  opacity: 0;
}
#menu-toggle:checked ~ .header-inner .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ============================================================
   HERO-SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  overflow: hidden;
}

.hero-text {
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  animation: slideUp 0.9s ease both;
}

.hero-text p {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 2rem;
  animation: slideUp 0.9s 0.15s ease both;
}

.hero-subtitle {
  color: #000000 !important;
}

/* CSS Masking für H1 */
.masked-text {
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  animation: slideUp 0.9s ease both;
  background: url('assets/pexels-enginakyurt-14524926.jpg') center / cover no-repeat;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Button – Hover: Farbe + Schatten + Skalierung */
.btn {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: background var(--trans), box-shadow var(--trans), transform var(--trans);
  animation: slideUp 0.9s 0.3s ease both;
}

.btn:hover {
  background: var(--accent2);
  color: #fff;
  box-shadow: 0 6px 20px rgba(238, 91, 141, 0.35);
  transform: translateY(-2px) scale(1.03);
}

.btn:active {
  transform: translateY(0) scale(0.99);
}


/* ============================================================
   ALLGEMEINE SECTION-STILE
   ============================================================ */
section {
  padding: 6rem 2rem;
}

.bg-alt {
  background: rgba(255, 255, 255, 0.025);
}

body.light .bg-alt {
  background: rgba(0, 0, 0, 0.03);
}

#rezensionen {
  position: relative;
  background-image: url('assets/pexels-karola-g-4863008.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #ffffff;
  overflow: hidden;
}

body.light #rezensionen {
  background-image: url('assets/ChatGPT Image 17. Mai 2026, 14_29_45.png');
}

#rezensionen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.65);
  z-index: 0;
}

#rezensionen .container {
  position: relative;
  z-index: 1;
}

#rezensionen .section-title,
#rezensionen .section-sub,
#rezensionen h3,
#rezensionen p,
#rezensionen label,
#rezensionen .no-reviews {
  color: #f5f5f8;
}

body.light #rezensionen table,
body.light #rezensionen table td,
body.light #rezensionen table th {
  color: #1a1a28;
}

body.light #rezensionen .review-form,
body.light #rezensionen .review-form h3,
body.light #rezensionen .review-form p,
body.light #rezensionen .review-form label,
body.light #rezensionen .review-card,
body.light #rezensionen .review-card strong,
body.light #rezensionen .review-card p,
body.light #rezensionen .review-card small {
  color: #1a1a28;
}

@media (max-width: 768px) {
  #rezensionen {
    background-attachment: scroll;
  }
}

.container {
  max-width: 1060px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--text);
  margin-bottom: 0.3rem;
}

.section-sub {
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 2.5rem;
}

.text-block {
  margin-bottom: 2rem;
}

.text-block p {
  color: var(--muted);
  max-width: 640px;
}

.lead {
  color: var(--muted);
  margin-bottom: 2rem;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.8rem;
  margin-top: 1.5rem;
}


/* ============================================================
   ÜBER-MICH – Grid, Tabelle, Liste
   ============================================================ */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

/* Tabelle */
.steckbrief {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.8rem;
  font-size: 0.9rem;
}

.steckbrief tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--trans);
}

.steckbrief tr:hover {
  background: rgba(91, 141, 238, 0.06);
}

.steckbrief th,
.steckbrief td {
  padding: 0.6rem 0.5rem;
  text-align: left;
}

.steckbrief th {
  color: var(--muted);
  font-weight: 600;
  width: 38%;
}

.steckbrief td {
  color: var(--text);
}

/* Eigenschaften-Liste */
.traits-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.traits-list li {
  padding: 0.55rem 0.8rem 0.55rem 2rem;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  position: relative;
  transition: transform var(--trans), border-color var(--trans), color var(--trans);
}

/* CSS-Icon (Pfeil) vor jedem Eintrag */
.traits-list li::before {
  content: "→";
  position: absolute;
  left: 0.7rem;
  color: var(--accent);
  transition: transform var(--trans);
}

.traits-list li:hover {
  transform: translateX(5px);
  border-color: var(--accent);
  color: var(--text);
}

.traits-list li:hover::before {
  transform: translateX(2px);
}


/* ============================================================
   RHOMBUS-BILD (Über mich)
   ============================================================ */
.about-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.rhombus {
  width: 280px;
  height: 280px;
  object-fit: cover;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.rhombus:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 12px 40px rgba(91, 141, 238, 0.3);
}


/* ============================================================
   GALERIE (nur CSS)
   ============================================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.gallery-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}

/* KMD-Bilder (Screenshots) anders darstellen */
#kmd .gallery-item img {
  height: 240px;
  object-fit: contain;
  padding: 0.5rem;
}

#mbk .gallery-item img {
  height: 280px;
}

/* Hover: Zoom + leichter Schatten */
.gallery-item:hover img {
  transform: scale(1.05);
  filter: brightness(0.85);
}

.gallery-caption {
  padding: 0.6rem 0.8rem;
  font-size: 0.83rem;
  color: var(--muted);
  background: var(--surface);
  border-top: 1px solid var(--border);
  /* Caption erscheint mit CSS-Transition beim Hover */
  transition: background var(--trans), color var(--trans);
}

.gallery-item:hover .gallery-caption {
  background: rgba(91, 141, 238, 0.08);
  color: var(--text);
}


/* ============================================================
   HOBBYS
   ============================================================ */
.hobbys-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.hobby-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform var(--trans), box-shadow var(--trans);
}

.hobby-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.hobby-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hobby-card:hover img {
  transform: scale(1.04);
}

.hobby-info {
  padding: 1.2rem;
}

.hobby-info h3 {
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.hobby-info p {
  font-size: 0.88rem;
  color: var(--muted);
}

/* Genre-Liste */
.music-genres h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.genre-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-width: 400px;
}

.genre-list li {
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--muted);
  transition: border-color var(--trans), color var(--trans), transform var(--trans);
}

.genre-list li:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateX(4px);
}


/* ============================================================
   FAMILIE
   ============================================================ */
.family-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.family-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
  transition: transform var(--trans), box-shadow var(--trans);
}

.family-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.family-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.family-card:hover img {
  transform: scale(1.04);
}

.family-name {
  padding: 0.6rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface);
}


/* ============================================================
   REZENSIONEN & FORMULAR
   ============================================================ */
.review-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2.5rem;
}

.review-form h3 {
  margin-top: 0;
  margin-bottom: 1.2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.form-group label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  resize: vertical;
  transition: border-color var(--trans), box-shadow var(--trans);
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91, 141, 238, 0.15);
}

body.light input,
body.light textarea {
  background: #f8f8fc;
  color: var(--text);
}

/* Sterne */
.stars {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.3rem;
}

.star {
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--border);
  transition: color var(--trans), transform var(--trans);
}

.star:hover,
.star.hover,
.star.active {
  color: var(--gold);
  transform: scale(1.15);
}

/* Abschnitt bisherige Rezensionen */
.reviews-existing h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin-bottom: 0.8rem;
  transition: transform var(--trans), box-shadow var(--trans);
}

.review-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.review-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.2rem;
}

.review-top strong {
  color: var(--text);
  font-size: 0.95rem;
}

.review-stars {
  color: var(--gold);
  font-size: 0.95rem;
}

.review-card small {
  color: var(--muted);
  font-size: 0.78rem;
  display: block;
  margin-bottom: 0.5rem;
}

.review-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.no-reviews {
  color: var(--muted);
  font-style: italic;
}


/* ============================================================
   KONTAKT
   ============================================================ */
.kontakt-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  max-width: 520px;
  transition: box-shadow var(--trans);
}

.kontakt-box:hover {
  box-shadow: 0 10px 28px rgba(91, 141, 238, 0.12);
}

.kontakt-box p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}


/* ============================================================
   FOOTER
   ============================================================ */
footer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 2;
}

footer a {
  color: var(--muted);
  transition: color var(--trans);
}

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


/* ============================================================
   SCROLL-REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 860px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {

  /* Hamburger sichtbar */
  .hamburger { display: flex; }

  /* Desktop-Nav verstecken */
  nav ul {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(15,15,19,0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0.8rem 0;
    z-index: 8999;
  }

  body.light nav ul {
    background: rgba(240,240,245,0.98);
  }

  #menu-toggle:checked ~ .header-inner nav ul {
    display: flex;
  }

  nav ul li {
    border-bottom: 1px solid var(--border);
  }

  nav a {
    display: block;
    padding: 0.85rem 1.8rem;
    font-size: 0.95rem;
  }

  /* Sections */
  section { padding: 4.5rem 1.2rem 3rem; }

  /* Galerie 1-spaltig */
  .gallery {
    grid-template-columns: 1fr;
  }

  /* Familie 2-spaltig */
  .family-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Formular-Zeile einspaltig */
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hobbys-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  /* Alle Single-Column bei sehr kleinen Bildschirmen */
}
