/* ============================================================
   südraum – Click-Dummy Stylesheet
   Mobile First · Breakpoints: 768px (Tablet), 1200px (Desktop)
   ============================================================ */

:root {
  --color-primary: #9c745b;
  --color-primary-dark: #7f5c46;
  --color-white: #ffffff;
  --color-text: #333333;
  --color-text-soft: #666666;
  --color-light-bg: #f5f5f5;
  --color-beige-bg: #fafaf9;
  --color-light-gray: #999999;
  --color-border: #eeeeee;
  --color-dark: #1a1a1a;

  --font: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --pad-x: 24px;
  --pad-y: 48px;
  --gutter: 24px;
  --header-h: 92px;      /* Initialzustand (hoch) */
  --header-h-min: 68px;  /* verkleinert nach dem Scrollen */
  --content-max: 1440px;
}

@media (min-width: 768px) {
  :root {
    --pad-x: 40px;
    --pad-y: 64px;
    --header-h: 112px;
    --header-h-min: 80px;
  }
}

@media (min-width: 1200px) {
  :root {
    --pad-x: 60px;
    --pad-y: 80px;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h-min) + 16px);
}

body {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

h1 { font-size: 32px; font-weight: 500; line-height: 1.2; }
h2 { font-size: 28px; font-weight: 450; line-height: 1.3; }
h3 { font-size: 18px; font-weight: 550; line-height: 1.4; }

@media (min-width: 768px) {
  h1 { font-size: 48px; }
  h2 { font-size: 36px; }
  h3 { font-size: 20px; }
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

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

.btn-primary:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 4px 14px rgba(156, 116, 91, 0.35);
  transform: translateY(-1px);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: flex-end; /* Logo, Menü und Icons unten ausrichten */
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
  padding: 0 var(--pad-x) 12px;
  max-width: var(--content-max);
  margin: 0 auto;
  transition: height 0.35s ease;
}

.site-header.is-scrolled .header-inner {
  height: var(--header-h-min);
}

.logo {
  flex-shrink: 0;
  display: inline-flex;
  padding-bottom: 9px;
  /* Feste Container-Breite: Das Logo verkleinert sich beim Scrollen
     nur innerhalb dieser Box, damit Menü und Icons nicht wandern */
  width: 112px;
}

.logo img {
  width: 112px;
  height: auto;
  transition: width 0.35s ease;
}

.site-header.is-scrolled .logo img {
  width: 94px;
}

@media (min-width: 768px) {
  .logo { width: 134px; }
  .logo img { width: 134px; }
  .site-header.is-scrolled .logo img { width: 106px; }
}

/* Desktop-Navigation */
.main-nav {
  display: none;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px 2px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.mega-trigger[aria-expanded="true"] {
  color: var(--color-primary);
}

.mega-trigger .chevron {
  transition: transform 0.25s ease;
}

.mega-trigger[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  /* Icon-Glyphen optisch auf die Text-Grundlinie des Menüs bringen */
  margin-bottom: -5px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--color-primary);
  transition: color 0.2s ease, background 0.2s ease;
}

.icon-btn:hover {
  background: rgba(156, 116, 91, 0.1);
  color: var(--color-primary-dark);
}

.header-actions .icon-btn:not(.hamburger) {
  display: none;
}

/* Hamburger */
.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

@media (min-width: 1000px) {
  .main-nav { display: block; }
  .hamburger { display: none; }
  .header-actions .icon-btn:not(.hamburger) { display: inline-flex; }
}

@media (min-width: 1000px) and (max-width: 1199px) {
  .nav-link { padding: 10px 8px 2px; font-size: 14px; }
}

/* Suchleiste */
.search-bar {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
  border-top: 0 solid var(--color-border);
  background: var(--color-white);
}

.search-bar.open {
  max-height: 90px;
  border-top-width: 1px;
}

.search-bar-inner {
  display: flex;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
  padding: 18px var(--pad-x);
}

.search-bar input {
  flex: 1;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 16px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  outline: none;
}

.search-bar input:focus {
  border-color: var(--color-primary);
}

/* ============================================================
   MEGAMENÜ (Desktop)
   ============================================================ */

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-top: 1px solid var(--color-border);
  padding: 40px var(--pad-x);
  display: none;
}

.mega-menu.open {
  display: block;
  animation: megaFade 0.25s ease;
}

@keyframes megaFade {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mega-close {
  position: absolute;
  top: 16px;
  right: 20px;
  color: var(--color-light-gray);
  padding: 6px;
  border-radius: 50%;
  transition: color 0.2s ease;
}

.mega-close:hover {
  color: var(--color-primary);
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 48px;
  max-width: 1100px;
  margin: 0 auto;
}

.mega-item h3 {
  color: var(--color-text);
  margin-bottom: 6px;
  transition: color 0.2s ease;
}

.mega-item:hover h3,
.mega-item a:hover h3 {
  color: var(--color-primary);
}

.mega-item p {
  font-size: 14px;
  color: var(--color-text-soft);
  line-height: 1.5;
}

.mega-sublist {
  list-style: none;
  margin-top: 8px;
}

.mega-sublist a {
  display: inline-block;
  padding: 3px 0;
  font-size: 14px;
  color: var(--color-text-soft);
  transition: color 0.2s ease;
}

.mega-sublist a:hover {
  color: var(--color-primary);
}

/* ============================================================
   MOBILES MENÜ
   ============================================================ */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--color-white);
  padding: 0 var(--pad-x) 40px;
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0.3s;
}

