:root {
  font-family: 'Inter', sans-serif;
  --navbar-height: 6rem;
  --footer-height: 10rem;
}


/* ============================
   Basis-Reset und Body
============================ */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #121212;
  color: #212529;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* ============================
   Preloader
============================ */
#preloader {
  z-index: 9999;
}

.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease-out;
}

/* ============================
   Sticky Header - Dunkel & Gold
============================ */
#header {
  position: sticky;
  top: 0;
  padding: 0.5rem 0;
  background-color: #0a0a0b !important;
  box-shadow: 0 2px 8px rgba(191, 161, 74, 0.4); /* goldener Schatten */
  border-bottom: 2px solid #bfa14a; /* feiner Gold-Rand */
  z-index: 1100;
}

/* Logo */
#header .navbar-brand img {
  max-height: 40px;
}

/* ============================
   Navigation Links
============================ */
#header .nav-link {
  position: relative;
  font-weight: 600;
  color: #d4c57b; /* helles Gold */
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
  letter-spacing: 0.05em;
  font-family: 'Inter', sans-serif;
}

#header .nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  width: 50%;
  height: 2px;
  background-color: #bfa14a; /* dunkleres Gold */
  border-radius: 2px;
  transition: transform 0.3s ease;
}

#header .nav-link.active::after,
#header .nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

#header .nav-link.active,
#header .nav-link:hover {
  color: #bfa14a; /* dunkles Gold */
  text-shadow: 0 0 6px #bfa14a;
}

/* Navbar Brand Text (falls du Text neben Logo hast) */
#header .navbar-brand {
  color: #bfa14a;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-family: 'Inter', sans-serif;
  transition: color 0.3s ease;
}

#header .navbar-brand:hover {
  color: #d4c57b;
  text-shadow: 0 0 8px #d4c57b;
}

/* ============================
   Navbar Toggler (Hamburger) 
============================ */
.navbar-toggler {
  border: none;
  outline: none;
}

.navbar-toggler-icon {
  filter: invert(80%) sepia(50%) saturate(700%) hue-rotate(30deg) brightness(90%) contrast(90%);
  transition: filter 0.3s ease;
}

.navbar-toggler:hover .navbar-toggler-icon,
.navbar-toggler:focus .navbar-toggler-icon {
  filter: invert(100%) sepia(70%) saturate(900%) hue-rotate(40deg) brightness(110%) contrast(110%);
}

/* ============================
   Responsive Anpassungen
============================ */
@media (max-width: 991.98px) {
  #header .nav-link::after {
    display: none !important;
  }

  #header .navbar-nav {
    align-items: center;
  }
}


/* ============================
   Allgmemeine Modal Styles
============================ */

.modal-backdrop {
  z-index: 1050 !important;
}

.modal {
  z-index: 1060 !important;
}


/* ============================
   Allgemeine Section Styles
============================ */
section {
  min-height: 100vh;
  scroll-margin-top: 68px;
  padding: 4rem 1rem;
}

.section-title {
  font-weight: 700;
  font-size: 2rem;
  color: #bfa14a;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
}

.section-description {
  font-size: 1.1rem;
  color: #6c757d;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
  word-wrap: break-word;
  text-align: center;
}

/* Section Divider */
hr {
  border-color: #5ad43bdc !important;
  border-width: 3px !important;
  width: 80px;
  margin: 1rem auto 2rem;
}


/* === ENTRY Section === */

#entry {
  position: relative;
  overflow: hidden;
  background: #0a0a0b !important;
  color: #f8f9fa;
}

/* Abstrakter animierter Farbverlauf in subtilen Farben */
#entry::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(191, 161, 74, 0.15), transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(212, 197, 123, 0.1), transparent 40%);
  animation: gradientShift 30s ease-in-out infinite alternate;
  z-index: -1;
  pointer-events: none;
}

@keyframes gradientShift {
  0% {
    transform: translate(0%, 0%) scale(1);
  }

  100% {
    transform: translate(25%, 25%) scale(1.2);
  }
}

#entry > * {
  position: relative;
  z-index: 1;
}

