/* Farben und Grundlayout */

:root {
  --warm: #f1ebe1;
  --muted: #64655e;
  --cream: #f7f3ec;
  --green: #345847;
  --ink: #222b26;
  --line: #d7bfa8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: 'DM Sans', Arial, sans-serif;
  background: #fffdf9;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

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

.container {
  margin: auto;
  width: min(1350px, calc(100% - 90px));
}

/* Kopfzeile und Navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
  background: #f9f6ef;
  box-shadow: none;
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
}

.brand {
  line-height: 1.08;
  letter-spacing: .01em;
  flex-shrink: 0;
  font-size: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon {
  font-size: 49px;
  line-height: 1;
  position: relative;
  font-weight: 400;
}

.brand-icon span {
  position: absolute;
  font-size: 23px;
  top: 15px;
  left: 19px;
}

.nav {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 30px;
}

.nav a {
  white-space: nowrap;
  font-size: 14px;
}

.nav a:hover {
  color: #9b683b;
}

.text-link:hover {
  color: #9b683b;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  border-radius: 15px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 700;
  transition: transform .2s, background .2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--green);
  color: white;
}

.btn-dark:hover {
  background: #1d3d32;
}

.btn-cream {
  background: #f0eddb;
  color: #1d4134;
  border-radius: 22px;
  padding: 12px 24px;
}

.nav-cta {
  font-size: 12px;
  margin-left: 10px;
  border-radius: 10px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
}

/* Startbereich */

.hero {
  overflow: hidden;
  background: #5b4939;
  min-height: 395px;
  position: relative;
}

.hero-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-image: url('assets/wohnzimmer-foto.jpg');
  background-position: center center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(28, 23, 18, .58), rgba(28, 23, 18, .19) 40%, transparent 72%);
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  min-height: 395px;
}

.hero-copy {
  color: #fff;
  max-width: 650px;
  padding: 25px 0;
}

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .24em;
  font-weight: 700;
  color: #557565;
  margin: 0 0 16px;
}

.eyebrow.light {
  color: #e8e3cd;
}

.hero h1 {
  font-family: 'Caveat', cursive;
  letter-spacing: -.02em;
  font-size: clamp(70px, 7.1vw, 112px);
  line-height: .78;
  margin: 8px 0 24px;
  font-weight: 400;
}

.hero h1 em {
  font-style: normal;
}

.hero-copy > p:not(.eyebrow) {
  line-height: 1.45;
  margin-bottom: 28px;
  font-size: 21px;
  max-width: 380px;
}

.hero-note {
  font-family: 'Caveat', cursive;
  line-height: 1.05;
  transform: rotate(-8deg);
  background: #f9f1e4;
  color: #25382f;
  box-shadow: 0 8px 30px #0003;
  clip-path: polygon(2% 0, 98% 2%, 100% 97%, 0 100%);
  font-size: 25px;
  padding: 24px 27px;
  margin-right: 5px;
  margin-top: 135px;
}

/* Vorteile */

.benefits {
  background: var(--cream);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 20px 0;
}

.benefits article {
  text-align: center;
  border-right: 1px solid var(--line);
  padding: 0 20px;
}

.benefits article:last-child {
  border: 0;
}

.benefit-icon {
  font-family: 'Caveat', cursive;
  line-height: 1;
  font-size: 40px;
}

.benefits h3 {
  margin: 8px 0 3px;
  font-size: 17px;
}

.benefits p {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
}

/* Abschnitte und Überschriften */

.section {
  padding: 94px 0;
}

.section-warm {
  background: #faf6f0;
}

.section-head {
  text-align: center;
  max-width: 690px;
  margin: 0 auto 40px;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.2;
  margin: 0 0 18px;
  font-weight: 600;
}

.story-grid h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.2;
  margin: 0 0 18px;
  font-weight: 600;
}

.contact-grid h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.2;
  margin: 0 0 18px;
  font-weight: 600;
}

.section-head > p:last-child {
  color: var(--muted);
}

.script {
  font-family: 'Caveat', cursive;
  font-size: 1.35em;
  font-weight: 500;
}

/* Unterrichtsangebote */

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.offer-card {
  background: white;
  padding: 32px;
  border: 1px solid #eae1d5;
  border-radius: 18px;
  box-shadow: 0 12px 30px #392d1d0a;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.offer-symbol {
  font-family: 'Caveat', cursive;
  font-size: 50px;
  color: var(--green);
}

