/* 
 * ALISA WERKSTATT - Main Stylesheet
 * BEM naming convention used throughout
 */

/* ---------- Base & Reset ---------- */
:root {
  /* Colors */
  --color-primary: #e30613;    /* Red from logo */
  --color-primary-dark: #c30410;
  --color-primary-light: #ff3643;
  --color-secondary: #333333;  /* Dark gray */
  --color-text: #333333;
  --color-text-light: #666666;
  --color-background: #ffffff;
  --color-background-light: #f5f5f5;
  --color-border: #e0e0e0;
  
  /* Font sizes */
  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-md: 1rem;      /* 16px - base */
  --font-size-lg: 1.125rem;  /* 18px */
  --font-size-xl: 1.25rem;   /* 20px */
  --font-size-2xl: 1.5rem;   /* 24px */
  --font-size-3xl: 2rem;     /* 32px */
  --font-size-4xl: 2.5rem;   /* 40px */
  
  /* Spacing */
  --space-xs: 0.25rem;   /* 4px */
  --space-sm: 0.5rem;    /* 8px */
  --space-md: 1rem;      /* 16px */
  --space-lg: 1.5rem;    /* 24px */
  --space-xl: 2rem;      /* 32px */
  --space-2xl: 3rem;     /* 48px */
  
  /* Other */
  --border-radius: 4px;
  --border-radius-lg: 8px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --transition: 0.3s ease-in-out;
  
  /* Header height */
  --header-height: 80px;
  --header-height-mobile: 70px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--color-text);
  line-height: 1.5;
  overflow-x: hidden;
  background-color: var(--color-background);
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1rem;
  line-height: 1.2;
  font-weight: 600;
  color: var(--color-secondary);
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-dark);
}

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

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

/* ---------- Layout & Container ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-2xl) 0;
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section__title {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-sm);
  color: var(--color-secondary);
  position: relative;
  display: inline-block;
}

.section__title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--color-primary);
}

.section__subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
  margin-top: 12px;
}

/* ---------- Header & Navigation ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-background);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
}

.logo {
  display: block;
  max-height: calc(var(--header-height) - 30px);
}

.logo img {
  max-height: calc(var(--header-height) - 30px);
  height: auto;
  width: auto;
  max-width: 100%;
  display: block;
}



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

.nav__list {
  display: flex;
  gap: var(--space-lg);
}

.nav__link {
  color: var(--color-secondary);
  font-weight: 500;
  position: relative;
  padding: var(--space-xs) 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition);
}

.nav__link:hover::after {
  width: 100%;
}

.header__cta {
  margin-left: var(--space-lg);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 25px;
  position: relative;
  z-index: 1010;
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--color-secondary);
  border-radius: 3px;
  position: absolute;
  transition: all 0.3s;
}

.nav-toggle__bar:nth-child(1) {
  top: 0;
}

.nav-toggle__bar:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.nav-toggle__bar:nth-child(3) {
  bottom: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: rotate(45deg);
  top: 11px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: rotate(-45deg);
  bottom: 11px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6em 1.2em;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-primary);
  color: white;
}

.btn--primary:hover {
  background-color: var(--color-primary-dark);
  color: white;
}

.btn--secondary {
  background-color: var(--color-secondary);
  color: white;
}

.btn--secondary:hover {
  background-color: #444444;
  color: white;
}

.btn--outline {
  background-color: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn--outline:hover {
  background-color: var(--color-primary);
  color: white;
}

.btn--outline-red {
  background-color: transparent;
  border: 2px solid #e53935;
  color: #e53935;
  transition: all 0.3s ease;
}

.btn--outline-red:hover {
  background-color: #e53935;
  color: white;
}

.btn--lg {
  font-size: var(--font-size-lg);
  padding: 0.8em 1.5em;
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  height: 85vh;
  min-height: 600px;
  margin-top: var(--header-height);
  overflow: hidden;
  background-color: #f0f0f0;
}

.hero__slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero__slide:first-child {
  opacity: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  background-color: rgba(255, 255, 255, 0.9);
  padding: var(--space-xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 700px;
  margin: var(--space-2xl) auto 0;
}

.hero__title {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-lg);
  color: var(--color-secondary);
}

.hero__status {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.opening-status {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.opening-status__indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ccc;
}

.opening-hours {
  flex: 1;
}

.opening-hours h3 {
  font-size: var(--font-size-md);
  margin-bottom: var(--space-xs);
}

.opening-hours__table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

.opening-hours__table td {
  padding: 3px 8px 3px 0;
  padding-left: 4px;
}

.opening-hours__row {
  transition: background-color 0.3s ease;
}

.opening-hours__row.active {
  background-color: rgba(227, 6, 19, 0.1);
  font-weight: bold;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* ---------- Services Section ---------- */

/* Service Detail Page */
.service-detail__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-xl);
}