/* Überschrift H1 in Gold & mit Letterspacing */
#entry h1 {
  color: #bfa14a;
  letter-spacing: 0.1em;
  font-family: 'Inter', sans-serif;
  text-shadow: 0 0 8px rgba(191, 161, 74, 0.8);
}

/* H2 mit etwas dezenterem Goldton */
#entry h2 {
  color: #d4c57b;
  font-family: 'Inter', monospace;
  text-shadow: 0 0 5px rgba(212, 197, 123, 0.6);
}

/* Buttons mit goldener Farbwelt */
#entry .btn {
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 0 6px transparent;
}

/* Primärer Button – volles Gold */
#entry .btn-warning {
  background-color: #bfa14a;
  border-color: #bfa14a;
  color: #1a1a1a;
  box-shadow: 0 0 8px rgba(191, 161, 74, 0.7);
}

#entry .btn-warning:hover,
#entry .btn-warning:focus {
  background-color: #d4c57b;
  border-color: #d4c57b;
  color: #121212;
  box-shadow: 0 0 15px rgba(212, 197, 123, 0.9);
  transform: scale(1.05);
}

/* Outline Button – goldener Rand & Text */
#entry .btn-outline-warning {
  background-color: transparent;
  color: #d4c57b;
  border: 2px solid #bfa14a;
  box-shadow: 0 0 6px rgba(191, 161, 74, 0.4);
}

#entry .btn-outline-warning:hover,
#entry .btn-outline-warning:focus {
  background-color: #bfa14a;
  color: #1a1a1a;
  border-color: #d4c57b;
  box-shadow: 0 0 15px rgba(212, 197, 123, 0.9);
  transform: scale(1.05);
}


/* === MODAL FIX === */
.modal-backdrop {
  z-index: 1040 !important;
}

.modal {
  z-index: 1050 !important;
}

.modal-content {
  background-color: #2c2c2c;
  color: #f8f9fa;
  position: relative;
  z-index: 1060;
}

.modal-title {
  color: #bfa42b;
}

/* === Utility Farben === */
.text-muted,
.text-secondary,
.text-dark {
  color: #ffffff !important;
}

.bg-light {
  background-color: #1a1a1a !important;
}

.bg-dark {
  background-color: #121212 !important;
}

.golden {
  color: #bfa14a !important;
}

/* ============================
   Who Section – Explorer-Window Style
============================ */

#who {
  background: linear-gradient(145deg, #1c1c1c, #2a2a2a);
  max-width: 900px;
  margin: 2rem auto;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(191, 161, 74, 0.5); /* Golden Shadow */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  user-select: none;
}

/* Vereinheitlichter Terminal Header */
.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #2a2a2a;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-bottom: 1px solid #444;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.terminal-header .buttons {
  display: flex;
  gap: 0.6rem;
}

.terminal-header .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: inset 0 0 1.5px rgba(0, 0, 0, 0.5);
}

.terminal-header .dot.red {
  background: #ff5f56;
}

.terminal-header .dot.yellow {
  background: #ffbd2e;
}

.terminal-header .dot.green {
  background: #27c93f;
}

.terminal-header .title {
  flex-grow: 1;
  margin-left: 1rem;
  font-weight: 600;
  color: #bfa14a !important;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-shadow: 0 0 6px rgba(0, 255, 13, 0.4);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Card als Fensterinhalt */
#who .card {
  background: #000;
  border-radius: 0 0 10px 10px;
  border: none;
  box-shadow:
    inset 0 0 8px rgba(191, 161, 74, 0.5), /* Golden */
    0 0 15px rgba(191, 161, 74, 0.3);
  padding: 2rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

#who .card:hover {
  transform: scale(1.01);
  box-shadow:
     inset 0 0 12px rgba(191, 161, 74, 0.5), /* Golden */
    0 0 30px rgba(191, 161, 74, 0.3);
}

#who .img-fluid {
  filter: contrast(150%) brightness(90%);
  border-radius: 1rem;
  box-shadow: 0 0 25px rgba(191, 161, 74, 0.5);
  border: 3px solid #bfa14a;
  transition: filter 0.3s ease;
  position: relative;
  display: inline-block;
}

#who .img-fluid:hover {
  filter: contrast(150%) brightness(90%);
  animation: glitch 0.5s infinite;
}

