/* =========================================
   1. Variablen
========================================= */
:root {
  --bg-color: #1f2933;
  /* --bg-color: black; */
  --text-color: white;
  --logo-color: #d2e874;
  --accent-color: #d2e874;
  /* --logo-color: #FF7F50; */
  --grey-tone: #9c9696;

  --logo-color-not: white;
  --lamp-effect-color: white;

  --bg-img: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='25' height='25'><circle cx='10' cy='10' r='1' fill='%23d3e87437'/></svg>");
}

body.light {
  --bg-color: #f5f3f0;
  --text-color: #1f2933;
  --logo-color: black;
  --logo-color-not: #b9cc50;
  --lamp-effect-color: black;

  --bg-img: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='25' height='25'><circle cx='10' cy='10' r='1' fill='%23aaaaaa45'/></svg>");
}

/* =========================================
   2. Base Styles
========================================= */
/* ==== Hintergrund-Layer ==== */
.background-background {
  position: fixed;
  inset: 0;
  background-image: var(--bg-img);
  background-repeat: repeat;
  z-index: 0;
}

.background-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-color);
  -webkit-mask-image: radial-gradient(
    circle 400px at var(--x, 50%) var(--y, 50%),
    transparent 0%,
    rgba(0, 0, 0, 0.5) 70%,
    black 75%
  );
  -webkit-mask-repeat: no-repeat;
  mask-image: radial-gradient(
    circle 400px at var(--x, 50%) var(--y, 50%),
    transparent 0%,
    rgba(0,0,0,0.7) 70%,
    black 100%
  );
  mask-repeat: no-repeat;
  pointer-events: none;
  z-index: 1;
}

/* ==== Content-Layer ==== */
.body__container {
  position: relative;
  z-index: 2; 
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Dein Standard-Body-Style */
body {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-style: normal;
  color: var(--text-color);
  font-size: 1em;
  margin: 0;
  background-color: var(--bg-color);
}

h1, h2 {
  font-family: "Poppins", sans-serif;
  letter-spacing: 0.1rem;
  color: var(--text-color);
}

h1 {
  font-weight: 700;
  font-style: bold;
  font-size: 3rem;
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
}

h2 {
  font-weight: 600;
  font-style: bold;
  font-size: 1.7rem;
  margin-bottom: 0.3rem;
  margin-top: 0.3rem;
}

h2.section-title {
  text-align: center;
}

h3 {
  font-weight: 400;
  font-style: normal;
  font-size: 1.5rem;
}

a {
  color: inherit;          
  text-decoration: none;   
  cursor: pointer;         
}

.navbar {
  padding-top: 30px;
  border-bottom: 0px solid #ddd;
  /* position: fixed; */
}

.navbar-container {
  max-width: 1100px;
  /* margin: 0 auto;    
  padding: 0.5rem 2rem; */
  display: grid;
  grid-template-columns: 100px 1fr 150px;
  /* grid-template-columns: 1fr 2fr 2fr; */
  align-items: center;
}

.logo-wrapper img{
  width: 4rem;
  height: auto;
}

.nav-center {
  display: grid;
  grid-auto-flow: column;
  gap: 2rem;
  justify-content: center;
  align-items: center;
}

.nav-center a:hover {
  font-weight: bolder;
}

.nav-right {
  display: grid;
  grid-auto-flow: column;
  justify-content: end;
  gap: 1rem;
  align-items: flex-end;
}

.nav-link {
  text-decoration: none;
  color: var(--bg-color);
  padding: 0.2rem 0;
  transition: border-color 0.2s ease;
  border: 1px solid transparent;    
  padding-inline: 15px;
  border-radius: 20px;
}

.nav-link:hover {
  border-bottom-color: var(--accent-color);
}

.nav-link.active {
  border-color: var(--accent-color);
  background-color:var(--accent-color) ;
  color: var(--bg-color);
  font-weight: bolder;
}

.burger {
  color: var(--accent-color);
  display: none;
  background: none;
  border: none;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 1001; /* über allem */
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bg-color);
  color: white;
  padding: 6rem 3rem;
  border-top: 1px solid var(--accent-color);
  border-bottom: 1px solid var(--accent-color);
  position: absolute;
  top: 0px; 
  right: 0;
  left: 0;
  z-index: 1000;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu .nav-link {
  margin-bottom: 1rem;
  color: white;
}

.mobile-menu .nav-link.active {
color: var(--bg-color);
}


/* =========================================
   3. Layout
========================================= */
.header {
  display: grid;
  grid-template-columns: 1fr 4fr 2fr;
  grid-template-rows: 1fr;
  grid-column-gap: 0px;
  grid-row-gap: 20px;
  margin-block: 20px;
  align-items: center;
  justify-content: center;
}

section {
  margin-top: 60px;
}

.wave {
  display: inline-block;
  transform-origin: 70% 70%;
  animation: wave 2s infinite;
}

@keyframes wave {
  0%, 100% { transform: rotate(0) }
  15% { transform: rotate(14deg) }
  30% { transform: rotate(-8deg) }
  45% { transform: rotate(14deg) }
  60% { transform: rotate(-4deg) }
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 80px 0px;
  gap: 40px;
  flex-wrap: wrap;
}

.hero__content {
  flex: 1 1 300px;
}

.hero__greeting {
  font-size: 1.3rem;
  margin-bottom: 0.1rem;
}

.hero__name {
  font-size: 4rem;
  margin: 0;
}

.hero__job {
  list-style: none;
  font-size: 1.3rem;
  /* margin: 0rem 0 1.9rem 0; */
  padding-left: 0;
}

.hero__location {
  font-size: 1.0rem;
  margin: 0.5rem 0 1.5rem;
  opacity: 0.8;
}

.hero__buttons {
  display: flex;
  align-items: center;
  gap: 15px;
}

.about__button-area {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.skills-group {
  margin-bottom: 30px;
}

.skills-group h3 {
  margin-bottom: 15px;
}

.skills__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.skills__list li {
  background-color: var(--grey-tone);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  transition: all 0.2s ease-in-out;
  display: flex;
  align-items: center;
  gap: 8px;
}

.skills__list li i {
  font-size: 1.0rem;
}

.skills__list li:hover {
  background-color: #333;
  transform: scale(1.05);
}

.skills__button-area {
  display: flex;
  flex-direction: column;
  align-items: center;
}


/* #region ===== HOME - PROJECTS ===== */

#projects {
  padding: 0;
}

.projects__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.projects__button-area {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project__tile {
  position: relative;
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  max-width: 1100px;
  height: auto;
  gap: 0rem;
  background-color: #1f2933;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 1rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  filter: brightness(80%);
}

.project__tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  filter: brightness(100%);
}

.projects__grid .project__tile:last-child:nth-child(odd) {
  grid-column: 1 / -1; /* spannt sich über alle Spalten */
}

.project__picture {
  position: relative;
  max-height: 350px;
  margin: 1rem 1rem 0rem 1rem;
  border-radius: 1rem;
  overflow: hidden;
}

.project__picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(60%);
}

