/* ====================================================
   01. GLOBALE STYLES & DESIGN TOKENS
   ==================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

:root {
  /* Farbschema – Dark Mode (Default) */
  --main-brand-color: #1a39a8;
  --h1: #f8f8f8;
  --primary-color: #0a0e1a;
  --secondary-color: #1a1f2e;
  --text-color: #e8e5e5;
  --border: #0a0e1a;
  --shadow-color: rgba(243, 243, 243, 0.2);
  --shadow-color-2: rgba(151, 148, 154, 0.2);
}

:root.light-mode {
  /* Farbschema – Light Mode */
  --main-brand-color: #8aa3fc;
  --h1: #1b1920;
  --primary-color: #fafbfc;
  --secondary-color: #eaeaea;
  --text-color: #1b1920;
  --border: #fafbfc;
  --shadow-color: rgba(0, 0, 0, 0.2);
  --shadow-color-2: rgba(114, 114, 114, 0.2);
}

/* ====================================================
   02. RESET & BASIS-STYLES
   ==================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--primary-color);
  color: var(--text-color);
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
  padding-top: 120px; /* Platz für festen Header */
}

/* Typografie */
p { 
  font-size: 17px; 
  text-align: left; 
}

h1 { 
  color: var(--h1); 
  font-size: 5vw; 
  text-align: center; 
}

h2 { 
  font-size: 37px;  
  text-align: left; 
}

h3 { 
  font-size: 22px; 
  text-align: left; 
}

h4 { 
  font-size: 18px; 
  text-align: left; 
}

a { 
  text-decoration: none; 
}

/* ====================================================
   03. HEADER & NAVIGATION
   ==================================================== */

/* Header – Fixed Glass Layout */
.site-header {
  position: fixed;
  transition: all 0.3s ease;
  top: 0;
  width: 100%;
  z-index: 2000;
  background: rgba(10, 14, 26, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

:root.light-mode .site-header {
  background: rgba(250, 251, 252, 0.65);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.site-header.scrolled {
  background: rgba(10, 14, 26, 0.65);
  backdrop-filter: blur(14px);
}

/* Header Inner Container */
.header-inner {
  max-width: 90%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 40px 0;
  transition: padding 0.3s ease;
}

.site-header.scrolled .header-inner {
  padding: 24px 0;
}

/* Logo */
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: default;
  user-select: none;
  color: var(--text-color);
}

.site-header.scrolled .logo {
  font-size: 1.25rem;
  font-weight: 400;
}

.logo a {
  text-decoration: none;
  color: inherit;
  cursor: default;
  pointer-events: none;
}

/* Desktop Navigation */
.header-center ul {
  list-style: none;
  display: flex;
  gap: 30px;
  justify-content: flex-end;
  margin: 0;
}

.header-center a {
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--text-color);
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.header-center a:hover { 
  opacity: 1; 
}

/* Header Right Controls */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Button Container für Mode/Lang Buttons */
#button-container {
  display: flex;            
  flex-direction: column;   
  align-items: flex-end;    
  gap: 0.5rem;               
  position: absolute;        
  top: 20px;
  right: 20px;
  z-index: 1000;
}

/* Burger Button (Desktop versteckt) */
#burger-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
  padding: 10px;
  border-radius: 5px;
  transition: background 0.2s ease;
}

#burger-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ====================================================
   04. MOBILE NAVIGATION & BURGER MENU
   ==================================================== */

/* Mobile Menu (Standard geschlossen) */
.mobile-menu {
  display: none;
}

.mobile-menu.open {
  display: flex;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile Burger Menu Design */
.mobile-menu {
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 30px 20px 40px;
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

:root.light-mode .mobile-menu {
  background: rgba(250, 251, 252, 0.97);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu a {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-color);
  text-decoration: none;
  padding: 10px 0;
}

.mobile-menu a:hover {
  opacity: 0.75;
}

/* ====================================================
   05. HAUPTINHALT & SECTIONS
   ==================================================== */

/* About Me & Projects Sections */
#about_me_section, 
#all_projects {
  align-items: center;
  display: flex;
  justify-content: center;
  padding: 20px 0;
  flex-direction: column;
}

#about_me_section {
  background-color: var(--secondary-color);
}

#all_projects {
  background-color: var(--primary-color);
}

/* Section-Überschriften und Filter */
#all_projects h2 {
  width: 87%;
  margin: 0 auto;
}

#all_projects .filter-buttons,
#all_projects .subfilter-buttons {
  width: 87%;
  margin: 15px auto 25px auto;
  justify-content: flex-start;
}

/* Container Layout */
.flex_container_3,
.projects-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  width: 100%;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 90%;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* ====================================================
   06. KARTEN (Cards) DESIGN
   ==================================================== */

.card_3,
.pro-card,
.design-card {
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 20px;
}

.card_3 {
  background-color: var(--primary-color);
  box-shadow: 0 0 10px var(--shadow-color-2);
  text-align: center;
  width: 90%;
}

