/* --- VARIABLEN (Binance Inspired Palette) --- */
:root {
  --bg-body: #181a20;
  --bg-card: #2b3139;
  --primary: #fcd535;
  --primary-hover: #e5c12e;
  --text-main: #eaecef;
  --text-muted: #848e9c;
  --font-main: "IBM Plex Sans", sans-serif;
}

/* --- RESET & BASIS --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- TYPOGRAFIE --- */
h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 20px;
  font-weight: 700;
}
h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  text-align: center;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--text-main);
}
p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.text-highlight {
  color: var(--primary);
}
.dot {
  color: var(--primary);
}

/* --- HELFER-KLASSEN --- */
.text-center {
  text-align: center;
}

.max-width-600 {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- BUTTONS --- */
.btn-primary {
  background-color: var(--primary);
  color: #181a20;
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: 600;
  transition: transform 0.2s ease, background-color 0.3s;
  display: inline-block;
  text-align: center;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  padding: 12px 30px;
  border: 1px solid var(--text-muted);
  border-radius: 4px;
  margin-left: 10px;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* --- NAVIGATION --- */
.navbar {
  padding: 0 20px;
  background-color: rgba(24, 26, 32, 0.98);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #2b3139;
  height: 80px;
  backdrop-filter: blur(10px);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  height: 100%;
  position: relative;
  z-index: 1002;
}

.logo-text-link {
  display: flex;
  align-items: center;
  color: var(--text-main);
  text-decoration: none;
}

.logo-icon {
  height: 30px;
  width: auto;
  margin-right: 8px;
  display: block;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}
.nav-links a:not(.btn-primary) {
  font-weight: 500;
  transition: color 0.3s;
}
.nav-links a:not(.btn-primary):hover {
  color: var(--primary);
}

.burger {
  display: none;
  cursor: pointer;
  z-index: 1002;
}
.burger div {
  width: 25px;
  height: 3px;
  background-color: var(--text-main);
  margin: 5px;
  transition: all 0.3s ease;
}

/* --- HERO SECTION --- */
.hero {
  padding: 100px 0;
  display: flex;
  align-items: center;
  min-height: calc(80vh - 80px);
}

.hero-content {
  max-width: 800px;
}
.hero p {
  margin-bottom: 30px;
  max-width: 600px;
  font-size: 1.2rem;
}

/* --- SECTIONS GENERAL --- */
.section {
  padding: 80px 0;
}
.bg-darker {
  background-color: #0b0e11;
}

/* --- CARDS (SERVICES) --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background-color: var(--bg-card);
  padding: 40px;
  border-radius: 12px;
  transition: transform 0.3s, border 0.3s;
  border: 1px solid transparent;
}

.card:hover {
  transform: translateY(-5px);
  border: 1px solid var(--primary);
}

.icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

/* --- PORTFOLIO GRID STYLES (Neu) --- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.project-card {
  background: #23252b;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease;
}
.project-card:hover {
  transform: translateY(-5px);
  border-color: #fca311;
}
.project-img {
  width: 100%;
  height: 220px;
  background-color: #333;
  object-fit: cover;
}
.project-content {
  padding: 25px;
}
.project-tag {
  display: inline-block;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
  color: #ccc;
}

/* --- REVIEW GRID STYLES (Neu) --- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.review-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.stars {
  color: #fca311;
  margin-bottom: 15px;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

/* --- KONTAKT FORMULAR --- */
.contact-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--bg-card);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid transparent;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.9rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 15px;
  background-color: #181a20;
  border: 1px solid #474d57;
  border-radius: 4px;
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(252, 213, 53, 0.2);
}

::placeholder {
  color: #5e6673;
}

/* --- FOOTER --- */
footer {
  padding: 40px 0;
  border-top: 1px solid #2b3139;
  text-align: center;
  color: var(--text-muted);
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
}

.footer-links {
  margin-top: 10px;
  font-size: 0.9rem;
}
.footer-links a {
  color: var(--text-muted);
  margin: 0 10px;
  transition: color 0.3s;
}
.footer-links a:hover {
  color: var(--primary);
}

