*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --bg: #6a919e;
  --bg-deep: #c3d2d7;
  --text: #1d1b16;
  --muted: #6b6358;
  --accent: #ff6b3d;
  --accent-2: #1d6b5f;
  --card: #fff8f0;
  --stroke: rgba(29, 27, 22, 0.12);
  --shadow: 0 30px 70px rgba(29, 27, 22, 0.12);
}


body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 20% 10%, #cfe0e4 0%, #a7c0c8 35%, #6a919e 100%);
  color: var(--text);
  min-height: 100vh;
  padding-top: 10px;
  overflow-x: hidden;
}


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

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  z-index: 0;
}

.hero {
  padding: 10px 6vw 80px;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  min-height: 80px;
  max-height: 80px;
  overflow: visible;
  padding: 0 6vw;
  z-index: 1200;
  background: rgba(247, 243, 238, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stroke);
}

.nav::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), transparent);
  opacity: 0.6;
  pointer-events: none;
}


.nav > * {
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  height: 100%;
}

.brand-logo {
  height: 100%;
  max-height: 72px;
  width: auto;
  display: block;
  object-fit: contain;
}

.brand-mark {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
}

.nav-links {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav-links a {
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(29, 27, 22, 0.24);
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}


.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 50px;
  margin-top: 90px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-slider {
  width: min(100%, 858px);
  aspect-ratio: 858 / 294;
  height: auto;
  margin-top: 0;
  overflow: hidden;
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
}

.slider-track {
  display: flex;
  height: 100%;
  width: 300%;
  animation: slide 18s infinite;
}

.slide {
  flex: 0 0 33.333%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: hidden;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hero-text {
  animation: float-in 0.8s ease-out both;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 16px;
}

h1,
h2,
h3,
h4 {
  font-family: "Playfair Display", "Times New Roman", serif;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2.8rem, 4vw, 4.6rem);
  line-height: 1.05;
}

h1 span {
  color: #256d7b;
}

.lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
}

.muted-text {
  color: var(--muted);
}

.muted-text li {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 28px 0 30px;
}

#personal p {
  text-align: justify;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.button.primary {
  background: var(--text);
  color: var(--bg);
}

.button.ghost {
  border-color: var(--stroke);
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.hero-highlights div {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.6);
}


.hero-highlights h3 {
  margin-bottom: 6px;
}

.hero-highlights p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.hero-visual {
  position: relative;
  min-height: 420px;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  opacity: 0.9;
  filter: blur(0);
  animation: drift 14s ease-in-out infinite;
}

.bubble-one {
  width: 240px;
  height: 240px;
  background: radial-gradient(circle at 30% 30%, #ffd0b6, var(--accent));
  top: 10px;
  left: 10px;
}

.bubble-two {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle at 30% 30%, #bdf3e7, var(--accent-2));
  bottom: 20px;
  right: 0;
  animation-delay: -4s;
}

.bubble-three {
  width: 140px;
  height: 140px;
  background: radial-gradient(circle at 30% 30%, #ffe4d4, #f2a679);
  top: 160px;
  right: 40px;
  animation-delay: -6s;
}

.hero-card {
  position: absolute;
  left: 50px;
  bottom: 40px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  padding: 20px 24px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  animation: float-in 1s ease-out 0.2s both;
}


.card-title {
  margin: 0 0 6px;
  font-weight: 600;
}

.card-subtitle {
  margin: 0 0 10px;
  color: var(--muted);
}

.card-note {
  margin: 0;
  color: var(--accent);
  font-weight: 600;
}

.section {
  padding: 90px 6vw;
  min-height: 100vh;
  box-sizing: border-box;
}

#kontakt.section {
  min-height: calc(100vh - 200px);
}

.split {
  display: grid;
  gap: 50px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.tag-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-list li {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--stroke);
  font-size: 0.85rem;
}


.card-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.info-card {
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--stroke);
  background: var(--card);  

  box-shadow: 0 18px 40px rgba(29, 27, 22, 0.1);
  transition: transform 0.2s ease;
}

 h3{
color: #256d7b;

}


