/**
 * Styles for MKD Lazy Load Click plugin
 * Prefixed by https://autoprefixer.github.io
 * PostCSS: v7.0.29,
 * Autoprefixer: v9.7.6
 * Browsers: last 4 version
 */

/* MKD Lazy Load Click Styles */

/* Automatisch ersetzte Google Maps */
.mkd-llc {
    position: relative;
    text-align: center;
    font-family: "Georgia", serif;
    font-weight: 100;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    max-width: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mkd-map-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2em;
    width: 100%;
    height: 100%;
}

.mkd-show-map {
    display: inline-block;
    padding: 0.8em 1.5em;
    font-size: 1em;
    font-weight: 600;
    text-transform: uppercase;
    color: #ffffff;
    background-color: #0073aa;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1em;
}

.mkd-show-map:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.mkd-show-map:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.mkd-show-map:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.3);
}

.mkd-show-map:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Legacy styles für Kompatibilität */
.mkd-llc span,
.mkd-llc a,
.mkd-llc a:hover {
    cursor: pointer;
    text-decoration: underline;
    z-index: 1;
}

.mkd-llc span,
.mkd-llc a,
.mkd-llc h3,
.mkd-llc p {
    color: grey !important;
}

.mkd_map_wrapper { 
    vertical-align: middle;
    background-size: cover !important;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.mkd-icon {
    margin: 0 auto;
    width: 300px;
    height: 190px;
}

/* Shortcode-Container */
.mkd-llc-container {
    position: relative;
    width: 100%;
    margin: 1em 0;
    text-align: center;
}

.mkd-llc-wrapper {
    position: relative;
    padding: 2em;
    background-color: #f5f5f5;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mkd-llc-button,
.mkd-llc-link {
    display: inline-block;
    padding: 0.8em 1.5em;
    font-size: 1em;
    font-weight: 600;
    text-transform: uppercase;
    color: #ffffff;
    background-color: #0073aa;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.mkd-llc-button:hover,
.mkd-llc-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: #ffffff;
}

.mkd-llc-button:active,
.mkd-llc-link:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.mkd-llc-button:focus,
.mkd-llc-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.3);
}

.mkd-llc-button:disabled,
.mkd-llc-link:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.mkd-llc-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2em;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mkd-llc-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.mkd-privacy-notice {
    margin-top: 1em;
    font-size: 0.9em;
    line-height: 1.5;
    color: #666;
    text-align: center;
}

.mkd-privacy-notice a {
    color: #0073aa;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.mkd-privacy-notice a:hover {
    color: #005177;
}

.mkd-llc-content {
    width: 100%;
    min-height: 300px;
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.mkd-llc-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .mkd-llc-wrapper,
    .mkd-map-wrapper {
        padding: 1.5em;
    }

    .mkd-llc-button,
    .mkd-llc-link,
    .mkd-show-map {
        padding: 0.6em 1.2em;
        font-size: 0.9em;
    }

    .mkd-privacy-notice {
        font-size: 0.8em;
    }
}

/* Accessibility */
.mkd-llc-button:focus-visible,
.mkd-llc-link:focus-visible,
.mkd-show-map:focus-visible {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.mkd-llc-button:focus:not(:focus-visible),
.mkd-llc-link:focus:not(:focus-visible),
.mkd-show-map:focus:not(:focus-visible) {
    outline: none;
}

/* Print Styles */
@media print {
    .mkd-llc-button,
    .mkd-llc-link,
    .mkd-show-map,
    .mkd-llc-overlay,
    .mkd-map-wrapper {
        display: none !important;
    }

    .mkd-llc-content {
        display: block !important;
    }
}