/* --- LANGUAGE SWITCHER --- */
.lang-wrapper {
  position: relative;
  cursor: pointer;
}

.lang-btn {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.3s;
}

.lang-btn:hover {
  color: var(--text-main);
}

.lang-btn .arrow {
  font-size: 0.8rem;
  transition: transform 0.3s;
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--bg-card);
  min-width: 140px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.lang-dropdown li {
  display: block;
  width: 100%;
  margin: 0;
}

.lang-dropdown a {
  display: block;
  padding: 8px 15px;
  font-size: 0.95rem;
  color: var(--text-main);
  white-space: nowrap;
  transition: background 0.2s;
}

.lang-dropdown a:hover {
  background-color: rgba(252, 213, 53, 0.1);
  color: var(--primary);
}

.lang-wrapper:hover .lang-dropdown {
  opacity: 1;
  visibility: visible;
  top: 120%;
}

.lang-wrapper:hover .arrow {
  transform: rotate(180deg);
}

/* --- TEAM BEREICH --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  justify-content: center;
  margin-top: 50px;
}

.team-card {
  background-color: var(--bg-card);
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid transparent;
  transition: transform 0.3s, border 0.3s;
}

.team-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.profile-img-container {
  width: 150px;
  height: 150px;
  margin: 0 auto 20px auto;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary);
  background-color: #181a20;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-role {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.about-intro-text {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: var(--text-muted);
  line-height: 1.8;
}

/* --- POPUP NOTIFICATION (Fix für Mobile) --- */
.notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #23252b;
  color: #fff;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;

  /* Start-Zustand: Unsichtbar und verschoben */
  transform: translateY(150px);
  opacity: 0;
  visibility: hidden; /* WICHTIG: Versteckt das Element komplett */

  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  z-index: 9999;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.95rem;
}

.notification.show {
  /* Wenn aktiv: Sichtbar und am Platz */
  transform: translateY(0);
  opacity: 1;
  visibility: visible; /* WICHTIG: Macht es wieder sichtbar */
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Mobile Anpassung */
@media (max-width: 600px) {
  .notification {
    bottom: 20px;
    left: 20px;
    right: 20px;
    justify-content: center; /* Text zentriert auf Handy */
  }
}

/* --- MOBILE OPTIMIERUNG --- */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 70px;
  }

  .navbar {
    height: 70px;
    padding: 0 20px;
  }

  .nav-container {
    width: 100%;
  }

  .logo {
    font-size: 1.3rem;
  }
  .logo-icon {
    height: 26px;
    margin-right: 6px;
  }

  .nav-right {
    gap: 20px;
  }

  /* Slide-Out Menü */
  .nav-links {
    position: fixed;
    top: 70px;
    right: 0;
    height: auto;
    padding-bottom: 40px;
    width: 60%;
    max-width: 260px;
    background-color: rgba(43, 49, 57, 0.92);
    backdrop-filter: blur(10px);
    box-shadow: -5px 5px 20px rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    padding-top: 30px;
    gap: 25px;
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
  }

  .nav-links.nav-active {
    transform: translateX(0%);
  }

  .nav-links li {
    opacity: 1;
    margin: 0;
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  .burger {
    display: block;
    cursor: pointer;
  }

  .toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  .toggle .line2 {
    opacity: 0;
  }
  .toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  /* Sprach-Menü Korrektur Mobile */
  .lang-dropdown {
    left: auto;
    right: 0;
    transform: none;
  }

  .lang-wrapper:hover .lang-dropdown {
    top: 100%;
  }

  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .cta-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  .btn-secondary {
    margin-left: 0;
  }
  .hero {
    min-height: 60vh;
    text-align: center;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero p {
    max-width: 100%;
  }
  .contact-wrapper {
    padding: 20px;
  }
  .team-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* Notification Mobile */
  .notification {
    bottom: 20px;
    left: 20px;
    right: 20px;
    justify-content: center;
  }
}
