:root {
    --bg-color: #000410;
    --accent-color: #9b5de5;
    --text-color-dark: #fff;
    --text-color-light: #000;
}

/* ========== Base Styles ========== */
html {
    scroll-behavior: smooth;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: var(--bg-color);
    color: var(--text-color-dark);
    overflow-x: hidden;
    position: relative;
}

body.light-mode {
    --bg-color: #f4f4f4;
    --text-color-dark: #000;
}

.section-header {
    margin-bottom: 3rem;
  }
  
.section-line {
  width: 60px;
  height: 4px;
  background-color: var(--accent-color);
  margin: 0 auto 1rem auto;
  border-radius: 2px;
}

.section-title {
  font-weight: bold;
} 

/* ========== Typography & Colors ========== */
body.light-mode h1,
body.light-mode p,
body.light-mode .nav-link,
body.light-mode .btn-animated,
body.light-mode .navbar-brand,
body.light-mode .container,
body.light-mode .svg-wrapper {
    color: var(--text-color-dark);
}

.navbar-brand {
    color: var(--text-color-dark);
    text-decoration: none;
}

.navbar-brand:hover {
    color: var(--accent-color);
}

body.light-mode .navbar-brand:hover {
    color: var(--accent-color);
}

#themeToggle i {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-style: normal;
    line-height: 1;               
    font-size: 1.2rem;           
    color: #000;
}
  

/* ========== Navbar ========== */
.navbar {
    background-color: var(--bg-color);
    z-index: 2000;
    top: 0;
}

.navbar-toggler {
    outline: none;
    box-shadow: none;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
}

.navbar-toggler.glowing {
    box-shadow: 0 0 0 0.25rem rgba(155, 93, 229, 0.5);
    transition: box-shadow 0.3s ease;
}

body.light-mode .navbar-toggler {
    border-color: rgba(0, 0, 0, 0.2);
}

body:not(.light-mode) .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.2);
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

body:not(.light-mode) .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

body.light-mode .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='black' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
  
.nav-link {
    color: var(--text-color-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--accent-color) !important;
  font-weight: 600;
}

.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.show,
.navbar-nav .nav-link.active {
  background-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  color: inherit;
}

body.light-mode .nav-link {
  color: var(--text-color-dark);
}

body.light-mode .nav-link:hover,
body.light-mode .navbar .nav-link.active {
  color: var(--accent-color) !important;
}

body.light-mode .nav-link {
    color: var(--text-color-dark);
}

section {
    scroll-margin-top: 60px;
}

/* ========== Hero Section ========== */
.hero-section {
    height: 100vh;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-color);
}

.hero-section .container {
    position: relative;
    z-index: 1;
    pointer-events: none;
}

.hero-section .container a,
.hero-section .container button {
    pointer-events: auto;
}

/* ========== Hero Background Pattern ========== */
.hero-bg-pattern {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.2;
    transform: translateY(-7px);
    transition: filter 0.3s ease;
    pointer-events: auto;
}

.tri {
    transition: fill 0.02s ease, filter 0.3s ease;
    pointer-events: all;
    transition-delay: 0.1s;
}
  
  .tri:hover {
    fill: hsl(290, 100%, 70%) !important;
    filter: drop-shadow(0 0 6px rgba(155, 93, 229, 0.7));
    transition-delay: 0s;
}

/* ========== Theme Toggle ========== */
.theme-toggle {
    position: fixed;
    top: 40%;
    right: 2rem;
    transform: none;
    z-index: 999;
    background-color: var(--accent-color);
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-size: 1.2rem;
    cursor: pointer;
    width: 48px;
    height: 48px;
    transition: background-color 0.3s, color 0.3s;
    padding: 0;
}

#themeToggle i {
    transition: transform 0.3s ease, color 0.3s ease;
}

#themeToggle:hover i {
    transform: rotate(20deg);
}

.theme-toggle:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ========== Button ========== */
.btn-animated {
    border: none;
    color: var(--text-color-dark);
    background-color: var(--accent-color);
    transition: transform 0.3s ease;
}

.btn-animated:hover {
    transform: translateY(-3px);
}

/* ========== Scroll Indicator ========== */
.scroll-indicator {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.mouse {
    width: 28px;
    height: 48px;
    border: 2px solid #fff;
    border-radius: 14px;
    position: relative;
}

.mouse .dot {
    width: 6px;
    height: 6px;
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-dot 2s infinite;
}

body.light-mode .mouse {
    border-color: var(--text-color-light);
}

body.light-mode .mouse .dot {
    background-color: var(--text-color-light);
}

@keyframes scroll-dot {
    0% { opacity: 0; top: 8px; }
    30% { opacity: 1; }
    70% { top: 28px; opacity: 1; }
    100% { opacity: 0; top: 28px; }
}

/* ========== SVG Styles ========== */
svg {
    width: 100%;
    height: auto;
}

.svg-wrapper {
    flex-grow: 1;            /* nimmt den Restplatz ein */
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 250px;       /* verhindert extremes Strecken */
    overflow: hidden;
}

.svg-wrapper svg {
    max-width: 100%;
    max-height: 100%;
    height: auto;
}

#seo-svg {
    max-width: 100%;
    height: auto;
}

/* ========== About Cards ========== */
.about-section {
    background-color: var(--bg-color);
    position: relative;
    z-index: 1;
}

.about-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    height: 100%;
}

