/**
 * classic.css — Webfactory Preset "Classic"
 *
 * Hell, warm, professionell. Für KMU-Websites.
 * Nutzt CSS Custom Properties für Kunden-Anpassung.
 *
 * Naming: wf-* (webfactory) — keine Kollision mit Tailwind.
 * Responsive: Mobile First, Breakpoints bei 640px und 1024px.
 */

/* ── Reset & Base ──────────────────────────────────── */

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

:root {
  /* ── Color Tokens ─────────────────────────────── */
  --wf-bg: #fdfcfa;
  --wf-bg-alt: #f5f3ef;
  --wf-text: #1a1a1a;
  --wf-text-muted: #5c5a56;
  --wf-primary: #2d6a4f;
  --wf-primary-light: #d8f0e3;
  --wf-accent: #b45309;
  --wf-border: #e0ddd7;
  --wf-error: #b91c1c;

  /* ── Typography ───────────────────────────────── */
  --wf-font: 'Inter', system-ui, -apple-system, sans-serif;
  --wf-font-size: 1.125rem;    /* 18px */
  --wf-line-height: 1.6;
  --wf-heading-weight: 700;

  /* ── Spacing ──────────────────────────────────── */
  --wf-space-xs: 0.5rem;       /* 8px */
  --wf-space-s: 1rem;          /* 16px */
  --wf-space-m: 1.5rem;        /* 24px */
  --wf-space-l: 3rem;          /* 48px */
  --wf-space-xl: 5rem;         /* 80px */

  /* ── Layout ───────────────────────────────────── */
  --wf-max-width: 75rem;       /* 1200px */
  --wf-radius: 0.5rem;         /* 8px */
  --wf-radius-lg: 0.75rem;     /* 12px */
  --wf-shadow: 0 1px 4px rgba(26, 26, 26, 0.06), 0 1px 2px rgba(26, 26, 26, 0.04);
  --wf-shadow-lg: 0 4px 16px rgba(26, 26, 26, 0.08), 0 2px 6px rgba(26, 26, 26, 0.05);
}

html {
  font-family: var(--wf-font);
  font-size: var(--wf-font-size);
  line-height: var(--wf-line-height);
  color: var(--wf-text);
  background: var(--wf-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

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

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

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--wf-primary);
  outline-offset: 2px;
}

/* ── Skip Link ─────────────────────────────────────── */

.wf-skip-link {
  position: absolute;
  top: -100%;
  left: var(--wf-space-s);
  background: var(--wf-primary);
  color: #fff;
  padding: var(--wf-space-xs) var(--wf-space-s);
  border-radius: var(--wf-radius);
  z-index: 9999;
  font-weight: 600;
}

.wf-skip-link:focus {
  top: var(--wf-space-xs);
}

/* ── Container ─────────────────────────────────────── */

.wf-container {
  width: 100%;
  max-width: var(--wf-max-width);
  margin-inline: auto;
  padding-inline: var(--wf-space-s);
}

@media (min-width: 640px) {
  .wf-container { padding-inline: var(--wf-space-m); }
}

/* ── Header ────────────────────────────────────────── */

.wf-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--wf-bg);
  border-bottom: 1px solid var(--wf-border);
}

.wf-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.75rem; /* 60px */
  gap: var(--wf-space-s);
}

