/* ============================================
   MALER FRANZ – ONE-PAGER STYLESHEET
   ============================================ */

/* --- FONTS (self-hosted, DSGVO-konform) --- */
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-900.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* --- VARIABLES --- */
:root {
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #eeeeee;
  --gray-300: #e0e0e0;
  --gray-600: #888888;
  --gray-800: #2a2a2a;
  --gray-900: #1a1a1a;
  --black: #111111;
  --text: #333333;
  --text-light: #555555;
  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1200px;
  --nav-height: 80px;
  --section-padding: 110px;
  --transition: 0.3s ease;
}

/* --- SKIP-LINK (Accessibility) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 12px 24px;
  background: var(--gray-900);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--text);
  line-height: 1.75;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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


/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 40px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav--scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 30px rgba(0, 0, 0, 0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav__logo {
  z-index: 1001;
  display: flex;
  align-items: center;
}

.nav__logo-img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter var(--transition);
}

.nav--scrolled .nav__logo-img {
  filter: none;
}

.nav__links {
  display: flex;
  gap: 40px;
}

.nav__links a {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--white);
  position: relative;
  transition: color var(--transition), opacity var(--transition);
}

.nav--scrolled .nav__links a {
  color: var(--gray-900);
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

/* Mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
  z-index: 1001;
}

.nav__toggle span {
  width: 28px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
  transform-origin: center;
}

.nav--scrolled .nav__toggle span {
  background: var(--gray-900);
}

.nav__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}


/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

/* Gradient overlays for text readability */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 250px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent);
  z-index: 2;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent);
  z-index: 2;
  pointer-events: none;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 5s ease-out forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  opacity: 0.85;
  animation: scrollFloat 2.5s ease-in-out infinite;
}

@keyframes scrollFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

.hero__scroll svg {
  width: 20px;
  height: 20px;
}


/* ============================================
   SECTIONS (generic)
   ============================================ */
.section {
  padding: var(--section-padding) 0;
}

.section--white {
  background: var(--white);
}

.section--gray {
  background: var(--gray-100);
}

.section--dark {
  background: var(--gray-900);
  color: var(--white);
}

.section__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  text-align: center;
  margin-bottom: 60px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.section__title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--gray-900);
  margin: 24px auto 0;
}

.section--dark .section__title::after {
  background: var(--white);
}


/* ============================================
   ÜBER UNS
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
}

.about-text p {
  margin-bottom: 1.3rem;
  font-size: 1.05rem;
  line-height: 1.85;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-image img {
  border-radius: 4px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.12);
}


/* ============================================
   GESCHICHTE
   ============================================ */
.history-intro {
  max-width: 800px;
  margin: 0 auto 50px;
  text-align: center;
}

.history-intro p {
  margin-bottom: 1rem;
  line-height: 1.85;
  font-size: 1.05rem;
}

.history-intro p:last-child {
  margin-bottom: 0;
}

.history-images {
  max-width: 900px;
  margin: 50px auto;
}

.history-images img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.history-statement {
  max-width: 850px;
  margin: 60px auto 0;
  padding: 0 20px;
  text-align: center;
}

.history-statement p {
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 1rem;
}

.history-statement p:last-child {
  margin-bottom: 0;
}


/* ============================================
   LEISTUNGEN
   ============================================ */
.leistungen-intro {
  padding: var(--section-padding) 0 40px;
  background: var(--white);
}

.service {
  padding: 80px 0;
}

.service:nth-child(odd) {
  background: var(--gray-100);
}

.service:nth-child(even) {
  background: var(--white);
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.service--reversed .service-image {
  order: 2;
}

.service--reversed .service-text {
  order: 1;
}

.service-image {
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.service-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-image:hover img {
  transform: scale(1.04);
}

/* --- Image Slider --- */
.slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 4px;
}

.slider__track {
  position: relative;
  width: 100%;
  height: 420px;
}

.slider__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.slider__slide.active {
  opacity: 1;
}

.slider__dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}

.slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: transparent;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  padding: 0;
}

.slider__dot.active {
  background: var(--white);
  transform: scale(1.15);
}

.slider__dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.service-text h3 {
  font-size: 1.7rem;
  font-weight: 900;
  margin-bottom: 24px;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.service-text p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.service-text p:last-child {
  margin-bottom: 0;
}


/* ============================================
   KONTAKT
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact-block h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 24px;
  opacity: 0.5;
}

.contact-block p {
  line-height: 2;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.contact-block p:last-child {
  margin-bottom: 0;
}

.contact-block a {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.25);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition);
}

.contact-block a:hover {
  text-decoration-color: rgba(255, 255, 255, 0.8);
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--black);
  color: var(--gray-600);
  padding: 35px 0;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__links {
  display: flex;
  gap: 30px;
}

.footer__links a {
  font-size: 0.85rem;
  font-weight: 400;
  transition: color var(--transition);
}

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

.footer__copy {
  font-size: 0.85rem;
}


/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 900;
  width: 48px;
  height: 48px;
  border: 1px solid var(--gray-200);
  border-radius: 50%;
  background: var(--white);
  color: var(--gray-900);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease, background 0.2s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

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

.back-to-top:hover {
  background: var(--gray-100);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}


/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.25s; }
.reveal-delay-3 { transition-delay: 0.35s; }


/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 968px) {
  :root {
    --section-padding: 80px;
    --nav-height: 70px;
  }

  .container {
    padding: 0 30px;
  }

  .nav {
    padding: 0 30px;
  }

  /* Mobile menu */
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: var(--white);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }

  .nav__links.active {
    opacity: 1;
    visibility: visible;
  }

  .nav__links a {
    color: var(--gray-900) !important;
    font-size: 1rem;
    letter-spacing: 3px;
    padding: 12px 0;
  }

  .nav__toggle.active span {
    background: var(--gray-900) !important;
  }

  /* Layouts */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .about-image {
    order: -1;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service--reversed .service-image,
  .service--reversed .service-text {
    order: unset;
  }

  .service-image img {
    height: 320px;
  }

  .slider__track {
    height: 320px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .history-statement {
    padding: 0 20px;
    margin: 40px auto 0;
  }
}

/* Mobile */
@media (max-width: 600px) {
  :root {
    --section-padding: 60px;
  }

  .container {
    padding: 0 20px;
  }

  .nav {
    padding: 0 20px;
  }

  .section__title {
    margin-bottom: 40px;
  }

  .section__title::after {
    margin-top: 18px;
  }

  .about-grid,
  .service-grid {
    gap: 30px;
  }

  .service-image img {
    height: 250px;
  }

  .slider__track {
    height: 250px;
  }

  .service {
    padding: 60px 0;
  }

  .leistungen-intro {
    padding: 60px 0 20px;
  }

  .history-intro,
  .history-statement {
    text-align: left;
  }

  .history-statement {
    padding: 0 15px;
  }

  .contact-grid {
    gap: 40px;
  }

  .footer .container {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .footer__links {
    gap: 20px;
  }

  .hero__scroll span {
    display: none;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}