#who .img-fluid {
  position: relative;
  border-radius: 1rem;
  border: 3px solid #bfa14a;
box-shadow: 0 0 25px rgba(191, 161, 74, 0.5);
  filter: contrast(150%) brightness(90%);
  transition: filter 0.3s ease;
  display: inline-block;
  z-index: 1;
  overflow: hidden;
}

.glitch-wrapper {
  position: relative;
  display: inline-block;
  border-radius: 1rem;
  overflow: hidden;
  border: 3px solid #bfa14a;
  box-shadow: 0 0 25px rgba(191, 161, 74, 0.5);
}

.img-base {
  display: block;
  width: 100%;
  filter: contrast(150%) brightness(90%);
  border-radius: 1rem;
  transition: 0.3s ease;
}

.img-glitch {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: screen;
  opacity: 0;
  border-radius: 1rem;
  pointer-events: none;
  animation: none;
}

.glitch-wrapper:hover .img-glitch {
  opacity: 1;
  animation: glitchAnim 0.4s infinite;
}

@keyframes glitchAnim {
  0% {
    transform: translate(0, 0);
    clip-path: inset(0% 0 90% 0);
    filter: hue-rotate(0deg);
  }

  20% {
    transform: translate(-2px, 2px);
    clip-path: inset(20% 0 60% 0);
    filter: hue-rotate(60deg);
  }

  40% {
    transform: translate(2px, -2px);
    clip-path: inset(40% 0 40% 0);
    filter: hue-rotate(120deg);
  }

  60% {
    transform: translate(-1px, 1px);
    clip-path: inset(60% 0 20% 0);
    filter: hue-rotate(180deg);
  }

  80% {
    transform: translate(1px, -1px);
    clip-path: inset(80% 0 10% 0);
    filter: hue-rotate(240deg);
  }

  100% {
    transform: translate(0, 0);
    clip-path: inset(0% 0 90% 0);
    filter: hue-rotate(0deg);
  }
}

#who h2,
#who h3.section-title {
  color: #bfa14a;
  text-shadow: /* Goldener Schimmer */
    0 0 5px rgba(191, 161, 74, 0.5),
    0 0 10px rgba(191, 161, 74, 0.3),
}

/* GOLDEN GLOW TEXT */
.glow-text {
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.15),
    0 0 20px rgba(191, 161, 74, 0.6),
    0 0 35px rgba(191, 161, 74, 0.4);
}

#who code {
  color: #bfa14a;
  background: rgba(255, 255, 255, 0.15),
              linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));  
  padding: 0.3rem 0.7rem;
  border-left: 3px solid #7dce58;
  border-radius: 5px;
  font-weight: 600;
  font-family: 'Fira Code', monospace;
  user-select: text;
}

#who p,
#who .css-typing p {
  color: #f8f9fa;
}

#who .contact-email a {
  background: rgba(191, 161, 74, 0.6);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-weight: 600;
  color: #ff4e4e;
  text-decoration: none;
  transition: background-color 0.3s ease;
  user-select: text;
}

#who .contact-email a:hover,
#who .contact-email a:focus {
  background-color: rgba(255, 0, 0, 0.25);
  color: #fff;
}

#who hr {
  border-color: rgba(191, 161, 74, 0.5) !important; /* Golden */
  margin: 1.5rem 0;
}

.p-4 {
  border-radius: 0.5rem;
  border: 1px solid #bfa14a;
  background-color: #35353567;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
  #who .text-start {
    text-align: center !important;
  }

  #who .img-fluid {
    margin-bottom: 1.5rem;
  }

  .terminal-header {
    display: flex;
    align-items: center;
    background: #2e2e2e;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-bottom: 1px solid #444;
  }

  .terminal-header .buttons {
    display: flex;
    gap: 0.6rem;
    align-items: center;
  }

  .terminal-header .dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: inset 0 0 1.5px rgba(0, 0, 0, 0.5);
    cursor: pointer;
  }

  .terminal-header .red {
    background: #ff5f56;
  }

  .terminal-header .yellow {
    background: #ffbd2e;
  }

  .terminal-header .green {
    background: #27c93f;
  }

  .terminal-title {
    flex-grow: 1;
    margin-left: 1rem;
    color: #aaa;
  }

  .terminal-header .title {
    font-size: 1rem;
    margin-top: 0.5rem;
  }

  #who .card {
    padding: 1.5rem;
  }
}