.wf-header__logo {
  font-weight: var(--wf-heading-weight);
  font-size: 1.25rem;
  color: var(--wf-text);
  text-decoration: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.wf-header__logo:hover {
  text-decoration: none;
  color: var(--wf-primary);
}

.wf-header__logo-img {
  height: 2.5rem;
  width: auto;
  object-fit: contain;
}

/* Desktop Nav */
.wf-nav {
  display: none;
}

@media (min-width: 1024px) {
  .wf-nav {
    display: flex;
  }
}

.wf-nav__list {
  display: flex;
  list-style: none;
  gap: var(--wf-space-m);
}

.wf-nav__link {
  color: var(--wf-text);
  font-weight: 500;
  padding: var(--wf-space-xs) 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.wf-nav__link:hover,
.wf-nav__link--active {
  text-decoration: none;
  border-bottom-color: var(--wf-primary);
  color: var(--wf-primary);
}

/* Phone CTA */
.wf-header__phone {
  display: flex;
  align-items: center;
  gap: var(--wf-space-xs);
  color: var(--wf-primary);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.wf-header__phone:hover {
  text-decoration: none;
  opacity: 0.8;
}

.wf-header__phone-label {
  display: none;
}

@media (min-width: 640px) {
  .wf-header__phone-label { display: inline; }
}

/* Hamburger */
.wf-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--wf-space-xs);
}

@media (min-width: 1024px) {
  .wf-hamburger { display: none; }
}

.wf-hamburger__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--wf-text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Mobile Menu */
.wf-mobile-menu {
  background: var(--wf-bg);
  border-bottom: 1px solid var(--wf-border);
  padding: var(--wf-space-s);
}

.wf-mobile-menu[hidden] {
  display: none;
}

.wf-mobile-menu__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--wf-space-xs);
}

.wf-mobile-menu__link {
  display: block;
  padding: var(--wf-space-xs) var(--wf-space-s);
  color: var(--wf-text);
  font-weight: 500;
  border-radius: var(--wf-radius);
}

.wf-mobile-menu__link:hover,
.wf-mobile-menu__link--active {
  background: var(--wf-primary-light);
  color: var(--wf-primary);
  text-decoration: none;
}

.wf-mobile-menu__phone {
  display: block;
  margin-top: var(--wf-space-s);
  padding: var(--wf-space-xs) var(--wf-space-s);
  color: var(--wf-primary);
  font-weight: 600;
}

/* ── Main ──────────────────────────────────────────── */

.wf-main {
  flex: 1;
}

/* ── Block Shared ──────────────────────────────────── */

.wf-block {
  padding-block: var(--wf-space-l);
}

.wf-block:nth-child(even) {
  background: var(--wf-bg-alt);
}

.wf-block__title {
  font-size: 1.75rem;
  font-weight: var(--wf-heading-weight);
  margin-bottom: var(--wf-space-xs);
}

.wf-block__subtitle {
  color: var(--wf-text-muted);
  margin-bottom: var(--wf-space-m);
}

@media (min-width: 640px) {
  .wf-block { padding-block: var(--wf-space-xl); }
  .wf-block__title { font-size: 2rem; }
}

/* ── Buttons ───────────────────────────────────────── */

.wf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--wf-radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  min-height: 2.75rem; /* 44px touch target */
  min-width: 2.75rem;
}

.wf-btn--primary {
  background: var(--wf-accent, var(--wf-primary));
  color: #fff;
  border-color: var(--wf-accent, var(--wf-primary));
}

.wf-btn--primary:hover {
  opacity: 0.9;
  text-decoration: none;
}

.wf-btn--secondary {
  background: var(--wf-primary-light);
  color: var(--wf-primary);
  border-color: var(--wf-primary-light);
}

.wf-btn--secondary:hover {
  background: var(--wf-primary);
  color: #fff;
  text-decoration: none;
}

.wf-btn--outline {
  background: transparent;
  color: var(--wf-accent, var(--wf-primary));
  border-color: var(--wf-accent, var(--wf-primary));
}

.wf-btn--outline:hover {
  background: var(--wf-accent, var(--wf-primary));
  color: #fff;
  text-decoration: none;
}

/* ── Hero ──────────────────────────────────────────── */

.wf-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding-block: var(--wf-space-xl);
  background: var(--wf-bg-alt);
  overflow: hidden;
}

.wf-hero__bg {
  position: absolute;
  inset: 0;
}

.wf-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wf-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 12, 8, 0.35) 0%, rgba(15, 12, 8, 0.65) 100%);
}

