/*
Theme Name: TINI Child
Template: hello-elementor
*/

:root {
    --tini-red: #993300;
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-strong: 0 4px 14px rgba(0, 0, 0, 0.3);
}

body {
    background-color: #ffffff;
}

/* Header Grundstruktur */
header#site-header.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: var(--tini-red);
    box-shadow: var(--shadow-strong);
    overflow: visible;
}

/* Abstand zwischen Header und Seiteninhalt, Breite an Header angeglichen */
header#site-header + div[data-elementor-type="wp-page"] {
    max-width: 1140px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

/* Logo: Container-Ebenen bleiben im normalen Fluss,
   nur das Bild selbst wird absolut positioniert relativ zum Header */
.site-header .header-inner {
    overflow: visible;
    position: relative;
    min-height: 90px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-header .site-branding.show-logo,
.site-header .site-logo.show,
.site-header .custom-logo-link {
    overflow: visible;
}

.site-header .site-branding .site-logo img.custom-logo {
    height: 100% !important;
    width: auto !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
}

/* Hauptmenü: weiße Schrift, keine Großschreibung */
.site-header .site-navigation a {
    text-transform: none !important;
}

.site-header .site-navigation > ul > li > a {
    color: #ffffff !important;
    font-size: 1.4em;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.site-header .site-navigation > ul > li > a:hover {
    color: #ffe0e0 !important;
    opacity: 0.85;
}

/* Dropdown-Pfeile weiß statt grau */
.site-header .site-navigation ul.menu li.menu-item-has-children::after {
    color: #ffffff !important;
}

/* Dropdown-Menüs (.sub-menu) mit Aufklapp-Animation */
.site-header .site-navigation li.menu-item-has-children {
    position: relative;
}

.site-header .site-navigation ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background-color: var(--tini-red);
    border-top: 2px solid #ffffff;
    box-shadow: var(--shadow-strong);
    z-index: 1001;

    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.site-header .site-navigation li.menu-item-has-children:hover > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-header .site-navigation ul.sub-menu li {
    display: block;
}

.site-header .site-navigation ul.sub-menu a {
    display: block;
    padding: 8px 16px;
    color: #ffffff !important;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.site-header .site-navigation ul.sub-menu a:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Hund-Detailseite (single-hund.php) */
.content-wrapper {
    max-width: 1140px;
    margin: 40px auto 0;
    padding: 0 20px 60px;
}

.content-wrapper .entry-title {
    color: var(--tini-red);
    font-size: 2.4em;
    margin-bottom: 20px;
}

.content-wrapper .intro-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 30px;
}

.content-wrapper .intro-text {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 25px;
}

.content-wrapper .hinweis-box {
    background-color: #fdf1e8;
    border-left: 4px solid var(--tini-red);
    padding: 16px 20px;
    border-radius: 4px;
    margin-bottom: 25px;
}

.content-wrapper .beschreibung {
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 30px;
}

.content-wrapper .extrabilder-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.content-wrapper .extrabild-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease;
}

.content-wrapper .extrabild-item img:hover {
    transform: scale(1.03);
}

.extrabild-item a {
    display: block;
    cursor: zoom-in;
}

.content-wrapper .video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 20px;
}

.content-wrapper .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Lightbox für Extrabilder */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 6px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 36px;
    color: #ffffff;
    font-size: 2.5em;
    line-height: 1;
    cursor: pointer;
    user-select: none;
}

/* Look & Feel für normale Elementor-Seiten (klassisch + Atomic Widgets) */
div[data-elementor-type="wp-page"] .elementor-heading-title,
div[data-elementor-type="wp-page"] .e-heading-base {
    color: var(--tini-red);
}

div[data-elementor-type="wp-page"] .elementor-widget-text-editor p {
    line-height: 1.7;
    font-size: 1.05em;
}

div[data-elementor-type="wp-page"] .elementor-widget-image img,
div[data-elementor-type="wp-page"] .elementor-widget-text-editor img {
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    max-width: 100%;
    height: auto;
}

div[data-elementor-type="wp-page"] .elementor-widget-video .elementor-wrapper,
div[data-elementor-type="wp-page"] .elementor-widget-video iframe,
div[data-elementor-type="wp-page"] .elementor-widget-text-editor iframe {
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    max-width: 100%;
}

div[data-elementor-type="wp-page"] .elementor-widget-text-editor iframe {
    aspect-ratio: 16 / 9;
    height: auto;
}

/* Hund-Listenansicht (archive-hund.php) */
.hund-archive .archive-title {
    color: var(--tini-red);
    font-size: 2.4em;
    margin-bottom: 30px;
}

.hund-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

@media (max-width: 900px) {
    .hund-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .hund-list {
        grid-template-columns: 1fr;
    }
}

.hund-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    background-color: #ffffff;
}

.hund-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.hund-card-image {
    position: relative;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    border: 3px solid #ffffff;
    box-shadow: var(--shadow-strong);
}

.hund-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    transition: transform 0.3s ease;
}

.hund-card:hover .hund-card-image img {
    transform: scale(1.05);
}

.hund-card-name-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 12px 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
    color: #ffffff;
    font-weight: bold;
    font-size: 1.6em;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.hund-pagination {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.hund-pagination .page-numbers {
    color: var(--tini-red);
    text-decoration: none;
    font-weight: bold;
}

.hund-pagination .page-numbers.current {
    text-decoration: underline;
}

.kachel {
	color: white !important;
}