/* styles.css – Yin und Yang – Energetik */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Open+Sans:wght@300;400;600&display=swap');

:root {
  --background: #f9f7f3;
  --primary: #847577;
  --accent: #adc2a9;
  --highlight: #e5d4c0;
  --text: #3d3a37;
  --light: #ffffff;
  --muted: #d0cfcf;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  padding-bottom: 4rem;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  margin-bottom: 1rem;
  margin-top: 1rem;
}

header {
  background: var(--light);
  text-align: center;
  padding: 2rem 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

header h1 {
  font-size: 2.5rem;
}

header p {
  font-size: 1.2rem;
  color: var(--primary);
}
/* Header mit Logo */
.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  text-align: center;
}

.logo {
  width: 80px;
  height: auto;
  border-radius: 50%;
}

/* Responsiv */
@media (max-width: 600px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  .logo {
    width: 70px;
  }
}

/* Navigation */
nav {
  background-color: var(--accent);
  position: relative;
  padding: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* nav-header only appears on mobile */
.nav-header {
  display: none;
}

/* Hamburger + brand */
.nav-brand {
  font-family: 'Playfair Display', serif;
  color: var(--light);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1;
  display: flex;
  align-items: center;
}


.nav-toggle {
  display: none;
  width: 56px;
  height: 56px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--accent);
  border: none;
}

.nav-toggle span {
  display: block;
  height: 3px;
  width: 24px;
  background: var(--light);
  border-radius: 2px;
  transition: all 0.3s ease;
  margin: 4px 0;
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--light);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

nav a:hover,
nav a.active {
  color: var(--highlight);
  border-bottom: 2px solid var(--highlight);
}

/* ---------- Mobile Styles ---------- */
@media (max-width: 767px) {
  nav {
    flex-direction: column;
    align-items: stretch;
    height: auto;
  }

  .nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
    background-color: var(--accent);
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 999;
  }

  nav ul.show {
    max-height: 400px;
    padding: 1rem 0;
  }

  nav a {
    padding: 0.5rem 1.5rem;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }

  /* Center brand text vertically */
  .nav-brand {
    font-size: 1.5rem;
    line-height: 1;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}


/* Content layout */

main {
  max-width: 960px;
  margin: 3rem auto;
  padding: 0 1rem;
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Footer */

footer {
  background: var(--light);
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: var(--primary);
  border-top: 1px solid var(--muted);
  position: relative;
  bottom: 0;
  width: 100%;
}

footer a {
  color: var(--primary);
  text-decoration: underline;
  margin: 0 0.5rem;
}
/* Images */

section.bild-galerie {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  padding: 0 1rem;
  animation: fadeIn 0.8s ease-in-out;
}

.bild-karte {
  background: #fff;
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.bild-karte:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.bild-karte img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  display: block;
}


.bild-karte:hover img {
  transform: scale(1.03);
}

.bild-text {
  padding: 1rem;
  text-align: center;
}

.bild-text h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.bild-text p {
  font-size: 0.95rem;
  color: #666;
}
.bildergalerie {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  padding: 2rem 1rem;
  justify-items: center;
  align-items: center;
}

.bildergalerie .bild-wrapper {
  width: 100%;
  max-width: 300px;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  background-color: white;
}

.bildergalerie .bild-wrapper img {
  width: 100%;
  display: block;
  object-fit: cover;
  height: auto;
  pointer-events: none; /* Deaktiviert Klicks */
}

.bildergalerie .bild-wrapper:hover {
  transform: scale(1.03);
}
.bildergalerie .bild-wrapper {
  position: relative;
  width: 100%;
  max-width: 300px;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  background-color: white;
}

.bildergalerie .bild-wrapper img {
  width: 100%;
  display: block;
  object-fit: cover;
  height: auto;
  transition: filter 0.3s ease;
  pointer-events: none;
}

.bildergalerie .bild-wrapper:hover img {
  filter: brightness(70%);
}

.bildergalerie .bild-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  opacity: 0;
  transform: translateY(20%);
  transition: all 0.4s ease;
  text-align: center;
  font-size: 0.95rem;
  pointer-events: none;
}

.bildergalerie .bild-wrapper:hover .bild-info {
  opacity: 1;
  transform: translateY(0);
}


/* Buttons / Links */