.offer-card h3 {
  font-size: 23px;
  margin: 10px 0;
}

.offer-card p {
  color: var(--muted);
  min-height: 80px;
}

.offer-card span {
  font-size: 12px;
  color: #52735e;
  font-weight: 700;
  letter-spacing: .03em;
}

.info-strip {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
  margin-top: 28px;
  padding: 24px 30px;
  background: #e9eee6;
  border-radius: 14px;
}

.info-strip h3 {
  margin: 0 0 4px;
}

.info-strip p {
  margin: 0;
  color: #58665d;
  font-size: 14px;
}

.text-link {
  white-space: nowrap;
  font-weight: 700;
  color: var(--green);
}

/* Über mich */

.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 90px;
  align-items: center;
}

.photo-stack {
  position: relative;
  max-width: 450px;
  transform: rotate(-3deg);
  background: #fff;
  padding: 12px;
  box-shadow: 0 9px 35px #0002;
}

.photo-stack img {
  width: 100%;
  aspect-ratio: 4/4.5;
  object-fit: cover;
}

.sticker {
  position: absolute;
  bottom: 22px;
  left: 160px;
  background: #f4e7d8;
  padding: 15px 26px;
  transform: rotate(17deg);
  font-family: 'Caveat', cursive;
  font-size: 18px;
}

.about-copy h2 {
  font-size: 65px;
  line-height: 1;
  margin: 0 0 22px;
}

.about-copy p {
  color: #50574f;
}

.placeholder-hint {
  font-size: 13px !important;
  color: #8a7968 !important;
  font-style: italic;
}

.about-copy .btn {
  margin-top: 12px;
}

/* Geschichte */

.story-section {
  background: var(--cream);
}

.story-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 90px;
  align-items: center;
}

.story-grid p {
  color: #515a53;
}

.story-illustration {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8c4aa;
  border-radius: 50%;
  background: #f3e9da;
  transform: rotate(5deg);
}

.big-note {
  font-family: 'Caveat', cursive;
  font-size: 110px;
  line-height: 1;
  color: var(--green);
}

.story-script {
  font-family: 'Caveat', cursive;
  text-align: center;
  font-size: 30px;
  line-height: 1.1;
}

/* Galerie */

.gallery-section {
  background: #fffdf9;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 16px;
}

.gallery-item {
  border: 0;
  border-radius: 16px;
  padding: 0;
  cursor: pointer;
  background: #e8dfd3;
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
}

.gallery-main {
  aspect-ratio: 1.4;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.7s ease-in-out;
}

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

.gallery-item span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 15px 14px;
  color: white;
  text-align: left;
  font-weight: 700;
  font-size: 13px;
  background: linear-gradient(transparent, #0009);
}

/* Kontakt */

.contact-section {
  background: #e9eee6;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 85px;
  align-items: center;
}

.contact-grid > div > p {
  max-width: 550px;
}

.contact-detail {
  margin: 18px 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-detail a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-card {
  background: #fffdf9;
  padding: 38px;
  border-radius: 20px;
  box-shadow: 0 15px 45px #1b342112;
}

.contact-card h3 {
  font-size: 24px;
  margin: 0;
}

.contact-card p {
  color: var(--muted);
}

.btn-full {
  width: 100%;
  margin: 12px 0;
}

.contact-card small {
  display: block;
  text-align: center;
  color: #69756c;
}

/* Fußzeile */

footer {
  background: #263e34;
  color: #f7f4eb;
  padding: 40px 0;
}

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

.footer-inner p {
  font-size: 12px;
  color: #c5d0c6;
}

.footer-inner small {
  font-size: 12px;
  color: #c5d0c6;
}

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

/* Bilderdialog */

dialog {
  border: 0;
  border-radius: 16px;
  padding: 18px;
  max-width: min(900px, 90vw);
  background: #fffdf9;
  box-shadow: 0 15px 90px #0005;
}

dialog::backdrop {
  background: #121b17d9;
}

dialog img {
  max-height: 75vh;
  max-width: 100%;
  width: auto;
  margin: auto;
}

#lightbox {
  text-align: center;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  background: #fffdf9e8;
  color: #26352d;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.lightbox-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  padding: 8px 0 2px;
}

