/*
Theme Name: Tims-bau
Theme URI: https://www.tims-bau.de/
Author: AK
Description: WordPress Theme für Maler-, Putz- und Sanierungsbetriebe, optimiert für SEO Schema.org.
Version: 1.1
License: GNU General Public License v3.0
License URI: http://www.gnu.org/
Text Domain: wpbulma
*/

/* Custom */
.bordered-block {
    border: 2px dashed transparent;
    position: relative;
}

.block-edit-label {
    position: absolute;
    bottom: 0;
}
.bordered-block:hover {
    border-color: gold;
}

.widget_recent_entries li, .widget_archive li, .widget_meta li {
    line-height: 2em;
    border-bottom: 1px solid whitesmoke;
}

/* Widget Area */
.sidebar.widget-area li {
    list-style: none;
}
.sidebar.widget-area .widget {
    margin-bottom: 1em;
}
.sidebar .widget.widget_search {
    background: whitesmoke;
    padding: 1em;
}

.navbar-link.is-active, .navbar-link:hover, a.navbar-item.is-active, a.navbar-item:hover {
    background-color: #f1f5f9 !important;
    color: var(--accent, #2E8CBE) !important;
}

/* Default Styles */
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=url], select {
    -moz-appearance: none;
    -webkit-appearance: none;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    display: inline-flex;
    font-size: 1rem;
    height: 2.75em;
    justify-content: flex-start;
    line-height: 1.5;
    padding: 0.5rem 0.875rem;
    position: relative;
    vertical-align: top;
    background-color: #fff;
    color: #1e293b;
    max-width: 100%;
    width: 100%;
    transition: all 0.2s ease;
}
input:active, input:focus, textarea:active, textarea:focus, select:focus {
    border-color: var(--accent, #2E8CBE) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 140, 190, 0.2) !important;
}
textarea {
    display: block;
    max-width: 100%;
    min-width: 100%;
    padding: 0.75em;
    resize: vertical;
    background-color: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px !important;
    color: #1e293b;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    line-height: 1.5;
    transition: all 0.2s ease;
}
button, input[type=submit] {
    border: none;
    border-radius: 8px !important;
    color: #fff;
    cursor: pointer;
    padding: 0.625em 1.25em;
    text-align: center;
    white-space: nowrap;
    -moz-appearance: none;
    -webkit-appearance: none;
    align-items: center;
    display: inline-flex;
    font-size: 1rem;
    font-weight: 600;
    justify-content: center;
    line-height: 1.5;
    position: relative;
    vertical-align: top;
    background-color: var(--primary, #043464) !important;
    margin: 1rem 0;
    transition: all 0.2s ease;
}
button:hover, input[type=submit]:hover {
    background-color: var(--accent, #2E8CBE) !important;
}
label {
    color: #363636;
    display: block;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
        margin-top: 1rem;
}

.button.is-primary a, .button.is-link a, .button.is-info a, .button.is-success a, .button.is-danger a {
    color: white;
}
.button a, .button.is-light a, .button.is-warning a {
    color: #363636;
}


.placeholder.hidden {
    z-index: -1;
    opacity: 0;
}

#contact {
    background: url(https://www.tims-bau.de/wp-content/uploads/2024/10/WhatsApp-Image-2024-09-14-at-12.52.23-7.jpeg);
    background-attachment: scroll;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-top: 10px solid var(--secondary);
}

hr {
    background: var(--secondary);
}


/* Basis-Variable für nicht-Eingeloggte setzen */
body:not(.admin-bar) {
    --wp-admin--admin-bar--height: 20px;
}

/* Fester Header verschieben */
.site-header {
    position: fixed;
    top: var(--wp-admin--admin-bar--height);
    /* Optional: Fallback für alte Browser */
    top: 32px; 
}

/* Mobile-Anpassung (Admin Bar ist auf Mobilgeräten höher) */
@media screen and (max-width: 782px) {
    body:not(.admin-bar) {
        --wp-admin--admin-bar--height: 0px;
    }
    .site-header {
        top: 46px;
    }
}

/* Hero-Bereich oder Full-Height Elemente */
.hero-section {
    min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
}   