/* ===================================
   CSS Variables & Reset
   =================================== */
:root {
  --color-bg:         #FAFAF8;
  --color-white:      #FFFFFF;
  --color-surface:    #F4F2EE;
  --color-blue:       #A8D5E2;
  --color-blue-dark:  #7ABFD1;
  --color-peach:      #F4C9B3;
  --color-peach-dark: #E8A88A;
  --color-green:      #B8DDB5;
  --color-text:       #2C2C2C;
  --color-text-mid:   #5A5A5A;
  --color-text-light: #8A8A8A;
  --color-border:     #E8E4DC;
  --color-shadow:     rgba(44,44,44,0.08);

  --font-body:        'Inter', system-ui, sans-serif;
  --font-display:     'Playfair Display', Georgia, serif;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-full: 9999px;

  --transition: 0.3s ease;
  --shadow-sm:  0 2px 8px var(--color-shadow);
  --shadow-md:  0 8px 24px var(--color-shadow);
  --shadow-lg:  0 20px 48px var(--color-shadow);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a  { color: inherit; text-decoration: none; }

/* ===================================
   Utility
   =================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform 0.15s ease,
              box-shadow var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid var(--color-blue-dark);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--color-text);
  color: var(--color-white);
  border-color: var(--color-text);
}
.btn-primary:hover {
  background: #444;
  border-color: #444;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-text);
}
.btn-outline:hover {
  background: var(--color-text);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-full { width: 100%; }

.section {
  padding: 100px 0;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 60px;
  line-height: 1.2;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================
   Header
   =================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 110px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 90px;
  width: auto;
  object-fit: contain;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-mid);
  transition: background var(--transition), color var(--transition);
}

.nav-link:hover,
.nav-link.active {
  background: var(--color-surface);
  color: var(--color-text);
}

.nav-link:focus-visible {
  outline: 3px solid var(--color-blue-dark);
  outline-offset: 2px;
}

/* Burger */
.burger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  padding: 8px;
  transition: background var(--transition);
}
.burger-btn:hover { background: var(--color-surface); }
.burger-btn:focus-visible {
  outline: 3px solid var(--color-blue-dark);
  outline-offset: 2px;
}

.burger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.burger-btn.open .burger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.open .burger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger-btn.open .burger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================================
   Hero
   =================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(250, 250, 248, 0.88) 0%,
    rgba(168, 213, 226, 0.4) 50%,
    rgba(244, 201, 179, 0.3) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  padding-top: 72px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--color-blue);
  color: var(--color-text);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: 20px;
}

.hero-slogan {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 500;
  color: var(--color-text-mid);
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 0.95rem;
  color: var(--color-text-mid);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero-scroll-hint span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(44,44,44,0.3);
  border-radius: var(--radius-full);
  position: relative;
}
.hero-scroll-hint span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(44,44,44,0.4);
  border-radius: var(--radius-full);
  animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint {
  0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 0; transform: translateX(-50%) translateY(10px); }
}

/* ===================================
   Über uns
   =================================== */
.ueber-uns { background: var(--color-white); }

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

.lead-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-mid);
  margin-bottom: 48px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.value-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 20px 12px;
  border-radius: var(--radius-md);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.value-item:hover {
  background: var(--color-blue);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.value-icon {
  width: 36px;
  height: 36px;
  color: var(--color-text-mid);
  transition: color var(--transition);
}
.value-item:hover .value-icon { color: var(--color-text); }
.value-icon svg { width: 100%; height: 100%; }

.value-item span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-mid);
  letter-spacing: 0.03em;
}
.value-item:hover span { color: var(--color-text); }

.ueber-photo {
  position: sticky;
  top: 100px;
}

.team-photo {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.photo-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--color-peach);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.photo-badge strong {
  display: block;
  font-size: 2.2rem;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1;
  color: var(--color-text);
}
.photo-badge span {
  font-size: 0.75rem;
  color: var(--color-text-mid);
  line-height: 1.3;
}

/* ===================================
   Leistungen
   =================================== */
.leistungen {
  background: var(--color-bg);
  padding-bottom: 0;
}

.leistungen .container {
  margin-bottom: 0;
}

.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}

.service-block--reverse .service-img-wrap { order: 2; }
.service-block--reverse .service-content  { order: 1; }

.service-img-wrap {
  overflow: hidden;
  position: relative;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.service-img-wrap:hover .service-img {
  transform: scale(1.04);
}

.service-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 72px;
  background: var(--color-white);
}

.service-block:nth-child(even) .service-content {
  background: var(--color-surface);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--color-text-light);
}
.service-icon svg { width: 100%; height: 100%; }

.service-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.2;
}

.service-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-mid);
  margin-bottom: 32px;
  max-width: 420px;
}

/* ===================================
   CTA
   =================================== */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-peach) 100%);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}

.cta-sub {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 12px;
}

.cta-desc {
  font-size: 0.95rem;
  color: var(--color-text-mid);
  max-width: 480px;
  line-height: 1.7;
}

