/* =============================================
   WebsiteAgent – Generated CSS
   Site: Steffenhof
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: #2c1810;
  background-color: #fdfaf5;
  line-height: 1.6;
}

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

a {
  color: #34355e;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================
   HEADER
   ============================================= */

header {
  background-color: #c8a05a;
  color: #fff;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

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

.logo {
  font-family: Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo:hover {
  text-decoration: none;
  opacity: 0.9;
}

/* =============================================
   NAVIGATION
   ============================================= */

nav ul {
  list-style: none;
  display: flex;
  gap: 8px;
}

nav ul li a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s;
}

nav ul li a:hover,
nav ul li a.active {
  background-color: rgba(255,255,255,0.15);
  color: #fff;
  text-decoration: none;
}

/* Dropdown Navigation */
nav ul li { position: relative; }

/* Chevron-Button (Touch/Tablet-freundlich) */
.dropdown-toggle {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0;
  line-height: 1;
  vertical-align: middle;
  transition: transform 0.25s ease, color 0.2s, background 0.2s;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
}

.dropdown-toggle:hover {
  color: #fff;
  background: rgba(255,255,255,0.15);
}

nav ul li.has-dropdown:hover > .dropdown-toggle,
nav ul li.has-dropdown.open  > .dropdown-toggle {
  transform: rotate(180deg);
  color: #fff;
}

nav ul li.has-dropdown .dropdown {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background-color: #c8a05a;
  border-radius: 6px;
  min-width: 200px;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  padding: 6px 0;
}

nav ul li.has-dropdown:hover .dropdown,
nav ul li.has-dropdown.open  .dropdown { display: block; }
nav ul li.has-dropdown .dropdown li   { display: block; }

nav ul li.has-dropdown .dropdown a {
  display: block;
  padding: 9px 18px;
  white-space: nowrap;
  border-radius: 0;
}

nav ul li.has-dropdown .dropdown a:hover {
  background-color: rgba(255,255,255,0.15);
}

@media (max-width: 768px) {
  nav ul li.has-dropdown .dropdown {
    display: block;
    position: static;
    box-shadow: none;
    padding: 0 0 4px 16px;
    border-radius: 0;
    background-color: transparent;
    min-width: 0;
  }
  /* Im Hamburger-Menü: Button ausblenden, Unterseiten immer sichtbar */
  .dropdown-toggle { display: none; }
  nav ul li.has-dropdown .dropdown li { display: block; }
  nav ul li.has-dropdown .dropdown a { padding: 10px 16px; font-size: 0.95rem; opacity: 0.85; }
}

/* =============================================
   SECTIONS – Gemeinsam
   ============================================= */

section {
  padding: 80px 0;
}

section:nth-child(even) {
  background-color: #f8f9fa;
}

.section-headline {
  font-family: Georgia, serif;
  font-size: 2rem;
  color: #c8a05a;
  margin-bottom: 20px;
  line-height: 1.2;
}

.section-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #2c1810;
  max-width: 720px;
}

/* =============================================
   HERO SECTION
   ============================================= */

