/* Globale Stile & Variablen */
:root {
    --primary-color: #2c5b94; /* Dunkleres Blau */
    --primary-hover: #244a78; /* Noch dunkleres Blau für Hover */
    --accent-color: #ff8c00;  /* Orange als Akzentfarbe */
    --accent-hover: #e07b00;  /* Dunkleres Orange für Hover */
    --dark-color: #343a40;
    --light-bg: #f4f7fa;
    --text-color: #333;
    --white-color: #fff;
    --border-color: #e0e0e0;
}

/* Benutzerdefinierte Schriftart für das Logo */
@font-face {
  font-family: 'Enso';
  src: url('fonts/enso.woff2') format('woff2'),
       url('fonts/enso.woff') format('woff'),
       url('fonts/enso.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem; /* Offset für Anker-Links wegen sticky Header */
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Roboto', sans-serif;
}

/* Header & Navigation */
header {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 1rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    gap: 2rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    position: relative;
    
}

nav ul::before {
    content: "";
    position: absolute;
    left: -1.5rem;
    flex-grow: 1;
}

nav a {
    color: var(--white-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}

nav a:hover, nav a:focus {
    background-color: rgba(255,255,255,0.2);
}

/* New: Style for active filter link */
nav a.active-filter-link {
    text-decoration: underline;
    text-decoration-color: var(--accent-color);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}


.logo {
    font-family: 'Enso', sans-serif;
    font-size: 2.2rem; /* Angepasst für bessere Lesbarkeit der neuen Schriftart */
    font-weight: 700;
    letter-spacing: 1px; /* Leichter Abstand zwischen den Buchstaben */
}

.nav-controls {
    display: flex;
    align-items: center;
    position: relative;

}


.nav-controls::before {
    content: "";
    position: absolute;
    gap: 1.5rem;
}

/* Sprachumschalter */
.lang-switch {
    display: flex;
    gap: 0.5rem;
}

.lang-switch button {
    background: none;
    border: none;
    color: var(--white-color);
    cursor: pointer;
    font-weight: 600;
    padding: 0.5rem;
}

nav ul::before,
.nav-controls::before{
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background-color: var(--white-color);
    display: block;
}

nav ul::before {
    left: -1rem;
}
.nav-controls::before {
    left: -1rem;
}

.lang-switch button.active {
    text-decoration: underline;
    text-decoration-color: var(--accent-color);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* Hamburger-Button (standardmäßig unsichtbar) */
.hamburger {
    display: none;
    padding: 10px;
    cursor: pointer;
    background-color: transparent;
    border: none;
    z-index: 1001;
}

.hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 100%;
    height: 3px;
    background-color: var(--white-color);
    border-radius: 4px;
    position: absolute;
    transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

.hamburger-inner {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: '';
    display: block;
}

.hamburger-inner::before {
    top: -10px;
}

.hamburger-inner::after {
    bottom: -10px;
}

/* Animation für Hamburger -> X */
.hamburger.is-active .hamburger-inner {
    background-color: transparent;
}
.hamburger.is-active .hamburger-inner::before {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.is-active .hamburger-inner::after {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Sections */
section {
    padding: 2rem 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    background: var(--white-color);
    border-radius: 8px;
    box-shadow: inset 5px 0 0 var(--accent-color), 0 2px 4px rgba(0,0,0,0.05);
}

section:last-of-type {
    margin-bottom: 0;
}

/* Hero Section */
/* The 'hero' class is now applied dynamically in index.php */
.hero {
    background-color: var(--primary-color);
    color: var(--white-color);
    text-align: center;
    padding: 6rem 3rem;
    border-radius: 0;
    box-shadow: none;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 2rem;
}

.hero-logo {
    font-family: 'Enso', sans-serif;
    font-size: 6rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-button {
    color: var(--white-color);
    background: var(--accent-color);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.cta-button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* Cards Layout */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-top-color 0.3s ease;
    border-top: 3px solid transparent;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    border-top-color: var(--accent-color);
}

/* Tabelle */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    overflow-x: auto;
}

th, td {
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    text-align: left;
}

th {
    background-color: #e9ecef;
    font-weight: bold;
    color: var(--primary-color); /* Main color for header text */
    border-bottom: 3px solid var(--accent-color); /* Accent color for header bottom border */
}

/* Barrierefreiheit */
.sr-only {
   position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Responsive Design */
@media (max-width: 860px) {
    .hamburger {
        display: block;
    }

    nav ul {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--dark-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    }
    
    nav ul.is-active {
        display: flex;
        transform: translateX(0);
    }

    nav a {
        font-size: 1.2rem;
    }

    .hero-logo {
        font-size: 4rem;
    }

    .hero h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 3rem 1.5rem;
    }
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--white-color);
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}
footer a {
    color: var(--primary-color);
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}

/* "Nach oben"-Button */
#back-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  border: none;
  background-color: var(--primary-color);
  color: white;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1.2;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background-color 0.3s;
}

#back-to-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top-btn:hover {
  background-color: var(--primary-hover);
}

/* Icon Styling */
nav a .fa-solid {
    margin-right: 8px; /* Abstand zwischen Icon und Text im Menü */
    width: 20px;       /* Sorgt für einheitliche Breite der Icons */
    text-align: center;
}

section h2 .fa-solid {
    margin-right: 1rem; /* Abstand zwischen Icon und Überschrift */
    color: var(--accent-color); /* Akzentfarbe für Icons */
}

/* Sorgt für korrekte vertikale Ausrichtung von Icon und Text in den Überschriften */
section h2 {
    display: flex;
    align-items: center;
}

/* Tech Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.tech-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tech-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
