/*
Theme Name: Child Thrive Theme
Theme URI: http://thrivethemes.com/
Version: 1.0
Author: <a href="http://www.thrivethemes.com">Thrive Themes</a>
Description: Fully customizable, front end theme and template editing for WordPress has arrived! 
Template: thrive-theme
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, custom-everything
*/

/* Online-Anmeldung iFrame Styling */
.anmeldung-iframe {
	width: 100%;
	height: 1400px;
	border-radius: 10px;
}
@media (max-width: 862px) {
	.anmeldung-iframe {height: 2200px;}
}

/* Table Styling */
.ks-table {
	border-radius: 10px;
	text-transform: math-auto;
	overflow: hidden;
}
@media (max-width: 768px) {
  .ks-table .tve_table {
    border-collapse: separate;
    border-spacing: 0 20px;
  }

  /* alle Zellen */
  .ks-table .tve_table tr td {
    overflow: hidden;
  }

  /* ERSTE ZELLE im Block (oben) */
  .ks-table .tve_table tr td:first-child {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
  }

  /* LETZTE ZELLE im Block (unten) */
  .ks-table .tve_table tr td:last-child {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
  }
}

/* KURSKALENDER STYLING */
/* -----------------------------------------------------------------------------
   Kurs-Tabellen
   ----------------------------------------------------------------------------- */

.ks-course-table {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: transparent;
}

/* Blaue Kopfzeile */
.ks-course-head {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    align-items: center;
    gap: 16px;

    padding: 10px 12px;
    background: #0078b8;
    color: #ffffff;
    line-height: 1.2;

    border-radius: 8px 8px 0 0;
}

/* Rechte Spalte im Tabellenkopf */
.ks-course-head span:last-child {
    text-align: right;
}

/* Tabellenkörper ohne sichtbaren Außenrahmen */
.ks-course-body {
    border: 0;
    background: transparent;
}

/* Kurszeilen */
.ks-course-row {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    align-items: start;
    gap: 16px;

    padding: 10px 12px;

    line-height: 1.35;
    color: #222222;

    border: 0;
    background: #ffffff;
}

/* Abwechselnde Hintergrundfarbe wie in der rechten Tabelle */
.ks-course-row:nth-child(even) {
    background: #dfe8ef;
}

/* Erste Spalte */
.ks-course-title {
    font-size: 14px !important;
    line-height: 20px !important;
    font-weight: 700 !important;
}

/* Zweite Spalte */
.ks-course-date {
    font-size: 14px !important;
	line-height: 20px !important;
    text-align: right;
}

/* Fallback-Ausgabe */
.ks-course-empty {
    padding: 10px 12px;
    background: #ffffff;
    color: #222222;
    line-height: 20px;

    border-radius: 8px;
    text-align: center;
}

/* Mobile Darstellung */
@media (max-width: 767px) {
    .ks-course-head,
    .ks-course-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .ks-course-head span:last-child {
        display: none;
    }

    .ks-course-date {
        text-align: left;
    }
}
.ks-course-table,
.ks-course-table *,
.ks-course-empty {
    font-family: "DM SANS", sans-serif !important;
}