.service-detail__content h2,
.service-detail__content h3 {
  color: var(--color-secondary);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.service-detail__content h2:first-child {
  margin-top: 0;
}

.service-detail__image {
  margin: var(--space-lg) 0;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

.service-detail__image img {
  width: 100%;
  height: auto;
  display: block;
}

.service-detail__list {
  list-style: disc;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.service-detail__list li {
  margin-bottom: var(--space-xs);
}

.service-detail__cta {
  margin-top: var(--space-xl);
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background-color: var(--color-background-light);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-xl);
}

@media (max-width: 480px) {
  .service-detail__cta {
    flex-direction: column;
  }
}

.sidebar__widget {
  background-color: var(--color-background-light);
  padding: var(--space-lg);
  border-radius: var(--border-radius-lg);
  margin-bottom: var(--space-lg);
}

.sidebar__widget h3 {
  margin-top: 0;
  margin-bottom: var(--space-md);
  position: relative;
  padding-bottom: var(--space-xs);
}

.sidebar__widget h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--color-primary);
}

.sidebar__list {
  list-style: none;
}

.sidebar__list li {
  margin-bottom: var(--space-xs);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-xs);
}

.sidebar__list li:last-child {
  border-bottom: none;
}

.sidebar__list a {
  display: block;
  padding: var(--space-xs) 0;
  transition: transform var(--transition);
}

.sidebar__list a:hover {
  transform: translateX(5px);
}

.page-header {
  background-color: var(--color-background-light);
  padding: var(--space-xl) 0;
  margin-top: var(--header-height);
}

.page-header__title {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-sm);
}

.page-header__breadcrumb {
  font-size: var(--font-size-sm);
}

@media (max-width: 768px) {
  .service-detail__grid {
    grid-template-columns: 1fr;
  }
  
  .service-detail__sidebar {
    order: -1;
  }
}
.services {
  background-color: var(--color-background-light);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.service-card {
  background-color: var(--color-background);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
  display: block;
  color: var(--color-text);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  color: var(--color-text);
}

.service-card__inner {
  padding: var(--space-lg);
}

.service-card__title {
  color: var(--color-secondary);
  margin-bottom: var(--space-sm);
  position: relative;
  padding-bottom: var(--space-sm);
}

.service-card__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}

.service-card:hover .service-card__title::after {
  width: 100%;
}

.service-card__desc {
  color: var(--color-text-light);
  margin-bottom: 0;
}

.services__more {
  text-align: center;
  margin-top: var(--space-xl);
}

/* ---------- About Section ---------- */
.about__content {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
}

.about__text {
  flex: 1;
  max-width: 800px;
  margin: 0 auto;
}

/* ---------- Reviews Section ---------- */
.reviews {
  background-color: var(--color-background-light);
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.review-card {
  background-color: var(--color-background);
  padding: var(--space-lg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
}

.review-card__rating {
  color: gold;
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-sm);
}

.review-card__text {
  font-style: italic;
}

.review-card__author {
  margin-bottom: 0;
  text-align: right;
  font-weight: 500;
}

/* ---------- FAQ Section ---------- */
.faq__accordion,
.service-detail__faq {
  max-width: 800px;
  margin: 0 auto;
}

.accordion__item,
.faq__item {
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-sm);
}

.accordion__button,
.faq__question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: var(--space-md) 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--color-secondary);
  transition: color 0.3s ease;
}

.accordion__button:hover,
.faq__question:hover {
  color: var(--color-primary);
}

.accordion__icon,
.faq__icon {
  position: relative;
  width: 16px;
  height: 16px;
}

.accordion__icon::before,
.accordion__icon::after,
.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  background-color: var(--color-secondary);
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.faq__question:hover .faq__icon::before,
.faq__question:hover .faq__icon::after {
  background-color: var(--color-primary);
}

.accordion__icon::after,
.faq__icon::after {
  transform: rotate(90deg);
}

.accordion__button[aria-expanded="true"] .accordion__icon::after,
.faq__question[aria-expanded="true"] .faq__icon::after {
  transform: rotate(0);
}

.accordion__content,
.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding-left: var(--space-sm);
  padding-right: var(--space-sm);
}

.accordion__button[aria-expanded="true"] + .accordion__content,
.faq__question[aria-expanded="true"] + .faq__answer {
  max-height: 500px;
  padding-bottom: var(--space-md);
  border-left: 2px solid var(--color-primary);
  background-color: rgba(245, 245, 245, 0.5);
}

/* ---------- Contact Section ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact__block h3 {
  margin-bottom: var(--space-sm);
  color: var(--color-secondary);
}

.contact__link {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.contact__icon {
  font-size: var(--font-size-lg);
}

.contact__form {
  background-color: var(--color-background-light);
  padding: var(--space-xl);
  border-radius: var(--border-radius-lg);
  margin-top: var(--space-xl);
}

.contact__form h3 {
  margin-bottom: var(--space-md);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  background-color: var(--color-background);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(227, 6, 19, 0.2);
}

/* ---------- Footer ---------- */
.footer {
  background-color: var(--color-secondary);
  color: white;
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer__logo {
  margin-bottom: var(--space-md);
}

.footer__address {
  font-style: normal;
  opacity: 0.8;
}

.footer__address a {
  color: white;
}

.footer__address a:hover {
  color: var(--color-primary-light);
}

.footer h4 {
  color: white;
  margin-bottom: var(--space-md);
  position: relative;
  padding-bottom: var(--space-sm);
}

.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--color-primary);
}