body.light-mode .about-card {
    background-color: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-color-dark);
}

.about-card i {
    color: var(--text-color-dark);
}

body.light-mode .about-card i {
    color: var(--text-color-light)
}

.about-card:hover {
    transform: translateY(-5px);
    background-color: rgba(155, 93, 229, 0.1);
    box-shadow: 0 8px 24px rgba(155, 93, 229, 0.2);
}

.about-card:hover i {
    color: var(--accent-color);
}

body.light-mode .about-card:hover i {
    color: var(--accent-color);
}

.about-image {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 250px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%; width: 100%;
    max-width: 250px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
}

.about-image:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.highlight {
  color: var(--accent-color);
  font-weight: 600;
}

/* ========== Feature Cards ========== */
.feature-section {
    padding-top: 2rem;
}

.feature-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    min-height: 100%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.light-mode .feature-card {
    background-color: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-color-dark);
}

.feature-card .svg-wrapper {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
  
  .feature-card p {
    margin-top: auto;
}

.feature-card:hover {
    transform: translateY(-5px);
    background-color: rgba(155, 93, 229, 0.1);
    box-shadow: 0 8px 24px rgba(155, 93, 229, 0.2);
}

body.light-mode .feature-card:hover {
    transform: translateY(-5px);
    background-color: rgba(155, 93, 229, 0.1);
    box-shadow: 0 8px 24px rgba(155, 93, 229, 0.2);
}

/* === Light Mode für Animation Section === */
body.light-mode .animation-section {
    background-color: var(--bg-color);
    color: var(--text-color-dark);
}

/* ========== Projekt Sektion ========== */
.project-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    min-height: 100%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.light-mode .project-card {
  background-color: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text-color-light);
}

.project-card:hover {
  transform: translateY(-5px);
  background-color: rgba(155, 93, 229, 0.1);
  box-shadow: 0 8px 24px rgba(155, 93, 229, 0.2);
}
body.light-mode .project-card:hover {
  transform: translateY(-5px);
  background-color: rgba(155, 93, 229, 0.1);
  box-shadow: 0 8px 24px rgba(155, 93, 229, 0.2);
}

body.light-mode .btn-outline-light {
    color: var(--text-color-light);
    border-color: var(--text-color-light)
}

body.light-mode .btn-outline-light:hover {
    background-color: var(--accent-color);
    color: #000;
    border-color: #bbb;
}

.glightbox-clean .gdesc-inner,
.glightbox-clean .gslide-title,
.glightbox-clean .gslide-desc {
  background-color: var(--accent-color);   
  color: #f1f1f1 !important;           
  padding: 0.2rem;
}

/* ========== Kontakt-Sektion ========== */
.kontakt-bg-pattern {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.2;
    transform: translateY(-7px);
    transition: filter 0.3s ease;
    pointer-events: auto;
}

.kontakt-ue {
    margin-bottom: 2rem;
}

.kontakt-section {
    position: relative;
    overflow: hidden;
}
  
.kontakt-section .container {
  position: relative;
  z-index: 1;
  pointer-events: none;
}
  
/* Form Style */
.contact-form {
  padding: 2.5rem;
  color: var(--text-color-dark);
  pointer-events: auto;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form .form-label {
  font-weight: 600;
  color: var(--text-color-dark);
}

.contact-form .form-control {
  background-color: #f2f2f2;
  border: none;
  border-radius: 6px;
}

.contact-form .btn-primary {
  background-color: #8e44ec;
  border: none;
  box-shadow: 0 4px 10px rgba(142, 68, 236, 0.4);
  font-weight: 600;
  letter-spacing: 1px;
}

.contact-form .btn-primary:hover {
  background-color: #7d3cdb;
}

/* ========== Footer ========== */
.footer-section {
    background-color: var(--bg-color);
  }
  
.footer-section a:hover {
    color: var(--accent-color);
}

.impressum-link {
    color: var(--text-color-dark);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

body.light-mode .impressum-link {
    color: var(--text-color-light);
}
  
.impressum-link:hover {
   color: var(--accent-color);
    text-decoration: underline;
}

body.light-mode .impressum-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* ========== Social Links Fix ========== */
.social-links {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 1rem 0.6rem;
    border-radius: 0 8px 8px 0;
    z-index: 10;
    box-shadow: 0 0 0 0.25rem rgba(155, 93, 229, 0.05);
}

.social-links a {
    color: var(--text-color-dark);
    font-size: 1.4rem;
    transition: transform 0.3s ease, color 0.3s ease;
    text-align: center;
}

.social-links a:hover {
    transform: scale(1.2);
    color: var(--accent-color);
}

body.light-mode .social-links {
    background-color: rgba(0, 0, 0, 0.1);
}

body.light-mode a i:hover {
    color: var(--accent-color);
}

body.light-mode .social-links a {
    color: var(--text-color-light);
}

/* ========== Media Queries ========== */
@media (max-width: 620px) {
    .theme-toggle {
        top: 30%;
        right: 0.8rem;
        transform: none;
    }

    .scroll-indicator {
        display: none;
    }
}

/* Macht das Menü überlappend im mobilen Zustand */
@media (max-width: 768px) {
  .navbar-collapse {
    text-align: right;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-color); /* oder deine Wunschfarbe */
    z-index: 1500;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
  }

  .navbar-nav {
    padding-right: 1rem; /* oder 1.5rem */
  }
}



