/* =========================================================
   Kalendra Typography & UI
   Fonts: Raleway (Headings/CTA) + Quicksand (Body)
   ========================================================= */

/* 1) Root & Resets */

:root{
  --text: #000000;
  --muted: #6b7280;
  --heading: #000000;
  --brand: #1e7f72;     /* Akzentgrün */
  --brand-2: #0e6f63;
  --bg-soft: #fafafa;
  --border: #e5e7eb;
}

html { font-size: 16px; }
* { box-sizing: border-box; }
img { max-width: 100%; height: auto; }

/* 2) Globales Schrift-Setup */
body{
  font-family: 'Quicksand', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 3) Überschriften & Titel */
h1, h2, h3, h4, h5, h6,
.article-title,
.section-title{
  font-weight: 600;
  color: var(--heading);
  letter-spacing: .2px;
  margin: 0 0 .6rem;
}

h1, .h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.25rem); }
h2, .h2, .article-title { font-size: clamp(1.375rem, 1.05rem + 1.4vw, 1.75rem); }
h3, .h3 { font-size: clamp(1.125rem, 1rem + .8vw, 1.375rem); }

/* 4) Fließtext */
p{ margin: 0 0 1rem; }
.small, small{ font-size: .9rem; color: var(--muted); }

/* 5) Links */



/* 6) Buttons */
.cta-button,
.button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1.1rem;
  border-radius: .75rem;
  border: 1px solid transparent;
  background: var(--brand);
  color: #fff;
  /*font-family: 'Raleway', sans-serif; */
  font-weight: 600;
  letter-spacing: .2px;
  cursor: pointer;
  transition: transform .06s ease, background .18s ease, box-shadow .18s ease;
  /*box-shadow: 0 6px 18px rgba(30,127,114,.15);*/
}
.cta-button:hover{ background: var(--brand-2); transform: translateY(-1px); }
.cta-button:active{ transform: translateY(0); box-shadow: 0 4px 12px rgba(30,127,114,.18); }

.button.ghost{
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
  box-shadow: none;
}
.button.ghost:hover{ background: rgba(30,127,114,.07); }

/* 7) Formular-Elemente */
label{
  display: block;
  font-weight: 600;
  color: var(--heading);
  margin: 0 0 .35rem;
  font-family: 'Raleway', sans-serif;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"],
textarea,
.select,
.form-control{
  padding: .8rem 1rem;
  border-radius: .75rem;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
  font-family: 'Quicksand', sans-serif;
}
textarea{ min-height: 140px; resize: vertical; }

input:focus,
textarea:focus,
.select:focus{
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(30,127,114,.15);
  background: #fff;
}

/* 8) Info-Boxen & Karten */
.course-info-box-white,
.card{
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 12px;
}

.course-info-box-white .line{
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: .75rem;
  align-items: baseline;
  padding: .4rem 0;
  border-bottom: 1px dashed #000000;
}
.course-info-box-white .line:last-child{ border-bottom: 0; }

.course-info-box-white .title{
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.course-info-box-white .content{
  color: var(--text);
}

/* Responsive Switch auf untereinander bei schmalen Screens */
@media (max-width: 680px){
  .course-info-box-white .line{
    grid-template-columns: 1fr;
    gap: .25rem;
  }
  .course-info-box-white .title{
    color: var(--muted);
  }
}

/* 9) Preis & Highlights */
.price{
  font-weight: 500;
  color: var(--brand);
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.6rem);
}

/* 10) Bild-Wrapper */
.image_holders_horizontal{
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin: 0 0 1rem;
}
.hero-right{
  display: block;
  width: 100%;
}

/* 11) Beschreibung (TinyMCE/Editor Output) */
.description-rich,
.description-plain{
  font-size: 1.2rem;
  color: var(--text);
}
.description-rich p,
.description-plain p{ margin: 0 0 .85rem; }
.description-rich ul, .description-plain ul{ padding-left: 1.1rem; margin: .35rem 0 .9rem; }
.description-rich li, .description-plain li{ margin: .2rem 0; }

/* 12) Layout Hilfen */
.content { padding: 1rem; }
.course-content-wrapper { max-width: 980px; margin: 0 auto; }

/* 13) Map */
.map-container iframe{
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,.05);
}

/* 14) Tables (falls nötig) */
.table{
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.table th, .table td{
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
}
.table th{
  background: #f8fafc;
  text-align: left;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  color: var(--heading);
}

/* 15) Badges (optional) */
.badge{
  display: inline-block;
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .85rem;
  background: rgba(30,127,114,.08);
  color: var(--brand);
  border: 1px solid rgba(30,127,114,.18);
}

/* 16) Helper classes */
.text-center{ text-align: center; }
.text-muted{ color: var(--muted); }
.mt-1{ margin-top: .25rem; }
.mt-2{ margin-top: .5rem; }
.mt-3{ margin-top: 1rem; }
.mt-4{ margin-top: 1.5rem; }
.mb-1{ margin-bottom: .25rem; }
.mb-2{ margin-bottom: .5rem; }
.mb-3{ margin-bottom: 1rem; }
.mb-4{ margin-bottom: 1.5rem; }


.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;

  /* wichtig: alle Elemente in einer Zeile gleich hoch */
  align-items: stretch;
}

.card.card-clean {
  background: #fff;
  border: 1px solid #000;
  border-radius: 12px;

  /* sorgt für volle Höhe */
  height: 100%;

  /* Inhalt in Spaltenaufteilung */
  display: flex;
  flex-direction: column;
}

.card-image-wrapper {
  position: relative;
  width: 100%;
  height: 200px;   /* feste Bildhöhe */
  overflow: hidden;
  flex-shrink: 0;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 1rem;

  /* nimmt den restlichen Platz ein */
  flex: 1;

  /* macht den Inhalt von oben nach unten gleichmäßig */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Tabs im Login-Bereich mittig ausrichten */
#block-lucamatej-local-tasks nav.tabs {
  display: flex;
  justify-content: center; /* Tabs zentrieren */
}

#block-lucamatej-local-tasks nav.tabs ul {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 400px; /* gleiche Breite wie Eingabefelder */
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

#block-lucamatej-local-tasks nav.tabs ul li {
  flex: 1; /* alle Tabs gleich breit */
  text-align: center;
}

#block-lucamatej-local-tasks nav.tabs ul li a {
  display: block;
  padding: 10px;
  border: 1px solid #ccc;
  border-bottom: none;
  background: #f9f9f9;
}

#block-lucamatej-local-tasks nav.tabs ul li a.is-active {
  background: #fff;
  font-weight: bold;
}
