/* ============================================
   SWISS WALL MALER & GIPSER GMBH
   Swiss Style CSS - Minimalistisch & Präzise
   ============================================ */

/* CSS Variables - Brand Colors */
:root {
  --primary-red: #DA291C;
  --primary-red-hover: #B81D12;
  --primary-black: #1A1A1A;
  --background-white: #FAFAF8;
  --grey-text: #6B6B6B;
  --light-grey: #F2F2F0;
  --white: #FFFFFF;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-hover: rgba(0, 0, 0, 0.15);
  
  /* Typography */
  --font-display: 'Helvetica Now Display', 'Helvetica Neue', 'Arial Black', Arial, sans-serif;
  --font-body: 'Helvetica Now Text', 'Helvetica Neue', Arial, sans-serif;
  
  /* Spacing */
  --section-padding-desktop: 80px;
  --section-padding-mobile: 40px;
  --max-width: 1200px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--primary-black);
  background-color: var(--background-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
  overflow: hidden;
}

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

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

ul, ol {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-black);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
  color: var(--grey-text);
  margin-bottom: 1rem;
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: var(--section-padding-mobile) 0;
}

@media (min-width: 768px) {
  .section {
    padding: var(--section-padding-desktop) 0;
  }
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--background-white);
  box-shadow: 0 2px 8px var(--shadow);
  z-index: 1000;
  transition: transform var(--transition-medium);
}

.header--hidden {
  transform: translateY(-100%);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.header__logo {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-black);
}

.header__logo-dot {
  width: 12px;
  height: 12px;
  background-color: var(--primary-red);
  border-radius: 50%;
  margin-right: 10px;
  flex-shrink: 0;
}

.header__nav {
  display: none;
}

@media (min-width: 768px) {
  .header__nav {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
}

.header__nav-link {
  font-weight: 500;
  color: var(--primary-black);
  position: relative;
}

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

.header__nav-link:hover::after,
.header__nav-link--active::after {
  width: 100%;
}

.header__nav-link--active {
  color: var(--primary-red);
}

.header__phone {
  display: none;
}

@media (min-width: 768px) {
  .header__phone {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary-red);
    color: var(--white);
    padding: 10px 20px;
    font-weight: 600;
    transition: background-color var(--transition-fast);
  }
  
  .header__phone:hover {
    background-color: var(--primary-red-hover);
  }
}

/* Mobile Menu */
.header__menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

@media (min-width: 768px) {
  .header__menu-btn {
    display: none;
  }
}

.header__menu-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--primary-black);
  margin: 3px 0;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.header__menu-btn--open .header__menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header__menu-btn--open .header__menu-line:nth-child(2) {
  opacity: 0;
}

.header__menu-btn--open .header__menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--background-white);
  padding: 2rem;
  transform: translateX(100%);
  transition: transform var(--transition-medium);
  z-index: 999;
  display: flex;
  flex-direction: column;
}

.mobile-menu--open {
  transform: translateX(0);
}

.mobile-menu__link {
  font-size: 1.5rem;
  font-weight: 600;
  padding: 1rem 0;
  border-bottom: 1px solid var(--light-grey);
  color: var(--primary-black);
}

.mobile-menu__link--active {
  color: var(--primary-red);
}

.mobile-menu__phone {
  margin-top: auto;
  background-color: var(--primary-red);
  color: var(--white);
  padding: 16px 32px;
  text-align: center;
  font-weight: 600;
  font-size: 1.25rem;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
              url('images/hero-maler.jpg');
  background-size: cover;
  background-position: center;
  text-align: center;
  padding: 100px 20px 60px;
}

.hero__content {
  max-width: 800px;
  color: var(--white);
}