.project__tile:hover .project__picture img {
  filter: brightness(70%);
}

.project__tile .project__type {
  filter: brightness(100%);
}

.project__type {
  background-color: var(--accent-color);
  color: var(--bg-color);
  border-radius: 20px;
  padding: 0.2rem 1rem;
  font-size: small;
  position: absolute;
  left: 10px;
  bottom: 10px;
}

.project__type2 {
  background-color: var(--accent-color);
  color: var(--bg-color);
  border-radius: 20px;
  padding: 0.2rem 1rem;
  font-size: small;
  position: absolute;
  left: 120px;
  bottom: 10px;
}

.project__informations {
  margin-inline: 1rem;
}

.project__informations h3 {
  font-weight: 500;
  margin-top: 0.3rem;
  margin-bottom: 0.1rem;
}
.project__informations p {
  opacity: 60%;
  font-size: smaller;
  margin-top: 0rem;
  margin-bottom: 0.1rem;
}

.project__informations p.project__role {
  opacity: 100%;
}

.project__techlist {
  display: flex;
  justify-content:flex-start;
  flex-wrap: wrap;
  list-style: none;
  gap: 0.3rem 0.3rem;
  margin-inline: 1rem;
  margin-top: 0.5rem;
  padding: 0;

}

.project__techlist li {
  background-color: var(--grey-tone);
  color: white;
  padding: 4px 10px 2px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.project__techlist li i {
  font-size: .9rem;
}

/* #endregion */

/* #region ===== HOME - MODALS ===== */
.modal {
  position: fixed;
  z-index: 1000;
  top:0;
  left:0;
  width: 100%;
  height: 100%;

  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

body.modal-open {
  overflow: hidden;
}

.modal__content {
  position: relative;
  background: var(--bg-color);
  width: 60%;
  max-width: 900px; 
  max-height: 80vh; 
  overflow-y: auto; /* Scrollbar nur hier */
  padding: 30px;
  border-radius: 12px;
  animation: modalFadeIn 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);

}

.modal__close {
  position: sticky;
  top: 0;
  float: right;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  color: #555;
  transition: color 0.2s;
  border-radius: 50%;
  padding: 0 8px;
  z-index: 10;
}

.modal__close:hover {
  color: #000;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal__header {
  display: contents;
}

.modal__header h2{
  position: sticky;
  top: 0;
  background: var(--bg-color);
  padding: 0.5rem 0;
  z-index: 5;
  font-size: 1.5rem;
  line-height: 1.2;
  border-bottom: 3px solid var(--logo-color);

  /* text-decoration-line: underline; 
  text-decoration-color: var(--logo-color); */
}

.modal__meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.25rem 1rem;   
  margin: 1rem 0;
  font-size: 0.95rem;
  color: white;
}

