/* ============================================
   Standards, Farben, Schriften
============================================ */
/*
font-family: "Roboto", Arial, sans-serif;
font-family: "Roboto Slab", Arial, sans-serif;
font-family: "Roboto Condensed", Arial, sans-serif;
Farben:
Grün: #006532
Gelb: #fbba00
Orange: #f39100
Grau: #5a5a5a
*/

/* === Reset und Grundlayout === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  font-family: "Roboto", Arial, sans-serif;
  background-color: #fce8b6;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  /* Für iOS: verhindert font scaling */
}

/* ============================================
   Wrapper & Grundstruktur
============================================ */
.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  /* Für iPhone: verhindert Überlauf */
  overflow-x: hidden;
}

main {
  background-image: url(../img/bg-main.png);
  background-size: 100% auto;
  background-repeat: repeat;
  background-position: top;
  background-color: #ffffff;
}

/* ============================================
   Standard-Textelemente
============================================ */
p,
main ol,
main ul,
main tr,
main td {
  font-size: 1.125rem;
  color: #5a5a5a;
  font-family: "Roboto", Arial, sans-serif;
}

main ol,
main ul {
  padding-left: 2rem;
  margin: 25px 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #006532;
  font-family: "Roboto Slab", Arial, sans-serif;
  font-weight: 400;
  margin-top: 1rem;
}

h1 {
  font-size: 1.875rem;
}
h2 {
  font-size: 1.75rem;
}
h3 {
  font-size: 1.625rem;
}
h4 {
  font-size: 1.5rem;
}
h5 {
  font-size: 1.375rem;
}
h6 {
  font-size: 1rem;
}

/* ============================================
   Header & Logo
============================================ */
.header {
  background-color: #fbba00;
  color: white;
  padding: 1rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
}

.logo {
  font-size: 1.5rem;
  background-image: url("../img/logo_yoga_bayerwald.svg");
  background-size: cover;
  width: 120px;
  height: 120px;
  position: absolute;
  top: 5px;
  left: 30px;
}
.logo a {
  width: 100%;
  height: 100%;
}

/* ============================================
   Hauptinhalt & Content
============================================ */
.content {
  flex: 1;
  padding: 4rem 1rem 2rem 1rem;
}

.content a {
  font-weight: 600;
  color: #f39100;
  text-decoration: none;
}

.kursseite h1,
.kursseite h2,
.kursseite h3,
.kursseite h4 {
  margin-bottom: 4rem;
  text-align: center;
}
.kursseite section {
  margin-bottom: 4rem;
}

#partnerlinks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
#partnerlinks img {
  width: 200px;
  margin: 1rem;
}

/* ============================================
   Home-Einleitung
============================================ */
#home-einleitung {
  display: flex;
  flex-direction: column;
}
#startbild {
  margin: 2rem auto;
  width: 300px;
  max-width: 95vw;
  display: block;
}
#startbild-text {
  display: block;
  font-family: "Montez";
  font-size: 4rem;
  color: #f39100;
}
p.einleitung {
  font-size: 1.2rem;
  margin-top: 2rem;
  font-weight: 600;
}
.auswahlliste {
  padding: 0;
  list-style-type: none;
}
.auswahlliste li {
  margin-top: 0.8rem;
}
.auswahlliste a {
  text-decoration: none;
  color: #000000;
  padding: 5px 0;
}
.auswahlliste a:hover {
  background-color: #fce8b6;
}
.auswahlliste span.rubrik {
  font-size: 1.2rem;
  color: #f39100;
  font-weight: 600;
}
.auswahlliste span.wochentag {
  color: #006532;
  font-weight: 600;
}

/* ============================================
   Upload-Formular
============================================ */
.uploadform button {
  background-color: #fbba00;
  padding: 10px;
  border-radius: 10px;
  border: none;
  font-size: 1.2rem;
  font-weight: 500;
  color: #006532;
}

/* ============================================
   Tabellenansicht im Content-Bereich
============================================ */
main table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
}
main table td,
main table th {
  padding: 5px;
}

/* ============================================
   Navigation & Menü
============================================ */
.nav {
  display: flex;
  align-items: center;
  font-family: "Roboto Slab", Arial, sans-serif;
  font-size: 1.05rem;
}

.hamburger {
  font-size: 2.5rem;
  background: none;
  border: none;
  color: #006532;
  cursor: pointer;
}

.menu {
  display: none;
  flex-direction: column;
  background-color: #fce8b6;
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  list-style: none;
  z-index: 1000;
}
.menu li a {
  display: block;
  padding: 1rem;
  color: #006532;
  text-decoration: none;
  transition: background 0.13s, color 0.13s;
}
.menu li a:hover {
  color: #20a261;
}

/* "active" für aktuelle Seite */
.active {
  color: #ffffff !important;
  background-color: #f39100 !important;
}

/* ============================================
   Kurs-Detail Ansicht
============================================ */
.kurs-detail {
  margin-bottom: 2em;
}
.wert {
  font-weight: 600;
  color: #f39100;
}
.button-anmeldung {
  margin: 3rem 0;
}
.button-anmeldung a {
  padding: 1rem;
  color: #ffffff;
  background-color: #006532;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.25rem;
}

.kurs-leitung {
  padding: 1rem;
  border: 2px dotted #006532;
  border-radius: 5px;
}