.section-hero {
  background: linear-gradient(135deg, #c8a05a 0%, #b58e4a 100%);
  color: #fff;
  padding: 100px 0;
}

.section-hero .section-headline {
  color: #fff;
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.section-hero .section-body {
  color: rgba(255,255,255,0.85);
  font-size: 1.2rem;
  margin-bottom: 36px;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-content {
  flex: 1;
}

.hero-image {
  flex: 1;
}

.hero-image img {
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background-color: #34355e;
  color: #fff;
  border: 2px solid #34355e;
}

.btn-primary:hover {
  background-color: transparent;
  color: #34355e;
  text-decoration: none;
}

/* =============================================
   TEXT SECTION
   ============================================= */

.section-text .section-body {
  max-width: 800px;
}

/* =============================================
   TEXT-IMAGE SECTION
   ============================================= */

.text-image-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}

.text-image-inner.image-left {
  flex-direction: row-reverse;
}

.text-image-content {
  flex: 1;
}

.text-image-img {
  flex: 1;
}

.text-image-img img {
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.image-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #e0e7ef, #c8d6e5);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7a8fa6;
  font-size: 0.9rem;
}

/* =============================================
   CARDS SECTION
   ============================================= */

.cards-grid {
  display: grid;
  gap: 28px;
  margin-top: 40px;
}

.cards-grid.cols-1 { grid-template-columns: 1fr; }
.cards-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cards-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border-radius: 12px;
  padding: 32px 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.card-title {
  font-family: Georgia, serif;
  font-size: 1.2rem;
  color: #c8a05a;
  margin-bottom: 10px;
  font-weight: 700;
}

.card-text {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.7;
}

/* =============================================
   CONTACT INFO SECTION
   ============================================= */

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.05rem;
}

.contact-icon {
  font-size: 1.6rem;
  width: 48px;
  height: 48px;
  background: #34355e1a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-label {
  font-weight: 600;
  color: #c8a05a;
  margin-right: 8px;
}

/* =============================================
   FOOTER
   ============================================= */

footer {
  background-color: #c8a05a;
  color: rgba(255,255,255,0.8);
  padding: 60px 0 30px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col-title {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul li {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

.footer-col ul li a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* =============================================
   HAMBURGER NAVIGATION
   ============================================= */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: background 0.2s;
  gap: 5px;
  flex-shrink: 0;
}

.nav-toggle:hover {
  background: rgba(255,255,255,0.12);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* X-Animation wenn offen */
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

@media (max-width: 900px) {
  .hero-inner,
  .text-image-inner,
  .text-image-inner.image-left {
    flex-direction: column;
    gap: 36px;
  }

  .section-hero .section-headline {
    font-size: 2rem;
  }

  .cards-grid.cols-3,
  .cards-grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: #c8a05a;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    padding: 16px 0;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.25s ease;
    z-index: 999;
    pointer-events: none;
  }

  nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0 16px;
  }

  nav ul li a {
    display: block;
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: 8px;
  }
}

@media (max-width: 600px) {
  section {
    padding: 60px 0;
  }

  .section-headline {
    font-size: 1.6rem;
  }

  .cards-grid.cols-2,
  .cards-grid.cols-3,
  .cards-grid.cols-4 {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   FAQ ACCORDION
   ============================================= */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text, #333);
  text-align: left;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: #f9fafb;
}

.faq-question[aria-expanded="true"] {
  color: var(--color-primary, #2c3e50);
}

.faq-icon {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--color-accent, #3498db);
  flex-shrink: 0;
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding: 0 22px 18px;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #555;
}

/* =============================================
   GALERIE
   ============================================= */

.gallery-grid {
  display: grid;
  gap: 14px;
  margin-top: 32px;
}

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

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: #f3f4f6;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

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

.gallery-caption {
  padding: 8px 12px;
  font-size: 0.82rem;
  color: #6b7280;
  text-align: center;
  background: #fff;
}

@media (max-width: 768px) {
  .gallery-grid.cols-3,
  .gallery-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
  .gallery-grid.cols-2,
  .gallery-grid.cols-3,
  .gallery-grid.cols-4 { grid-template-columns: 1fr; }
}

/* =============================================
   GRID CONTAINER
   ============================================= */

.section-grid {
  padding: 60px 0;
}

.grid-inner {
  display: grid;
  gap: 28px;
}

.grid-inner.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-inner.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-inner.cols-4 { grid-template-columns: repeat(4, 1fr); }

.grid-inner.gap-none   { gap: 0; }
.grid-inner.gap-small  { gap: 14px; }
.grid-inner.gap-normal { gap: 28px; }
.grid-inner.gap-large  { gap: 42px; }

.grid-cell {
  min-width: 0; /* Prevent grid blowout */
}

/* Grid-Kinder: keine eigene Section-Padding und kein Container-Max-Width */
.grid-cell .section-text,
.grid-cell .section-text-image,
.grid-cell .section-cards,
.grid-cell .section-contact-info,
.grid-cell .section-faq,
.grid-cell .section-gallery,
.grid-cell .section-html {
  padding: 0;
}

.grid-cell .container {
  max-width: none;
  padding: 0;
}

/* Grid-Kinder: alternierenden Hintergrund deaktivieren */
.grid-cell section:nth-child(even) {
  background-color: inherit;
}

@media (max-width: 900px) {
  .grid-inner.cols-3,
  .grid-inner.cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .grid-inner.cols-2,
  .grid-inner.cols-3,
  .grid-inner.cols-4 { grid-template-columns: 1fr; }
}

/* =============================================
   KONTAKTFORMULAR
   ============================================= */

.section-contact-form { padding: 60px 0; }

.cf-subtext {
  font-size: 1.05rem;
  color: var(--color-text);
  opacity: 0.75;
  margin-bottom: 32px;
  max-width: 600px;
}

.cf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 760px;
}

.cf-group { display: flex; flex-direction: column; gap: 5px; }
.cf-group.cf-full { grid-column: 1 / -1; }

.cf-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  opacity: 0.85;
}

.cf-req { color: var(--color-primary); font-weight: 700; }

.cf-form input[type=text],
.cf-form input[type=email],
.cf-form input[type=tel],
.cf-form textarea {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  color: var(--color-text);
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

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

.cf-privacy { margin-top: 4px; }

.cf-privacy-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 400 !important;
  opacity: 0.8;
  line-height: 1.5;
}

.cf-privacy-label input[type=checkbox] {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--color-primary);
}

.cf-privacy-label a {
  color: var(--color-primary);
  text-decoration: none;
}

.cf-form .btn { margin-top: 8px; }

.cf-feedback {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.88rem;
  max-width: 760px;
}

.cf-feedback.cf-success {
  background: rgba(74,222,128,0.12);
  border: 1px solid rgba(74,222,128,0.3);
  color: #4ade80;
}

.cf-feedback.cf-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #f87171;
}