.lightbox-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #b9c0b9;
  cursor: pointer;
}

.lightbox-dots button.active {
  background: #52735e;
  transform: scale(1.25);
}

dialog p {
  text-align: center;
}

.close-lightbox {
  position: relative;
  z-index: 1;
  float: right;
  background: none;
  border: 0;
  font-size: 30px;
  cursor: pointer;
}

/* Rechtliche Seiten */

.legal {
  max-width: 780px;
  padding: 70px 0 100px;
}

.legal h1 {
  font-size: 44px;
}

.legal p {
  overflow-wrap: anywhere;
}

/* Einleitung */

.intro-wrap {
  background: #fffdf9;
  padding: 40px 0 55px;
}

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

.intro-grid .section {
  padding: 0;
}

.intro-grid .about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 42px;
  align-items: center;
}

.intro-grid .photo-stack {
  width: 100%;
  max-width: 330px;
}

.intro-grid .photo-stack img {
  aspect-ratio: 4/4.1;
}

.intro-grid .about-copy h2 {
  font-size: 47px;
}

.intro-grid .about-copy p {
  font-size: 14px;
  line-height: 1.52;
}

.intro-grid .story-grid p {
  font-size: 14px;
  line-height: 1.52;
}

.intro-grid .story-section {
  background: transparent;
  border-left: 1px solid var(--line);
  padding-left: 48px;
}

.intro-grid .story-grid {
  display: block;
}

.intro-grid .story-grid h2 {
  font-family: 'Caveat', cursive;
  font-weight: 500;
  font-size: 43px;
  line-height: 1.03;
}

.intro-grid .story-grid h2 .script {
  font-size: 1em;
}

.intro-grid .story-illustration {
  display: none;
}

.intro-grid .about-copy .btn {
  font-size: 13px;
}

.intro-grid .eyebrow {
  font-size: 11px;
}

/* Weitere Angebote */

.angebote {
  margin: 30px 0;
}

.angebote-intro {
  max-width: 650px;
  margin-bottom: 28px;
  line-height: 1.7;
}

.angebote-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.angebot-card {
  background: #f7f5ef;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.angebot-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.angebot-card img {
  width: 135px;
  min-height: 165px;
  object-fit: cover;
  flex-shrink: 0;
}

.angebot-card > div {
  padding: 20px;
}

.angebot-card h4 {
  margin: 0 0 10px;
  color: #344c3c;
  font-size: 1.1rem;
}

.angebot-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Slogan im Startbereich */

.hero-slogan {
  position: absolute;
  right: 1%;
  bottom: 8%;
  z-index: 2;
  font-family: inherit;
  font-size: clamp(22px, 2.5vw, 38px);
  font-weight: 500;
  line-height: 1.1;
  color: #fff;
  text-align: right;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}

.hero-slogan strong {
  font-size: 1.3em;
  font-weight: 700;
  margin-right: 6px;
}

/* Logo */

.brand-logo {
  width: 65px;
  height: 65px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand strong {
  font-weight: 700;
}

/* Aufklappbare Informationen */

.about-details {
  margin: 18px 0 26px;
}

.about-details summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: #344c3c;
  font-weight: 600;
  font-size: 0.95rem;
  list-style: none;
  transition: color 0.2s;
}

.about-details summary::-webkit-details-marker {
  display: none;
}

.about-details summary:hover {
  color: #6e8b64;
}

.about-details summary span {
  display: inline-block;
  transition: transform 0.25s ease;
}

.about-details[open] summary span {
  transform: rotate(180deg);
}

.about-details-content {
  margin-top: 20px;
}

.about-details-content p {
  margin-bottom: 16px;
  line-height: 1.7;
}

/* Angebotsbilder */

.offer-image {
  display: block;
  width: 100%;
  max-width: 240px;
  height: 160px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  margin: 0 auto 20px;
}

.gallery-item img.fade-out {
  opacity: 0;
}

/* Bildunterschriften */

.gallery-caption {
  padding-top: 25px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 25px 15px 12px;
  color: white;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: left;
  background: linear-gradient( to top, rgba(0, 0, 0, 0.75), transparent );
  z-index: 4;
  pointer-events: none;
}