/* ============================
   Terminal Wrapper
============================ */
.terminal-wrapper {
  max-width: 720px;
  margin: auto;
  background: #1e1e1e;
  color: #cfd8dc;
  font-family: 'Source Code Pro', monospace;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #333;
  display: block; /* sicherstellen, dass Wrapper angezeigt wird */
}

/* ============================
   Terminal Tabs (Desktop)
============================ */
.terminal-tabs {
  display: flex;
  border-bottom: 1px solid #444;
}

.tab-button {
  flex: 1;
  padding: 0.5rem;
  background: #2a2a2a;
  color: #ccc;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  text-transform: uppercase;
  transition: background 0.3s ease;
  border: #000 1px solid;
}

.tab-button:hover {
  background: #3a3a3a;
}

.tab-button.active {
  background: #1e1e1e;
  border-bottom: 3px solid #61cf56;
  color: #61cf56;
}

/* ============================
   Terminal Content
============================ */
.terminal-body {
  padding: 1rem 0;
  font-size: 0.85rem;
  overflow: hidden;
  white-space: nowrap;
  word-break: normal;
  min-height: 160px;
  background: rgba(20, 20, 20, 0);
  border-radius: 0.5rem;
  border: 1px solid #bfa14a;
  position: relative;
  color: rgb(0, 255, 70);
}

.terminal-tab {
  display: none;
  text-align: left !important;
  font-family: 'Source Code Pro', monospace !important;
  font-size: 0.85rem !important;
  white-space: pre !important;
  line-height: 1.4;
  overflow-x: visible;
  word-break: normal !important;
  padding: 0 1rem;
  margin: 0;
  background-color: transparent;
}

.terminal-tab.active {
  display: block;
  color: rgb(0, 255, 70);
}

.terminal-tab.active code {
  color: rgb(0, 255, 70) !important;
}



/* ============================
   Mobile Buttons für Modals
============================ */
.mobile-terminal-buttons {
  display: none; /* default: ausblenden */
}

@media (max-width: 768px) {
  .terminal-header {
    font-size: 0.75rem;
  }

  .terminal-title,
  .terminal-clock {
    font-size: 0.7rem;
  }

  .tab-button {
    font-size: 0.65rem;
    padding: 0.4rem;
  }

  .terminal-body,
  .terminal-tabs {
    display: none !important;
  }

  .terminal-tab {
    display: none !important;
  }

  .mobile-terminal-buttons {
    display: flex !important;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
  }
}

@media (min-width: 769px) {
  .mobile-terminal-buttons {
    display: none !important;
  }
}

/* Modal Container Glass & Background */
.modal-content.glass-effect {
  background-color: rgba(20, 20, 20, 0.9);
  color: #00ff99; /* sanftes Neongrün */
  border-radius: 14px;
  border: 1.5px solid rgba(0, 255, 153, 0.6);
  box-shadow:
    0 0 10px rgba(0, 255, 153, 0.4),
    inset 0 0 8px rgba(0, 255, 153, 0.3);
  font-family: 'Source Code Pro', monospace;
  overflow: hidden;
  transition: box-shadow 0.3s ease-in-out;
}

/* Beim Hover/Focus für subtilen Glow */
.modal-content.glass-effect:hover,
.modal-content.glass-effect:focus-within {
  box-shadow:
    0 0 20px rgba(0, 255, 153, 0.8),
    inset 0 0 15px rgba(0, 255, 153, 0.6);
}

/* Header Styling */
.modal-header {
  background-color: #121212;
  border-bottom: 1px solid rgba(191, 161, 74, 0.3);
  color: #bfa14a !important;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  font-family: 'Source Code Pro', monospace;
  text-shadow:
    0 0 6px rgba(0, 255, 153, 0.7);
}

/* Close Button Styling */
.modal .btn-close {
  filter: invert(1);
  transition: filter 0.2s ease;
  cursor: pointer;
}

