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

html {
  scroll-behavior: smooth;
}

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

button {
  cursor: pointer;
  font-family: inherit;
}

/* ============================================================
   CUSTOM PROPERTIES
   ============================================================ */
:root {
  --color-bg:         #faf8f5;
  --color-bg-alt:     #f2ede6;
  --color-dark:       #1c1410;
  --color-accent:     #b5451b;
  --color-muted:      #888888;
  --color-border:     #ede8e0;
  --color-white:      #ffffff;

  --font-serif:  Georgia, 'Times New Roman', serif;
  --font-sans:   -apple-system, 'Helvetica Neue', Arial, sans-serif;

  --text-eyebrow:  10px;
  --text-body:     15px;
  --text-h3:       20px;
  --text-h2:       36px;
  --text-h1:       52px;

  --container-max: 1100px;
  --section-pad-v: 80px;
  --section-pad-h: 40px;
}

/* Responsive design tokens */
@media (max-width: 768px) {
  :root {
    --section-pad-v: 56px;
    --section-pad-h: 20px;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  :root {
    --section-pad-v: 64px;
  }
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  color: var(--color-dark);
  background: var(--color-bg);
  line-height: 1.6;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--section-pad-h);
}

.eyebrow {
  font-size: var(--text-eyebrow);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: var(--text-h2);
  line-height: 1.15;
  color: var(--color-dark);
  margin-bottom: 14px;
}

.section-sub {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.6;
  max-width: 520px;
}

.btn-primary {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 13px 28px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  transition: background 0.2s ease;
}

.btn-primary:hover {
  background: #9a3a16;
}

/* ============================================================
   NAV
   ============================================================ */
#main-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.2s ease, backdrop-filter 0.2s ease;
}

#main-nav.scrolled {
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--section-pad-h);
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-dark);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo span {
  color: var(--color-accent);
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--color-dark);
}

.nav-cta {
  margin-left: 20px;
  font-size: 11px;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  background: none;
  border: none;
  padding: 0;
  margin-left: auto;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-dark);
}

/* Mobile overlay
   Uses visibility + opacity instead of display:none so the 0.2s
   opacity transition actually fires (display change suppresses transitions). */
#mobile-overlay {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--color-dark);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

#mobile-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.overlay-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 28px;
  line-height: 1;
  opacity: 0.7;
}

.overlay-close:hover {
  opacity: 1;
}

.overlay-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.overlay-nav a {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--color-white);
  text-decoration: none;
  transition: color 0.2s;
}

.overlay-nav a:hover {
  color: var(--color-accent);
}

.overlay-phone {
  font-family: var(--font-sans) !important;
  font-size: 14px !important;
  color: rgba(255,255,255,0.5) !important;
  letter-spacing: 1px;
  margin-top: 16px;
}

/* Responsive nav */
@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  background: var(--color-bg);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: end;
  padding-top: var(--section-pad-v);
}

.hero-text h1 {
  font-family: var(--font-serif);
  font-size: var(--text-h1);
  line-height: 1.1;
  color: var(--color-dark);
  margin-bottom: 20px;
}

.hero-sub {
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.65;
  max-width: 400px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.hero-ghost {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-dark);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.hero-ghost:hover {
  color: var(--color-accent);
}

.hero-image {
  align-self: end;
}

.hero-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center;
  border-radius: 4px 4px 0 0;
}

/* Stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 100%;
  margin-top: 48px;
  background: var(--color-accent);
}

.stat {
  padding: 24px 40px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat:last-child {
  border-right: none;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
}

.stat-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

/* Responsive hero */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 48px;
    gap: 32px;
  }

  .hero-text h1 {
    font-size: 36px;
  }

  .hero-image img {
    height: 280px;
    border-radius: 4px;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 32px;
  }

  .stat {
    padding: 20px 16px;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero-text h1 {
    font-size: 38px;
  }

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

/* ============================================================
   SERVICES
   ============================================================ */
#leistungen {
  padding: var(--section-pad-v) 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 48px;
  background: var(--color-border);
}

.service-card {
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  position: relative;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-border);
  transition: background 0.25s ease;
}

.service-card:hover::after {
  background: var(--color-accent);
}

.service-photo img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.service-body {
  padding: 28px 24px 32px;
  flex: 1;
}

.service-num {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 700;
  color: var(--color-border);
  line-height: 1;
  display: block;
  margin-bottom: 12px;
}

.service-body h3 {
  font-family: var(--font-serif);
  font-size: var(--text-h3);
  color: var(--color-dark);
  margin-bottom: 10px;
}

.service-body p {
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.6;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.service-tags span {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 10px;
  padding: 4px 10px;
  letter-spacing: 0.5px;
}

/* Responsive services */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}