.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
}

.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  margin-bottom: 16px;
}

.mobile-logo {
  width: 100px;
  height: auto;
}

.mobile-nav {
  list-style: none;
}

.mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  transition: color 0.2s ease;
}

.mobile-link:hover {
  color: var(--color-primary);
}

.accordion-trigger .chevron {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.accordion-trigger[aria-expanded="true"] {
  color: var(--color-primary);
}

.accordion-trigger[aria-expanded="true"] > .chevron {
  transform: rotate(180deg);
}

.mobile-sub {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.mobile-sub.open {
  max-height: 800px;
}

.mobile-sublink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 0 12px 20px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-soft);
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  transition: color 0.2s ease;
}

.mobile-sublink:hover {
  color: var(--color-primary);
}

.mobile-sub-nested .mobile-sublink {
  padding-left: 40px;
  font-size: 15px;
}

.mobile-menu-foot {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

/* ============================================================
   HERO-SLIDER
   ============================================================ */

.hero-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--color-dark);
}

@media (min-width: 768px) {
  .hero-slider {
    aspect-ratio: auto;
    height: min(43vw, 600px);
  }
}

.slides,
.slide {
  position: absolute;
  inset: 0;
}

.slide {
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-content {
  position: absolute;
  top: 12%;
  /* Box am 1440px-Inhaltsraster ausrichten (bündig mit Header/Kacheln) */
  left: max(var(--pad-x), calc(50% - var(--content-max) / 2 + var(--pad-x)));
  right: max(var(--pad-x), calc(50% - var(--content-max) / 2 + var(--pad-x)));
  max-width: 560px;
  padding: 20px 24px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  color: var(--color-white);
  backdrop-filter: blur(2px);
}

@media (min-width: 768px) {
  .slide-content {
    top: 16%;
    padding: 28px 36px;
  }

  /* Textbox-Position pro Slide */
  .slide--right .slide-content {
    left: auto;
  }

  .slide--left .slide-content {
    right: auto;
  }
}

.slide-content h1 {
  margin-bottom: 8px;
}

.slide-sub {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 6px;
}

@media (min-width: 768px) {
  .slide-sub { font-size: 20px; }
}

.slide-small {
  font-size: 14px;
  opacity: 0.85;
}

@media (min-width: 768px) {
  .slide-small { font-size: 16px; }
}

/* Pfeile */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--color-white);
  background: rgba(0, 0, 0, 0.25);
  transition: color 0.2s ease, background 0.2s ease;
}

.slider-arrow:hover {
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.85);
}

.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

@media (min-width: 768px) {
  .slider-arrow { display: inline-flex; }
}

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 10px;
}

.slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: background 0.2s ease, transform 0.2s ease;
}

.slider-dots button:hover {
  transform: scale(1.25);
}

.slider-dots button.active {
  background: var(--color-primary);
}

/* Progress-Bar */
.slider-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  z-index: 5;
}

.slider-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--color-primary);
}

/* ============================================================
   TEASER-BOXEN
   ============================================================ */

.teaser-section {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--pad-y) var(--pad-x);
}

.teaser-section h2 {
  text-align: center;
  margin-bottom: 40px;
}

.teaser-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gutter);
}

@media (min-width: 768px) {
  .teaser-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) {
  .teaser-grid { grid-template-columns: repeat(6, 1fr); }
}

.teaser-card {
  display: block;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease-out;
}

/* Dezenter Hover: nur die Box leicht anheben */
.teaser-card:hover {
  transform: translateY(-4px);
}

.teaser-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.teaser-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teaser-card h3 {
  padding: 16px 16px 4px;
  font-size: 16px;
  color: var(--color-text);
}

@media (min-width: 1200px) {
  .teaser-card h3 { font-size: 17px; }
}

.teaser-card p {
  padding: 0 16px 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-soft);
}

/* ============================================================
   SEO-INTRO
   ============================================================ */

.seo-section {
  padding: 16px var(--pad-x) var(--pad-y);
}

.seo-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.seo-inner h2 {
  margin-bottom: 20px;
}

.seo-divider {
  width: 56px;
  height: 2px;
  background: var(--color-primary);
  margin: 0 auto 24px;
}

.seo-inner p {
  font-size: 18px;
  line-height: 1.9;
  color: var(--color-text-soft);
}

.seo-inner p + p {
  margin-top: 20px;
}