.gallery-item > span {
  position: absolute;
  top: 12px;
  bottom: auto;
  left: 12px;
  z-index: 3;
}

/* Responsive Anpassungen und reduzierte Animationen.
   Die Reihenfolge erhält die bisherigen Überschreibungen. */

@media (max-width: 760px) {
  .brand-icon {
    font-size: 40px;
  }

  .brand-icon span {
    top: 12px;
    left: 15px;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
    border: 0;
    background: transparent;
    font-size: 26px;
    color: var(--green);
    cursor: pointer;
  }

  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 20px 26px 28px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 14px 20px #0001;
  }

  .nav.open {
    display: flex;
  }

  .hero-note {
    display: none;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 0;
  }

  .benefits article:nth-child(2) {
    border-right: 0;
  }

  .section {
    padding: 70px 0;
  }

  .offer-grid,
  .about-grid,
  .story-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .offer-card p {
    min-height: 0;
  }

  .info-strip {
    display: block;
  }

  .info-strip .text-link {
    display: inline-block;
    margin-top: 14px;
  }

  .photo-stack {
    max-width: 360px;
    margin: 0 auto 30px;
  }

  .about-copy h2 {
    font-size: 56px;
  }

  .story-illustration {
    min-height: 250px;
    max-width: 400px;
    width: 100%;
    margin: auto;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-main {
    grid-column: span 2;
    aspect-ratio: 1.6;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}

@media (max-width: 1100px) {
  .nav {
    gap: 13px;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .intro-grid .story-section {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 35px 0 0;
  }

  .intro-grid .story-grid {
    max-width: 760px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 36px, 1180px);
  }

  .hero,
  .hero-inner {
    min-height: 530px;
  }

  .hero h1 {
    font-size: clamp(70px, 14vw, 95px);
  }

  .hero-photo {
    background-position: 57% center;
  }

  .hero-shade {
    background: linear-gradient(90deg, #1d1c17b8, #1d1c1740);
  }

  .intro-grid .about-grid {
    grid-template-columns: 1fr;
  }

  .intro-grid .photo-stack {
    max-width: 340px;
  }

  .intro-wrap {
    padding: 50px 0;
  }

  .benefits-grid {
    padding: 25px 0;
  }

  .benefits article {
    padding: 8px 12px;
  }

  .intro-grid .story-grid h2 {
    font-size: 42px;
  }
}

@media (max-width: 850px) {
  .angebote-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .angebot-card {
    flex-direction: column;
  }

  .angebot-card img {
    width: 100%;
    height: 180px;
    min-height: 0;
  }
}

@media (max-width: 600px) {
  .brand-logo {
    width: 48px;
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-item img {
    transition: none;
  }
}

@media (max-width: 768px) {
  .hero {
    position: relative;
    height: 400px;
    min-height: 400px;
    max-height: none;
    overflow: hidden;
  }

  .hero-photo {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: 60% center;
  }

  .hero-inner {
    position: relative;
    z-index: 2;
    height: auto;
    min-height: 0;
    display: block;
    padding: 10px 20px 0;
  }

  .hero-copy {
    width: 100%;
    max-width: 310px;
  }

  .hero-copy h1 {
    font-size: clamp(2.2rem, 9vw, 3.2rem);
    line-height: 1.05;
    margin-bottom: 12px;
  }

  .hero-copy p {
    font-size: 0.9rem;
    line-height: 1.4;
    max-width: 270px;
  }

  .hero-slogan {
    position: absolute;
    z-index: 5;
    top: auto;
    bottom: -35px;
    left: auto;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 3px;
    width: auto;
    max-width: calc(100% - 40px);
    margin: 0;
    padding: 0;
    transform: none;
    text-align: right;
    font-size: 1.15rem;
  }

  .hero-slogan div {
    white-space: nowrap;
  }

  .hero-slogan strong {
    font-size: 1.1rem;
  }
}

@media (max-width: 525px) {
  .hero-inner {
    position: relative;
    z-index: 2;
    height: auto;
    min-height: 0;
    display: block;
    padding: 5px 20px 0;
  }

  .hero-slogan {
    position: absolute;
    z-index: 5;
    top: auto;
    bottom: -70px;
    left: auto;
    right: 20px;
    font-size: 1.15rem;
  }
}

@media (max-width: 700px) {
  .nav-cta {
    display: none;
  }
}
