/*
 Theme Name:   astra-prakticon-child
 Theme URI:    diconit.com
 Description:  Ein Child-Theme für Astra zur Anzeige von Prakticon-Details.
 Author:       Keanu Semmel
 Author URI:   diconit.com
 Template:     astra
 Version:      1.0.0
 Text Domain:  astra-prakticon-child
*/

/* --- Individuelle CSS-Regeln für die Prakticon-Detailseite --- */

/* header margin entfernen*/
.site-content,
main.site-main {
    margin-top: 0 !important;   
    padding-top: 0 !important;
}

/* Generelle Container */
.filter-container {
    padding: 24px;
    border-radius: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 48px;
    background-color: #fff;
    border: 1px solid #f3f4f6;
}

/* Flex-Layout für das Formular */
.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}
@media (min-width: 768px) {
    .filter-form { flex-wrap: nowrap; }
}

.filter-item {
    width: 100%;
}
@media (min-width: 768px) {
    .filter-item { width: calc(50% - 8px); }
}
@media (min-width: 1024px) {
    .filter-item { width: auto; flex: 1; }
}

.filter-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 8px;
}

.filter-select {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    padding: 12px 16px;
    background-color: #f9fafb;
}

.filter-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
@media (min-width: 768px) {
    .filter-buttons { flex-direction: row; }
}

.filter-button {
    width: 100%;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 12px;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
}

.primary-button {
    background-color: #2563eb;
    color: #fff;
    border: none;
}
.secondary-button {
    background-color: transparent;
    border: 1px solid #d1d5db;
    color: #4b5563;
}


/* Raster für die Listings */
.praktika-grid-container,
.unternehmen-grid-container {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width:768px) {
    .praktika-grid-container,
    .unternehmen-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width:1024px) {
    .praktika-grid-container,
    .unternehmen-grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Karten-Stile */
.praktika-card,
.unternehmen-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
    flex-direction: column;
}

.praktika-card:hover,
.unternehmen-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

.praktika-body,
.unternehmen-body {
    padding: 1.5rem;
    flex: 1;
}

.praktika-title,
.unternehmen-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: .5rem;
    color: #111827;
}

.praktika-content,
.unternehmen-content {
    font-size: 1rem;
    color: #374151;
}

/* Unternehmensliste - modernes Design */
.unternehmen-grid-container {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(1, 1fr);
}
@media (min-width:768px) { 
    .unternehmen-grid-container { grid-template-columns: repeat(2, 1fr); } 
}
@media (min-width:1024px) { 
    .unternehmen-grid-container { grid-template-columns: repeat(3, 1fr); } 
}

.unternehmen-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
    flex-direction: column;
}
.unternehmen-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.1);
}

.unternehmen-body {
    padding: 1.5rem;
    flex: 1;
}

.unternehmen-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: .5rem;
    color: #111827;
}

.unternehmen-description h2{
    color: var(--ast-global-color-2); /* Überschriftenfarbe */
    font-size: 1.25rem; /* Schriftgröße für Unterüberschriften */
    margin-top: 3.5rem;
}

.unternehmen-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: .75rem;
}

.unternehmen-badge {
    background: #eff6ff;
    color: #1e3a8a;
    padding: .25rem .6rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: .75rem;
}

.unternehmen-logo {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    display: block;
}

.unternehmen-attributes h2 {
    color: var(--ast-global-color-2); /* Überschriftenfarbe */
    font-size: 1.25rem; /* Schriftgröße für Unterüberschriften */
    margin-top: 0;
    font-weight: bold;
}

/* --- Praktikum-Detailseite --- */

.praktikum-attributes h2 {
    color: var(--ast-global-color-2); /* gleiche Überschriftenfarbe wie Unternehmen */
    font-size: 1.25rem;
    margin-top: 0;
    font-weight: bold;
}

.praktikum-description h2,
.praktikum-requirements h2 {
    color: var(--ast-global-color-2);
    font-size: 1.25rem;
    margin-top: 3.5rem; /* gleicher Abstand wie bei Unternehmensbeschreibung */
}

.praktikum-description p,
.praktikum-requirements p {
    font-size: 1rem;
    color: #374151;
    line-height: 1.6;
}

.praktikum-company-link .primary-button {
    display: inline-block;
    margin-top: 1.5rem;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    background-color: #2563eb;
    color: #fff;
    transition: background-color 0.25s ease;
}

.praktikum-company-link .primary-button:hover {
    background-color: #1d4ed8;
}

/* Überschriften der Einträge – kein Abstand nach unten */
.entry-title {
    margin-bottom: 0 !important;
}

/* Intelligente Titel-Umbrüche */
.praktikum-single-entry .entry-title {
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    word-break: normal;
    overflow-wrap: anywhere;
    line-height: 1.3;
}

/* Für deutsche Silbentrennung */
.praktikum-single-entry .entry-title {
    lang: de;
}

/* Intelligente Titel-Umbrüche für Unternehmen */
.unternehmen-single-entry .entry-title {
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    word-break: normal;
    overflow-wrap: anywhere;
    line-height: 1.3;
}


/* Für deutsche Silbentrennung */
.unternehmen-single-entry .entry-title {
    lang: de;
}