.more-link {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.5rem 1.5rem;
  background-color: var(--accent);
  color: var(--light);
  text-decoration: none;
  border-radius: 24px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.more-link:hover {
  background-color: var(--primary);
}
.kontaktformular {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #f9f9f9;
  border-radius: 1rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.kontaktformular label {
  font-weight: bold;
  font-size: 1.1rem;
}

.kontaktformular input,
.kontaktformular textarea {
  font-size: 1.1rem;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 0.6rem;
  width: 100%;
  box-sizing: border-box;
}

.kontaktformular button {
  background-color: #cc99cc;
  color: white;
  font-size: 1.1rem;
  padding: 0.8rem;
  border: none;
  border-radius: 0.6rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.kontaktformular button:hover {
  background-color: #b380b3;
}

.cta-gallery-row {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin: 2.5rem 0 2rem 0;
  flex-wrap: wrap;
}
.cta-gallery-card {
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 4px 18px rgba(0,0,0,0.09);
  overflow: hidden;
  max-width: 280px;
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.25s, box-shadow 0.25s;
  padding-bottom: 1.5rem;
}
.cta-gallery-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 10px 32px rgba(0,0,0,0.13);
}
.cta-gallery-img {
  width: 100%;
  height: 220px;   
  object-fit: cover;  
  border-top-left-radius: 1.2rem;
  border-top-right-radius: 1.2rem;
  display: block;
}

.cta-gallery-img.large {
  height: 180px;
}
@media (max-width: 900px) {
  .cta-gallery-img.large {
    height: 120px;
  }
}

.cta-gallery-link {
  margin-top: 1.1rem;
  color: var(--primary);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  font-size: 1.05rem;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  background: var(--highlight);
  transition: background 0.2s, color 0.2s;
  display: block;
}
.cta-gallery-link:hover {
  background: var(--accent);
  color: #fff;
}
@media (max-width: 900px) {
  .cta-gallery-row {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .cta-gallery-card {
    max-width: 95vw;
  }
  .cta-gallery-img {
    height: 90px;
  }
}

/* Badge row: make badges visually match CTA cards */
.badge-row {
  margin-bottom: 1.2rem;
}
.badge-card {
  max-width: 220px; /* same as .cta-gallery-card */
  padding-bottom: 0.8rem;
}
.badge-img {
  height: 140px; /* slightly shorter than large CTA image to keep logo visible */
  object-fit: contain;
  background: var(--light);
  padding: 10px;
}
@media (max-width: 900px) {
  .badge-img { height: 110px; }
}

/* Simple badges: same size images, no background, no buttons */
.simple-badges {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}
.badge-simple {
  display: inline-block;
  /* slightly larger on desktop for stronger presence */
  width: 360px;
  height: 250px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(0,0,0,0); /* nicer tap on mobile */
  padding: 0;                 /* removed white frame */
  background: transparent;    /* no white frame */
  box-shadow: none; /* remove shadow so no visible white framing */
  box-sizing: border-box;
}
.badge-simple img {
  /* image fills the inner frame */
  width: 100%;
  height: 100%;
  object-fit: contain; /* keep the full logo visible */
  display: block;
  background: transparent;
  pointer-events: none; /* let the container handle interactions */
}
/* apply transform on the container to avoid stuck image transform after click */
.badge-simple {
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  transform-origin: center center;
  transform: scale(1);
}
/* Hover / active interactions on container */
.badge-simple:hover,
.badge-simple:active {
  transform: scale(1.06);
}
.badge-simple:active {
  transform: scale(1.03);
}
@media (max-width: 1100px) {
  /* medium screens: slightly smaller */
  .badge-simple {
    width: 320px;
    height: 210px;
    padding: 0;
  }
}
@media (max-width: 900px) {
  .badge-simple {
    width: 48vw;   /* responsive: almost half the screen on mobile */
    max-width: 320px;
    height: auto;  /* allow height to follow image aspect */
    padding: 0;
  }
  .badge-simple img {
    height: auto; /* let image scale naturally */
  }
}
.checkbox-dsgvo {
  margin: 1rem 0;
  font-size: 1.1rem;
  color: #555;
  display: flex;
  align-items: center;
}

.checkbox-dsgvo input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 2.5px solid #847577;
  border-radius: 6px;
  margin-right: 0.6rem;
  position: relative;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  background-color: white;
  box-shadow: inset 0 0 0 0 #847577;
}

.checkbox-dsgvo input[type="checkbox"]:hover {
  border-color: #a18a92;
  box-shadow: 0 0 5px #a18a92;
}

.checkbox-dsgvo input[type="checkbox"]:checked {
  background-color: #847577;
  border-color: #6b5c63;
  box-shadow: inset 0 0 5px #6b5c63;
}

.checkbox-dsgvo input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  width: 7px;
  height: 12px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
  opacity: 0.9;
}

.checkbox-dsgvo label {
  cursor: pointer;
  user-select: none;
  color: #555;
  font-size: 1.1rem;
}

.checkbox-dsgvo a {
  color: #847577;
  text-decoration: underline;
}

.checkbox-dsgvo a:hover,
.checkbox-dsgvo a:focus {
  color: #5a4a52;
}

/* Homepage badges (Urkunde, Topunternehmen) */
.home-badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin: 1rem 0 0.5rem 0;
}
.home-badge img {
  height: 56px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  background: transparent;
  padding: 0;
}
@media (max-width: 600px) {
  .home-badge img { height: 44px; }
}

/* Ensure gallery images keep their composition and have small padding for 'contain' placeholders */
.bildergalerie .bild-wrapper img { object-fit: cover; }
.bildergalerie .bild-wrapper img.placeholder { object-fit: contain; background: #f9f7f3; padding: 8px; }