.modal .btn-close:hover,
.modal .btn-close:focus {
  filter: invert(0.7) drop-shadow(0 0 4px #00ff99);
}

/* Modal Body & Code */
.modal-body pre {
  background: transparent;
  color: #00ff99; /* Golden Text */
  font-family: 'Source Code Pro', monospace;
  font-size: 0.95rem;
  white-space: pre-wrap;
  padding-left: 0.75rem;
  margin: 0;
  line-height: 1.45;
  user-select: text;
  text-shadow:
    0 0 2px rgba(0, 255, 153, 0.5);
}

/* Inner code tag */
.modal-body pre code {
  display: block;
  text-align: left;
  word-break: break-word;
}

/* Responsive Anpassung */
@media (max-width: 768px) {
  .modal-body pre {
    font-size: 0.82rem;
    padding-left: 0.4rem;
  }
}

.modal.fade .modal-dialog {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal.fade.show .modal-dialog {
  opacity: 1;
  transform: translateY(0);
}

/* ============================
   bit-tools Section
============================ */

/* Hintergrund-Glow-Effekt */
#bit-tools::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(217, 83, 79, 0.4) 0%, transparent 70%);
  filter: blur(45px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
}

/* Container relativ positionieren */
#bit-tools > .container {
  position: relative;
  z-index: 10;
}

/* Grid-System für Cards: flex mit Lücken */
#bit-tools #bit-tools-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

/* Wrapper falls benötigt */
.bit-tools-wrapper {
  display: flex;
  flex-direction: column;
}

/* Header: Höhe fixieren (Titel + Filter) */
.bit-tools-header {
  min-height: 180px;
}

/* Card Basis-Stil */
.service-card {
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 1;
  transform: scale(1);
  display: block; /* Standard */
  pointer-events: auto;
}

/* Ausgeblendete Cards: keine Positionierung (kein absolute), z-Index unten */
.service-card.hide {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* Animation für reinfahrende Cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-card {
  animation: fadeInUp 0.5s ease;
}

/* Grid für Cards: Automatische Spalten mit min/max Breite */
.bit-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Sticky Header Position */
.sticky-top {
  top: 70px; /* passend zum fixen Navbar-Header */
}

/* Responsive Layout */

/* Desktop (>=992px): 4 pro Zeile */
@media (min-width: 992px) {
  #bit-tools .service-card {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

/* Tablet (<=991px): 2 pro Zeile */
@media (max-width: 991px) {
  #bit-tools .service-card {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Mobile (<=575px): 1 pro Zeile */
@media (max-width: 575px) {
  #bit-tools .service-card {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Filter Buttons: flex-wrap & spacing */
#bit-tools .btn-group {
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

/* Mobile Filter Buttons: 2 pro Reihe */
@media (max-width: 576px) {
  #bit-tools .btn-group .btn {
    flex: 1 1 45%;
  }
}

/* Card Styling */
#bit-tools .service-card .card {
  width: 100%;
  padding: 1.2rem !important;
  border-radius: 1rem;
  background-color: rgba(30, 30, 30, 0.85);
  backdrop-filter: blur(5px);
  box-shadow: 0 0 6px rgba(217, 83, 79, 0.2);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Hover Effekt */
#bit-tools .service-card .card:hover {
  box-shadow:
    0 0 12px rgba(217, 83, 79, 0.4),
    0 0 24px rgba(217, 83, 79, 0.6),
    0 0 36px rgba(217, 83, 79, 0.8);
  transform: translateY(-8px);
}

/* Icon Styling */
#bit-tools .service-card i {
  font-size: 1.6rem !important;
  margin-bottom: 0.7rem;
  color: #bfa42b;
  text-align: center;
}

/* Titel Styling */
#bit-tools .service-card h5 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  text-align: center;
  color: #fff;
}

/* Beschreibung Styling */
#bit-tools .service-card p {
  font-size: 0.85rem;
  line-height: 1.3;
  margin-bottom: 0;
  color: #ccc;
  text-align: center;
}

/* Aktiver Filter-Button */
#bit-tools .btn-group .btn.active {
  background-color: #d9534f;
  color: #fff;
  border-color: #d9534f;
}