.info-card:hover {
  transform: translateY(-4px);
}

.info-card span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.85rem;
}

#bewegung .card-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  overflow-x: auto;
}

#bewegung .info-card {
  flex: 0 0 320px;
}

.feature {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr 0.5fr;
  background: linear-gradient(120deg, #fff0e2, var(--bg), var(--bg-deep));
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
}

#personal {
  grid-template-columns: 1fr;
}


.feature-text p {
  color: var(--muted);
  line-height: 1.7;
 
}

.feature-quote {
  margin-top: 24px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.feature-list {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.feature-list p {
  margin: 0;
  color: var(--muted);
}

.feature-panel {
  display: grid;
  gap: 18px;
}

.feature-panel.panel-row {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: stretch;
}

#about {
  grid-template-columns: 1fr 0.36fr;
  grid-template-areas: "text panel";
  column-gap: 0;
}

#about .feature-panel {
  grid-area: panel;
  justify-self: end;
  margin-right: calc(-6vw + 130px);
  align-self: stretch;
}

#about .feature-text {
  grid-area: text;
}

#about .panel-box {
  background:  rgba(196, 219, 215, 0.7);
  width: 100%;
  margin-left: auto;
  margin-top: 56px;
  height: calc(100% - 56px);
  padding: 22px 14px 22px 22px;
}

.panel-box {
  padding: 22px;
  border-radius: 20px;
  background: rgba(162, 229, 218, 0.7);
  border: 1px solid var(--stroke);
  width: 60%;
  margin-left: 0;
}

.feature-panel.panel-row .panel-box {
  width: 100%;
}

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


.panel-image {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
  margin-bottom: 14px;
    
}

.panel-image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;
  gap: 12px;
  margin-bottom: 14px;

}

.panel-image-grid img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  display: block;
  object-fit: cover;
}

.panel-image-grid img:first-child {
  grid-row: 1 / span 2;
}


.panel-box p {
  margin: 1em 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.panel-box span {
  color: inherit;
  font-size: inherit;
}

.contact {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.contact-info p {
  color: var(--muted);
  line-height: 1;
}

.form-message {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.form-message.success {
  background: rgba(90, 214, 192, 0.2);
  color: #1f4a43;
}

.contact-details {
  margin-top: 18px;
  font-weight: 600;
  color: var(--text);
}

.contact-form {
  display: grid;
  gap: 0;
  row-gap: 0;
  align-items: start;
}

.contact-div {
  height: 50vh;
  display: flex;
}

.contact-div .contact-form {
  flex: 1;
  height: 100%;
}

label {
  display: grid;
  gap: 0;
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1;
}

#contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 1;
  margin: 0;
  padding: 0;
}



#information-modal {
  gap: 8px;
}
.contact-form label {
  gap: 8px;
}

#information-modal .contact-form {
  row-gap: 16px;
}

#information-modal .consent-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#information-modal .consent-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

#information-modal .consent-note {
  font-size: 0.85rem;
  color: var(--muted);
}

#contact-form label input,
#contact-form label textarea {
  margin-top: 0;
  margin-bottom: 0;
}

input,
textarea {
  padding: 6px 6px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  color: var(--text);
}

#contact-form input[type="text"],
#contact-form input[type="email"] {
  padding: 2px 2px;
  line-height: 1.2;
  height: 3.0em;
}

#contact-form .button {
  height: 3.0em;
  padding: 0 24px;
}

select {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  color: var(--text);
}

label input[type="checkbox"] {
  margin-right: 10px;
}

.link-button {
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  color: var(--accent-2);
  text-decoration: underline;
  cursor: pointer;
}

.link-button:hover {
  opacity: 0.85;
}