/* ===================================
   Kontakt
   =================================== */
.kontakt { background: var(--color-white); }

.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.kontakt-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.info-block {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--color-blue);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  color: var(--color-text);
}
.info-icon svg { width: 100%; height: 100%; }

.info-block strong {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 6px;
}
.info-block p { font-size: 0.95rem; color: var(--color-text-mid); line-height: 1.6; }
.info-block a {
  color: var(--color-text);
  font-weight: 500;
  transition: color var(--transition);
}
.info-block a:hover { color: var(--color-blue-dark); }

/* Form */
.kontakt-form-wrap {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 48px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.kontakt-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

.optional {
  font-weight: 400;
  color: var(--color-text-light);
  font-size: 0.8em;
}

.form-group input,
.form-group textarea {
  padding: 13px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-blue-dark);
  box-shadow: 0 0 0 3px rgba(122, 191, 209, 0.2);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #e05252;
  box-shadow: 0 0 0 3px rgba(224, 82, 82, 0.12);
}

.field-error {
  font-size: 0.8rem;
  color: #c0392b;
  min-height: 1em;
  font-weight: 500;
}

.form-check {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--color-text);
  cursor: pointer;
  border-radius: 4px;
  padding: 0;
  border: 1.5px solid var(--color-border);
}

.form-check label {
  flex: 1;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--color-text-mid);
  line-height: 1.5;
}

.form-check label a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.form-check label a:hover { color: var(--color-blue-dark); }


.form-success,
.form-error {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
  animation: fadeIn 0.4s ease;
}
.form-success {
  background: #e8f5e9;
  border: 1.5px solid #a5d6a7;
  color: #2e7d32;
}
.form-error {
  background: #fdecea;
  border: 1.5px solid #ef9a9a;
  color: #c62828;
}
.form-success svg,
.form-error svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 1px;
}
.form-success svg { stroke: #2e7d32; }
.form-error svg { stroke: #c62828; }

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

/* ===================================
   Footer
   =================================== */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding-top: 72px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
}

.footer-logo {
  height: 80px;
  width: auto;
  object-fit: contain;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--color-text-mid);
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  color: var(--color-text-mid);
  transition: background var(--transition), color var(--transition), transform var(--transition);
  border: 1px solid var(--color-border);
}
.footer-social a:hover {
  background: var(--color-blue);
  color: var(--color-text);
  transform: translateY(-2px);
  border-color: transparent;
}
.footer-social a:focus-visible {
  outline: 3px solid var(--color-blue-dark);
  outline-offset: 2px;
}
.footer-social svg { width: 16px; height: 16px; }

.site-footer h3 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 20px;
}

.footer-contact ul,
.footer-links ul,
.footer-legal ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact li,
.footer-links li,
.footer-legal li {
  font-size: 0.875rem;
  color: var(--color-text-mid);
}

.footer-contact a,
.footer-links a,
.footer-legal a {
  color: var(--color-text-mid);
  transition: color var(--transition);
}
.footer-contact a:hover,
.footer-links a:hover,
.footer-legal a:hover {
  color: var(--color-text);
}
.footer-contact a:focus-visible,
.footer-links a:focus-visible,
.footer-legal a:focus-visible {
  outline: 2px solid var(--color-blue-dark);
  outline-offset: 2px;
  border-radius: 2px;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 20px 0;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.82rem;
  color: var(--color-text-light);
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 1100px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer-brand { grid-column: 1 / -1; }

  .ueber-grid {
    gap: 48px;
  }
  .values-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .service-content {
    padding: 48px 48px;
  }
}

@media (max-width: 900px) {
  .ueber-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .ueber-photo {
    position: static;
  }
  .team-photo { height: 380px; }
  .photo-badge { right: 0; bottom: -16px; }

  .values-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .service-block {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .service-block--reverse .service-img-wrap { order: 0; }
  .service-block--reverse .service-content  { order: 0; }

  .service-img-wrap { height: 320px; }
  .service-content { padding: 40px 32px; }

  .kontakt-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }
  .cta-desc { margin: 0 auto; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  /* Mobile nav */
  .burger-btn { display: flex; }

  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(250, 250, 248, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 24px 24px;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: var(--shadow-md);
  }
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .nav-link {
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: var(--radius-md);
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .section-title { margin-bottom: 40px; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-brand { grid-column: auto; }

  .kontakt-form-wrap { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .hero-content { padding-top: 80px; }
  .hero-title { font-size: 2rem; }

  .values-grid { grid-template-columns: repeat(2, 1fr); }

  .service-content { padding: 32px 24px; }
  .service-img-wrap { height: 260px; }

  .photo-badge { right: 0; bottom: -12px; padding: 14px 18px; }
  .photo-badge strong { font-size: 1.8rem; }
}

/* ===================================
   Accessibility & Print
   =================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

@media print {
  .site-header, .burger-btn, .hero-scroll-hint, .btn { display: none; }
  .hero { min-height: auto; padding: 40px 0; }
  .hero-bg { display: none; }
  .hero-content { padding: 0; }
}