.modal__meta dt {
  font-weight: bold;
  color: white;
}

.modal__meta dd {
  margin: 0;  
}

.modal__media {
  display: flex;             
  justify-content: center;  
  align-items: center;       
  padding: 20px;
  gap: 40px;
  flex-wrap: wrap;
}

.iphone {
  position: relative;
  width: 100%;
  flex: 0 1 auto;
  max-width: 300px;
}

.iphone.portrait {
  aspect-ratio: 483 / 974;  
}

.iphone.landscape {
  aspect-ratio: 974 / 483;
  max-width: calc(300px * 974 / 483);
}

.iphone-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background-color: black;
  border-radius: 10%;
  z-index: 1;
}

.iphone video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 95%;
  height: 95%;
  z-index: 2;
  border-radius: 0%;
}

.iphone-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 105%;
  height: 105%;
  pointer-events: none;
  z-index: 3;
}

.modal__gallery-container {
  position: relative;
}

.modal__gallery-slides {
  display: none;
  max-width: 300px;
  margin: auto;
}

.gallery-cursor {
  cursor: pointer;
}

.gallery-prev,
.gallery-next {
  cursor: pointer;
  position: absolute;
  top: 40%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
}

.gallery-next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.gallery-prev:hover,
.gallery-next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.slide-numbertext {
  color: var(--accent-color);
  font-size: 16px;
  /* padding: 16px 130px; */
  position: absolute;
  top: 1%;
  left: 48%;
  background-color: #000;
}

/* Container for image text */
.gallery-caption-container {
  text-align: center;
  background-color: var(--bg-color);
  padding: 2px 16px;
  color: var(--accent-color);
}

.gallery-row:after {
  content: "";
  display: table;
  clear: both;
}

.gallery-column {
  float: left;
  width: calc(100%/9);
}

.gallery-demo {
  opacity: 0.6;
}

.gallery-active,
.gallery-demo:hover {
  opacity: 1;
}

/* PROJEKT 6 SPECIAL */
.proj6-modal__gallery-container {
  position: relative;
}

.proj6-modal__gallery-slides {
  display: none;
  /* max-height: 700px; */
  max-width: 600px;
  margin: auto;
}

.proj6-gallery-cursor {
  cursor: pointer;
}

.proj6-gallery-prev,
.proj6-gallery-next {
  cursor: pointer;
  position: absolute;
  top: 40%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
}

.proj6-gallery-next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.proj6-gallery-prev:hover,
.proj6-gallery-next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.proj6-slide-numbertext {
  color: var(--accent-color);
  font-size: 16px;
  /* padding: 16px 130px; */
  position: absolute;
  top: 0%;
  left: 48%;
  background-color: #000;
  z-index: 100;
}

/* Container for image text */
.proj6-gallery-caption-container {
  text-align: center;
  background-color: var(--bg-color);
  padding: 2px 16px;
  color: var(--accent-color);
  z-index: 100;
}

.proj6-gallery-row:after {
  content: "";
  display: table;
  clear: both;
}

.proj6-gallery-column {
  float: left;
  width: calc(100%/4);
}

.proj6-gallery-demo {
  opacity: 0.6;
}

.proj6-gallery-active,
.proj6-gallery-demo:hover {
  opacity: 1;
}


/* #endregion */

/* #region ===== HOME - LOGO WALL ===== */

.partner-wall {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 0px;
}

.partner-wall h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  text-align: center;
}

.partner-wall .partner-note {
  /* font-size: 0.95rem; */
  /* color: #555; */
  margin-bottom: 40px;
}

.partner-wall .logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 30px;
  align-items: center;
  justify-items: center;
  padding-block: 20px;
  background-color: #9c96963e;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.partner-wall .logos img {
  max-width: 100px;
  max-height: 60px;
  object-fit: contain;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.8;
}