.row1 {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.kontaktdaten h4 {
  margin-bottom: 1rem;
  font-weight: 600;
}
.kontaktdaten p {
  line-height: 1.875rem;
}

.kontaktdaten a {
  text-decoration: none;
  color: #006532;
}

.row1 .bild img {
  width: 200px;
  height: auto;
  border-radius: 5px;
}

.row2 {
  margin-top: 2rem;
}

/* ============================================
   Footer
============================================ */
.footer {
  background-color: #fbba00;
  color: #006532;
  text-align: center;
  padding: 1rem;
  margin-top: auto;
  font-family: "Roboto Slab", Arial, sans-serif;
  font-size: 0.875rem;
}
footer p {
  color: #006532;
}
footer p a {
  text-decoration: none;
  color: #006532;
}

/* ============================================
   Utility-Klassen
============================================ */
.upper {
  text-transform: uppercase;
  letter-spacing: 1px;
}
.bold {
  font-weight: 600;
}
.subline {
  font-size: 1.3rem;
}

/* ============================================
   "Nach oben"-Button
============================================ */
.top-link {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  cursor: pointer;
  z-index: 1000;
  transition: opacity 0.3s ease;
}
.top-link img {
  width: 100%;
  height: auto;
}

/* ============================================
   Kartenlayout für Kurse, Kursorte, Kursleiter
============================================ */

.card-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
  margin-bottom: 2rem;
  width: 100%;
}

.card {
  background: #fff;
  border: 1px solid #e0e3e9;
  border-radius: 5px;
  width: 100%;
  max-width: 270px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  padding: 1.3rem 1rem 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.22s, transform 0.18s;
  cursor: pointer;
  box-sizing: border-box;
  /* Safari-Flexbox Bug-Fix: */
  min-width: 0;
}

.card:hover,
.card:focus {
  box-shadow: 0 6px 24px rgba(30, 60, 120, 0.16);
  transform: translateY(-4px) scale(1.03);
  background-color: #fce8b6;
}

.card-title {
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-size: 1.27rem;
  color: #f39100;
  font-family: "Roboto Condensed", Arial, Helvetica, sans-serif;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.02em;
}

.card p {
  margin: 0.3em 0;
  font-size: 1.01rem;
  color: #2a2a2a;
  text-align: center;
}

.card-desc {
  font-size: 0.8rem;
  color: #444;
  margin-bottom: 0.4rem;
  text-align: center;
}

.card-img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 1rem;
  background: #e6ecf2;
  display: block;
}

/* Downloads PDFs zum Thema */

.artikel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 0;
  list-style: none;
}

.artikel-eintrag {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
  background: #fff;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.artikel-bild {
  width: 120px;
  flex-shrink: 0;
}

.artikel-bild img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.25), 0 1.5px 8px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

.artikel-text {
  flex: 1;
}

.artikel-text .artikel-beschreibung {
  font-size: 0.8rem;
}

.artikel-text h4 {
  margin: 0;
  font-size: 1.1rem;
}

.download-button {
  margin-top: 1rem;
}

.download-button a {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background-color: green;
  color: white;
  text-decoration: none;
  border-radius: 3px;
}

.ueberuns .artikel-eintrag {
  flex-direction: column;
}

.ueberuns .artikel-eintrag .artikel-bild {
  width: 80%;
}

/* ========== RESPONSIVE DESIGN ========== */

/* Karten-Layout auf kleinen Geräten */
@media (max-width: 650px) {
  .card-list {
    flex-direction: column;
    gap: 0.9rem;
    align-items: center;
    width: 100%;
    max-width: 100%;
    /*width: 100vw;
    padding: 0 2vw;*/
  }
  .card {
    width: 100%;
    max-width: 350px;
    margin-left: 0;
    margin-right: 0;
  }
}

/* Layout für größere Screens */
@media (min-width: 961px) {
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }
  h3 {
    font-size: 1.75rem;
  }
  h4 {
    font-size: 1.5rem;
  }
  h5 {
    font-size: 1.25rem;
  }
  h6 {
    font-size: 1rem;
  }
  .header {
    padding: 3rem 1rem;
  }
  .hamburger {
    display: none;
  }
  .menu {
    display: flex !important;
    flex-direction: row;
    position: static;
    background: none;
    width: auto;
    margin-left: auto;
    gap: 0.7rem;
  }
  .menu li a {
    padding: 0.5rem 0.5rem;
    /*background-color: #fce8b6;*/
    border-radius: 3px;
  }
  #kurse {
    flex-direction: column;
    gap: 2rem;
  }
  #home-einleitung {
    flex-direction: row-reverse;
  }
  #startbild {
    flex: 1;
  }
  #startbild-text {
    margin: 4rem 0;
    flex: 3;
  }
  .ueberuns .artikel-eintrag {
    flex-direction: row;
  }

  .ueberuns .artikel-eintrag .artikel-bild {
    width: 20%;
  }
}

/* Extra-Breit ab 1200px */
@media (min-width: 1200px) {
  .wrapper {
    max-width: 1200px;
  }
  .logo {
    width: 190px;
    height: 190px;
    top: 5px;
    left: 50px;
  }
  .content {
    padding: 8rem 4rem 2rem 4rem;
  }
}