.wf-hero__content {
  position: relative;
  z-index: 1;
}

.wf-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wf-space-xs);
  margin-bottom: var(--wf-space-s);
}

.wf-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--wf-primary-light);
  color: var(--wf-primary);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 999px;
}

.wf-hero__title {
  font-size: 2rem;
  font-weight: var(--wf-heading-weight);
  line-height: 1.2;
  margin-bottom: var(--wf-space-xs);
}

.wf-hero__subtitle {
  font-size: 1.25rem;
  color: var(--wf-text-muted);
  margin-bottom: var(--wf-space-xs);
}

.wf-hero__body {
  font-size: 1.125rem;
  max-width: 40rem;
  margin-bottom: var(--wf-space-m);
}

.wf-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wf-space-s);
}

/* Hero with background image: white text */
.wf-hero:has(.wf-hero__bg) .wf-hero__title,
.wf-hero:has(.wf-hero__bg) .wf-hero__subtitle,
.wf-hero:has(.wf-hero__bg) .wf-hero__body {
  color: #fff;
}

.wf-hero:has(.wf-hero__bg) .wf-hero__subtitle {
  color: rgba(255, 255, 255, 0.85);
}

@media (min-width: 640px) {
  .wf-hero { min-height: 75vh; }
  .wf-hero__title { font-size: 2.75rem; }
  .wf-hero__subtitle { font-size: 1.5rem; }
}

/* ── Text Block ────────────────────────────────────── */

.wf-text__inner {
  max-width: 48rem;
}

.wf-text--with-image .wf-text__inner {
  max-width: var(--wf-max-width);
  display: flex;
  align-items: center;
  gap: var(--wf-space-l);
}

.wf-text--image-left .wf-text__inner {
  flex-direction: row;
}

.wf-text--image-right .wf-text__inner {
  flex-direction: row;
}

@media (max-width: 640px) {
  .wf-text--with-image .wf-text__inner {
    flex-direction: column;
  }
}

.wf-text__image {
  flex-shrink: 0;
  width: 200px;
}

.wf-text__image img {
  width: 100%;
  height: auto;
  border-radius: var(--wf-radius-lg);
}

.wf-text__content {
  flex: 1;
}

.wf-text__body {
  color: var(--wf-text);
}

.wf-text__body p + p {
  margin-top: var(--wf-space-s);
}

/* ── Grid Shared (Tiles, Cards, Team, Steps, Gallery) */

.wf-tiles__grid,
.wf-cards__grid,
.wf-team__grid,
.wf-steps__grid,
.wf-gallery__grid {
  display: grid;
  gap: var(--wf-space-m);
  margin-top: var(--wf-space-m);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .wf-tiles__grid,
  .wf-cards__grid,
  .wf-team__grid,
  .wf-steps__grid,
  .wf-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .wf-tiles__grid,
  .wf-cards__grid,
  .wf-team__grid,
  .wf-steps__grid,
  .wf-gallery__grid {
    grid-template-columns: repeat(var(--wf-cols, 3), 1fr);
  }
}

/* ── Tiles ─────────────────────────────────────────── */

.wf-tile {
  padding: var(--wf-space-m);
  background: var(--wf-bg);
  border: 1px solid var(--wf-border);
  border-radius: var(--wf-radius-lg);
  transition: box-shadow 0.2s;
}

.wf-tile:hover {
  box-shadow: var(--wf-shadow-lg);
}

.wf-tile__icon {
  display: block;
  font-size: 2rem;
  margin-bottom: var(--wf-space-xs);
}

.wf-tile__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--wf-space-xs);
}

.wf-tile__body {
  color: var(--wf-text-muted);
  font-size: 0.9375rem;
}

/* ── Cards ─────────────────────────────────────────── */