.hero__title {
  color: var(--white);
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  background-color: var(--primary-red);
  color: var(--white);
  padding: 16px 32px;
  font-weight: 600;
  font-size: 1.125rem;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.hero__cta:hover {
  background-color: var(--primary-red-hover);
  transform: translateY(-2px);
}

.hero__trust {
  margin-top: 2rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

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

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

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

/* Benefits Section */
.benefits {
  background-color: var(--light-grey);
}

.benefits__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .benefits__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.benefit-card {
  background-color: var(--white);
  padding: 2rem;
  box-shadow: 0 2px 8px var(--shadow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px var(--shadow-hover);
}

.benefit-card__icon {
  width: 48px;
  height: 48px;
  background-color: var(--primary-red);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.benefit-card__icon svg {
  width: 24px;
  height: 24px;
  fill: var(--white);
}

.benefit-card__title {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.benefit-card__text {
  color: var(--grey-text);
  margin-bottom: 0;
}

/* Services Section */
.services__header {
  text-align: center;
  margin-bottom: 3rem;
}

.services__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background-color: var(--white);
  border: 1px solid var(--light-grey);
  padding: 2rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.service-card:hover {
  border-color: var(--primary-red);
  box-shadow: 0 2px 8px var(--shadow);
}

.service-card__icon {
  width: 64px;
  height: 64px;
  background-color: var(--light-grey);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-card__icon svg {
  width: 32px;
  height: 32px;
  fill: var(--primary-red);
}

.service-card__title {
  margin-bottom: 0.75rem;
}

.service-card__text {
  margin-bottom: 1.5rem;
}

.service-card__link {
  color: var(--primary-red);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.service-card__link:hover {
  color: var(--primary-red-hover);
}

/* Trust Section */
.trust {
  background-color: var(--primary-black);
  color: var(--white);
}

.trust__inner {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .trust__inner {
    grid-template-columns: 1fr 1fr;
  }
}

.trust__content h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.trust__content p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
}

.trust__image {
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
              url('images/saubere-baustelle.jpg');
  background-size: cover;
  background-position: center;
  min-height: 300px;
  border-radius: 4px;
}

.trust__badges {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.trust__badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.trust__badge-icon {
  width: 40px;
  height: 40px;
  background-color: var(--primary-red);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust__badge-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--white);
}

.trust__badge-text {
  font-weight: 600;
  color: var(--white);
}

/* CTA Section */
.cta {
  background-color: var(--primary-red);
  text-align: center;
  padding: 4rem 0;
}

.cta__title {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta__text {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta__button {
  background-color: var(--white);
  color: var(--primary-red);
  padding: 16px 32px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.cta__button:hover {
  background-color: var(--light-grey);
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background-color: var(--primary-black);
  color: var(--white);
  padding: 3rem 0 1.5rem;
}

.footer__grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer__column h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer__column p,
.footer__column a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  display: block;
}

.footer__column a:hover {
  color: var(--white);
}

.footer__logo {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer__logo-dot {
  width: 12px;
  height: 12px;
  background-color: var(--primary-red);
  border-radius: 50%;
  margin-right: 10px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer__copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  margin-bottom: 0;
}

.footer__legal {
  display: flex;
  gap: 1.5rem;
}

.footer__legal a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

.footer__legal a:hover {
  color: var(--white);
}

.footer__guarantee {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-red);
  font-weight: 600;
  font-size: 0.875rem;
}

/* Service Areas (for SEO) */
.service-areas {
  background-color: var(--light-grey);
  padding: 2rem 0;
}

.service-areas__title {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.service-areas__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.service-areas__link {
  background-color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.875rem;
  color: var(--primary-black);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.service-areas__link:hover {
  background-color: var(--primary-red);
  color: var(--white);
}

/* Page Header (for subpages) */
.page-header {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
              var(--primary-black);
  padding: 120px 0 60px;
  text-align: center;
}

.page-header__title {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.page-header__subtitle {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
}

/* Services Detail Page */
.service-detail {
  padding: 4rem 0;
}

.service-detail__item {
  display: grid;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .service-detail__item {
    grid-template-columns: 1fr 1fr;
  }
  
  .service-detail__item:nth-child(even) .service-detail__content {
    order: 2;
  }
}

.service-detail__image {
  background-color: var(--light-grey);
  min-height: 300px;
  max-height: 400px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-text);
  overflow: hidden;
}

.service-detail__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-detail__image--right {
  order: 2;
}

.service-detail__content h2 {
  margin-bottom: 1rem;
}

.service-detail__content p {
  margin-bottom: 1.5rem;
}

.service-detail__list {
  margin-bottom: 1.5rem;
}

.service-detail__list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--grey-text);
}

.service-detail__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background-color: var(--primary-red);
  border-radius: 2px;
}

/* About Page */
.about__intro {
  display: grid;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .about__intro {
    grid-template-columns: 1fr 1fr;
  }
}

.about__image {
  width: 100%;
  height: auto;
  min-height: 400px;
  max-height: 500px;
  object-fit: cover;
  border-radius: 4px;
}

.about__content h2 {
  margin-bottom: 1rem;
}

.about__content p {
  margin-bottom: 1.5rem;
}

.values {
  background-color: var(--light-grey);
}

.values__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .values__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value-card {
  text-align: center;
  padding: 2rem;
}

.value-card__number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-red);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.value-card__title {
  margin-bottom: 0.5rem;
}

.value-card__text {
  margin-bottom: 0;
}

/* Contact Page */
.contact__grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .contact__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact__info h2 {
  margin-bottom: 1.5rem;
}

.contact__item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact__item-icon {
  width: 48px;
  height: 48px;
  background-color: var(--light-grey);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact__item-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--primary-red);
}

.contact__item-content h4 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.contact__item-content p {
  margin-bottom: 0;
  color: var(--grey-text);
}

.contact__phone-cta {
  background-color: var(--primary-red);
  color: var(--white);
  padding: 1.5rem;
  text-align: center;
  margin-top: 2rem;
}

.contact__phone-cta h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.contact__phone-cta a {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
}

.contact__form {
  background-color: var(--white);
  padding: 2rem;
  box-shadow: 0 2px 8px var(--shadow);
}

.form__group {
  margin-bottom: 1.5rem;
}

.form__label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--primary-black);
}

.form__label-required::after {
  content: ' *';
  color: var(--primary-red);
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--light-grey);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--primary-black);
  background-color: var(--white);
  transition: border-color var(--transition-fast);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--primary-red);
}

