/*
Theme Name: Kreowsky 2025
Theme URI: https://kreowsky.de
Description: Twenty Twenty-Five Child Theme
Author: Kreowsky & Kreowsky GbR
Author URI: https://kreowsky.de
Template: twentytwentyfive
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfive-child
*/

/* Start writing your custom styles here */
header {
    position: absolute;
    top: 0;
    height: 100px;
    z-index: 5;
}

/* ==========================================
   BURGER MENU LAYER STYLES
   ========================================== */

/* Burger Menu Layer */
.burger-menu-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-height: 100vh;
    background-color: rgb(219, 219, 0);
    z-index: 9999;
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(-100%);
}

/* Aktiver Zustand - Layer ist sichtbar */
.burger-menu-layer.active {
    transform: translateY(0);
}



/* Overlay für den Rest der Seite */
.burger-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.burger-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Header-Zeile im Menü: spiegelt die echte Header-Struktur */
.burger-menu-header {
    display: flex;
    align-items: center;
    height: 100px;
    flex-shrink: 0;
    width: 100%;
}

/* Bereich für den Close-Button */
.burger-header-close-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 1.5rem;
    flex-shrink: 0;
}

/* Schließen-Button */
.burger-close-btn {
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    color: #333;
    padding: 0.25rem 0.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.burger-close-btn:hover {
    opacity: 0.6;
}

/* Logo in der Header-Zeile (rechts, wie im echten Header) */
.burger-menu-logo {
    margin-right: 30px;
    display: block;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.burger-menu-logo-img {
    height: 35px;
    width: auto;
    display: block;
    margin-left: 30px;
}

.burger-menu-logo:hover {
    opacity: 0.8;
}

/* Menu Content Styling */
.burger-menu-content {
    margin-top: 2rem;
    margin-bottom: 2rem;
    margin-left: 100px;
    padding-right: 4rem;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
}

/* Alle drei Spalten: 30% breit, von oben ausgerichtet */
.burger-menu-left-column,
.burger-menu-mid-column,
.burger-menu-right-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 0 0 30%;
    width: 30%;
}


.burger-menu-content ul {
    list-style: none !important;
    padding: 0;
    margin: 0;
}

.burger-menu-content li {
    margin-bottom: 0.5rem;
    list-style: none !important;
}

.burger-menu-content li::marker {
    display: none !important;
}

.burger-menu-content a {
    color: #333;
    padding: 0.5rem 0;
    transition: opacity 0.2s ease;
}

.burger-menu-content a:hover {
    opacity: 0.7;
}

.burger-menu-content ul .wp-block-navigation-item {
    list-style: none !important;
    margin-bottom: 0.5rem;
}

.burger-menu-content ul .wp-block-navigation-item::marker {
    display: none !important;
}

.burger-menu-content ul .wp-block-navigation-item__content {
    color: #333;
    padding: 0.5rem 0;
    transition: opacity 0.2s ease;
}

/* Navigation 1 (linke Spalte) */
.burger-menu-content .nav-1 ul {
    list-style: none !important;
}

.burger-menu-content .nav-1 .wp-block-navigation-item__content,
.burger-menu-content .nav-1 a {
    font-weight: 400;
    font-size: 22px;
    line-height: 1.8;
    text-decoration: none;
}


/* Navigation 3 (mittlere Spalte) */
.burger-menu-content .nav-3 ul {
    list-style: none !important;
}

.burger-menu-content .nav-3 .wp-block-navigation-item__content,
.burger-menu-content .nav-3 a {
    font-size: 22px;
    line-height: 1.8;
    text-decoration: none;
}

/* Icons für mittlere Navigation */
.burger-menu-content .nav-3 li.icon > a {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.burger-menu-content .nav-3 li.icon > a::before {
    content: '';
    display: block;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.burger-menu-content .nav-3 li.icon-news > a::before {
    background-image: url('images/icon-news.svg');
}

.burger-menu-content .nav-3 li.icon-location > a::before {
    background-image: url('images/icon-location.svg');
}

.burger-menu-content .nav-3 li.icon-career > a::before {
    background-image: url('images/icon-career.svg');
}

.burger-menu-content .nav-3 li.icon-partner > a::before {
    background-image: url('images/icon-partner.svg');
}


/* Navigation 4 (rechte Spalte) */
.burger-menu-content .nav-4 ul {
    list-style: none !important;
}

.burger-menu-content .nav-4 .wp-block-navigation-item__content,
.burger-menu-content .nav-4 a {
    font-size: 22px;
    line-height: 1.8;
    text-decoration: none;
}


.burger-menu-content ul .wp-block-navigation-item__content:hover {
    opacity: 0.7;
}

.burger-menu-content ul .wp-block-navigation-item__label {
    color: inherit;
    font-size: inherit;
}

/* Allgemeine Navigation Styles */
.burger-menu-content .nav-1,
.burger-menu-content .nav-3,
.burger-menu-content .nav-4 {
    opacity: 0.7;
}

.burger-menu-content .nav-1 ul,
.burger-menu-content .nav-3 ul,
.burger-menu-content .nav-4 ul {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* WordPress Navigation Block Styles überschreiben */
.burger-menu-content .wp-block-navigation {
    padding-left: 0 !important;
}

.burger-menu-content .wp-block-navigation__responsive-container-content {
    padding-left: 0 !important;
}

.burger-menu-content .wp-block-navigation-item {
    list-style-type: none !important;
}

.burger-menu-content .wp-block-navigation-item::before {
    display: none !important;
}

/* WordPress Block Editor Styles überschreiben */
.burger-menu-mid-column .wp-block-group,
.burger-menu-right-column .wp-block-group {
    padding: 0 !important;
    margin: 0 !important;
}

/* Äußerste Group-Container */
.burger-menu-mid-column > .wp-block-group,
.burger-menu-right-column > .wp-block-group {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}


/* WordPress Columns: Abstand zwischen den Menüpunkten */
.burger-menu-mid-column .wp-block-columns,
.burger-menu-right-column .wp-block-columns {
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
    padding: 0 !important;
}

.burger-menu-mid-column .wp-block-columns:last-child,
.burger-menu-right-column .wp-block-columns:last-child {
    margin-bottom: 0 !important;
}

/* WordPress Column: Keine Abstände */
.burger-menu-mid-column .wp-block-column,
.burger-menu-right-column .wp-block-column {
    padding: 0 !important;
}

/* Paragraphen: Kompakter */
.burger-menu-mid-column p,
.burger-menu-right-column p {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2;
}

/* Weniger Abstand zwischen Titel und Untertitel */
.burger-menu-mid-column p:not(:has(strong)),
.burger-menu-right-column p:not(:has(strong)) {
    margin-top: 0.2rem !important;
}

/* Links */
.burger-menu-mid-column a,
.burger-menu-right-column a {
    font-size: 18px;
    text-decoration: none;
}

/* Fette Überschriften */
.burger-menu-mid-column p strong a,
.burger-menu-right-column p strong a {
    font-weight: 700;
    font-size: 20px;
}

/* Bilder */
.burger-menu-mid-column .wp-block-image,
.burger-menu-right-column .wp-block-image {
    margin: 0 !important;
}

/* Diese Styles werden durch die neuen WordPress Block Styles ersetzt */

/* Diagonaler Schnitt am unteren Rand auf Desktop */
@media (min-width: 1080px) {
    .burger-menu-layer {
        clip-path: polygon(0% 0%, 100% 0%, 100% calc(100% - 100px), 0% 100%);
        padding-bottom: 8rem;
    }
}

/* Overlay auf Desktop ausblenden (Desktop schließt per mouseleave) */
@media (min-width: 1001px) {
    .burger-menu-overlay {
        display: none !important;
    }
}

/* Responsive Anpassungen */
@media (max-width: 1079px) {
    .burger-menu-layer {
        clip-path: none;
    }
}

@media (max-width: 1000px) {
    .burger-menu-layer {
        overflow-x: hidden;
    }

    .burger-menu-header {
        height: 80px;
    }

    .burger-header-close-wrap {
        padding: 1rem;
    }

    .burger-menu-logo-img {
        height: auto;
        max-height: 40px;
        width: auto;
        max-width: 180px;
    }

    .burger-menu-content {
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
        margin-left: 1.5rem !important;
        padding-right: 1.5rem;
        align-items: flex-start;
        width: calc(100% - 1.5rem);
    }

    /* Linke Spalte: Texte links ausrichten und Umbruch erlauben */
    .burger-menu-left-column {
        width: 100% !important;
        max-width: 100% !important;
        flex-shrink: 1 !important;
    }

    .burger-menu-left-column .nav-1 {
        width: 100%;
        max-width: 100%;
    }

    .burger-menu-left-column .wp-block-navigation-item__content,
    .burger-menu-left-column a {
        text-align: left;
        overflow-wrap: break-word;
        word-wrap: break-word;
        word-break: break-word;
    }

    .burger-menu-mid-column,
    .burger-menu-right-column {
        margin-top: 1rem;
        padding-left: 0;
        align-items: flex-start;
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .burger-menu-mid-column .nav-3,
    .burger-menu-right-column .nav-4 {
        width: 100%;
        max-width: 100%;
    }

    .burger-menu-mid-column .wp-block-columns,
    .burger-menu-right-column .wp-block-columns {
        width: 100%;
        max-width: 100%;
        flex-wrap: wrap;
    }

    .burger-menu-mid-column .wp-block-column,
    .burger-menu-right-column .wp-block-column {
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
        word-break: break-word;
    }

    .burger-menu-mid-column p,
    .burger-menu-mid-column a,
    .burger-menu-right-column p,
    .burger-menu-right-column a {
        text-align: left;
        overflow-wrap: break-word;
        word-wrap: break-word;
        word-break: break-word;
        max-width: 100%;
    }

    /* Schriftgrößen für Mobile anpassen */
    .burger-menu-mid-column a,
    .burger-menu-right-column a {
        font-size: 16px !important;
    }

    .burger-menu-mid-column p strong a,
    .burger-menu-right-column p strong a {
        font-size: 18px !important;
    }

    /* Einrückung auf Mobile entfernen */
    .burger-menu-content .nav-1,
    .burger-menu-content .nav-3 {
        padding-left: 0 !important;
    }

    /* Schriftgrößen der Navipunkte auf Mobile */
    .burger-menu-content .nav-1 .wp-block-navigation-item__content,
    .burger-menu-content .nav-1 a,
    .burger-menu-content .nav-3 .wp-block-navigation-item__content,
    .burger-menu-content .nav-3 a,
    .burger-menu-content .nav-4 .wp-block-navigation-item__content,
    .burger-menu-content .nav-4 a {
        font-size: 18px !important;
        line-height: 2 !important;
        min-width: 0 !important;
        width: 100% !important;
        flex-wrap: nowrap !important;
        overflow: visible !important;
        white-space: normal !important;
        word-break: break-word !important;
    }

    /* Entfernt: Die Touch-Target-Anpassungen (Padding und line-height) */
}

/* ==========================================
   UNTERTITEL STYLES
   ========================================== */

/* Untertitel Block Styling */
h2.kreowsky-untertitel {
    margin: 0.5rem 0 1.5rem 0;
    line-height: 1.2;
    font-size: var(--wp--preset--font-size--x-large);
}

/* Standard-Styles (falls inline-styles fehlen) */
h2.kreowsky-untertitel:not([style*="color"]) {
    color: #666;
}

h2.kreowsky-untertitel:not([style*="font-style"]) {
    font-style: italic;
}

/* Responsive Anpassung für kleinere Bildschirme */
@media (max-width: 768px) {
    h2.kreowsky-untertitel {
        font-size: 1.3em;
        margin: 0.4rem 0 1.2rem 0;
    }
}

/* Editor-Styles für bessere Vorschau im Block Editor */
.kreowsky-untertitel-block .components-notice {
    margin: 0;
    max-width: none;
}

/* Anpassung für verschiedene Kontext-Klassen */
.kreowsky-untertitel.has-large-font-size {
    font-size: 1.5em;
}

.kreowsky-untertitel.has-small-font-size {
    font-size: 1em;
}

/* Editor-spezifische Styles für bessere Vorschau */
.wp-block-editor h2.kreowsky-untertitel {
    border: 2px dashed #ccc;
    padding: 10px;
    background: rgba(255, 237, 0, 0.1);
}

.wp-block-editor h2.kreowsky-untertitel span {
    opacity: 0.7;
    font-weight: normal;
    font-size: 0.8em;
}

/* ==========================================
   HEADER SLIDER STYLES
   ========================================== */

/* Grundlegende Slider-Container-Styles */
.kreowsky-header-slider {
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

/* Slider Bilder */
.kreowsky-header-slider .slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.kreowsky-header-slider .slider-image:first-child {
    opacity: 1;
}

.kreowsky-header-slider .slider-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 0% 50%;
    display: block;
}

/* Focus-Styles für Accessibility */
.kreowsky-header-slider:focus {
    outline: 3px solid #ffed00;
    outline-offset: 2px;
}

/* Responsive Design - vh passt sich automatisch an, aber Mindest-/Maximalhöhen für sehr kleine/große Bildschirme */
@media (max-width: 768px) {
    .kreowsky-header-slider {
        min-height: 200px;
        max-height: 60vh;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .kreowsky-header-slider {
        min-height: 150px;
        max-height: 50vh;
    }
}

@media (min-width: 1400px) {
    .kreowsky-header-slider {
        max-height: 80vh;
    }
}

/* Loading State */
.kreowsky-header-slider.loading::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ffed00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Editor Preview Styles */
.wp-block-editor .kreowsky-header-slider {
    border: 2px dashed #ccc;
    position: relative;
}

.wp-block-editor .kreowsky-header-slider::after {
    content: "Header Slider Block";
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    z-index: 20;
}

/* Performance-optimierte Animationen */
.kreowsky-header-slider * {
    will-change: auto;
}

.kreowsky-header-slider.animating .slider-image {
    will-change: opacity;
}

/* Accessibility-Verbesserungen */
@media (prefers-reduced-motion: reduce) {
    .kreowsky-header-slider .slider-image {
        transition: none;
    }
}

/* ==========================================
   FAQ BLOCK STYLES
   ========================================== */

/* FAQ Block Container */
.kreowsky-faq-block {
    margin: 2rem 0;
    font-family: inherit;
}

/* FAQ Item */
.faq-item {
    margin-bottom: 1rem;
    overflow: hidden;
}

/* FAQ Question */
.faq-question {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    border: 2px solid;
    /* Farbe wird per inline style gesetzt */
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.4;
    user-select: none;
    position: relative;
}

.faq-question:hover {
    background-color: var(--wp--preset--color--accent-4) !important;
}

.faq-question:focus {
    outline: 3px solid #ffed00;
    outline-offset: 2px;
}

.faq-question-text {
    flex: 1;
    margin-right: 1rem;
}

/* FAQ Icon */
.faq-icon {
    width: 24px;
    height: 24px;
    position: relative;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: var(--wp--preset--color--base);
    color: var(--wp--preset--color--accent-1);
}

.faq-icon::before {
    content: '+';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -61%);
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
    color: var(--wp--preset--color--accent-1);
}

/* FAQ Answer */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
    opacity: 0;
    /* background-color und border-color werden per inline style gesetzt */
    border-left: 2px solid;
    border-right: 2px solid;
    border-bottom: 2px solid;
    border-top: none;
}

.faq-answer-content {
    padding: 1.5rem;
    line-height: 1.6;
    font-size: 1rem;
    color: inherit;
    /* Erbt die Farbe vom parent .faq-answer */
}

.faq-answer-content p {
    margin: 0 0 1rem 0;
    color: inherit;
    /* Erbt die Antworten-Farbe */
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

/* HTML-Formatierung in FAQ-Antworten */
.faq-answer-content strong,
.faq-answer-content b {
    font-weight: 700;
    color: inherit;
    /* Erbt die Antworten-Farbe */
}

.faq-answer-content em,
.faq-answer-content i {
    font-style: italic;
    color: inherit;
    /* Erbt die Antworten-Farbe */
}

.faq-answer-content u {
    text-decoration: underline;
    color: inherit;
    /* Erbt die Antworten-Farbe */
}

.faq-answer-content s,
.faq-answer-content strike {
    text-decoration: line-through;
    color: inherit;
    /* Erbt die Antworten-Farbe */
}

.faq-answer-content a {
    color: #0073aa;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.faq-answer-content a:hover {
    color: #005a87;
}

.faq-answer-content a:focus {
    outline: 2px solid #ffed00;
    outline-offset: 2px;
}

/* Listen in FAQ-Antworten */
.faq-answer-content ul,
.faq-answer-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.faq-answer-content ul {
    list-style-type: disc;
}

.faq-answer-content ol {
    list-style-type: decimal;
}

.faq-answer-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: inherit;
    /* Erbt die Antworten-Farbe */
}

.faq-answer-content li:last-child {
    margin-bottom: 0;
}

/* Verschachtelte Listen */
.faq-answer-content ul ul,
.faq-answer-content ol ol,
.faq-answer-content ul ol,
.faq-answer-content ol ul {
    margin: 0.5rem 0;
}

.faq-answer-content ul ul {
    list-style-type: circle;
}

.faq-answer-content ul ul ul {
    list-style-type: square;
}

/* Opened State */
.faq-item.faq-open .faq-question {
    border-bottom: none;
    background-color: var(--wp--preset--color--accent-4) !important;
}

.faq-item.faq-open .faq-icon {
    transform: rotate(45deg);
}

.faq-item.faq-open .faq-answer {
    max-height: 1000px;
    opacity: 1;
    padding: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .faq-question {
        padding: 1rem;
        font-size: 1rem;
    }

    .faq-question-text {
        margin-right: 0.75rem;
    }

    .faq-answer-content {
        padding: 1rem;
        font-size: 0.95rem;
    }

    /* Mobile-optimierte Listen */
    .faq-answer-content ul,
    .faq-answer-content ol {
        padding-left: 1.5rem;
    }

    .faq-icon {
        width: 20px;
        height: 20px;
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .kreowsky-faq-block {
        margin: 1.5rem 0;
    }

    .faq-question {
        padding: 0.875rem;
        font-size: 0.95rem;
    }

    .faq-answer-content {
        padding: 0.875rem;
        font-size: 0.9rem;
    }

    /* Kleinere Listen auf sehr schmalen Bildschirmen */
    .faq-answer-content ul,
    .faq-answer-content ol {
        padding-left: 1.25rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* background-color für .faq-answer wird jetzt per inline style gesetzt */

    .faq-question:hover {
        background-color: var(--wp--preset--color--accent-4) !important;
    }

    /* Dark Mode für HTML-Elemente in Antworten */
    .faq-answer-content a {
        color: #4fc3f7;
    }

    .faq-answer-content a:hover {
        color: #29b6f6;
    }
}

/* Performance Optimizations */
.faq-item {
    contain: layout style;
}

.faq-answer {
    contain: layout;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    .faq-question,
    .faq-icon,
    .faq-answer {
        transition: none;
    }

    .faq-question:hover {
        transform: none;
    }
}

/* Editor Preview Styles */
.wp-block-editor .kreowsky-faq-block {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 1rem;
    position: relative;
}







.wp-block-editor .kreowsky-faq-block::before {
    content: "FAQ Block";
    position: absolute;
    top: -10px;
    left: 15px;
    background: #ffed00;
    color: #000;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    z-index: 10;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .faq-question {
        border-width: 3px;
    }

    .faq-answer {
        border-left-width: 3px;
        border-right-width: 3px;
        border-bottom-width: 3px;
    }

    .faq-icon {
        border: 2px solid currentColor;
    }
}

/* ==========================================
   LOCATION PICKER BLOCK STYLES
   ========================================== */

/* Location Picker Container */
.kreowsky-location-picker {
    padding: 0;
    /* Kein Padding für den Hauptcontainer */
    border-radius: 0;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
    max-width: 1200px;
    /* Gleiche max-width wie andere Container */
    margin: 2rem auto;
    /* Zentriert und gleicher Abstand */
    background-color: transparent !important;
    /* Kein gelber Hintergrund */
}

/* Hauptlayout: 30% links, 70% rechts */
.location-content {
    display: flex;
    gap: 0;
    /* Kein Gap zwischen den Spalten */
    align-items: stretch;
    /* Gleiche Höhe für beide Spalten */
    margin-top: 0;
    min-height: 500px;
    /* Mindesthöhe für die Spalten */
}

/* Linke Spalte: 30% - Dropdown + Infos */
.location-info-column {
    flex: 0 0 30%;
    /* 30% feste Breite */
    min-width: 280px;
    padding: 2rem;
    /* Padding nur für die linke Spalte */
    background-color: transparent;
    /* Kein Hintergrund */
}

/* Dropdown Container - jetzt oben links */
.location-dropdown-container {
    margin-bottom: 2rem;
    position: relative;
}

.location-dropdown {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #ffffff;
    border: 2px solid #333333;
    border-radius: 8px;
    padding: 12px 40px 12px 15px;
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    /* Volle Breite der linken Spalte */
    box-sizing: border-box;
}

.location-dropdown:hover {
    border-color: #555555;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.location-dropdown:focus {
    outline: none;
    border-color: #ffed00;
    box-shadow: 0 0 0 3px rgba(255, 237, 0, 0.3);
}

/* Custom Dropdown Arrow - jetzt rechts im Dropdown */
.location-dropdown-container::after {
    content: '▼';
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 14px;
    color: #333333;
    font-weight: bold;
}

/* Company Info mit Marker */
.company-info-with-marker {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.location-marker {
    font-size: 2rem;
    line-height: 1;
    margin-top: 0.2rem;
    flex-shrink: 0;
    color: inherit;
}

.location-marker img {
    height: 2rem;
    width: auto;
    display: block;
}

.company-info {
    flex: 1;
}

.company-name {
    font-weight: 700;
    margin: 0 0 0.3rem 0;
    line-height: 1.2;
    color: inherit;
}

.company-subtitle {
    font-size: var(--wp--preset--font-size--small) !important;
    font-weight: 400;
    margin: 0 0 0.8rem 0;
    line-height: 1.3;
    color: inherit;
    opacity: 0.8;
}

.company-address {
    font-size: 1.1rem;
    line-height: 1.4;
    color: inherit;
}

.address-line {
    font-size: var(--wp--preset--font-size--medium) !important;
    font-weight: 600;
}

.postal-city {
    font-size: var(--wp--preset--font-size--medium) !important;
    font-weight: 600;
}

/* Contact Info */
.contact-info {
    margin-bottom: 1.5rem;
}

/* Trennlinie vor Öffnungszeiten */
.separator-line {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.2);
    margin: 1.5rem 0;
    width: 100%;
}

.contact-item {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    line-height: 1.4;
}

.contact-item strong {
    display: inline-block;
    min-width: 80px;
    font-weight: 700;
}

.contact-item a {
    color: inherit;
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.contact-item a:hover {
    opacity: 0.7;
    text-decoration: none;
}

.contact-item a:focus {
    outline: 2px solid #ffed00;
    outline-offset: 2px;
}

/* Opening Hours */
.opening-hours h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: inherit;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    /* Kein Padding oben und unten */
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    min-height: 2rem;
    /* Mindesthöhe für bessere Klickbarkeit */
}

.hours-item:last-child {
    border-bottom: none;
}

.hours-item .day {
    font-weight: 600;
    flex: 1;
}

.hours-item .hours {
    font-weight: 500;
    text-align: right;
}

/* Right Column - Map: 70% */
.location-map-column {
    flex: 0 0 70%;
    /* 70% feste Breite */
    min-width: 400px;
    display: flex;
    /* Flex für volle Höhe */
    flex-direction: column;
}

.google-map {
    width: 100%;
    height: 100%;
    /* Volle Höhe des Containers */
    border-radius: 0;
    /* Kein border-radius */
    overflow: hidden;
    box-shadow: none;
    /* Kein Schatten */
    transition: none;
    flex: 1;
    /* Nimmt verfügbaren Platz ein */
}

/* Google Maps iFrame - ohne Filter für normale Darstellung */
.google-map iframe {
    /* filter: invert(0.9) hue-rotate(180deg) brightness(0.8) contrast(1.2) saturate(1.3); */
    transition: filter 0.3s ease;
}

/* Loading Spinner für Google Maps */
.map-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #666;
    font-size: 16px;
}

.map-loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ffed00;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-right: 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Hover-Effekt entfernt für cleaneres Design */

/* Map Fallback */
.map-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 100%;
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 0;
    /* Kein border-radius */
    color: #6c757d;
    text-align: center;
    padding: 2rem;
}

.map-fallback a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.map-fallback a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .kreowsky-location-picker {
        padding: 0;
        /* Kein Padding auch mobil */
    }

    .location-content {
        flex-direction: column;
        gap: 0;
        /* Kein Gap auch mobil */
        min-height: auto;
        /* Automatische Höhe mobil */
    }

    .location-info-column {
        flex: 1;
        min-width: 100%;
        padding: 1.5rem;
        /* Reduziertes Padding mobil */
    }

    .location-map-column {
        flex: 1;
        min-width: 100%;
        min-height: 400px;
        /* Erhöhte Mindesthöhe für mobile Karte */
    }

    .google-map {
        min-height: 400px;
        /* Erhöhte Mindesthöhe für die Karte selbst */
        height: 400px;
        /* Feste Höhe mobil */
    }

    .google-map iframe {
        height: 400px !important;
        /* Erzwinge iframe-Höhe mobil */
        min-height: 400px !important;
    }

    .location-dropdown {
        font-size: 16px;
        padding: 10px 40px 10px 12px;
    }

    .location-dropdown-container::after {
        right: 15px;
        /* Bleibt rechts im Dropdown */
    }

    .location-marker {
        font-size: 1.8rem;
        /* Etwas kleiner auf Tablets */
    }

    .hours-item {
        /* Behalte flex-direction: row für nebeneinander Anzeige */
        display: flex;
        justify-content: space-between;
        align-items: center;
        /* Optionaler verbesserter Abstand für mobile */
        padding: 0.5rem 0;
    }

    .hours-item .hours {
        text-align: right;
    }
}

@media (max-width: 480px) {
    .kreowsky-location-picker {
        padding: 0;
        /* Kein Padding auch bei 480px */
        margin: 1rem 0;
    }

    .location-info-column {
        padding: 1rem;
        /* Noch weniger Padding bei sehr kleinen Bildschirmen */
    }

    .location-dropdown {
        font-size: 14px;
        padding: 8px 35px 8px 10px;
    }

    .location-dropdown-container::after {
        right: 15px;
        /* Bleibt rechts im Dropdown */
        font-size: 12px;
    }

    .location-marker {
        font-size: 1.6rem;
        /* Kleiner auf sehr kleinen Bildschirmen */
    }

    .contact-item {
        font-size: 0.95rem;
    }

    .contact-item strong {
        min-width: 70px;
    }

    .google-map {
        min-height: 400px;
        /* Erhöhte Mindesthöhe auch für sehr kleine Bildschirme */
        height: 400px;
        /* Feste Höhe auch bei sehr kleinen Bildschirmen */
    }

    .google-map iframe {
        height: 400px !important;
        /* Erzwinge iframe-Höhe auch bei sehr kleinen Bildschirmen */
        min-height: 400px !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .location-dropdown {
        background-color: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }

    .location-dropdown:hover {
        border-color: #718096;
    }

    .location-dropdown:focus {
        border-color: #ffed00;
        box-shadow: 0 0 0 3px rgba(255, 237, 0, 0.3);
    }

    .location-dropdown-container::after {
        color: #e2e8f0;
    }

    .hours-item {
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }

    .google-map {
        box-shadow: none;
        /* Kein Schatten auch im Dark Mode */
    }

    .map-fallback {
        background-color: #2d3748;
        border-color: #4a5568;
        color: #a0aec0;
    }

    .separator-line {
        background-color: rgba(255, 255, 255, 0.1);
        /* Hellere Trennlinie im Dark Mode */
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .location-dropdown {
        border-width: 3px;
    }

    .google-map {
        border: 2px solid currentColor;
        /* Dünnerer Border für cleaneres Design */
    }

    .hours-item {
        border-bottom-width: 2px;
    }

    .separator-line {
        height: 2px;
        /* Dickere Trennlinie für High Contrast */
        background-color: currentColor;
    }
}

/* Performance Optimizations */
.kreowsky-location-picker {
    contain: layout style;
}

.google-map {
    contain: layout;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    .location-dropdown,
    .google-map,
    .contact-item a {
        transition: none;
    }
}

/* Editor Preview Styles */
.wp-block-editor .kreowsky-location-picker {
    border: 2px dashed #ccc;
    border-radius: 8px;
    position: relative;
}

.wp-block-editor .kreowsky-location-picker::before {
    content: "Location Picker Block";
    position: absolute;
    top: -10px;
    left: 15px;
    background: #ffed00;
    color: #000;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    z-index: 10;
}

/* Loading States */
.kreowsky-location-picker.loading .location-info-column {
    opacity: 0.6;
    pointer-events: none;
}

.kreowsky-location-picker.loading .google-map::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ffed00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ==========================================
   TO-TOP BUTTON STYLES
   ========================================== */

/* To-Top Button - Fixed unten rechts */
.to-top-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    background-image: url('https://awicontax.kreowsky.dev/wp-content/uploads/top.svg');
    background-size: 36px 36px;
    background-position: center;
    background-repeat: no-repeat;
    color: #333333;
    border: 2px solid #333333;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    z-index: 9997;
    /* Unter dem Burger Menu (9999) */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

/* Visible State */
.to-top-button.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Hover Effect */
.to-top-button:hover {
    background-color: #333333;
    color: rgb(219, 219, 0);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Active/Click Effect */
.to-top-button:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Focus State für Accessibility */
.to-top-button:focus {
    outline: 3px solid #ffed00;
    outline-offset: 3px;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .to-top-button {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
        background-size: 22px 22px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .to-top-button {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        background-size: 20px 20px;
        font-size: 18px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .to-top-button {
        border-color: #e2e8f0;
        color: #1a202c;
    }

    .to-top-button:hover {
        border-color: rgb(219, 219, 0);
        color: rgb(219, 219, 0);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .to-top-button {
        transition: opacity 0.2s ease, visibility 0.2s ease;
        transform: none !important;
    }

    .to-top-button:hover,
    .to-top-button:active {
        transform: none !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .to-top-button {
        border-width: 3px;
    }
}