.wf-card {
  display: flex;
  flex-direction: column;
  background: var(--wf-bg);
  border: 1px solid var(--wf-border);
  border-radius: var(--wf-radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--wf-text);
  transition: box-shadow 0.2s;
}

a.wf-card:hover {
  box-shadow: var(--wf-shadow-lg);
  text-decoration: none;
}

.wf-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.wf-card__content {
  padding: var(--wf-space-m);
}

.wf-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--wf-space-xs);
}

.wf-card__body {
  color: var(--wf-text-muted);
  font-size: 0.9375rem;
}

/* ── Team ──────────────────────────────────────────── */

.wf-team__member {
  text-align: center;
}

.wf-team__photo {
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  object-fit: cover;
  margin-inline: auto;
  margin-bottom: var(--wf-space-s);
}

.wf-team__photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wf-primary-light);
  color: var(--wf-primary);
  font-size: 2rem;
  font-weight: var(--wf-heading-weight);
}

.wf-team__name {
  font-size: 1.125rem;
  font-weight: 600;
}

.wf-team__role {
  color: var(--wf-primary);
  font-size: 0.9375rem;
  font-weight: 500;
}

.wf-team__bio {
  color: var(--wf-text-muted);
  font-size: 0.9375rem;
  margin-top: var(--wf-space-xs);
}

/* ── CTA Block ─────────────────────────────────────── */

.wf-cta {
  background: var(--wf-accent, var(--wf-primary)) !important;
  color: #fff;
  text-align: center;
}

.wf-cta__inner {
  max-width: 40rem;
}

.wf-cta__title {
  font-size: 1.75rem;
  font-weight: var(--wf-heading-weight);
  color: #fff;
  margin-bottom: var(--wf-space-xs);
}

.wf-cta__body {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--wf-space-m);
}

.wf-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--wf-space-s);
}

.wf-cta .wf-btn--primary {
  background: #fff;
  color: var(--wf-accent, var(--wf-primary));
  border-color: #fff;
}

.wf-cta .wf-btn--outline {
  color: #fff;
  border-color: #fff;
}

.wf-cta .wf-btn--outline:hover {
  background: #fff;
  color: var(--wf-accent, var(--wf-primary));
}

@media (min-width: 640px) {
  .wf-cta__title { font-size: 2rem; }
}

/* ── FAQ ───────────────────────────────────────────── */

.wf-faq__list {
  max-width: 48rem;
  margin-top: var(--wf-space-m);
}

.wf-faq__item {
  border-bottom: 1px solid var(--wf-border);
}

.wf-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--wf-space-s) 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.wf-faq__question::-webkit-details-marker {
  display: none;
}

.wf-faq__question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--wf-text-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: var(--wf-space-s);
}

details[open] .wf-faq__question::after {
  content: '−';
}

.wf-faq__answer {
  padding-bottom: var(--wf-space-s);
  color: var(--wf-text-muted);
}

/* ── Steps ─────────────────────────────────────────── */

.wf-step {
  text-align: center;
  padding: var(--wf-space-m);
}

.wf-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--wf-primary);
  color: #fff;
  font-size: 1.25rem;
  font-weight: var(--wf-heading-weight);
  margin-bottom: var(--wf-space-s);
}

.wf-step__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--wf-space-xs);
}

.wf-step__body {
  color: var(--wf-text-muted);
  font-size: 0.9375rem;
}

/* ── Contact ───────────────────────────────────────── */

.wf-contact__grid {
  display: grid;
  gap: var(--wf-space-l);
  margin-top: var(--wf-space-m);
  grid-template-columns: 1fr;
}

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

.wf-contact__item {
  display: flex;
  gap: var(--wf-space-s);
  margin-bottom: var(--wf-space-s);
}

.wf-contact__icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.wf-contact__map iframe {
  border-radius: var(--wf-radius-lg);
}

/* Contact Form */
.wf-contact__form {
  display: flex;
  flex-direction: column;
  gap: var(--wf-space-s);
}