.form__textarea {
  min-height: 120px;
  resize: vertical;
}

.form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.form__checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary-red);
  flex-shrink: 0;
  margin-top: 2px;
}

.form__checkbox label {
  font-size: 0.875rem;
  color: var(--grey-text);
}

.form__checkbox a {
  color: var(--primary-red);
  text-decoration: underline;
}

.form__submit {
  width: 100%;
  background-color: var(--primary-red);
  color: var(--white);
  padding: 16px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.form__submit:hover {
  background-color: var(--primary-red-hover);
}

.form__intro {
  margin-bottom: 1.5rem;
}

.form__status,
.form__fallback {
  display: none;
  margin: 1rem 0 0;
  padding: 0.875rem 1rem;
  background: var(--light-grey);
  border-left: 3px solid var(--primary-red);
  color: var(--primary-black);
  font-size: 0.9rem;
}

.form__status--visible,
noscript .form__fallback {
  display: block;
}

.form__fallback a {
  color: var(--primary-red);
  text-decoration: underline;
}

/* Location */
.location-card {
  padding: clamp(2rem, 6vw, 4rem);
  background:
    linear-gradient(120deg, rgba(218, 41, 28, 0.95), rgba(184, 29, 18, 0.9)),
    url('images/saubere-baustelle.jpg') center / cover;
  color: var(--white);
  text-align: center;
}

.location-card h2,
.location-card p {
  color: var(--white);
}

.location-card__eyebrow {
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.location-card .btn {
  margin-top: 0.5rem;
  background: var(--white);
  color: var(--primary-red);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

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

/* Legal and error pages */
.legal-page__content {
  max-width: 780px;
}

.legal-page__content h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

.legal-page__content h2:first-of-type {
  margin-top: 0;
}

.legal-page__content a {
  color: var(--primary-red);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.legal-page__updated {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--light-grey);
  font-size: 0.875rem;
}

.error-page {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
  background: linear-gradient(145deg, var(--background-white), var(--light-grey));
}

.error-page__code {
  margin: 1rem 0 -0.5rem;
  color: var(--primary-red);
  font-family: var(--font-display);
  font-size: clamp(4rem, 15vw, 8rem);
  font-weight: 700;
  line-height: 1;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .hero__cta,
  .cta {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
}