input:focus,
textarea:focus {
  outline: 2px solid rgba(255, 107, 61, 0.3);
}

.footer {
  padding: 30px 6vw 50px;
  border-top: 1px solid var(--stroke);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.82rem;
  opacity: 1;
}

.footer-link {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(29, 107, 95, 0.35);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1f4a43;
  opacity: 1;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.footer-link:hover,
.footer-links a:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(29, 27, 22, 0.12);
  background: #ffffff;
}

.footer-link:focus-visible {
  outline: 2px solid rgba(29, 107, 95, 0.35);
  outline-offset: 2px;
}

.modal {
  position: fixed !important;
  inset: 0 !important;
  display: none;
  z-index: 2147483000 !important;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 5vh 0;
  box-sizing: border-box;
}

.modal.is-open {
  display: block;
}

.modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(15, 20, 32, 0.5);
  backdrop-filter: blur(6px);
  z-index: 0;
}

.modal-content {
  position: relative;
  width: min(900px, 90vw);
  max-height: 90dvh;
  max-height: 90vh;
  margin: 0;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--stroke);
  position: relative;
  background: #fff;
  z-index: 3;
}

.modal-body {
  flex: 1 1 auto;
  padding: 20px 24px 24px;
  overflow-y: auto;
  overflow-x: hidden;
  touch-action: pan-y;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  color: var(--text);
  line-height: 1.6;
}

.modal-body h4 {
  margin-top: 18px;
  margin-bottom: 8px;
}

#privacy-modal .modal-content,
#impressum-modal .modal-content {
  position: fixed !important;
  top: clamp(120px, 18vh, 180px) !important;
  bottom: 5vh !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: min(900px, 90vw) !important;
  max-height: none !important;
  z-index: 2147483001 !important;
}

#privacy-modal .modal-body,
#impressum-modal .modal-body {
  overflow-y: auto !important;
}

.modal-close {
  border: none;
  background: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--muted);
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(14px, -12px);
  }
}

@keyframes slide {
  0%,
  28% {
    transform: translateX(0);
  }
  33%,
  61% {
    transform: translateX(-33.333%);
  }
  66%,
  94% {
    transform: translateX(-66.666%);
  }
  100% {
    transform: translateX(-66.666%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .slider-track {
    animation: none;
  }
}

@media (max-width: 1180px) {
  .hero {
    padding-top: 130px;
  }

  .nav {
    height: auto;
    min-height: 0;
    max-height: none;
    align-items: flex-start;
    padding: 10px 4vw;
    gap: 12px;
  }

  .brand {
    height: auto;
  }

  .brand-logo {
    max-height: 56px;
  }

  .nav-links {
    max-width: 72%;
    justify-content: flex-end;
    flex-wrap: wrap;
    column-gap: 14px;
    row-gap: 8px;
    font-size: 0.86rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 0;
  }

  .hero-slider {
    max-width: 100%;
  }

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

  .panel-box {
    width: 100%;
  }

  #about {
    grid-template-columns: 1fr;
    grid-template-areas:
      "text"
      "panel";
    row-gap: 24px;
  }

  #about .feature-panel {
    justify-self: stretch;
    margin-right: 0;
  }

  #about .panel-box {
    margin-top: 0;
    height: auto;
    padding: 22px;
  }

  #kurse .feature-panel.panel-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .nav {
    align-items: flex-start;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero-grid {
    margin-top: 0;
  }

  .hero-card {
    left: 20px;
  }

  #about .feature-panel {
    margin-right: 0;
  }
}

@media (max-width: 1024px) {
  .nav {
    align-items: center;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    width: 100%;
    max-width: 100%;
    order: 3;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
    padding: 14px;
    border: 1px solid var(--stroke);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 28px rgba(29, 27, 22, 0.12);
  }

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

  .nav-links a {
    width: 100%;
    opacity: 1;
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: clamp(2.2rem, 9vw, 3rem);
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-bottom: 60px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
