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

:root {
  --primary-color: #ff9500;
  --primary-hover: #ffad33;
  --text-color: #ddd;
  --bg-color: #1a1a1a;
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-bg-hover: rgba(255, 255, 255, 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.25);
}

html {
  scroll-behavior: smooth;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
}

body {
  background-color: var(--bg-color);
  color: #fff;
  line-height: 1.6;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(26, 26, 26, 0.98);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  height: 5rem;
  padding: 0 1rem;
  font-size: 0.8rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.mobile-menu-toggle {
  display: block;
  position: absolute;
  left: 1rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.5rem;
  transition: var(--transition);
}

.mobile-menu-toggle:hover {
  color: var(--primary-color);
}

.nav-links {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 5rem;
  left: 0;
  right: 0;
  background-color: rgba(26, 26, 26, 0.98);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 1rem;
  gap: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

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

.nav-item,
.footer-item {
  text-decoration: none;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1rem;

  transition: all 0.2s ease-in-out;
}

.nav-item:hover,
.footer-item:hover {
  color: var(--primary-color);
}

.hero {
  margin-top: 5rem;
  height: calc(100vh - 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.75), rgba(26, 26, 26, 0.65)),
    url("./img/hero.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  text-align: center;
  position: relative;
}

@media (min-width: 1024px) {
  .hero {
    background-attachment: fixed;
  }
}

.title {
  margin: 0 0 1rem 0;
  font-size: 3rem;
  line-height: 3rem;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.subtitle {
  font-size: 1rem;
  margin: 0;
  color: var(--text-color);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-action {
  margin-top: 4rem;
}

.button,
.button-inverted {
  width: fit-content;
  padding: 1rem 2rem;
  border: 2px solid var(--primary-color);
  color: #fff;
  background-color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
  border-radius: 5rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button-inverted {
  background-color: transparent;
  color: var(--primary-color);
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  background-color: var(--primary-hover);
}

.button-inverted:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.container {
  max-width: 85%;
  margin: 0 auto;
  max-width: min(85%, 1200px);
}

.text-limit {
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
}

.heading {
  margin: 2rem 0 1rem 0;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  border-bottom: 3px solid var(--primary-color);
  padding-bottom: 0.5rem;
  position: relative;
}

.about {
  display: grid;
  gap: 2rem;
  padding: 4rem 0;
}

.about-content {
  display: flex;
  flex-direction: column;
}

.about-text {
  font-size: 0.9rem;
  color: var(--text-color);
}

.about-images {
  width: 100%;
  display: flex;
  gap: 0.5rem;
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-image-large {
  min-width: 50%;
}

.about-images-small {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.about-action {
  margin-top: 2rem;
}

.info-wrapper {
  margin: 3rem 0;
  padding: 3rem 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.85), rgba(26, 26, 26, 0.9));
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-top: 1px solid rgba(255, 149, 0, 0.2);
  border-bottom: 1px solid rgba(255, 149, 0, 0.2);
}

.hours {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 1rem;
}

.info .heading {
  margin: 0 auto;
}

.hours-entry {
  display: flex;
  justify-content: space-between;
  width: 15rem;
  margin-bottom: 0.25rem;
}

.days {
  color: var(--text-color);
}

.contact {
  display: flex;
  flex-direction: column;
}

.contact-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem 0;
}

.contact .heading {
  margin-top: 0;
}

.contact-detail {
  margin-top: 0.5rem;
  color: var(--text-color);
}

.contact-actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-image {
  width: 100%;
}

.footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 2rem 1rem;
  font-size: 0.8rem;
  text-align: center;
  background-color: #303030;
}

.footer-links {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.footer-copyright {
  margin-top: 1rem;
  color: var(--text-color);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
  align-items: center;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-actions .button,
.hero-actions .button-inverted {
  width: 100%;
  max-width: 320px;
  min-width: 200px;
  text-align: center;
  margin-top: 0;
  margin-bottom: 0;
}

.button-icon {
  margin-right: 0.5rem;
  vertical-align: middle;
}

@media only screen and (min-width: 600px) {
  .mobile-menu-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
    flex-direction: row;
    position: static;
    background: none;
    padding: 0;
    gap: 2rem;
    box-shadow: none;
  }

  .nav,
  .footer-links {
    gap: 2rem;
    font-size: 1rem;
  }

  .footer {
    margin-top: 4rem;
    padding: 3rem 0;
    gap: 3rem;
  }

  .footer-links {
    flex-direction: row;
  }

  .title {
    font-size: 4rem;
    line-height: 4.2rem;
  }

  .subtitle {
    font-size: 1.3rem;
  }

  .button,
  .button-inverted {
    padding: 1.2rem 2.5rem;
    font-size: 1rem;
  }

  .about-text {
    font-size: 1.05rem;
  }

  .contact-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .contact-image {
    width: 60%;
  }

  .info-wrapper {
    margin: 4rem 0;
    padding: 4rem 0;
  }

  .hero-actions {
    flex-direction: row;
    gap: 1.5rem;
    align-items: flex-start;
  }
  .hero-actions .button,
  .hero-actions .button-inverted {
    width: fit-content;
    min-width: unset;
    max-width: unset;
  }
  
  .services-grid {
    gap: 2.5rem;
  }
  
  .service-card {
    padding: 3rem;
  }
}

@media only screen and (min-width: 1000px) {
  .nav,
  .footer-links {
    gap: 4rem;
  }

  .footer {
    margin-top: 6rem;
  }

  .title {
    font-size: 5.5rem;
    line-height: 6rem;
  }

  .heading {
    font-size: 2rem;
  }

  .about {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    margin-top: 6rem;
  }

  .about-images,
  .about-images-small {
    gap: 1rem;
  }
  
  .services {
    padding: 6rem 0;
  }
  
  .services-intro {
    font-size: 1.2rem;
  }

  .info-wrapper {
    margin: 8rem 0;
    padding: 6rem 0;
  }

  .hours {
    margin-top: 2rem;
  }

  .hours-entry {
    width: 20rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
  }

  .contact .heading {
    margin-bottom: 2rem;
  }

  .contact-detail {
    margin-top: 1rem;
    font-size: 1.2rem;
  }

  .contact-actions {
    flex-direction: row;
  }

  .contact-image {
    width: 50%;
  }
  
  .legal-title {
    font-size: 3rem;
  }
  
  .legal-section {
    padding: 2.5rem;
  }
  
  .legal-section h2 {
    font-size: 2rem;
  }
  
  .legal-section h3 {
    font-size: 1.5rem;
  }
}

@media only screen and (min-width: 1400px) {
  .container {
    max-width: 1200px;
  }
}

@media (hover: hover) {
  .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
  }
}

/* Portfolio Section */
.portfolio {
  padding: 4rem 0;
  background: rgba(255, 149, 0, 0.02);
}

.portfolio-intro {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-color);
  margin: 1rem 0 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.portfolio-card {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 16px;
  transition: var(--transition);
  border: 1px solid rgba(255, 149, 0, 0.15);
  text-align: center;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  background: var(--card-bg-hover);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 149, 0, 0.3);
}

.portfolio-icon {
  color: var(--primary-color);
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.portfolio-card:hover .portfolio-icon {
  transform: scale(1.1);
}

.portfolio-card h3 {
  margin-bottom: 1rem;
  color: #fff;
  font-size: 1.3rem;
}

.portfolio-card p {
  color: var(--text-color);
  line-height: 1.7;
}

/* FAQ Section */
.faq {
  padding: 4rem 0;
}

.faq-intro {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-color);
  margin: 1rem 0 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.faq-list {
  max-width: 800px;
  margin: 2rem auto;
}

.faq-item {
  background: var(--card-bg);
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 149, 0, 0.1);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(255, 149, 0, 0.3);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  padding: 1.5rem;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--primary-color);
}

.faq-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--primary-color);
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-color);
  line-height: 1.8;
}

