/*
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;
}

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

/* Burger Menu Layer */
.burger-menu-layer {
    position: fixed;
    top: 0;
    left: -1100px;
    min-width: 880px;
    height: 100vh;
    background-color: rgb(219, 219, 0);
    z-index: 9999;
    transition: left 0.3s ease-in-out;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    padding: 2rem;
    padding-right: 4rem; /* Extra Platz für den Pfeil */
    overflow-y: auto;
    justify-content: center; /* Zentriert den Inhalt vertikal */
}

/* Aktiver Zustand - Layer ist sichtbar */
.burger-menu-layer.active {
    left: 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;
}

/* Schließen-Button im Layer */
.burger-close-btn {
    position: absolute;
    top: 0;
    left: .3rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #333;
    padding: 0.5rem;
    line-height: 1;
    width: 0px; /* Initial versteckt */
    height: 0px; /* Initial versteckt */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* Runder Button */
    transition: background-color 0.2s ease;
    opacity: 0; /* Initial unsichtbar */
    transform: scale(0) rotate(0deg); /* Initial klein und nicht rotiert */
}

/* Animation: Wachsen und Rotieren */
.burger-close-btn.animate-in {
    width: 88px;
    height: 88px;
    opacity: 1;
    transform: scale(1) rotate(360deg);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.burger-close-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
    opacity: 1;
}

/* Menu Content Styling */
.burger-menu-content {
    margin-top: 0; /* Entfernt feste Margin für Zentrierung */
    margin-left: 100px; /* Verschoben von der Navigation hierher */
    position: relative;
    display: flex;
    flex-direction: row; /* Horizontal Layout für Spalten */
    align-items: stretch; /* Beide Spalten gleich hoch */
    gap: 2rem; /* Abstand zwischen den Spalten */
}

/* Linke Spalte mit beiden Navigationen */
.burger-menu-left-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0; /* Verhindert Schrumpfen */
    /* flex: 1 entfernt - wird jetzt dynamisch gesetzt */
}

/* Rechte Spalte mit der dritten Navigation */
.burger-menu-right-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between; /* Verteilt den Inhalt gleichmäßig */
    flex: 1; /* Gleiche Breite */
    min-height: 100%; /* Nimmt die volle Höhe der linken Spalte */
    position: relative;
    background-color: rgba(0, 0, 0, 0.1); /* Leichter Hintergrund für bessere Sichtbarkeit */
    border-radius: 15px; /* Abgerundete Ecken */
}

/* Entfernt die spezielle Navigation-Transformation */
.burger-menu-right-column .third-nav {
    /* transform entfernt */
}

/* SVG Logo oben links im Menü-Content */
.burger-menu-logo {
    position: absolute;
    top: -6rem; /* Position über dem Content */
    left: 0; /* Direkt über der Navigation */
    width: 318px; /* Neue Breite für logo-Navi.svg */
    height: 88px;
    background-image: url('https://awicontax.kreowsky.dev/wp-content/uploads/logo-Navi.svg'); /* Neues Logo */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: block; /* Sorgt dafür, dass Link-Element richtig dargestellt wird */
    text-decoration: none; /* Entfernt Unterstreichung bei Links */
    transition: opacity 0.2s ease; /* Sanfte Hover-Animation */
}

.burger-menu-logo:hover {
    opacity: 0.8; /* Leichter Hover-Effekt */
}

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

.burger-menu-content li {
    margin-bottom: 0; /* Entfernt den unteren Margin */
}

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

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

.burger-menu-content ul {
    opacity: 0.7;
    margin-left: 0;
    list-style: none;
}

.burger-menu-content ul .wp-block-navigation-item {
    list-style: none;
    margin-bottom: 0;
}

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

/* Obere linke Navigation - größer und fetter */
.burger-menu-left-column > ul:first-child .wp-block-navigation-item__content {
    font-weight: 700;
    font-size: 24px;
}

/* Untere linke Navigation (sekundär) - auch 24px */
.burger-menu-left-column .secondary-nav .wp-block-navigation-item__content,
.burger-menu-left-column .secondary-nav a {
    font-size: 24px;
}

.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;
}

/* Zweite Navigation */
.burger-menu-content .secondary-nav {
    margin-left: 0; /* Entfernt den margin-left */
    margin-top: 2rem;
    opacity: 0.7;
}

/* Dritte Navigation (rechts) */
.burger-menu-content .third-nav {
    margin-left: 0;
    opacity: 0.7;
    padding: 0 20px;
}

/* Pfeile nur bei großen Bildschirmen */
@media (min-width: 1080px) {
    .burger-menu-layer {
        clip-path: polygon(
            0% 0%,           /* Links oben */
            calc(100% - 100px) 0%,  /* Rechts oben - 100px */
            100% 50%,        /* Pfeilspitze in der Mitte rechts */
            calc(100% - 100px) 100%, /* Rechts unten - 100px */
            0% 100%          /* Links unten */
        );
    }

    .burger-menu-right-column {
        background-color: rgba(0, 0, 0, 0.1);
        border-radius: 15px;
        clip-path: polygon(
            0% 0%,           /* Links oben */
            calc(100% - 50px) 0%,  /* Rechts oben - 50px */
            100% 50%,        /* Pfeilspitze in der Mitte rechts */
            calc(100% - 50px) 100%, /* Rechts unten - 50px */
            0% 100%          /* Links unten */
        );
    }
}

/* Responsive Anpassungen */
@media (max-width: 1079px) {
    .burger-menu-layer {
        clip-path: none; /* Entfernt den Hauptlayer-Pfeil */
        width: 80vw;
        min-width: unset;
    }

    .burger-menu-right-column {
        clip-path: none; /* Entfernt die Pfeil-Form */
        background-color: transparent;
        border-radius: 0;
    }
}

@media (max-width: 1000px) {
    .burger-menu-layer {
        justify-content: flex-start; /* Content oben ausrichten statt mittig */
        padding-top: 2rem; /* Etwas Abstand von oben */
    }

    .burger-menu-content {
        flex-direction: column; /* Vertikal statt horizontal */
        gap: 1.5rem; /* Kleinerer Abstand zwischen den Bereichen */
        margin-top: 6rem; /* Platz für das Logo schaffen */
        margin-left: 0; /* Entfernt das margin-left für mobile */
    }

    .burger-menu-logo {
        top: -75px; /* Logo korrekte Position für mobile */
        width: 250px; /* Kleineres Logo für mobile */
    }

    .burger-menu-right-column {
        margin-top: 1rem; /* Zusätzlicher Abstand nach oben */
        min-height: auto; /* Entfernt die feste Mindesthöhe im vertikalen Layout */
        border-top: 2px solid #333; /* Border als Trennung in mobiler Ansicht */
        padding-top: 1.5rem; /* Abstand vom Border */
    }
}

@media (max-width: 480px) {
    .burger-menu-layer {
        width: 100vw;
        left: -640px;
    }
}

/* ==========================================
   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 Farbfilter für dunkel-bläuliche 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 */
    }

    .company-name {
    }

    .company-subtitle {
    }

    .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;
    }

    .company-name {
    }

    .company-subtitle {
    }

    .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); }
}
