/* ============================================
   hairworks & style — Twenty Seventeen recreation
   ============================================ */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }

html {
    font-family: sans-serif;
    line-height: 1.15;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: #fff;
    color: #333;
    font-family: "Libre Franklin", "Helvetica Neue", helvetica, arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.66;
}

a { color: #222; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #767676; }
img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 0.5em; font-weight: 300; clear: both; }
h1 { font-size: 24px; }
h2 { color: #666; font-size: 20px; }
h3 { color: #333; font-size: 18px; }
p { margin: 0 0 1.5em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; border-spacing: 0; }
td { padding: 0.2em 1em 0.2em 0; vertical-align: top; }

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px; overflow: hidden;
    position: absolute !important; width: 1px;
    word-wrap: normal !important;
}

/* --- Layout --- */
.wrap {
    margin-left: auto;
    margin-right: auto;
    max-width: 700px;
    padding-left: 2em;
    padding-right: 2em;
}

/* ============================================
   SITE HEADER
   ============================================ */
.site-header {
    background-color: #fafafa;
    position: relative;
}

/* --- Custom Header (Parallax) --- */
.custom-header {
    position: relative;
}

.custom-header-media {
    bottom: 0;
    left: 0;
    overflow: hidden;
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
}

.has-header-image .custom-header-media img {
    position: fixed;
    height: auto;
    left: 50%;
    max-width: 1000%;
    min-height: 100%;
    min-width: 100%;
    min-width: 100vw;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
}

/* --- Branding --- */
.site-branding {
    padding: 1em 0;
    position: relative;
    z-index: 3;
}

.site-branding a { transition: opacity 0.2s; }
.site-branding a:hover { opacity: 0.7; }

.custom-logo-link { display: inline-block; vertical-align: middle; }
.custom-logo-link img,
.custom-logo { max-height: inherit; max-width: 250px; }

.site-branding-text {
    display: inline-block;
    max-width: 100%;
    vertical-align: middle;
}

.site-title {
    clear: none;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin: 0;
    text-transform: uppercase;
}

.site-title a { color: #000; }

.site-description {
    color: #000;
    font-size: 0.9rem;
    margin: 0;
}

/* Hide description on header-image pages (matches WP custom CSS) */
body.has-header-image .site-description {
    opacity: 0;
}

/* Hide site-info "Stolz präsentiert von WordPress" */
.site-info { opacity: 0; font-size: 0; height: 0; overflow: hidden; }

/* ============================================
   NAVIGATION
   ============================================ */
.navigation-top {
    background: #fff;
    border-bottom: 1px solid #eee;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    position: relative;
    z-index: 5;
}

.navigation-top .wrap {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.main-navigation {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center;
    position: relative;
}

.menu-container { display: flex; justify-content: center; flex: 1; }

.navigation-top .menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.navigation-top li { position: relative; }

.navigation-top a {
    color: #222;
    display: block;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.5;
    padding: 1em 0.75em;
    text-transform: capitalize;
    transition: color 0.2s;
}

.navigation-top a:hover,
.navigation-top a:focus,
.navigation-top .current-menu-item > a {
    color: #767676;
}

/* Scroll-down arrow */
.menu-scroll-down {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.5em;
    display: flex;
    color: #222;
}

.menu-scroll-down .icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.menu-scroll-down:hover { color: #767676; }

/* Sticky nav */
.navigation-top.site-navigation-fixed {
    position: fixed;
    left: 0; right: 0; top: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 1px 2px rgba(0,0,0,0.075);
}

.nav-placeholder { display: none; }

/* Mobile toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 1em;
    color: #222;
    width: 100%;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.menu-toggle .icon { margin-right: 0.5em; }

/* ============================================
   FRONT PAGE PANELS
   ============================================ */
.twentyseventeen-panel {
    overflow: hidden;
    position: relative;
}

/* Panel image — parallax background */
.panel-image {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.panel-image::before {
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 100%);
    bottom: 0;
    content: "";
    left: 0;
    right: 0;
    position: absolute;
    top: 100px;
}

.panel-image-prop {
    /* Maintains aspect ratio via padding-top set inline */
}

/* Panel content */
.panel-content {
    position: relative;
    background: #fff;
}

.panel-content .wrap {
    padding-bottom: 0.5em;
    padding-top: 1.75em;
}

/* Entry header & title */
.entry-header {
    margin-bottom: 2em;
}

.entry-title {
    font-size: 1rem;
    font-weight: 300;
    color: #666;
}

.entry-content {
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 1.5em;
}

/* --- News / Recent Posts inside panel --- */
.recent-posts {
    margin-top: 0;
}

.recent-posts .post {
    margin-bottom: 2em;
}

.recent-posts .entry-header {
    margin-bottom: 0.5em;
}

.entry-meta {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1818em;
    text-transform: uppercase;
    color: #767676;
    margin-bottom: 0.25em;
}

.recent-posts h3.entry-title {
    font-size: 1rem;
    font-weight: 300;
}

.entry-summary p {
    margin-bottom: 0.5em;
}

/* ============================================
   CONTACT FORM (in panel)
   ============================================ */
.contact-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 1.5em;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 0.4em;
    color: #333;
}

.form-group .required {
    color: #d00;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.5em;
    border: 1px solid #bbb;
    border-radius: 0;
    font-family: inherit;
    font-size: 15px;
    color: #333;
    line-height: 1.66;
    background: #fff;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #222;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-submit {
    background: #222;
    color: #fff;
    border: 2px solid #222;
    padding: 0.7em 2em;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.form-submit:hover,
.form-submit:focus {
    background: #fff;
    color: #222;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    border-top: 1px solid #eee;
}

.site-footer .wrap {
    padding-bottom: 1.5em;
    padding-top: 2em;
}

/* Widget area — two columns */
.widget-area {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding-bottom: 2em;
    padding-top: 2em;
}

.widget-column {
    flex: 1;
    min-width: 250px;
    padding-right: 2em;
}

.widget-title {
    color: #333;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin-bottom: 1em;
}

.textwidget p {
    margin-bottom: 0.75em;
}

.opening-hours td {
    padding: 0.15em 1.5em 0.15em 0;
    font-size: 14px;
}

/* Social navigation — round icons */
.social-navigation {
    font-size: 16px;
    margin-bottom: 1em;
}

.social-links-menu {
    display: flex;
    gap: 0.5em;
}

.social-navigation a {
    background-color: #767676;
    border-radius: 40px;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
    transition: background-color 0.2s;
}

.social-navigation a:hover,
.social-navigation a:focus {
    background-color: #333;
    color: #fff;
}

.social-navigation .icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ============================================
   NEWS PAGE (standalone)
   ============================================ */
.news-list { list-style: none; }

.news-item {
    border-bottom: 1px solid #eee;
    padding: 2em 0;
}

.news-item:first-child { padding-top: 0; }
.news-item:last-child { border-bottom: none; }

.news-item .entry-title {
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 0.3em;
}

.news-item .entry-title a { color: #333; }
.news-item .entry-title a:hover { color: #767676; }

/* Page header for subpages */
.page-header { margin-bottom: 2em; }
.page-title { color: #666; font-size: 20px; font-weight: 300; }

/* ============================================
   KONTAKT PAGE (standalone)
   ============================================ */
.standorte {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3em;
    margin-top: 0.5em;
}

.standort h3 {
    font-size: 16px;
    font-weight: 800;
    color: #333;
    margin-bottom: 1em;
}

.standort p { margin-bottom: 0.5em; line-height: 1.7; }

.standort .label {
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #767676;
    display: block;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.standort .hinweis {
    font-style: italic;
    color: #767676;
    margin-top: 0.5em;
}

/* ============================================
   RESPONSIVE — Desktop (>= 768px)
   ============================================ */
@media screen and (min-width: 48em) {
    .wrap {
        max-width: 1000px;
        padding-left: 3em;
        padding-right: 3em;
    }

    .custom-header {
        height: calc(100vh - 120px);
        max-height: 1000px;
        overflow: hidden;
    }

    .site-branding {
        padding: 3em 0;
    }

    /* Parallax panels — fixed background */
    .panel-image {
        background-attachment: fixed;
        height: 80vh;
        max-height: 900px;
    }

    .panel-image .panel-image-prop {
        display: none;
    }

    .navigation-top a {
        padding: 1em;
    }

    h1 { font-size: 36px; }
    h2 { font-size: 28px; }

    .entry-title { font-size: 1rem; }
}

/* ============================================
   RESPONSIVE — Mobile (< 768px)
   ============================================ */
@media screen and (max-width: 48em) {
    .menu-toggle { display: block; }

    .menu-container {
        display: none;
    }

    .menu-container.toggled-on {
        display: block;
    }

    .navigation-top .menu {
        flex-direction: column;
    }

    .navigation-top li {
        border-top: 1px solid #eee;
    }

    .navigation-top a {
        padding: 0.75em 2em;
        text-align: left;
    }

    .menu-scroll-down { display: none; }

    .custom-header {
        height: 75vh;
        overflow: hidden;
    }

    .custom-header-media img {
        position: absolute;
    }

    .panel-image {
        height: auto;
    }

    .standorte {
        grid-template-columns: 1fr;
        gap: 2em;
    }

    .widget-area {
        flex-direction: column;
    }

    .widget-column {
        padding-right: 0;
        margin-bottom: 2em;
    }
}
