/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }


}

:root {
    --primary-color: #2B3990;    /* Hauptfarbe Blau */
    --secondary-color: #1a2259;  /* Dunklere Version des Blaus für Hover-Effekte */
    --text-color: #000000;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --dark-bg: #000000;
    --dark-secondary: #1a1a1a;
    --dark-text: #ffffff;
}

[data-theme="dark"] {
    --primary-color: #2B3990;
    --secondary-color: #3647b3;  /* Hellere Version des Blaus für Dark Mode */
    --text-color: #ffffff;
    --light-gray: #1a1a1a;
    --white: #000000;
    --dark-bg: #121212;
    --dark-secondary: #1e1e1e;
    --dark-text: #ffffff;
    --dark-border: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] body {
    background-color: var(--dark-bg);
    color: var(--dark-text);
}

/* Navigation Dark Mode */
[data-theme="dark"] .navbar {
    background-color: var(--dark-bg);
    border-bottom: 1px solid var(--dark-border);
}

[data-theme="dark"] .nav-links a {
    color: var(--dark-text);
}

[data-theme="dark"] .nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section Dark Mode */
[data-theme="dark"] .hero {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('https://images.unsplash.com/photo-1486006920555-c77dcf18193c');
}

/* Services Dark Mode */
[data-theme="dark"] .services {
    background-color: var(--dark-bg);
}

[data-theme="dark"] .service-card {
    background-color: var(--dark-secondary);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

[data-theme="dark"] .service-card i {
    color: var(--primary-color);
}

/* Team Section Dark Mode */
[data-theme="dark"] .team {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-secondary) 100%);
}