/* Blur Utility */
.backdrop-blur {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Modal Styling */
.modal-content {
  border-radius: 1rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

/* List Hover */
.list-group-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

/* Allgemeine Modal Styles für Bit-Imperii */

.modal-content {
  background-color: #1e1e1e; /* dunkler, edler Hintergrund */
  border-radius: 1rem;
  border: 1px solid #bfa42b; /* Bit-Imperii-Gold als Akzent */
  box-shadow:
    0 0 20px rgba(217, 83, 79, 0.6),
    inset 0 0 10px rgba(255, 83, 83, 0.3);
  color: #f0f0f0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  max-width: 600px;
  margin: 1.5rem auto;
  padding: 1.5rem 2rem;
  position: relative;
  overflow: hidden;
}

.modal-header {
  border-bottom: 1px solid #bfa42b;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-weight: 900;
  font-size: 1.5rem;
  color: #bfa42b;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 0 8px #bfa42b;
  margin: 0;
  user-select: none;
}

.btn-close {
  filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(104%) contrast(104%);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.btn-close:hover {
  opacity: 1;
  filter: invert(70%) sepia(75%) saturate(500%) hue-rotate(330deg) brightness(120%) contrast(105%);
}

.modal-body {
  font-size: 1rem;
  line-height: 1.5;
  color: #ccc;
  user-select: text;
}

.modal-footer {
  border-top: 1px solid rgba(191, 164, 43, 0.8);
  padding-top: 1rem;
  margin-top: 1.5rem;
  text-align: right;
}

.modal-footer .btn-outline-light {
  border-color: rgba(191, 164, 43, 0.8);
  color: rgba(191, 164, 43, 0.8);
  font-weight: 700;
  padding: 0.5rem 1.2rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  user-select: none;
}

.modal-footer .btn-outline-light:hover {
  background-color: rgba(191, 164, 43, 0.8);
  color: #1e1e1e;
  box-shadow:
    0 0 10px rgba(191, 164, 43, 0.8),
    0 0 20px rgba(191, 164, 43, 0.8);
}

/* Scrollbar für Modal-Body falls zu lang */
.modal-body {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
  background-color: #bfa42b;
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;
}

/* Responsive */
@media (max-width: 576px) {
  .modal-content {
    padding: 1rem 1.2rem;
    max-width: 90vw;
  }
  .modal-title {
    font-size: 1.2rem;
  }
}









/* ============================
   Realworld Section
============================ */

#realworld {
  background-color: #121212;
  color: #eee;
  position: relative;
  z-index: 1;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

#realworld .section-title {
  color: #bfa42b; /* edles Gold */
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 900;
  /* subtiler Glow nur unten */
  text-shadow: 0 2px 6px rgba(191, 164, 43, 0.6);
  margin-bottom: 1rem;
}

#realworld hr {
  border-top: 3px solid #bfa42b;
  width: 80px;
  margin: 0 auto 2rem;
  box-shadow: 0 0 6px rgba(191, 164, 43, 0.5);
}

#realworld .modal-title{
  font-size: smaller !important;
}

#realworld .section-description {
  color: #bbb;
  font-weight: 500;
  margin-bottom: 3rem;
  font-size: 1.2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

#realworld .skill-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}


#realworld .skill-card:hover {
  box-shadow: 0 0 16px rgba(191, 164, 43, 0.8);
  border-color: #bfa42b;
  transform: translateY(-6px);
  color: #fff;
}

.skill-icon {
  color: #bfa42b; /* Gold für Icons */
  transition: color 0.3s ease;
}

.skill-card:hover .skill-icon {
  color: #ffd65b; /* helleres Gold beim Hover */
}

.skill-card h5 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: #f3eac2; /* warmes, leicht gebrochenes Gold */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.skill-card ul {
  padding-left: 1.25rem;
  list-style: none;
}

.skill-card ul li {
  position: relative;
  margin-bottom: 0.75rem;
  color: #ccc;
  font-size: 0.95rem;
}

.skill-card ul li i {
  color: #bfa42b;
  margin-right: 0.5rem;
}

