/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary:       #8B7355;
  --primary-dark:  #6E5A40;
  --accent:        #C4956A;
  --bg:            #FAFAF8;
  --bg-section:    #F5EFE8;
  --dark:          #2A1E15;
  --text:          #3D3530;
  --text-light:    #7A706A;
  --border-color:  #E0D5C8;
  --white:         #FFFFFF;
  --nav-height:    70px;
  --max-width:     1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 1rem;
}

img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Navigation ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* ===== Site Header (Logo-Bereich über der Navbar) ===== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
}

.site-header a {
  display: block;
  line-height: 0;
}

.site-header img {
  width: 280px;
  max-width: 80vw;
  height: auto;
  display: block;
}

/* Navbar-Logo (nur sichtbar wenn kein site-header vorhanden – Fallback) */
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.02em;
  display: none; /* versteckt, da Logo im site-header ist */
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  position: relative;
  padding-bottom: 3px;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--primary-dark); }

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 25px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.25s;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: transparent;
  color: var(--accent);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.8);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

.btn-dark {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-dark:hover {
  background: transparent;
  color: var(--primary);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(42,30,21,0.55) 0%, rgba(80,62,42,0.45) 100%),
    linear-gradient(135deg, #6B8C6A 0%, #8B7355 60%, #A07850 100%);
  background-size: cover;
  background-position: center;
}

/* When a real hero image exists it overlays the gradient */
.hero.has-image {
  background-image:
    linear-gradient(160deg, rgba(42,30,21,0.55) 0%, rgba(80,62,42,0.45) 100%),
    url('../img/hero.jpg');
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 3rem 1.5rem;
  max-width: 800px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

.hero-content blockquote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  font-style: italic;
  line-height: 1.45;
  margin-bottom: 2rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

.hero-content .hero-sub {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Page Hero (Unterseiten) ===== */
.page-hero {
  background: linear-gradient(135deg, #5C7A6A 0%, #8B7355 100%);
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  color: var(--white);
}

.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  margin-bottom: 0.6rem;
}

.page-hero p {
  opacity: 0.85;
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ===== Sections ===== */
.section { padding: 5rem 0; }
.section-light { background: var(--bg-section); }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.section-header p {
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
  font-size: 0.98rem;
}

.divider-line {
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin: 0.7rem auto 0;
  border-radius: 2px;
}

/* ===== Cards Grid ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--white);
  border-radius: 6px;
  padding: 2.5rem 1.75rem;
  text-align: center;
  box-shadow: 0 2px 18px rgba(0,0,0,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.card-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.5rem;
  color: var(--accent);
  transition: background 0.25s;
}

.card:hover .card-icon {
  background: var(--accent);
  color: var(--white);
}

.card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 0.6rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* ===== CTA Band ===== */
.cta-band {
  background: var(--primary);
  padding: 3.5rem 0;
  text-align: center;
  color: var(--white);
}

.cta-band h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-bottom: 0.5rem;
}

.cta-band p {
  opacity: 0.85;
  margin-bottom: 1.75rem;
  font-size: 0.98rem;
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.about-placeholder {
  width: 100%;
  padding-top: 115%;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(145deg, #D4C4B0 0%, #B8A494 100%);
}

.about-placeholder .placeholder-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  gap: 0.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.about-placeholder .placeholder-label i {
  font-size: 2.5rem;
  opacity: 0.6;
}

.about-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.about-text .inline-divider {
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--text);
  margin-bottom: 1rem;
  font-size: 0.98rem;
  line-height: 1.85;
}

.about-text ul {
  margin: 0.5rem 0 1.5rem;
}

.about-text ul li {
  padding: 0.3rem 0 0.3rem 1.5rem;
  color: var(--text);
  font-size: 0.95rem;
  position: relative;
}

.about-text ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ===== Konzept / Leitbild ===== */
.leitbild-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
}

.leitbild-block + .leitbild-block {
  border-top: 1px solid var(--border-color);
}

.leitbild-block.reverse .leitbild-img { order: 2; }
.leitbild-block.reverse .leitbild-text { order: 1; }

.leitbild-img-placeholder {
  width: 100%;
  padding-top: 65%;
  border-radius: 6px;
  background: linear-gradient(140deg, #D4C4B0 0%, #B8A494 100%);
  position: relative;
}

.leitbild-img-placeholder .placeholder-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  gap: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.leitbild-img-placeholder .placeholder-label i {
  font-size: 2rem;
  opacity: 0.55;
}

.leitbild-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.leitbild-text .inline-divider {
  width: 38px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

.leitbild-text p {
  color: var(--text);
  font-size: 0.97rem;
  line-height: 1.85;
}

/* ===== Kontakt ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
}

.contact-info-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.contact-info-item i {
  color: var(--accent);
  font-size: 1rem;
  margin-top: 3px;
  flex-shrink: 0;
  width: 1.2rem;
  text-align: center;
}

.contact-info-item p {
  font-size: 0.93rem;
  color: var(--text);
  line-height: 1.5;
}

.contact-info-item a:hover { color: var(--accent); }

/* Form */
.contact-form-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.contact-form-box .form-sub {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1.75rem;
}

.form-group { margin-bottom: 1.1rem; }

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border-color);
  border-radius: 4px;
  font-family: 'Lato', sans-serif;
  font-size: 0.97rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196,149,106,0.15);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.btn-submit {
  background: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
  padding: 0.8rem 2.5rem;
  border-radius: 3px;
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s;
}

.btn-submit:hover {
  background: transparent;
  color: var(--primary);
}

.form-notice {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.75rem;
}

/* ===== Impressum ===== */
.impressum-content { max-width: 760px; }

.impressum-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--primary);
  margin: 2rem 0 0.4rem;
}

.impressum-content h2:first-child { margin-top: 0; }

.impressum-content p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.impressum-content a {
  color: var(--accent);
  text-decoration: underline;
}

/* ===== Footer ===== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand .nav-logo {
  color: var(--white);
  font-size: 1.25rem;
  display: block;
  margin-bottom: 0.75rem;
}

.footer h4 {
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  margin-bottom: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer p, .footer address {
  font-size: 0.88rem;
  line-height: 1.75;
  font-style: normal;
  margin-bottom: 0.3rem;
}

.footer a {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}

.footer a:hover { color: var(--accent); }

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a {
  font-size: 0.88rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* ===== AOS overrides ===== */
[data-aos] { will-change: transform, opacity; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-placeholder { padding-top: 60%; }
  .leitbild-block { grid-template-columns: 1fr; gap: 2rem; }
  .leitbild-block.reverse .leitbild-img { order: 0; }
  .leitbild-block.reverse .leitbild-text { order: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  }

  .nav-links.open { display: flex; }
  .hamburger { display: flex; }

  .hero { min-height: 75vh; }
  .section { padding: 3.5rem 0; }
}

@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; }
  .hero-content blockquote { font-size: 1.4rem; }
}
