/*
 Theme Name:   Heike Dahms Child
 Theme URI:    https://tlbauer.de
 Description:  Child Theme for Heike Dahms
 Author:       Tim Lucas Bauer
 Author URI:   http://tlbauer.de
 Template:     ippo
 Version:      1.0.1
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:
 Text Domain:  ippo
*/

/* ─── FONTS ─────────────────────────────────────────────────── */
@font-face {
    font-family: 'Titillium Web';
    src: url('/wp-content/themes/ippo-child/fonts/titillium-web/titillium-web-v19-latin-300.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Titillium Web';
    src: url('/wp-content/themes/ippo-child/fonts/titillium-web/titillium-web-v19-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Titillium Web';
    src: url('/wp-content/themes/ippo-child/fonts/titillium-web/titillium-web-v19-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Titillium Web';
    src: url('/wp-content/themes/ippo-child/fonts/titillium-web/titillium-web-v19-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Titillium Web', sans-serif;
    font-weight: 300;
}

/* ─── GLOBAL WIDTH ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6, p,
div.tnp, div.tc-event-listing-container,
div.tc_the_content_pre, div.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
}

.responsive-max-width,
.wp-block-pullquote.alignwide > p,
.wp-block-pullquote.alignfull > p,
.wp-block-pullquote.alignwide blockquote,
.wp-block-pullquote.alignfull blockquote,
hr.wp-block-separator.is-style-wide,
.entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator):not(.entry-attachment),
.entry-content [class*="inner-container"] > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator),
.entry-content .wp-audio-shortcode,
.post-navigation,
.pagination {
    max-width: 100%;
}

/* ─── LAYOUT ────────────────────────────────────────────────── */
div.site-content {
    padding-top: 60px !important;
    padding-bottom: 100px !important;
}

div.content { padding-bottom: 120px !important; }
div.hero { padding-bottom: 1vw !important; }
div.entry-meta { display: none; }
figure.featured-image.featured-landscape { display: none; }
img { margin-left: 0 !important; }
h1 { font-size: 3rem; }

p {
    margin-top: 15px !important;
    margin-bottom: 15px !important;
}

@media screen and (max-width: 600px) {
    div.container.container-medium {
        padding-left: 7px !important;
        padding-right: 7px !important;
    }
}

/* ─── BUTTONS (shared: .btn links + newsletter submit input) ── */
.btn,
input.tnp-submit {
    background-color: #B90628;
    color: white !important;
    font-family: 'Titillium Web', sans-serif;
    font-size: 0.95em;
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn {
    display: inline-block;
    font-weight: 600;
    text-decoration: none;
}

input.tnp-submit {
    font-weight: 400 !important;
}

.btn:hover,
input.tnp-submit:hover {
    background-color: #7f012b;
    color: white !important;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #B90628;
    color: #B90628 !important;
}

.btn-outline:hover {
    background-color: #B90628;
    color: white !important;
}

/* ─── FOOTER ────────────────────────────────────────────────── */
footer div.container {
    margin-left: auto;
    margin-right: auto;
    padding-left: 80px;
    padding-right: 80px;
}

.footer-kontakt {
    color: #B90628;
    font-size: 1.5em;
}

.footer-kontakt a { color: #777777; }
.footer-kontakt a:hover { color: #B90628; }
.footer-copyright { font-size: 1.1em; }

/* ─── HEADER / NAV ──────────────────────────────────────────── */
header.site-header {
    background: linear-gradient(90deg, rgba(185,6,40,1) 0%, rgba(168,17,45,1) 50%, rgba(145,3,29,1) 100%);
}

div.site-branding { display: none; }
ul.menu .nav-menu { text-align: center !important; }

@media only screen and (min-width: 1209px) {
    ul.menu a {
        font-size: 1.2em !important;
        font-weight: 600 !important;
    }
}

@media only screen and (min-width: 1025px) {
    .site-header nav { padding-right: 0; }
}

button.menu-toggle span { color: white !important; }
button.menu-toggle i {
    font-weight: 700;
    color: white;
    margin-top: -9px !important;
}

.standard-menu .main-navigation ul ul { background-color: #B90628 !important; }
div.container { min-height: 45px !important; }

a.dropdown-toggle {
    color: white !important;
    padding-left: 5px !important;
}
a.dropdown-toggle:hover { color: #b5b5b5 !important; }
ul.menu.nav-menu { color: white !important; }
ul.menu.nav-menu:hover { color: #b5b5b5 !important; }

@media only screen and (max-width: 1024px) {
    div.menu-hauptmenue-container {
        background: linear-gradient(90deg, rgba(185,6,40,1) 0%, rgba(168,17,45,1) 50%, rgba(145,3,29,1) 100%);
    }
    li.menu-item { font-size: 1em !important; }
    ul.sub-menu { font-size: 0.7em; }
    .standard-menu .main-navigation ul ul { background-color: transparent !important; }
}

/* ─── LOGO ──────────────────────────────────────────────────── */
div.logo-master { background-color: white; }

svg#logo-master {
    align-content: center;
    max-height: 70px;
    max-width: 70vw;
    margin-top: 5px;
}

img.custom-logo {
    max-height: 80px;
    width: auto;
}

a#big-search-trigger { display: none; }

/* ─── TITLES ────────────────────────────────────────────────── */
h1.page-title { display: none !important; }

h2.entry-title {
    font-size: 3em !important;
    text-align: left !important;
}

/* ─── SLIDER ────────────────────────────────────────────────── */
span.category-list { display: none; }

.fullwidth-slider .featured-slider .entry-title {
    pointer-events: none;
    cursor: default;
    text-decoration: none;
}
.fullwidth-slider .featured-slider .featured-image:after {
    background-color: rgba(0,0,0,0);
}

@media (min-width: 768px) {
    div.hbottom { color: #c6454c !important; }
    div.hbbottom {
        font-size: 20px !important;
        margin-top: -3em !important;
    }
}

/* Entrance slider styling + earlier content start on mobile */
@media (max-width: 768px) {
    .slide-text .entry-title a {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.3rem;
    }

    .htop, .hbottom, .hbbottom {
        display: block !important;
        position: relative !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        color: #fff !important;
    }

    .htop {
        font-size: 1.5rem !important;
        line-height: 1.2 !important;
    }

    .hbottom {
        font-size: 1.2rem !important;
        color: #c0001e !important;
    }

    .hbbottom {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }

    .entry-title > a > br { display: none; }

    .fullwidth-slider .slide-text {
        left: 40px;
        top: 230px;
    }

    div.site-content { padding-top: 30px !important; }

    /* Gallery: 2-column on tablets/mobile */
    figure.wp-block-gallery.is-layout-flex { columns: 2 !important; }

    /* Schulhund slide: hide desktop photo frame on mobile */
    .schulhund-photo-wrap { display: none; }
    img#mobile {
        display: inline !important;
        margin-top: 10px;
        margin-bottom: 10px;
    }
}

/* ─── MISC UI ────────────────────────────────────────────────── */
label.checkbox::before { display: none; }
.more { display: none; }
img.attachment-coup-single-post.size-coup-single-post.wp-post-image { display: none; }
div.grecaptcha-badge { display: none !important; }

/* ─── RESPONSIVE SHOW/HIDE ──────────────────────────────────── */
@media screen and (min-width: 860px) {
    div.mobileversion { display: none; }

    /* Newsletter form: side-by-side name fields on desktop */
    .tnp-field.tnp-field-firstname,
    .tnp-field.tnp-field-surname,
    .tnp-field.tnp-field-lastname {
        float: left;
        width: 49%;
    }

    .tnp-field.tnp-field-surname,
    .tnp-field.tnp-field-lastname { margin-left: 2%; }

    form.customize-unpreviewable {
        width: 100%;
        display: table;
        clear: both;
    }
}

@media screen and (max-width: 859px) {
    div.desktopversion { display: none; }
}

@media screen and (max-width: 720px) {
    img#hide.alignleft { display: none; }
}

/* ─── GALLERY ───────────────────────────────────────────────── */
figure.wp-block-gallery.is-layout-flex {
    display: block !important;
    columns: 3 !important;
    column-gap: 16px !important;
    flex-wrap: unset !important;
    align-items: unset !important;
    justify-content: unset !important;
    gap: unset !important;
}

figure.wp-block-gallery.is-layout-flex figure.wp-block-image {
    display: inline-block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 0 12px 0 !important;
    break-inside: avoid !important;
    -webkit-column-break-inside: avoid !important;
    page-break-inside: avoid !important;
    flex: unset !important;
    flex-grow: unset !important;
    flex-basis: unset !important;
    max-width: unset !important;
    box-sizing: border-box !important;
}

figure.wp-block-gallery.is-layout-flex figure.wp-block-image img {
    width: 100% !important;
    height: auto !important;
    object-fit: unset !important;
    display: block !important;
}

.wp-block-gallery img { padding: 0px !important; }

@media (max-width: 480px) {
    figure.wp-block-gallery.is-layout-flex { columns: 1 !important; }
}

figcaption {
    font-weight: 600;
    padding-bottom: 5px !important;
}

/* ─── TABLE STYLES ──────────────────────────────────────────── */
.comment-content table,
.entry-content table {
    border: 0px !important;
}

.comment-content th,
.entry-content th,
.comment-content td,
.entry-content td {
    border-right: 0;
}

table.tcolumns {
    border: 0 !important;
    overflow-x: auto !important;
    width: 100% !important;
}

.tcolumns__item {
    padding: 0;
    vertical-align: top !important;
}

td.tcolumns__item.tcolumns__item--first {
    padding: 0 !important;
    width: 200px !important;
}

td.columns__item.columns__item--second {
    padding: 0 !important;
    padding-left: 1vw !important;
}

td {
    padding: 0 !important;
    vertical-align: top;
}

td img.alignnone, h4 {
    margin-top: 0 !important;
    margin-bottom: 5px;
}

td img { width: 90%; }
td p { padding-right: 10px; }

/* Menu photo sizing (table images) */
@media screen and (min-width: 541px) {
    td img {
        height: 196px !important;
        width: 191px !important;
        object-fit: cover;
    }
}

@media screen and (max-width: 540px) {
    td img {
        height: 150px !important;
        width: 150px !important;
        object-fit: cover;
    }
    td h4 { margin-left: 10px !important; }

    /* Schulhund slide: full width + centered box on small mobile */
    .schulhund-slide {
        width: 100%;
        margin: 0 auto;
    }
    .schulhund-content {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    .schulhund-content > * { flex: none; }
    .schulhund-box { margin: 0 auto; }
}

/* ─── MISC ───────────────────────────────────────────────────── */
.kueku { color: rgb(93,93,93) !important; }

/* ─── CF7 FORM ──────────────────────────────────────────────── */
@media (min-width: 600px) {
    .cf7-column-row {
        display: flex;
        gap: 20px;
    }
    .cf7-column-left { padding-right: 2em; }
}

textarea.wpcf7-form-control.wpcf7-textarea { max-width: 336px; }

.wpcf7-list-item.first.last,
.wpcf7-list-item {
    margin-left: 0px !important;
}
label.checkbox {
    padding-left: 0px !important;
}

/* ─── TICKERA – SHARED ──────────────────────────────────────── */
.tc-single-event {
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box;
}

.tc-event-date-wrap { background-color: transparent; }

div.tc-event-date {
    color: rgb(185, 6, 40);
    font-weight: 600;
}

span.tc_event_date_title_front {
    color: black !important;
    font-size: 1em;
    padding-bottom: 10px !important;
}

h5.event-cat { margin-top: 10px; }
ul.page-numbers { display: none; }

.tc-event-content-wrap h5 { display: block !important; }
.tc-single-inner h5 { display: none; }

.tclist-events.loaded {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 0 !important;
}

a.tc-mehr-link {
    display: inline-block;
    font-weight: 600;
    color: #B90628;
    text-decoration: none;
}
a.tc-mehr-link:hover { color: #7f012b; }

/* ─── TICKERA – 1-COLUMN (Startseite) ──────────────────────── */
.tc-single-event.tc-1-column {
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: -10px 10px 15px -0.3px #e3e3e3 !important;
    border-radius: 15px;
    margin-right: 18px !important;
}

.tc-1-column .tc-event-content-wrap {
    padding-left: 7px !important;
    flex: 1;
}

.tc-single-event.tc-1-column .attachment-tc_all_events_image {
    display: block;
    width: 100%;
    min-width: 220px;
    max-width: 360px !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.tc-single-event.tc-1-column p { margin-bottom: 15px !important; }
.tc-1-column .tc-event-excerpt { margin-bottom: 18px; }
.tc-1-column div.tc-event-excerpt p { margin-bottom: 3px !important; }

/* ─── TICKERA – STARTSEITE 3-COLUMN WRAPPER ─────────────────── */
.tc-events-wrapper {
    display: flex;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.tc-col {
    flex: 1;
    min-width: 0;
}

@media (max-width: 700px) {
    .tc-events-wrapper { flex-direction: column; }
}

.tc-col,
.tc-col .tc-event-listing-container,
.tc-col .tc-events-wrap,
.tc-col .tc-display-filter-events,
.tc-col .tclist-events {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.tc-col .tc-single-event.tc-1-column { flex: 1; }

/* ─── TICKERA – 2-COLUMN (Veranstaltungen, desktop) ─────────── */
@media (min-width: 540px) {
    .tc-single-event.tc-2-column {
        display: grid;
        grid-template-columns: minmax(120px, 200px) 1fr;
        gap: 20px;
        width: 100%;
        box-sizing: border-box;
        align-items: start;
        margin-top: 0 !important;
        background: white;
        box-shadow: 0px 0px 10px -0.5px #e5e5e5;
        -webkit-clip-path: inset(-5px -5px -5px 0px round 0px 10px 10px 0px);
        clip-path: inset(-5px -5px -5px 0px round 0px 10px 10px 0px);
        border-radius: 0px 10px 10px 0px;
        overflow: hidden;
        max-height: 200px !important;
    }

    .tc-single-event.tc-2-column div.tc-get-featured-image {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        min-width: 0;
        line-height: 0;
        font-size: 0;
        align-self: start;
    }

    .tc-single-event.tc-2-column .attachment-tc_all_events_image {
        display: block;
        width: 100%;
        max-width: 200px;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        border-top-left-radius: 10px;
        border-bottom-left-radius: 10px;
    }

    .tc-single-event.tc-2-column .tc-event-content-wrap {
        max-width: 100% !important;
        min-width: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100%;
        margin-left: 15px;
    }

    .tc-event-excerpt p {
        margin-bottom: 0 !important;
        margin-right: 15px !important;
    }
}

/* ─── TICKERA – 2-COLUMN MOBILE (same look as 1-column) ─────── */
@media (max-width: 539px) {
    .tc-single-event.tc-2-column {
        display: flex;
        flex-direction: column;
        box-shadow: -10px 10px 15px -0.3px #e3e3e3 !important;
        border-radius: 15px;
        margin-right: 18px !important;
        overflow: hidden;
        background: white;
        -webkit-clip-path: none;
        clip-path: none;
    }

    .tc-single-event.tc-2-column .attachment-tc_all_events_image {
        display: block;
        width: 100%;
        min-width: unset;
        max-width: 100% !important;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        border-radius: 0;
        border-top-left-radius: 15px;
        border-top-right-radius: 15px;
    }

    .tc-single-event.tc-2-column .tc-event-content-wrap {
        padding: 7px !important;
        margin-left: 0 !important;
    }

    .tc-event-excerpt p {
        margin-bottom: 0;
        padding-right: 7px !important;
    }
}

.tc-single-event.tc-2-column:not(:has(> *)) { visibility: hidden !important; }

/* ─── TICKERA – SINGLE EVENT PAGE ───────────────────────────── */
div.entry-header { margin-top: 0px !important; }
section.author-box { display: none !important; }
nav.navigation.posts-navigation { display: none; }

.tc-event-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    gap: 16px;
}

.tc-event-nav a {
    font-size: 0.875em;
    font-weight: 600;
    text-decoration: none;
    max-width: 45%;
    line-height: 1.4;
}

.tc-event-nav .tc-nav-prev { text-align: left; }
.tc-event-nav .tc-nav-next { text-align: right; margin-left: auto; }
.tc-nav-placeholder { display: block; min-width: 1px; }

/* Regelmäßige Veranstaltung – drop date on single post page */
article.post-16296 div.tc_the_content_pre,
article.post-15680 div.tc_the_content_pre {
    display: none !important;
}
.tc-event-content-wrap:has(a[href*="jahresprogramm"]) .tc-event-date-wrap,
.tc-event-content-wrap:has(a[href*="regelmaessige-veranstaltungen"]) .tc-event-date-wrap {
    display: none !important;
}
article.post-16296 .tc-single-event .tc-2-column,
article.post-15680 .tc-single-event .tc-2-column {
    max-height: 200px !important;
}
article.post-16296 .tc-single-event .tc-event-date-wrap,
article.post-15680 .tc-single-event .tc-event-date-wrap {
    display: none !important;
}

/* ─── THERAPIEBEGLEITHÜNDIN ATTRIBUTE SLIDE ─────────────────── */
.schulhund-slide {
    background: white;
    width: 900px;
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.schulhund-content {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    padding-bottom: 10px !important;
}

.schulhund-box {
    border: 1.5px solid #aaa;
    padding: 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 300px;
}

.schulhund-row {
    text-align: center;
    font-size: 16px;
    color: #888;
    letter-spacing: 0.01em;
}

.schulhund-row .letter {
    color: #B90628;
    font-weight: 700;
    font-size: 17px;
}

/* Photo (desktop only — hidden on mobile, see max-width:768px block above) */
.schulhund-photo-wrap {
    flex: 0 0 auto;
    margin-top: 1.5rem;
}

.schulhund-photo-frame {
    background: white;
    border: 2px solid white;
    box-shadow: 3px 4px 14px rgba(0,0,0,0.22);
    transform: rotate(5deg);
    width: 220px;
    height: 290px;
    overflow: hidden;
}

.schulhund-photo-frame img { margin: 0px !important; }

div.schulhund-box p { display: none; }

img#mobile { display: none; }

/* ─── TABLET + PHONE OPTIMIZATION (Referenzen + Künstler) ────── */
@media screen and (min-width: 768px) and (max-width: 1264px) {
    .wp-block-post-title {
        margin: 0 0 0.5rem 0 !important;
        padding: 0 !important;
        line-height: 1.3 !important;
    }
    .wp-block-post { margin-bottom: 0 !important; }
}
@media only screen and (max-width: 540px) {
	.wp-block-query h2 {
		margin-block-start: 0px;
	}
	.wp-block-post-excerpt {
		margin-bottom: 20px;
	}
}
/* ─── FOOTER ─────────────────────────────────────────────────── */
.footer-kontakt a{
	color: #b90628;
}
.footer-kontakt a:hover {
	color: #7f012b; 
}