/* Modal Styling */
#realworld .modal-content {
  border-radius: 1rem;
  border: 2px solid #bfa42b !important;
  background-color: #1c1c1c;
  color: #eee;
  box-shadow: 0 0 20px rgba(191, 164, 43, 0.8);
}

/* Responsive Tweaks */
@media (max-width: 767px) {
  #realworld .section-description {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  .skill-card {
    padding: 1.5rem;
  }
}




/* ============================
   Preise Section
============================ */

@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

#preise .card {
  animation: fadeSlideUp 0.6s ease forwards;
  animation-delay: 0.1s;
  opacity: 0;
  /* Start unsichtbar */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#preise .card:nth-child(1) {
  animation-delay: 0.1s;
}

#preise .card:nth-child(2) {
  animation-delay: 0.2s;
}

#preise .card:nth-child(3) {
  animation-delay: 0.3s;
}

#preise .card:nth-child(4) {
  animation-delay: 0.4s;
}

#preise .card:nth-child(5) {
  animation-delay: 0.5s;
}

#preise .card:nth-child(6) {
  animation-delay: 0.6s;
}

#preise .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(191, 164, 43, 0.8);
}

.btn-custom {
  background-color: #2e2d2dbb;
  border-color: rgba(191, 164, 43, 0.8);
  color: #46da52c7;
  font-weight: 600;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  box-shadow: 0 0 8px rgba(106, 222, 91, 0.733);
}

.btn-custom:hover,
.btn-custom:focus {
  box-shadow: 0 0 15px 4px rgba(134, 217, 79, 0.89);
  transform: scale(1.05);
}

.btn-custom:hover {
  background-color: #1a1a1a;
  color: #ffffff;
  border-color: #15fd0d;
  /* Bootstrap-Blau */
}



.no-wrap {
  white-space: nowrap;
}

.list-group-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}

@media (max-width: 400px) {
  .list-group-item {
    font-size: 0.9rem;
  }
  .no-wrap {
    white-space: normal; /* falls sonst zu lang */
  }
}

/* ============================
   Nerdism Section
============================ */

#nerdism {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1a1a 0%, #111 80%);
  color: #e0e0e0;
  padding: 3rem 1rem;
  overflow: hidden;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

#nerdism::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-position: 0 0, 25px 25px;
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
  animation: subtleShift 30s linear infinite;
}

@keyframes subtleShift {
  0% {
    background-position: 0 0, 25px 25px;
  }

  100% {
    background-position: 50px 50px, 75px 75px;
  }
}

/* Floating Icons – mittig positioniert, horizontal, mit Opacity & Animation */
.floating-icons {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  opacity: 0.3;
  gap: 1.2rem;
  /* angepasst auf schmaler */
  z-index: 1;
  max-width: 320px;
  font-size: 3rem;
  /* Größe der Icons */
  pointer-events: none;

}


.float-icon {
  animation: floatAround 6s ease-in-out infinite;
  color: inherit;
  user-select: none;
}

.float-icon:nth-child(1) {
  animation-delay: 0s;
}

.float-icon:nth-child(2) {
  animation-delay: 1.5s;
}

.float-icon:nth-child(3) {
  animation-delay: 3s;
}

.float-icon:nth-child(4) {
  animation-delay: 4.5s;
}

@keyframes floatAround {

  0%,
  100% {
    transform: translateY(0) translateX(0);
    opacity: 0.5;
  }

  50% {
    transform: translateY(-15px) translateX(10px);
    opacity: 0.7;
  }
}

/* ============================
   FLACKER HEADING
============================ */
.led-heading {
  font-family: 'Courier New', Courier, monospace;
  font-weight: 900;
  font-size: 2rem;
  text-transform: uppercase;
  color: #00fff7;
  letter-spacing: 0.15em;
  position: relative;
  text-shadow:
    0 0 5px #00fff7,
    0 0 10px #00fff7,
    0 0 20px #00fff7,
    0 0 40px #00b2aa,
    0 0 80px #00b2aa,
    0 0 90px #00b2aa,
    0 0 100px #00b2aa,
    0 0 150px #00b2aa;
  animation: led-flicker 2s infinite alternate;
}