.seo-inner a {
  color: var(--color-primary);
  font-weight: 550;
  text-decoration: underline;
  text-decoration-color: rgba(156, 116, 91, 0.35);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.seo-inner a:hover {
  color: var(--color-primary-dark);
  text-decoration-color: currentColor;
}

/* ============================================================
   AKTUELLES
   ============================================================ */

.news-section {
  max-width: calc(1200px + 2 * var(--pad-x));
  margin: 0 auto;
  padding: var(--pad-y) var(--pad-x);
}

.news-section h2 {
  margin-bottom: 40px;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gutter);
}

@media (min-width: 768px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1200px) {
  .news-grid { grid-template-columns: repeat(3, 1fr); }
}

.news-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.news-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .news-img img {
  transform: scale(1.02);
}

.news-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  padding: 20px 16px;
}

.news-date {
  font-size: 12px;
  color: var(--color-light-gray);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.news-body h3 {
  color: var(--color-text);
}

.news-body p {
  font-size: 15px;
  color: var(--color-text-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-link {
  margin-top: auto;
  padding-top: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--color-primary);
  transition: color 0.2s ease;
}

.news-link:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* ============================================================
   FERIENPROGRAMME
   ============================================================ */

.ferien-section {
  background: var(--color-beige-bg);
  padding: var(--pad-y) var(--pad-x);
}

.ferien-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .ferien-inner {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
}

.ferien-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.ferien-text h2 {
  color: var(--color-primary);
  margin-bottom: 16px;
}

.ferien-claim {
  font-size: 18px;
  font-weight: 500;
  font-style: italic;
  margin-bottom: 14px;
}

.ferien-text p:not(.ferien-claim) {
  color: var(--color-text-soft);
  margin-bottom: 24px;
}

/* ============================================================
   STUNDENPLAN
   ============================================================ */

.plan-section {
  max-width: calc(1000px + 2 * var(--pad-x));
  margin: 0 auto;
  padding: var(--pad-y) var(--pad-x);
}

.plan-section h2 {
  text-align: center;
  margin-bottom: 12px;
}

.plan-hint {
  text-align: center;
  font-size: 13px;
  color: var(--color-light-gray);
  margin-bottom: 32px;
}

@media (min-width: 1000px) {
  .plan-hint { visibility: hidden; }
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 6px;
}

.plan-table {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
  background: var(--color-white);
}

.plan-table th {
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 12px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.plan-table td {
  vertical-align: top;
  padding: 12px;
  border: 1px solid var(--color-border);
  font-size: 14px;
  width: calc(100% / 7);
}

.plan-table tbody tr:nth-child(even) {
  background: var(--color-light-bg);
}

.plan-table td.empty {
  color: #cccccc;
  text-align: center;
}

.course-time {
  display: block;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 2px;
}

.course-name {
  display: block;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.35;
  margin-bottom: 4px;
}

.course-meta {
  display: block;
  font-size: 13px;
  color: var(--color-text-soft);
}

.plan-cta {
  text-align: center;
  margin-top: 30px;
}

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

.site-footer {
  /* Invertiertes Ornament-Muster als gekachelter Hintergrund */
  background: var(--color-dark) url("bg.png") repeat center;
  color: var(--color-white);
  padding: 48px var(--pad-x) 0;
  font-size: 14px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 40px;
}

@media (min-width: 768px) {
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1200px) {
  .footer-inner { grid-template-columns: repeat(3, 1fr); }
}

.footer-logo {
  width: 130px;
  height: auto;
  margin-bottom: 20px;
  /* SVG-Füllung ist fest dunkel – per Filter auf Weiß umgefärbt */
  filter: brightness(0) invert(1);
}

.footer-col h3 {
  font-size: 16px;
  margin-bottom: 14px;
  color: var(--color-white);
}

.footer-col address {
  font-style: normal;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.8);
}

.footer-col p {
  color: rgba(255, 255, 255, 0.8);
}

.footer-col a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--color-primary);
}

.footer-links {
  list-style: none;
}

.footer-links a {
  display: inline-block;
  padding: 4px 0;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.footer-social .icon-btn {
  color: rgba(255, 255, 255, 0.8);
}

.footer-social .icon-btn:hover {
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.08);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
}

/* ============================================================
   SCROLL-REVEAL
   Dezentes Einblenden der Inhalte beim Scrollen.
   Die .reveal-Klasse wird per JS gesetzt – ohne JS bleibt alles sichtbar.
   ============================================================ */

.reveal:not(.in-view) {
  opacity: 0;
  transform: translateY(24px);
}

.reveal.in-view {
  /* Einmalige Animation statt Transition, damit der Hover-Transform
     der Kacheln danach nicht überschrieben wird */
  animation: reveal-rise 0.6s ease backwards;
}

@keyframes reveal-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal:not(.in-view) {
    opacity: 1;
    transform: none;
  }

  .reveal.in-view {
    animation: none;
  }
}