.footer ul li {
  margin-bottom: var(--space-sm);
}

.footer ul li a {
  color: white;
  opacity: 0.8;
  transition: opacity var(--transition);
}

.footer ul li a:hover {
  opacity: 1;
  color: white;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__links {
  display: flex;
  gap: var(--space-lg);
}

.footer__links a {
  color: white;
  opacity: 0.7;
}

.footer__links a:hover {
  opacity: 1;
}

/* ---------- Animation Keyframes */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.animate-fade-in {
  opacity: 0;
  animation: fadeIn 0.7s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

/* Delay cascade for multiple items */
.animate-cascade > * {
  opacity: 0;
  will-change: opacity, transform;
}

.animate-cascade > *:nth-child(1) { animation: fadeIn 0.6s cubic-bezier(0.25, 0.1, 0.25, 1) 0.05s forwards; }
.animate-cascade > *:nth-child(2) { animation: fadeIn 0.6s cubic-bezier(0.25, 0.1, 0.25, 1) 0.1s forwards; }
.animate-cascade > *:nth-child(3) { animation: fadeIn 0.6s cubic-bezier(0.25, 0.1, 0.25, 1) 0.15s forwards; }
.animate-cascade > *:nth-child(4) { animation: fadeIn 0.6s cubic-bezier(0.25, 0.1, 0.25, 1) 0.2s forwards; }
.animate-cascade > *:nth-child(5) { animation: fadeIn 0.6s cubic-bezier(0.25, 0.1, 0.25, 1) 0.25s forwards; }
.animate-cascade > *:nth-child(6) { animation: fadeIn 0.6s cubic-bezier(0.25, 0.1, 0.25, 1) 0.3s forwards; }
.animate-cascade > *:nth-child(7) { animation: fadeIn 0.6s cubic-bezier(0.25, 0.1, 0.25, 1) 0.35s forwards; }
.animate-cascade > *:nth-child(8) { animation: fadeIn 0.6s cubic-bezier(0.25, 0.1, 0.25, 1) 0.4s forwards; }
.animate-cascade > *:nth-child(9) { animation: fadeIn 0.6s cubic-bezier(0.25, 0.1, 0.25, 1) 0.45s forwards; }
.animate-cascade > *:nth-child(10) { animation: fadeIn 0.6s cubic-bezier(0.25, 0.1, 0.25, 1) 0.5s forwards; }
.animate-cascade > *:nth-child(11) { animation: fadeIn 0.6s cubic-bezier(0.25, 0.1, 0.25, 1) 0.55s forwards; }
.animate-cascade > *:nth-child(12) { animation: fadeIn 0.6s cubic-bezier(0.25, 0.1, 0.25, 1) 0.6s forwards; }

/* Reduktion der Animation für Nutzer, die reduzierte Bewegung präferieren */
@media (prefers-reduced-motion) {
  .animate-fade-in, .animate-cascade > * {
    animation-duration: 0.1s !important;
    transition-duration: 0.1s !important;
  }
}

/* ---------- Responsive Styles ---------- */

/* Mobile (≤480px) */
@media (max-width: 480px) {
  :root {
    --header-height: var(--header-height-mobile);
  }
  
  .hero {
    min-height: 550px;
    height: 95vh;
  }
  
  .hero__title {
    font-size: var(--font-size-2xl);
  }
  
  .hero__content {
    padding: var(--space-md);
    margin-top: var(--space-xl);
  }
  
  .hero__buttons {
    flex-direction: column;
  }
  
  .page-header {
    padding: var(--space-xl) 0;
    margin-top: var(--header-height);
  }
  
  .section__title {
    font-size: var(--font-size-2xl);
  }
  
  .contact__grid {
    grid-template-columns: 1fr;
  }
}

/* Tablet (≤768px) */
@media (max-width: 768px) {
  .nav__list {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background-color: var(--color-background);
    flex-direction: column;
    padding: calc(var(--header-height) + var(--space-lg)) var(--space-lg) var(--space-lg);
    gap: var(--space-lg);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
  }
  
  .nav.active .nav__list {
    transform: translateX(0);
  }
  
  .nav-toggle {
    display: block;
  }
  
  .header__cta {
    margin-left: var(--space-md);
  }
  
  .hero__status {
    flex-direction: column;
  }
  
  .footer__bottom {
    flex-direction: column;
    gap: var(--space-md);
  }
}

/* Small laptop (≤1024px) */
@media (max-width: 1024px) {
  .section {
    padding: var(--space-xl) 0;
  }
  
  .about__content {
    flex-direction: column;
  }
  
  .services__grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}