.partner-wall .logos img:hover {
  transform: scale(1.1);
  opacity: 1;
}

.icon-container {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.tooltip {
  visibility: hidden;
  background-color: black;
  color: #fff;
  text-align: center;
  padding: 5px 8px;
  border-radius: 4px;
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  white-space: wrap; /* einzeilig */
  font-size: 0.85rem;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.tooltip::after {
    content: "";
    position: absolute;
    top: 100%; /* Pfeil unterhalb vom Tooltip */
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: black transparent transparent transparent;
}

.icon-container:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

/* #endregion */

/* Contact Section */
.contact {
  padding-top: 0rem;
  padding-bottom: 4rem;
  /* background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px); */
}

.contact h2 {
  text-align: center;
}

.contact__container {
  /* max-width: 700px; */
  width: 100%;
  margin: 0 auto;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  background-color: #9c96963e;
}

.contact__form {
  margin-top: 2rem;
  margin-inline: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
}

label {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

input,
textarea {
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  background: #fff;
  color: #333;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

.submit-btn {
  background: var(--bg-color);
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border: 1px solid var(--text-color);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.submit-btn:hover {
  background: var(--accent-color);
  color: var(--bg-color);
}

.contact__alt {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.7);
  z-index: 999;
}

.popup-content {
  background: var(--bg-color);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  border: 1px solid var(--text-color);
}

.hidden {
  display: none;
}

#close-popup {
  margin-top: 1rem;
  background: #0077ff;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
}

/* Spinner */
.loader {
  border: 4px solid #ccc;
  border-top: 4px solid #0077ff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


.about-about__hero {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 60px;
  margin-block: 50px;
}

.highlighted-text {
  color: var(--accent-color);
}

.pre-footer-distance {
  padding-block: 2rem;
}

.footer__container {
  position: relative;
  z-index: 1; 
  width: 100%;
  margin: 0;
  padding: 0;
  border-top: 1px solid white;
}

.footer {
  width: 100%; 
  color: var(--text-color);
  background: #9c96963e;  
}

/* Container in der Mitte begrenzen */
.footer__inner {
  max-width: 1100px; /* gleiche Breite wie dein Body */
  margin: 0 auto;    /* zentriert */
  padding: 2rem 0rem 2rem 0rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer__left img {
  height: 40px;
  width: auto;
}

.footer__center {
  display: flex;
  gap: 1.5rem;
  font-size: 1.5rem;
}

.footer__center a {
  display: inline-flex;              
  justify-content: center;
  align-items: center;
  width: 40px;                       
  height: 40px;
  border: 2px solid #eee;           
  border-radius: 50%;                
  color: #eee;                       
  font-size: 1.2rem;
  margin: 0 0.3rem;
  transition: all 0.3s ease;
}

.footer__center a:hover {
  /* background: var(--accent-color);                   */
  color: var(--accent-color);     
  border: 2px solid var(--accent-color);           
  transform: scale(1.1);             
}

.footer__right {
  text-align: right;
  font-size: 0.85rem;
  line-height: 1.4;
}
/* =========================================
   4. Komponenten
========================================= */
.logo {
  width: 65px;
  height: auto;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

#lang-toggle, #theme-toggle {
  display: none;
  background-color: transparent;
}

.button {
  background-color: var(--text-color);
  color: var(--bg-color);
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 1rem;
  transition: opacity 0.2s ease;
}

.button:hover {
  opacity: 0.9;
  transform: scale(1.05);
  transition: all .2s ease-in-out;
}

.button--waving {
  background-color: var(--bg-color);
  color: var(--text-color);
  padding: 0.3rem 1rem;
  border: 1px solid var(--text-color);
  border-radius: 30px;
  cursor: pointer;
  font-size: 1rem;
  transition: opacity 0.2s ease;
}

.button--waving:hover {
  background-color: var(--accent-color);
  color: var(--bg-color);
}

.button--contact {
  background-color: var(--accent-color);
  color: var(--bg-color);
  border: 0.5px solid var(--accent-color);
} 

.button--cv {
  background-color: var(--bg-color);
  border: 1px solid var(--text-color);
  color: var(--text-color);
} 

.button--further {
  background-color: var(--accent-color);
  color: var(--bg-color);
  border: 0.5px solid var(--accent-color);
  margin: auto;
}

.hero__image {
  /* flex: 0 0 auto; */
  display: flex;
  flex: 0 0 auto;
  text-align: center;
  padding: 2%;
}

.hero__photo {
  width: 100%;
  max-width: 30rem; 
  height: auto;
  border-radius: 50%;
  background-color: var(--logo-color);
  border:3px solid var(--logo-color-not);
}

.hero__photo:hover {
  transform: scale(1.1);
  transition: all .2s ease-in-out;
  border-radius: 70% 30% / 50% 50%; /* weird looking shape */

}

.about-about__photo {
  width: 100%;
  width: 300px;
  max-width: 300px; 
  height: auto;
  border-radius: 50%;
  background-color: var(--logo-color);
  border:3px solid var(--logo-color-not);
}

.circled-icon {
  height: 30px;
  width: 100px;
  border: 2px solid white;
  padding: 10px;
  border-width: thin;
  justify-content: center;
}

.circled-icon:hover {
  color: var(--accent-color);
  border: 3px solid var(--accent-color);
  font-style: italic;
  font-weight: bold;
}

.back-to-top {
  position: fixed;
  bottom: 20px;   /* Abstand vom unteren Rand */
  right: 20px;    /* Abstand vom rechten Rand */
  padding: 10px;
  border-radius: 50%;
  border: none;
  background: var(--logo-color);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;  /* erst anzeigen wenn nötig */
  z-index: 1000;  /* über allen anderen Elementen */
  /* box-shadow: 0 4px 10px rgba(0,0,0,0.3); */
}

/* =========================================
   5. Hilfsklassen
========================================= */
.body-text {
  font-family: "Poppins",sans-serif;
  font-weight: 300;
  font-style: normal;
  color: var(--text-color);
}

.headline {
  font-family:"Poppins",sans-serif;
  font-weight: 600;
  font-style: bold;
  color: var(--text-color);
}

.dropcap {
  font-size: 1.5em;
  display: inline-block;
}

.fliptext-x {
  transform: scaleX(-1);
  display: inline-block;
}

.fliptext-y {
  transform: scaleY(-1);
  display: inline-block;
}

.follow-the-cursor {
  position: fixed;
  pointer-events: none;
  color: white;
  font-size: 1.5rem;
  transform: translate(-50%, -50%);
}

#cursor-bg {
  /* display: none; */
  position: absolute;
  width: 200px;
  height: 200px;
  background: var(--lamp-effect-color);
  border-radius: 50%;
  filter:blur(200px);
}

/* =========================================
   6. Responsive Styles
========================================= */

@media (max-width: 950px) {
      .hero {
      flex-direction: column;         /* Stapeln */
      align-items: center;            /* Zentrieren */
      text-align: center;             /* Text zentriert */
    }

    .hero__image {
      order: -1;                      /* Bild nach oben */
      margin-bottom: 20px;
    }

    .hero__content {
      flex: unset;                    /* Nimmt volle Breite */
    }

    .hero__buttons {
      justify-content: center;        /* Buttons mittig */
    }

    .about-about__hero {
    flex-direction: column;        /* stapeln */
    align-items: center;           /* zentrieren */
    text-align: center;            /* Text zentriert */
    gap: 30px;                     /* weniger Abstand */
  }

  .about-about__photo {
    order: -1;                     /* Bild nach oben */
    margin-bottom: 0;              /* Abstand wird durch gap geregelt */
    max-width: 200px;              /* optional etwas kleiner auf Mobile */
  }

  .about-about__content {
    flex: unset;                   /* volle Breite */
  }

}

@media (max-width: 768px) {
  
  .header {
  flex-direction: column; /* statt nebeneinander untereinander */
  align-items: center;
  }

  .navbar-container {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    align-items: center;
  }

  .nav-center {
    display: none;
  }

  .burger {
    display: block;
    text-align: right;
  }

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

  .modal {
    padding: 0;
  }

  .modal__content {
    width: 95%;
    max-height: 90vh; 
    padding: 1rem;
  }

  .modal__header h2 {
    font-size: 1.2rem;
    line-height: 1.3;
  }

  .modal__meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
  }

  .modal__close {
    top: 5px;
    right: 5px;
  }

  .footer__inner {
    flex-direction: column;
    padding: 3rem 0rem 3rem 0rem;
  }

  .footer__right {
    text-align: center;
  }

  }

  @media (max-width: 425px) {
    .logo-wrapper img{
      width: 3rem;
      height: auto;
    }

    .skills__list {
      gap: 0.3rem;
    }

    .skills__list li {
      background-color: var(--grey-tone);
      border-radius: 2rem;
      font-size: 0.6rem;
      gap: 0.5rem;
    }

    .skills__list li i {
      font-size: 0.8rem;
    }
  }