@media (max-width: 600px) {
  .cf-grid { grid-template-columns: 1fr; }
  .cf-group.cf-full { grid-column: 1; }
}

/* =============================================
   LAZY LOAD / SCROLL REVEAL
   ============================================= */

section {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Erste Section (Hero) sofort sichtbar – kein Fade beim Seitenaufruf */
section:first-of-type {
  opacity: 1;
  transform: none;
  transition: none;
}

/* =============================================
   BACK TO TOP BUTTON
   ============================================= */

#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
  background: var(--color-primary, #2c3e50);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
  opacity: 0;
  transform: translateY(12px) scale(0.85);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
  pointer-events: none;
  z-index: 999;
}

#back-to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

#back-to-top:hover {
  background: var(--color-accent, #3498db);
  transform: translateY(-2px) scale(1.08);
}

@media (max-width: 600px) {
  #back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}

/* =============================================
   HTML / EMBED SECTION
   ============================================= */

.section-html {
  padding: 40px 0;
}

.section-html iframe {
  width: 100%;
  border: none;
  display: block;
}

.section-html video,
.section-html embed,
.section-html object {
  max-width: 100%;
  display: block;
}

/* =============================================
   HERO-GRID SECTION (Splash mit Hintergrund-Medium)
   ============================================= */

.section-hero-grid {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-grid-wrap {
  position: relative;
  z-index: 2;
}

.hero-grid-content {
  display: grid;
  gap: 40px;
  padding: 80px 0;
  align-items: center;
}

.hero-grid-content.cols-1 { grid-template-columns: 1fr; }
.hero-grid-content.cols-2 { grid-template-columns: 1fr 1fr; }

.hero-grid-content.align-left   { text-align: left; }
.hero-grid-content.align-center { text-align: center; }
.hero-grid-content.align-right  { text-align: right; }

/* Kinder-Sections: kein eigenes Padding, kein Container-Limit */
.section-hero-grid .hg-child > section {
  padding: 0;
}
.section-hero-grid .hg-child .container {
  max-width: none;
  padding: 0;
}

/* Text-Farben hell (auf dunklem Hintergrund) */
.section-hero-grid .section-headline { color: #fff; }
.section-hero-grid .section-body     { color: rgba(255,255,255,0.88); max-width: none; }

/* Alternierenden Hintergrund für Kinder-Sections deaktivieren */
.section-hero-grid .hg-child section:nth-child(even) {
  background-color: inherit;
}

@media (max-width: 900px) {
  .hero-grid-content.cols-2 { grid-template-columns: 1fr; }
}

/* =============================================
   ONEPAGE MODE
   ============================================= */

/* Header: fixed, transparent über Hero-Bild, solid beim Scrollen */
body.onepage header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent;
  box-shadow: none;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
  z-index: 1000;
}

body.onepage header.scrolled {
  background-color: #c8a05a;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Hero-Section: volle Viewport-Höhe, Inhalt unter dem fixed Header */
body.onepage .section-hero {
  min-height: 100vh;
  padding-top: 70px;
  display: flex;
  align-items: center;
}

body.onepage .section-hero .hero-inner {
  width: 100%;
  align-items: center;
}

/* Scroll-Target-Offset für fixed Header */
.onepage-block {
  scroll-margin-top: 70px;
}

/* Erste Section beginnt direkt bei y=0, fixed Header liegt drüber */
body.onepage main {
  padding-top: 0;
}

/* Alternierenden Hintergrund in Onepage deaktivieren */
body.onepage section:nth-child(even) {
  background-color: inherit;
}

/* Onepage: Scroll Reveal für alle Sections außer erster */
body.onepage .onepage-block:first-child section:first-of-type {
  opacity: 1;
  transform: none;
  transition: none;
}