@keyframes led-flicker {
  0%, 100% {
    text-shadow:
      0 0 5px #00fff7,
      0 0 10px #00fff7,
      0 0 20px #00fff7,
      0 0 40px #00b2aa,
      0 0 80px #00b2aa,
      0 0 90px #00b2aa,
      0 0 100px #00b2aa,
      0 0 150px #00b2aa;
  }
  50% {
    text-shadow:
      0 0 3px #00fff7,
      0 0 6px #00fff7,
      0 0 10px #00fff7,
      0 0 20px #00b2aa,
      0 0 40px #00b2aa,
      0 0 45px #00b2aa,
      0 0 50px #00b2aa,
      0 0 75px #00b2aa;
  }
}





/* ===== CONTACT SECTION ===== */
#contact {
  width: 100%;
  min-height: calc(100vh - var(--navbar-height) - var(--footer-height));
  background-color: #1b1b1b;
  /* etwas dunkler als bg-dark, eleganter */
  color: #eee;
}

#contact::before {
  content: '';
  display: block;
  height: 6rem;
  margin-top: -6rem;
  visibility: hidden;
}


/* Beschreibung */
#contact .section-description {
  font-size: 1.2rem;
  color: #ccc;
  font-weight: 500;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Formularcontainer */
#contactForm {
  background: #292929;
  padding: 2rem 2.5rem;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(191, 164, 43, 0.3);
  max-width: 600px;
  margin: 0 auto;
  transition: background-color 0.3s ease;
}

/* Formularfelder */
#contactForm .form-control {
  background-color: #1f1f1f;
  color: #eee;
  border: 1.5px solid #bfa42b;
  border-radius: 6px;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#contactForm .form-control:focus {
  border-color: #bfa42b;
  box-shadow: 0 0 8px #bfa42b;
  background-color: #2a2a2a;
  color: #fff;
}

/* Labels */
#contactForm label {
  color: #f8f8f8;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

/* Validierungsfehler */
#contactForm .is-invalid {
  border-color: #e74c3c !important;
  background-color: #2a1f1f !important;
}

#contactForm .invalid-feedback {
  color: #e74c3c;
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

/* Button */
#contactForm button[type="submit"] {
  background-color: #bfa42b;
  border-color: #558d16c7;
  padding: 0.85rem 3rem;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 6px;
  box-shadow: 0 6px 15px rgba(102, 217, 79, 0.801);
  transition: background-color 0.25s ease, transform 0.15s ease;
}

#contactForm button[type="submit"]:hover,
#contactForm button[type="submit"]:focus {
  background-color: #558d16c7;
  border-color: #bfa42b;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(127, 255, 77, 0.8);
  outline: none;
}

/* Erfolgsmeldung */
#successMessage {
  max-width: 600px;
  margin: 1rem auto 0 auto;
  font-weight: 700;
  font-size: 1.2rem;
}

/* Responsive Anpassungen (Smartphones) */
@media (max-width: 576px) {
  #contact .section-title {
    font-size: 1.6rem;
  }

  #contact .section-description {
    font-size: 1rem;
    max-width: 100%;
    padding: 0 1rem;
  }

  #contactForm {
    padding: 1.5rem 1.5rem;
    max-width: 100%;
    box-shadow: none;
    border-radius: 0;
  }

  #contactForm .form-control {
    font-size: 0.95rem;
    padding: 0.6rem 0.8rem;
  }

  #contactForm button[type="submit"] {
    width: 100%;
    padding: 0.9rem 0;
    font-size: 1.1rem;
  }
}

/* Subtile Animation: ggf. etwas mehr Lebendigkeit */
.contact-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(217, 83, 79, 0.1), transparent 70%);
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
}



/* ============================
   Footer
============================ */
#footer {
  background-color: #121212;
  color: #f8f9fa;
  padding: 2rem 0;
  text-align: center;
  width: 100%;
  z-index: 10;
}


#footer a:hover {
  color: #bfa42b !important;
  text-shadow: 0 0 5px #dc3545;
}




/* ============================
   Scroll to Top Button
============================ */
#scrollTopBtn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#scrollTopBtn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#scrollTopBtn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 0 8px rgba(0, 255, 200, 0.3);
  color: #bfa42b;
}