.wf-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.wf-form__field label {
  font-weight: 500;
  font-size: 0.9375rem;
}

.wf-form__field input,
.wf-form__field textarea {
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--wf-border);
  border-radius: var(--wf-radius);
  font-family: inherit;
  font-size: 1rem;
  color: var(--wf-text);
  background: var(--wf-bg);
  min-height: 2.75rem; /* 44px touch target */
}

.wf-form__field input:focus,
.wf-form__field textarea:focus {
  border-color: var(--wf-primary);
}

.wf-form__hint {
  font-size: 0.8125rem;
  color: var(--wf-text-muted);
}

/* ── Gallery ───────────────────────────────────────── */

.wf-gallery__item {
  overflow: hidden;
  border-radius: var(--wf-radius-lg);
}

.wf-gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.3s;
}

.wf-gallery__item:hover img {
  transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
  .wf-gallery__item:hover img {
    transform: none;
  }
}

/* ── Trust ─────────────────────────────────────────── */

.wf-trust {
  padding-block: var(--wf-space-m);
}

.wf-trust__grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--wf-space-l);
}

.wf-trust__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--wf-space-xs);
  min-width: 120px;
}

.wf-trust__icon {
  font-size: 2rem;
}

.wf-trust__image {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: var(--wf-radius);
}

.wf-trust__label {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--wf-text);
}

.wf-trust__sublabel {
  font-size: 0.8125rem;
  color: var(--wf-text-muted);
}

/* ── Video ─────────────────────────────────────────── */

.wf-video__wrapper {
  margin-top: var(--wf-space-m);
  border-radius: var(--wf-radius-lg);
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}

.wf-video__player {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wf-video__iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Markdown / Prose ──────────────────────────────── */

.wf-prose {
  max-width: 48rem;
}

.wf-prose h1 { font-size: 2rem; margin-bottom: var(--wf-space-s); font-weight: var(--wf-heading-weight); }
.wf-prose h2 { font-size: 1.5rem; margin-top: var(--wf-space-l); margin-bottom: var(--wf-space-xs); font-weight: var(--wf-heading-weight); }
.wf-prose h3 { font-size: 1.25rem; margin-top: var(--wf-space-m); margin-bottom: var(--wf-space-xs); font-weight: 600; }
.wf-prose p { margin-bottom: var(--wf-space-s); }
.wf-prose ul, .wf-prose ol { margin-bottom: var(--wf-space-s); padding-left: var(--wf-space-m); }
.wf-prose li { margin-bottom: 0.25rem; }
.wf-prose a { color: var(--wf-primary); text-decoration: underline; }

.wf-error {
  color: var(--wf-error);
  font-weight: 600;
}

/* ── Footer ────────────────────────────────────────── */

.wf-footer {
  background: #1c1917;
  color: #c7c2ba;
  padding-top: var(--wf-space-l);
}

.wf-footer a {
  color: #e7e5e0;
}

.wf-footer a:hover {
  color: #fff;
}

.wf-footer__inner {
  display: grid;
  gap: var(--wf-space-m);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .wf-footer__inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.wf-footer__brand {
  font-weight: var(--wf-heading-weight);
  font-size: 1.125rem;
  color: #fff;
  margin-bottom: var(--wf-space-xs);
}

.wf-footer__heading {
  font-weight: 600;
  color: #fff;
  margin-bottom: var(--wf-space-xs);
}

.wf-footer__text {
  margin-bottom: 0.25rem;
  font-size: 0.9375rem;
}

.wf-footer__nav {
  list-style: none;
}

.wf-footer__nav li {
  margin-bottom: 0.25rem;
}

.wf-footer__nav a {
  font-size: 0.9375rem;
}

.wf-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--wf-space-s);
  padding-block: var(--wf-space-s);
  margin-top: var(--wf-space-l);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
}

.wf-footer__bottom nav {
  display: flex;
  gap: var(--wf-space-s);
}