.pro-card,
.design-card {
  background-color: var(--secondary-color);
  box-shadow: 0 0 10px var(--shadow-color);
  text-align: left;
  width: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Mikro-Spacing in Karten */
.pro-card > * + *,
.design-card > * + * { 
  margin-top: 14px; 
}

.pro-card p,
.design-card p { 
  line-height: 1.65; 
}

.pro-card .button-group,
.design-card .button-group { 
  margin-top: 18px; 
}

.pro-card:hover, .design-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}

/* ====================================================
   07. PROJEKTBILDER & VISUALS
   ==================================================== */

/* Standard Projektbilder */
.pro-card .project-images img,
.design-card .project-images img,
.pro-card > img,
.design-card > img {
  box-shadow: 0 2px 8px var(--shadow-color);
  display: block;
  height: auto;
  margin: 8px auto 14px;
  max-width: 60%;
  border-radius: 12px;
}

/* NOL-Projekt Spezialbilder */
.project-images.nol {
  box-shadow: none !important;
}

.project-images.nol img {
  width: 70%;
  height: auto;
  display: block;
  margin: 0 auto;
  box-shadow: 0 8px 24px rgba(0,0,0,.15) !important;
}

/* Zwei Bilder nebeneinander */
.project-images.nol.two {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.project-images.nol.two img {
  width: 48%;
  height: auto;
  display: inline-block;
  margin: 0;
}

/* HFSW Social Media Bilder */
.project-images.hfsw,
.project-images.hfs,
.project-images.story {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-start;
}

.project-images.hfsw img,
.project-images.hfs img {
  width: 18%;
  border-radius: 0.5rem;
  object-fit: cover;
}

.project-images.story img {
  width: 20%;
  border-radius: 0.5rem;
  object-fit: cover;
}

/* ====================================================
   08. BUTTONS & LINKS
   ==================================================== */

/* Gemeinsame Button-Styles */
.pro-card a, 
.design-card a, 
.card_3 a, 
.mode-btn, 
.filter-btn,
.lang-btn {
  color: var(--text-color);
  display: inline-block;
  line-height: 1.8;
  text-decoration: none;
  transition: 150ms;
  padding: 5px 10px;
  text-align: center;
  font-weight: 500;
}

.pro-card a, 
.design-card a, 
.card_3 a, 
.mode-btn, 
.lang-btn {
  margin: 0 1%;
}

/* Haupt-Buttons */
.pro-card a, 
.design-card a, 
.card_3 a, 
.filter-btn {
  border-radius: 5px;
  background-color: var(--main-brand-color);
  border: 2px solid var(--main-brand-color);
  font-size: 16px;
}

/* Mode & Language Toggle Buttons */
.mode-btn,
.lang-btn {
  padding: 5px 20px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  border-radius: 25px;
  color: var(--text-color);
  font-size: 20px;
  cursor: pointer;
}



.mode-btn {
  text-shadow: 0 0 5px #fff,
               0 0 10px #fff,
               0 0 15px #fff;
}

:root.light-mode .mode-btn {
  text-shadow: 0 0 5px var(--shadow-color),
               0 0 10px var(--shadow-color),
               0 0 15px var(--shadow-color);
}

/* Dark Mode spezifische Button-Styles */
:root:not(.light-mode) #all_projects .pro-card a,
:root:not(.light-mode) #all_projects .design-card a {
  background-color: var(--primary-color);
  border: 2px solid var(--primary-color);
  color: var(--text-color);
}

:root:not(.light-mode) #all_projects .pro-card a:hover,
:root:not(.light-mode) #all_projects .design-card a:hover {
  background: transparent;
}

/* Hover-Effekte */
.pro-card a:hover, 
.design-card a:hover, 
.card_3 a:hover, 
.mode-btn:hover, 
.filter-btn:hover,
.lang-btn:hover {
  background: transparent;
}

/* Button Groups */
.button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 15px;
  gap: 10px;
}

/* ====================================================
   09. FILTER-SYSTEM
   ==================================================== */

/* Hauptfilter Buttons */
.filter-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 15px 0 25px 0;
}

.filter-btn.active {
  background-color: var(--main-color);
  color: var(--text-color);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Unterfilter Buttons */
.subfilter-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 15px 0 25px 0;
}

.subfilter-buttons .subfilter-btn {
  border-radius: 5px;
  background-color: var(--main-brand-color);
  border: 2px solid var(--main-brand-color);
  color: var(--text-color);
  font-size: 16px;
  font-weight: 500;
  padding: 5px 10px;
  text-align: left;
  cursor: pointer;
  transition: 150ms;
}

.subfilter-buttons .subfilter-btn:hover {
  background: transparent;
  color: var(--text-color);
}