[data-theme="dark"] .team-member {
    background-color: var(--dark-secondary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

[data-theme="dark"] .team-info .description {
    color: var(--dark-text);
}

[data-theme="dark"] .specialty-tag {
    background: var(--primary-color);
}

[data-theme="dark"] .swipe-hint {
    color: var(--primary-color);
}

/* Contact Section Dark Mode */
[data-theme="dark"] .contact {
    background-color: var(--dark-bg);
}

[data-theme="dark"] .contact-info {
    background-color: var(--dark-secondary);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

[data-theme="dark"] .contact-info h3 {
    color: var(--primary-color);
}

[data-theme="dark"] .opening-hours span {
    color: var(--primary-color);
}

/* Map Section Dark Mode */
[data-theme="dark"] .map-section {
    background-color: var(--dark-bg);
}

[data-theme="dark"] .map-container {
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Footer Dark Mode */
[data-theme="dark"] footer {
    background-color: var(--dark-secondary);
    border-top: 1px solid var(--dark-border);
}

[data-theme="dark"] .footer-links a {
    color: var(--dark-text);
}

[data-theme="dark"] .footer-links a:hover {
    color: var(--primary-color);
}

[data-theme="dark"] .footer-copyright {
    color: var(--dark-text);
    opacity: 0.8;
}

/* Content Pages Dark Mode */
[data-theme="dark"] .content-page {
    background-color: var(--dark-bg);
}

[data-theme="dark"] .content-container {
    background-color: var(--dark-secondary);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .content-hero {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('https://images.unsplash.com/photo-1486006920555-c77dcf18193c');
}

[data-theme="dark"] .content-section h2 {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', sans-serif;
    font-size: 10pt;
    line-height: 1.6;
    color: var(--text-color);
}

/* Navbar Styles */
.navbar {
    position: fixed;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 45px;
    width: auto;
    filter: none !important;
}

.logo h1 {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-family: 'ERBAUM', sans-serif;
    font-weight: 900;
    line-height: 1.2;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 10pt;
    transition: color 0.3s ease;
    font-family: 'Manrope', sans-serif;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1486006920555-c77dcf18193c');
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.hero-content h2,
.typing-text,
.cursor {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-content h2 {
    font-size: 30pt;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    margin-top: 2rem;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: var(--secondary-color);
}

/* Services Section */
.services {
    padding: 5rem 2rem;
    background-color: var(--light-gray);
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.service-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 13pt;
    margin-bottom: 0.5rem;
    font-family: 'ERBAUM', sans-serif;
    font-weight: 900;
}

.service-card p {
    font-size: 10pt;
}

/* Contact Section */
.contact {
    padding: 5rem 2rem;
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    background-color: var(--light-gray);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.contact-info h3 {
    font-size: 13pt;
    margin-bottom: 0.5rem;
    font-family: 'ERBAUM', sans-serif;
    font-weight: 900;
}

.contact-info p {
    font-size: 10pt;
    margin: 1rem 0;
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 1rem;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 1rem;
}

/* Burger Menu für mobile Ansicht */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.burger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 2px;
    transition: all 0.3s ease;
}

/* Media Queries */
@media (max-width: 768px) {
    .burger {
        display: flex;
    }

    .nav-links {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .logo {
        gap: 0.5rem;
    }
    
    .logo img {
        height: 35px;
    }
    
    .logo h1 {
        font-size: 1.1rem;
    }

    .contact-logo {
        margin-bottom: 2rem;
    }
    
    .contact-logo img {
        max-width: 200px;
    }

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

/* Theme Toggle Button Anpassungen */
.theme-toggle {
    width: 60px;
    height: 30px;
    border-radius: 15px;
    background-color: var(--primary-color);
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
}

.theme-toggle i {
    color: var(--white);
    font-size: 14px;
    z-index: 1;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--white);
    left: 3px;
    transition: transform 0.3s ease;
}

[data-theme="light"] .theme-toggle::before {
    transform: translateX(30px);
}

/* Icon Sichtbarkeit basierend auf Theme */
[data-theme="light"] .theme-toggle .fa-sun {
    display: none;
}

[data-theme="light"] .theme-toggle .fa-moon {
    display: block;
}

[data-theme="dark"] .theme-toggle .fa-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle .fa-sun {
    display: block;
}

/* Footer Styles */
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 1.5rem;
}

.footer-credits {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.2rem;
}

.footer-copyright {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Media Query Anpassungen */
@media (max-width: 768px) {
    .footer-content {
        text-align: center;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-links a {
        margin: 0;
    }
}

/* Map Styles */
.map-container {
    margin-top: 2rem;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Soziales Engagement Sektion */
.social-impact {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--light-gray) 0%, #ffffff 100%);
}

.social-impact h2 {
    text-align: center;
    margin-bottom: 4rem;
    color: var(--primary-color);
    font-size: 2.8rem;
    position: relative;
}

.social-impact h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 45%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.impact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.impact-text {
    padding: 2rem;
}

.impact-text h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.impact-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.impact-highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.slide-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slide-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slide-dot.active {
    background-color: var(--primary-color);
}

/* Dark Mode Anpassungen */
[data-theme="dark"] .social-impact {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-secondary) 100%);
}

[data-theme="dark"] .impact-text {
    color: var(--dark-text);
}

[data-theme="dark"] .slideshow-container {
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Mobile Anpassungen */
@media (max-width: 992px) {
    .impact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .impact-text {
        text-align: center;
        padding: 1rem;
    }

    .slideshow-container {
        height: 300px;
        margin: 0 auto;
    }
}

/* Content Pages - Neue Styles */
.content-page {
    padding-top: 80px;
    min-height: calc(100vh - 80px);
    background: var(--light-gray);
}

.content-hero {
    background: linear-gradient(rgba(43, 57, 144, 0.9), rgba(43, 57, 144, 0.8)), url('https://images.unsplash.com/photo-1486006920555-c77dcf18193c');
    background-size: cover;
    background-position: center;
    padding: 4rem 2rem;
    text-align: center;
    color: var(--white);
}

.content-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-family: 'ERBAUM', sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.content-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.content-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: -3rem;
    position: relative;
}

.content-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.content-section:hover {
    transform: translateY(-5px);
}

.content-section h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'ERBAUM', sans-serif;
}

.content-section h2 i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.content-section h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin: 1.5rem 0 1rem;
    font-family: 'ERBAUM', sans-serif;
}

.content-section p {
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.info-box {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    border-left: 4px solid var(--primary-color);
}

.info-box strong {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.contact-details {
    margin-top: 1.5rem;
}

.contact-details p {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-details i {
    color: var(--primary-color);
    width: 20px;
}

.rights-list {
    list-style: none;
    padding: 0;
}

.rights-list li {
    padding: 1rem;
    margin: 0.5rem 0;
    background: var(--light-gray);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rights-list li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
}

/* Dark Mode Anpassungen für Content Pages */
[data-theme="dark"] .content-page {
    background: var(--dark-bg);
}

[data-theme="dark"] .content-container {
    background: var(--dark-secondary);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .content-section {
    background: var(--dark-secondary);
}

[data-theme="dark"] .info-box {
    background: var(--dark-bg);
    border-left-color: var(--primary-color);
}

[data-theme="dark"] .rights-list li {
    background: var(--dark-bg);
}

[data-theme="dark"] .content-section p,
[data-theme="dark"] .info-box p {
    color: var(--dark-text);
}

/* Mobile Anpassungen für Content Pages */
@media (max-width: 768px) {
    .content-hero h1 {
        font-size: 2rem;
    }

    .content-container {
        padding: 2rem 1rem;
        margin-top: -2rem;
    }

    .content-section {
        padding: 1.5rem;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }

    .info-box {
        padding: 1.5rem;
    }
}

/* Füge diese Styles hinzu */
img {
    max-width: 100%;
    height: auto;
}

/* Füge Font Display für besseres Laden hinzu */
@font-face {
    font-family: 'ERBAUM';
    src: url('../fonts/ERBAUM-BLACK.woff2') format('woff2'),
         url('../fonts/ERBAUM-BLACK.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('../fonts/Manrope-SemiBold.woff2') format('woff2'),
         url('../fonts/Manrope-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* 404 Error Page Styles */
.error-container {
    min-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    margin-top: 80px;
}

.error-animation {
    position: relative;
    width: 200px;
    height: 200px;
    margin-bottom: 2rem;
}

.car {
    position: absolute;
    font-size: 4rem;
    color: var(--primary-color);
    animation: shakeCar 2s ease-in-out infinite;
}

.smoke {
    position: absolute;
    left: -20px;
    top: 10px;
}

.smoke i {
    position: absolute;
    font-size: 1.5rem;
    color: var(--text-color);
    opacity: 0;
}

.smoke i:nth-child(1) {
    animation: smoking 2s ease-out infinite;
}

.smoke i:nth-child(2) {
    animation: smoking 2s ease-out 0.4s infinite;
}

.smoke i:nth-child(3) {
    animation: smoking 2s ease-out 0.8s infinite;
}

.wrench {
    position: absolute;
    right: 7px;
    top: 0;
    font-size: 2rem;
    color: var(--secondary-color);
    animation: fixingWrench 3s ease-in-out infinite;
}

@keyframes shakeCar {
    0%, 100% {
        transform: translateX(0) rotate(0);
    }
    25% {
        transform: translateX(-5px) rotate(-5deg);
    }
    75% {
        transform: translateX(5px) rotate(5deg);
    }
}

@keyframes smoking {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }
    20% {
        opacity: 0.5;
    }
    40% {
        transform: translate(-20px, -20px) scale(1.5);
        opacity: 0.3;
    }
    60% {
        transform: translate(-40px, -40px) scale(2);
        opacity: 0.1;
    }
    80% {
        transform: translate(-60px, -60px) scale(2.5);
        opacity: 0;
    }
    100% {
        transform: translate(-80px, -80px) scale(3);
        opacity: 0;
    }
}

@keyframes fixingWrench {
    0%, 100% {
        transform: rotate(0);
    }
    25% {
        transform: rotate(30deg);
    }
    75% {
        transform: rotate(-30deg);
    }
}

.error-container h1 {
    font-size: 30pt;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.error-container p {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 13pt;
}

.error-container .cta-button {
    margin-top: 2rem;
}

/* Typography */
h1, h2, h3, .logo h1 {
    font-family: 'ERBAUM', sans-serif;
    font-weight: 900;
}

/* Headline Styles */
h1, .hero-content h2 {
    font-size: 30pt;
    letter-spacing: -0.02em;
}

/* Subheadline Styles */
h3, .service-card h3, .team-member h3 {
    font-size: 13pt;
    margin-bottom: 0.5rem;
}

/* Navigation */
.nav-links a {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 10pt;
}

/* Service Cards */
.service-card p {
    font-size: 10pt;
}

/* Team Section */
.team-member .position {
    font-size: 13pt;
    font-family: 'ERBAUM', sans-serif;
}

.team-member .description {
    font-size: 10pt;
}

/* Contact Section */
.contact-info h3 {
    font-size: 13pt;
}

.contact-info p {
    font-size: 10pt;
}

/* Footer */
.footer-links a {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 10pt;
}

/* 404 Page */
.error-container h1 {
    font-size: 30pt;
}

.error-container p {
    font-size: 13pt;
}

/* Öffnungszeiten Styles */
.opening-hours {
    margin-top: 1.5rem;
}

.opening-hours p {
    display: flex;
    justify-content: space-between;
    margin: 0.5rem 0;
    font-size: 10pt;
}

.opening-hours span {
    font-weight: 600;
    min-width: 160px;
}

/* Kontakt Logo */
.contact-logo {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.contact-logo img {
    max-width: 250px;
    height: auto;
}

/* Logo & Footer im Light/Dark Mode - Logo in Navbar bleibt farbig */
[data-theme="light"] .contact-logo img {
    filter: brightness(0); /* Kontakt-Logo wird im hellen Modus schwarz */
}

[data-theme="dark"] .contact-logo img {
    filter: brightness(1.1) contrast(1.1);
}

/* Logo in Navbar bleibt immer farbig */
.logo img {
    height: 45px;
    width: auto;
    filter: none !important;
}

/* Footer Links */
.footer-links a {
    color: var(--white);
    text-decoration: none;
    margin: 0 1rem;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.8;
}

[data-theme="light"] footer {
    background-color: var(--primary-color);
}

[data-theme="light"] .footer-links a,
[data-theme="light"] footer p {
    color: var(--white);
}

/* Typing Animation Styles */
.typing-container {
    min-height: 60px;
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
}

.typing-text,
.cursor {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-size: 1.4rem;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    min-height: 1.4em;
}

.cursor {
    animation: blink 0.8s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .typing-text,
    .cursor {
        font-size: 1.1rem;
    }
    
    .typing-container {
        min-height: 50px;
        margin: 1rem 0;
    }
}

/* Neue Team Styles */
.team-grid {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
}

.team-card {
    display: none; /* Verstecke alle Cards initial */
    width: 100%;
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    animation: fadeIn 0.5s ease;
}

.team-card.active {
    display: block; /* Zeige nur die aktive Card */
}

.team-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.team-nav-button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.team-nav-button:hover {
    background-color: var(--secondary-color);
}

.team-nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Map Container Anpassung */
.map-section {
    padding: 2rem;
    background-color: var(--light-gray);
}

.map-container {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 450px;
    border: 0;
}

/* Cookie Popup Styles */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.cookie-popup.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cookie-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.cookie-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-color);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.cookie-buttons .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cookie-buttons .btn i {
    font-size: 1rem;
}

.cookie-details {
    display: none;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.cookie-details.show {
    display: block;
}

.cookie-section {
    margin-bottom: 1.5rem;
}

.cookie-section:last-child {
    margin-bottom: 0;
}

.cookie-section h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.cookie-section h3 i {
    color: var(--primary-color);
}

.cookie-section ul {
    list-style: none;
    padding-left: 0;
    margin: 0.5rem 0;
}

.cookie-section ul li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.cookie-section ul li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

@media (max-width: 768px) {
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Map Placeholder Styles */
.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 450px;
    background: var(--light-gray);
    color: var(--text-color);
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
}

.map-placeholder i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.map-placeholder p {
    font-size: 1.1rem;
    max-width: 300px;
    margin: 0;
}

[data-theme="dark"] .map-placeholder {
    background: var(--dark-secondary);
}

