/*
Theme Name: Tagespflege Gehrden
Theme URI: https://tagespflege-gehrden.henning-stein.de
Description: Child Theme basierend auf Tortuga für die Tagespflege für Senioren Gehrden
Author: Henning Stein
Template: tortuga
Version: 1.0.0
Text Domain: tagespflege-child
*/

:root {
    --primary-color: #0053a4 !important;
    --secondary-color: #003d7a !important;
    --tertiary-color: #002b5a !important;
    --accent-color: #e8a53a !important;
    --link-color: #0053a4 !important;
    --button-color: #0053a4 !important;
    --button-hover-color: #003d7a !important;
    --header-background-color: #ffffff !important;
    --header-text-color: #002b5a !important;
    --site-title-color: #002b5a !important;
    --site-title-hover-color: #003d7a !important;
    --navi-hover-color: #0053a4 !important;
    --page-border-color: #0053a4 !important;
    --title-color: #002b5a !important;
    --widget-border-color: #0053a4 !important;
    --widget-title-color: #002b5a !important;
    --footer-background-color: #002b5a !important;
}

/* Header weiss */
.site-header {
    background-color: #fff !important;
}

.site-title a,
.site-title a:link,
.site-title a:visited {
    color: #002b5a !important;
}

/* Navi */
.primary-navigation-wrap {
    background-color: #0053a4 !important;
}

.main-navigation-menu > .menu-item > a:hover,
.main-navigation-menu > .current-menu-item > a,
.main-navigation-menu > .current-menu-ancestor > a {
    background-color: #003d7a !important;
}

/* Dropdown Submenüs - Desktop */
@media only screen and (min-width: 60em) {
    .main-navigation ul ul {
        background-color: #fff !important;
        font-size: 0.95rem !important;
    }

    .main-navigation ul ul a,
    .main-navigation ul ul a:link,
    .main-navigation ul ul a:visited {
        color: #333 !important;
    }

    .main-navigation ul ul a:hover,
    .main-navigation ul ul a:active,
    .main-navigation ul ul a:focus,
    .main-navigation ul ul li.current-menu-item > a {
        background-color: #0053a4 !important;
        color: #fff !important;
    }

    .main-navigation ul ul ul {
        border-left-color: #ddd !important;
    }
}

/* Logo links, Titel + Slogan rechts daneben */
.site-branding {
    display: flex !important;
    align-items: center;
    gap: 15px;
}

.site-logo {
    flex-shrink: 0;
}

.site-branding .custom-logo {
    max-height: 90px;
    width: auto;
}

.site-identity .site-title {
    margin-bottom: 0 !important;
    float: none !important;
}

.site-identity .site-description {
    font-size: 1.15rem;
    color: #e8a53a !important;
    font-style: italic !important;
    margin: 0 !important;
    float: none !important;
}

/* Body Hintergrund warm, hell */
body {
    background-color: #f5f7fa !important;
}

/* Eingebettete Seiten-Artikel */
article.tp-eingebettet {
    border-top: 4px solid #0053a4;
}

/* Seiten-Teaser Grid */
.tp-teaser-grid {
    display: grid;
    gap: 25px;
    margin: 20px 0;
}

.tp-teaser-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.tp-teaser-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.tp-teaser-link,
.tp-teaser-link:link,
.tp-teaser-link:visited {
    text-decoration: none !important;
    color: inherit !important;
    border: none !important;
}

.tp-teaser-box {
    background: #fff;
    border-top: 4px solid #0053a4;
    height: 100%;
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tp-teaser-link:hover .tp-teaser-box {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.tp-teaser-link:hover .tp-teaser-box h3 {
    color: #003d7a;
}

.tp-teaser-box img {
    width: 100%;
    margin-bottom: 10px;
}

.tp-teaser-box h3 {
    color: #002b5a;
    margin: 0 0 0.3em;
}

.tp-teaser-excerpt {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
}

@media (max-width: 600px) {
    .tp-teaser-grid--2,
    .tp-teaser-grid--3 {
        grid-template-columns: 1fr;
    }
}

/* Footer: site-info volle Breite */
.site-footer .site-info {
    float: none !important;
    width: 100% !important;
}

/* Footer Kontaktdaten */
.tp-footer-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    text-align: left;
    width: 100%;
}

.tp-footer-info a {
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none !important;
    border-bottom: none !important;
}

.tp-footer-info a:hover {
    color: #fff !important;
}

.tp-footer-col strong {
    color: #fff;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .tp-footer-info {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
}

/* Header kompakter */
.header-main {
    padding-top: 0.5em !important;
    padding-bottom: 0.5em !important;
}

/* Lupe in der Navigation */
.tp-search-toggle {
    float: right !important;
}

.tp-search-toggle a,
.tp-search-toggle a:link,
.tp-search-toggle a:visited {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 12px 15px !important;
    color: #fff !important;
    opacity: 0.85;
    border: none !important;
}

.tp-search-toggle a:hover {
    opacity: 1;
    background: rgba(255,255,255,0.15) !important;
}

.tp-search-btn svg {
    display: block;
}

/* Such-Overlay */
.tp-search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
}

.tp-search-overlay.active {
    display: flex;
}

.tp-search-inner {
    background: #fff;
    padding: 50px 30px 30px;
    border-radius: 4px;
    width: 90%;
    max-width: 550px;
    position: relative;
}

.tp-search-inner form {
    display: flex;
    gap: 10px;
}

.tp-search-input {
    flex: 1;
    padding: 12px 15px;
    font-size: 1.1rem;
    border: 2px solid #ddd;
    border-radius: 3px;
    outline: none;
}

.tp-search-input:focus {
    border-color: #0053a4;
}

.tp-search-submit {
    padding: 12px 20px;
    background: #0053a4;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 1rem;
    cursor: pointer;
}

.tp-search-submit:hover {
    background: #003d7a;
}

.tp-search-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.tp-search-close:hover {
    color: #333;
}

/* Personen-Grid */
.tp-personen-grid {
    display: grid;
    gap: 25px;
    margin: 20px 0;
}

.tp-personen-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.tp-personen-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.tp-person {
    background: #fff;
    padding: 25px 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tp-person:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.tp-person figure {
    margin: 0 0 15px;
}

.tp-person figure img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.tp-person h3 {
    color: #002b5a;
    margin: 0 0 5px;
    font-size: 1.1rem;
}

.tp-person p {
    margin: 0 0 5px;
    font-size: 0.95rem;
    color: #555;
}

.tp-person details {
    margin-top: 10px;
    text-align: left;
    font-size: 0.9rem;
    color: #666;
}

.tp-person details summary {
    cursor: pointer;
    color: #0053a4;
    font-weight: bold;
    text-align: center;
}

@media (max-width: 600px) {
    .tp-personen-grid--2,
    .tp-personen-grid--3 {
        grid-template-columns: 1fr;
    }
}

/* Leistungen mit Icons */
.tp-leistungen {
    display: grid;
    gap: 12px;
    margin: 20px 0;
}
.tp-leistung {
    display: flex;
    gap: 16px;
    padding: 16px 18px;
    background: #fff;
    border-left: 4px solid #0053a4;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tp-leistung:hover {
    transform: translateX(2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}
.tp-leistung-icon {
    flex-shrink: 0;
    color: #0053a4;
    width: 36px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 2px;
}
.tp-leistung-body {
    flex: 1;
    color: #333;
    line-height: 1.5;
}
.tp-leistung-body strong {
    color: #002b5a;
    display: block;
    margin-bottom: 2px;
    font-size: 1.05em;
}