.subfilter-buttons .subfilter-btn.active {
  background-color: var(--main-color);
  color: var(--text-color);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

:root.light-mode .subfilter-buttons .subfilter-btn.active {
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Filter-Logik (Standard versteckt) */
.projects-container .dev,
.projects-container .design { 
  display: none; 
}

/* ====================================================
   10. SPEZIAL-KOMPONENTEN
   ==================================================== */

/* Lebenslauf Container */
.pic_container {
  background-color: var(--secondary-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin: 20px 0;
}

.pic_container img,
.pic_container .pic_video {
  width: 80%;
  max-width: 900px;
  height: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  border-radius: 6px;
  margin: 20px 0;
}

/* Resume Button */
.resume-btn {
  display: inline-block !important;
  margin-top: 0.5em !important;
}

/* Skills Tags */
.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skills-tags span {
  background-color: var(--main-brand-color);
  color: var(--text-color);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Timeline für Lebenslauf */
.timeline-container {
  position: relative;
  padding-left: 9px;
  margin: 2rem 0;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--text-color);
}

.timeline-dot {
  position: absolute;
  width: 15px;
  height: 15px;
  background-color: var(--text-color);
  border-radius: 50%;
}

.timeline-content {
  margin-left: 40px;
}

.timeline-content ul {
  list-style: none;
  padding-left: 1rem;
  margin: 0.3rem 0;
}

.timeline-content ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.timeline-content ul li::before {
  content: '•';
  position: absolute;
  left: 5px;
}

/* Instagram Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Zitat-Blöcke */
.quote-block {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin: 2rem 0;
}

.quote-block img {
  width: 220px;
  max-width: 40%;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.quote-block p {
  flex: 1;
  margin: 0;
  line-height: 1.6;
}

/* ====================================================
   11. RECHTLICHE SEITEN
   ==================================================== */

#datenschutz_section,
#Impressum_section {
  align-items: flex-start;
  background-color: var(--secondary-color);
  color: var(--text-color);
  display: flex;
  justify-content: center;
  min-height: 90vh;
  padding: 40px;
}

.datenschutz_container,
.Impressum_container {
  line-height: 1.8;
  max-width: 1000px;
  width: 100%;
}

#datenschutz_section h2,
#Impressum_section h2 {
  margin-bottom: 20px;
}

#datenschutz_section a,
#Impressum_section a {
  color: var(--text-color);
  text-decoration: underline;
}

#datenschutz_section a:visited,
#Impressum_section a:visited,
#datenschutz_section a:active,
#Impressum_section a:active {
  color: var(--text-color);
}

/* ====================================================
   12. FOOTER
   ==================================================== */

footer {
  color: var(--text-color);
  padding: 40px;
  text-align: center;
}

footer a {
  color: var(--text-color);
  text-decoration: none;
}

footer a:visited,
footer a:active,
footer a:hover { 
  color: var(--text-color); 
}

body.home footer { 
  background: var(--secondary-color); 
}

body.legal footer { 
  background: var(--primary-color); 
}

/* ====================================================
   13. RESPONSIVE BREAKPOINTS
   ==================================================== */

@media (max-width: 900px) {
  .projects-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 750px) {
  /* Header & Navigation Mobile */
  #burger-toggle {
    display: block;
  }
  
  .header-center ul {
    display: none;
  }
  
  /* Mobile Projekt-Styles */
  #all_projects h2,
  #all_projects .filter-buttons,
  #all_projects .subfilter-buttons {
    width: 100%;
    padding: 0 20px;
  }
  
  /* NOL-Bilder Mobile */
  .project-images.nol img {
    width: 100%;
    height: auto;
  }
  
  .project-images.nol.two {
    flex-direction: column;
    gap: 15px;
  }
  
  .project-images.nol.two img {
    width: 100%;
  }
  
  /* HFSW-Bilder Mobile (nur erstes Bild) */
  .project-images.hfsw img,
  .project-images.hfs img,
  .project-images.story img {
    display: none;
  }
  
  .project-images.hfsw img:first-child,
  .project-images.hfs img:first-child,
  .project-images.story img:first-child {
    display: block;
    width: 100%;
  }
  
  /* Lebenslauf Mobile */
  .pic_container img,
  .pic_container .pic_video {
    width: 95%;
  }
  
  /* Zitat-Blöcke Mobile */
  .quote-block {
    flex-direction: column;
  }
  
  .quote-block img {
    width: 100%;
    max-width: 100%;
  }
  
  /* Alte Mobile Navigation (falls noch verwendet) */
  nav ul {
    display: none;
    flex-direction: column;
    gap: 0;
    background-color: var(--primary-color);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    border-top: 1px solid var(--main-brand-color);
  }
  
  nav li {
    margin: 0;
    text-align: center;
    padding: 10px 0;
  }
  
  #toggle_button {
    display: block;
    position: absolute;
    left: 20px;
    top: 20px;
    width: 40px;
    height: 40px;
    opacity: 0;
    z-index: 999;
    cursor: pointer;
  }
  
  label[for="toggle_button"] {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    left: 20px;
    top: 20px;
    z-index: 1000;
    font-size: 36px;
    color: var(--text-color);
  }
  
  #toggle_button:checked + label + #primary-nav {
    display: flex;
  }
}

@media (max-width: 600px) {
  body {
    padding-top: 100px;
  }
  
  .header-inner {
    padding: 30px 0;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .projects-container {
    padding: 0 10px;
  }
}

@media (max-width: 700px) {
  /* Spezifische HFSW-Regel */
  .project-images.hfsw img {
    display: none;
  }
  
  .project-images.hfsw img:first-child {
    display: block;
    width: 100%;
  }
}