/* ==========================================================================
   HerzNest – central stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;600;700&family=Quicksand:wght@400;500;600;700&display=swap');

:root {
  --color-bg: #fcf4eb;
  --color-sage-light: #8A9A7A;
  --color-sage-dark: #6E7F5E;
  --color-terracotta: #C17A63;
  --color-hero: #faecdc;
  --color-sand: #F0E6D6;
  --color-text: #4A4238;

  --font-heading: 'Caveat', cursive;
  --font-body: 'Quicksand', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
}

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

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

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--color-terracotta);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.4rem; }
h3 { font-size: 1.8rem; }

p {
  margin: 0 0 1rem;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--color-sage-dark);
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--color-sage-light);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-sage-light);
  border: 2px solid var(--color-sage-dark);
}

.btn-outline:hover {
  background: var(--color-sage-dark);
  color: #fff;
}

.horizontal-separator {
  width: 100px;
  height: 2px;
  background-color: #d7c1a7;
  display: inline-block;
  vertical-align: middle;
  margin-top: 1em;
  margin-bottom: 1em;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

site-header,
site-footer,
content-card,
social-icon,
icon-tile,
termine-list,
feature-grid,
product-grid,
course-grid,
shop-grid,
blog-grid,
downloads-grid {
  display: contents;
}

.site-header {
  background: var(--color-bg);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(74, 66, 56, 0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.logo img {
  height: 120px;
  width: auto;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--color-sage-light);
  cursor: pointer;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.main-nav ul a {
  font-weight: 600;
  color: var(--color-text);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.main-nav ul a:hover,
.main-nav ul a.active {
  color: var(--color-sage-light);
  border-bottom-color: var(--color-terracotta);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: 3.5rem 0;
}

.hero .container {
  display: flex;
  gap: 3rem;
  background-color: var(--color-hero);
  height: 468px;
}

.hero-illustration {
  flex: 1 1 20%;
  text-align: center;
}

.hero-text {
  flex: 1 1 20%;
  background-image: url('images/hero_image.png');
  background-position: right;
  background-repeat: no-repeat;
}

.hero-text h1 {
  padding-top: 1em;
  font-family: var(--font-body);
  font-size: 2em;
  text-align: left;
}

.hero p {
  width: 100%;
  font-family: var(--font-heading);
  font-size: 1.15rem;
}

.hero-text p {
    font-family: var(--font-body);
    text-align: left;
    max-width: 18em;
}

p img {
  display: inline;
}

.hero-tagline {
  text-transform: uppercase;
  color: #000;
  font-family: var(--font-body);
  margin-bottom: 0;
}

.icon-mirror {
  transform: scaleX(-1);
}

.hero-divider {
  display: flex;
  align-items: left;
  justify-content: left;
  gap: 0.5rem;
}

.hero-divider-heart {
  color: #b76d5a;
  font-size: 1.6rem;
}

/* ==========================================================================
   Feature Icons row
   ========================================================================== */

.features {
  padding: 3rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
}

.feature-card {
  text-align: center;
  padding: 1rem;
  position: relative;
}

.feature-card img {
  width: 72px;
  height: 72px;
  margin: 0 auto 0.75rem;
}

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.feature-card p {
  font-size: 0.92rem;
}

/* ==========================================================================
   Product cards
   ========================================================================== */

.products {
  padding: 3rem 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

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

.card {
  background: var(--color-sand);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(74, 66, 56, 0.12);
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 {
  font-size: 1.5rem;
}

.card-body p {
  flex: 1;
  font-size: 0.95rem;
}

.card-body .btn {
  align-self: stretch;
  text-align: center;
  margin-top: 0.5rem;
}

/* ==========================================================================
   Closing / Newsletter
   ========================================================================== */

.closing .container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  background: var(--color-sand);
  min-height: 228px;
  padding-left: 228px;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.closing-deco {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 228px;
  object-fit: cover;
}

.closing-content {
  flex: 1;
  text-align: center;
}

.closing-content h2 {
  font-size: 2.6rem;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.newsletter-form input[type="email"] {
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  border: 2px solid var(--color-sage-dark);
  font-family: var(--font-body);
  font-size: 1rem;
  min-width: 260px;
  background: #fff;
  color: var(--color-text);
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--color-terracotta);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--color-sage-light);
  color: #F7F1E7;
  padding: 2.5rem 0 1.5rem;
  margin-top: 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(247, 241, 231, 0.15);
  font-size: 1.1rem;
  transition: background 0.2s ease;
}

.footer-social a:hover {
  background: rgba(247, 241, 231, 0.3);
}

.footer-bottom {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(247, 241, 231, 0.2);
  font-size: 0.85rem;
  opacity: 0.85;
}

/* ==========================================================================
   Generic page hero on subpages
   ========================================================================== */

.page-hero {
  padding: 3rem 0 2rem;
  text-align: center;
}

.page-hero p {
  max-width: 40rem;
  margin: 0 auto;
  font-size: 1.1rem;
}

.section {
  padding: 2.5rem 0;
}

.section-alt {
  background: var(--color-sand);
  border-radius: 40px;
}

/* About */
.about-wrap {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.about-photo {
  flex: 0 0 320px;
}

.about-photo img {
  border-radius: 24px;
}

.about-text {
  flex: 1;
}

.qualifications {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.qualifications li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.85rem;
  font-weight: 500;
}

.qualifications li::before {
  content: "🌿";
  position: absolute;
  left: 0;
  top: 0;
}

/* Courses */
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.course-tile {
  background: #fff;
  border-radius: 20px;
  padding: 1.75rem;
  text-align: center;
  box-shadow: 0 4px 14px rgba(74, 66, 56, 0.06);
}

.course-tile img {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.75rem;
}

.termine-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.termine-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  padding: 1rem 1.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.termine-list .termin-date {
  color: var(--color-terracotta);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
}

.centered-btn {
  text-align: center;
  margin-top: 2rem;
}

/* Blog */
.blog-card .teaser-meta {
  font-size: 0.8rem;
  color: var(--color-sage-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.4rem;
}

/* Downloads */
.download-card {
  text-align: center;
}

.download-card h3,
.download-card p {
  text-align: left;
}

.download-card .btn {
  align-self: center;
  width: 100%;
}

/* Kontakt */
.contact-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  border: 2px solid var(--color-sand);
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
  color: var(--color-text);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-sage-dark);
}

.contact-side {
  background: var(--color-sand);
  border-radius: 20px;
  padding: 2rem;
}

.contact-social {
  display: flex;
  gap: 1rem;
  margin: 1.25rem 0;
}

.contact-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-sage-dark);
  color: #fff;
  font-size: 1.2rem;
}

.contact-social a:hover {
  background: var(--color-sage-light);
}

.map-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  margin-top: 1rem;
  object-fit: cover;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .about-wrap {
    flex-direction: column;
  }

  .about-photo {
    flex: none;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
}

@media (max-width: 980px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 1.5rem;
    box-shadow: 0 8px 16px rgba(74, 66, 56, 0.1);
    display: none;
    gap: 1rem;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.75rem;
  }

  .nav-toggle {
    display: block;
  }
}

@media (max-width: 720px) {
  h1 { font-size: 2.3rem; }
  h2 { font-size: 1.9rem; }

  .hero .container {
    flex-direction: column;
    height: auto;
  }

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

  .card-grid,
  .card-grid.cols-3 {
    grid-template-columns: 1fr;
  }

  .closing .container {
    flex-direction: column;
    text-align: center;
    min-height: 0;
    padding: 2rem 1.5rem;
  }

  .closing-deco {
    display: none;
  }

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

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