/* Services Section */
.services {
  padding: 4rem 0;
}

.services-intro {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-color);
  margin: 1rem 0 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.service-card {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 16px;
  transition: var(--transition);
  border: 1px solid rgba(255, 149, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-8px);
  background: var(--card-bg-hover);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 149, 0, 0.3);
}

.service-icon {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-card h3 {
  margin-bottom: 1rem;
  color: #fff;
  font-size: 1.4rem;
}

.service-card p {
  color: var(--text-color);
  line-height: 1.7;
}

/* Back to Top Button Styling */
#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary-color);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease, opacity 0.3s ease;
  z-index: 1000;
  opacity: 0;
  box-shadow: var(--shadow-md);
}

#back-to-top:hover {
  transform: translateY(-3px) scale(1.05);
  background: var(--primary-hover);
  box-shadow: var(--shadow-md);
}

/* Verbesserte Testimonials */
.testimonials {
  padding: 4rem 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.testimonial {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 8px;
  position: relative;
}

.testimonial::before {
  content: '"';
  font-size: 4rem;
  color: var(--primary-color);
  position: absolute;
  top: -10px;
  left: 10px;
  opacity: 0.2;
}

.testimonial footer {
  margin-top: 1rem;
  color: var(--primary-color);
}

/* Back Navigation für Unterseiten */
.back-nav {
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    margin-top: 6rem;
    border-bottom: 1px solid rgba(255, 149, 0, 0.2);
}

.back-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
}

.back-link:hover {
    color: var(--primary-hover);
    transform: translateX(-5px);
}

/* Legal Content Styles */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

.legal-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #fff;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

.legal-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.legal-section:hover {
    background: var(--card-bg-hover);
    box-shadow: var(--shadow-md);
}

.legal-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.legal-section h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 600;
}

.legal-section h4 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-color);
    font-weight: 600;
}

.legal-section p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-section a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-word;
}

.legal-section a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.legal-list {
    margin: 1.5rem 0;
    padding-left: 2rem;
    color: var(--text-color);
}

.legal-list li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.contact-info {
    background: rgba(255, 149, 0, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 149, 0, 0.2);
}

.legal-source {
    background: transparent;
    border: none;
    padding: 0;
    text-align: center;
    margin-top: 4rem;
}

.legal-source:hover {
    background: transparent;
    box-shadow: none;
}

.legal-source p {
    color: var(--text-color);
    font-size: 0.9rem;
}

/* Skip-Link für Screenreader und Tastatur-Nutzer */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 10000;
  background: #fff;
  color: #1a1a1a;
  padding: 0.5rem 1rem;
  border-radius: 0 0 5px 5px;
  font-weight: bold;
  transition: left 0.3s;
}
.skip-link:focus {
  left: 10px;
  top: 10px;
  width: auto;
  height: auto;
  outline: 2px solid #ff9500;
  box-shadow: 0 0 0 4px #fff, 0 0 0 8px #ff9500;
}

/* Sichtbarer Fokus für alle interaktiven Elemente */
a:focus, button:focus, .button:focus, .button-inverted:focus {
  outline: 2px solid #ff9500;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px #fff, 0 0 0 8px #ff9500;
}

/* Kontrast-Check: ggf. Farben anpassen */
body {
  background-color: var(--bg-color);
  color: #fff;
}

.nav-item, .footer-item {
  color: #fff;
}

.button-inverted {
  color: var(--primary-color);
  background-color: transparent;
  border: 2px solid var(--primary-color);
}
.button-inverted:hover, .button-inverted:focus {
  background-color: var(--primary-color);
  color: #fff;
}