/* ============================================================
   ÜBER UNS
   ============================================================ */
#ueber-uns {
  background: var(--color-dark);
}

.about-photo-wrap {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  overflow: hidden;
}

.about-photo-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.about-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 40px 32px;
  background: linear-gradient(to top, rgba(28, 20, 16, 0.85) 0%, transparent 100%);
}

.about-overlay .eyebrow {
  color: var(--color-accent);
  margin-bottom: 10px;
}

.about-overlay h2 {
  font-family: var(--font-serif);
  font-size: var(--text-h2);
  color: var(--color-white);
  line-height: 1.15;
}

.about-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.about-strip-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 28px var(--section-pad-h);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-name {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--color-white);
  margin-bottom: 6px;
}

.about-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.about-badges span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 7px 14px;
}

/* Responsive about */
@media (max-width: 768px) {
  .about-overlay {
    padding: 40px 20px 24px;
  }

  .about-overlay h2 {
    font-size: 26px;
  }

  .about-strip-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 20px;
  }

  .about-badges {
    justify-content: flex-start;
  }
}

/* ============================================================
   GALLERY
   ============================================================ */
#galerie {
  background: var(--color-bg-alt);
  padding: var(--section-pad-v) 0;
}

#galerie .container {
  margin-bottom: 40px;
}

.gallery-wrap {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--section-pad-h);
}

/* Feature photo */
.gallery-feature {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  margin-bottom: 6px;
}

.gallery-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.gallery-feature:hover img {
  transform: scale(1.02);
}

/* Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.gallery-item {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.02);
}

/* Label overlay — shared by feature and grid items */
.gallery-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 16px 14px;
  background: linear-gradient(to top, rgba(28, 20, 16, 0.75) 0%, transparent 100%);
  color: rgba(255, 255, 255, 0.9);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.gallery-feature .gallery-label {
  padding: 60px 24px 20px;
}

/* Responsive gallery */
@media (max-width: 768px) {
  .gallery-wrap {
    padding: 0 20px;
  }

  .gallery-feature {
    height: 240px;
  }

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

  .gallery-item {
    height: 200px;
  }
}

/* ============================================================
   CONTACT
   ============================================================ */
#kontakt {
  padding: var(--section-pad-v) 0;
}

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

.contact-details {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  width: 36px;
  height: 36px;
  background: var(--color-accent);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-row strong {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-dark);
  margin-bottom: 3px;
}

.contact-row span,
.contact-row a {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.5;
  text-decoration: none;
}

.contact-row a:hover {
  color: var(--color-accent);
}

/* Form card */
.contact-form-card {
  background: var(--color-white);
  padding: 36px;
}

.contact-form-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--color-dark);
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-field label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  border: 1px solid var(--color-border);
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  background: var(--color-bg);
  color: var(--color-dark);
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--color-accent);
}

.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-field textarea {
  resize: vertical;
  min-height: 100px;
}

.form-submit {
  width: 100%;
  padding: 14px;
  font-size: 11px;
  letter-spacing: 2px;
  margin-top: 6px;
  border: none;
}

.form-note {
  font-size: 12px;
  color: var(--color-muted);
  margin-top: 10px;
  min-height: 1.5em;
  text-align: center;
}

/* Responsive contact */
@media (min-width: 769px) and (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form-card {
    padding: 24px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Prevent iOS auto-zoom on input focus */
  .form-field input,
  .form-field select,
  .form-field textarea {
    font-size: 16px;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
#main-footer {
  background: var(--color-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 24px var(--section-pad-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.35);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.7);
}

.footer-copy {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    padding: 20px;
  }
}

/* ============================================================
   LEGAL PAGES (Impressum, Datenschutz)
   ============================================================ */
.legal-page {
  min-height: 60vh;
  padding: var(--section-pad-v) 0;
}

.legal-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--section-pad-h);
}

.legal-inner h1 {
  font-family: var(--font-serif);
  font-size: var(--text-h2);
  color: var(--color-dark);
  margin-bottom: 8px;
}

.legal-lead {
  color: var(--color-muted);
  font-size: 14px;
  margin-bottom: 48px;
}

.legal-inner h2 {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--color-dark);
  margin: 32px 0 10px;
}

.legal-inner p {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-inner a {
  color: var(--color-accent);
  text-decoration: none;
}

.legal-inner a:hover {
  text-decoration: underline;
}

.legal-note {
  margin-top: 40px;
  padding: 16px;
  background: var(--color-bg-alt);
  border-left: 3px solid var(--color-accent);
  font-size: 13px !important;
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .gallery-feature img,
  .gallery-item img {
    transition: none;
  }

  #mobile-overlay {
    transition: none;
  }
}
