/*
Theme Name: Hausarztpraxis Herford Final
Author: Frank
Version: 8.1
Description: Stabiles, endgültig bereinigtes Theme. Headerbilder getrennt, Layout repariert.
*/

/* =============================
   GLOBAL
============================= */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden !important;
    background: #ffffff;
    font-family: Arial, sans-serif;
}

:root {
    --color-primary: #b2c3b0;
    --color-dark: #2f2f2f;
    --color-accent: #6d7c69;
}

/* Abstand unter Sticky Header */
body {
    padding-top: 120px !important;
}

/* =============================
   STICKY HEADER
============================= */
header.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(178,195,176,0.95);
    backdrop-filter: blur(4px);
    padding: 18px 35px;
    z-index: 9999;
    transition: padding .25s ease, background .25s ease;
}

header.site-header.shrink {
    padding: 8px 30px;
    background: rgba(178,195,176,0.85);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header .custom-logo,
.site-header .custom-logo-link img {
    max-width: 70px !important;
    height: auto !important;
}

/* =============================
   NAVIGATION
============================= */
nav.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

nav.main-nav a {
    color: var(--color-dark);
    text-decoration: none;
    font-size: 17px;
    font-weight: bold;
    transition: color .25s ease;
}

nav.main-nav a:hover,
nav.main-nav .current-menu-item a {
    color: var(--color-accent);
    text-decoration: underline;
}

/* =============================
   HEADERBILDER — SAUBER GETRENNT
============================= */
.header-image {
    width: 100%;
    height: 360px;
    background-size: cover !important;
    background-position: center !important;
    border-radius: 6px;
    border-bottom: 4px solid var(--color-primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    margin-bottom: 50px;
    position: relative;
}

.header-image .header-text {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    text-shadow: 0 3px 10px rgba(0,0,0,0.55);
}

.header-image .header-text h1 {
    margin: 0;
    font-size: 38px;
}

.header-image .header-text p {
    margin-top: 10px;
    font-size: 20px;
}

.page-header-image img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
    border-radius: 6px;
    border-bottom: 4px solid var(--color-primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

/* =============================
   FULLWIDTH BALKEN
============================= */
.fullwidth-bar {
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    background: rgba(178,195,176,0.35);
    padding: 45px 20px;
    text-align: center;
}

.fullwidth-bar h2 {
    margin: 0;
    font-size: 32px;
    color: var(--color-dark);
}

.fullwidth-bar .line {
    width: 80px;
    height: 3px;
    background: var(--color-accent);
    margin: 14px auto 0;
    border-radius: 2px;
}

/* =============================
   TEAM SECTION
============================= */
.team-section {
    max-width: 1100px;
    margin: 60px auto;
    padding: 20px;
}

.team-photo img {
    display: block;
    width: 100%;
    max-width: 850px;
    margin: 0 auto 25px;
    border-radius: 10px;
    border: 3px solid #dfe6df;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.team-text {
    text-align: center;
    font-size: 19px;
    line-height: 1.7;
    color: #333;
}

/* =============================
   ÖFFNUNGSZEITEN
============================= */
.times-section {
    max-width: 900px;
    margin: 60px auto;
    padding: 20px;
}

.times-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.times-box {
    background: white;
    border: 2px solid #e6ebe6;
    border-radius: 10px;
    padding: 25px 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.times-box h3 {
    font-size: 22px;
    color: var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.times-box svg {
    width: 26px;
    height: 26px;
    stroke: var(--color-accent);
    stroke-width: 2;
    fill: none;
}

.times-box p {
    font-size: 18px;
    margin: 0;
}

/* =============================
   KONTAKTFORMULAR
============================= */
.contact-section {
    max-width: 800px;
    margin: 80px auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

.contact-submit {
    padding: 12px 18px;
    background: var(--color-accent);
    border: none;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 17px;
}

.contact-submit:hover {
    background: var(--color-dark);
}

/* =============================
   FOOTER
============================= */
.custom-footer {
    background: #f2f5f1;
    padding: 35px 20px;
    text-align: center;
    border-top: 3px solid var(--color-primary);
}

.custom-footer .footer-logo img {
    max-width: 80px;
    height: auto;
}

.footer-links a {
    color: var(--color-dark);
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* =============================
   DSGVO CHECKBOX
============================= */
.wpcf7-list-item,
.wpcf7-list-item label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-left: 0 !important;
}

.wpcf7-list-item-label {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4;
}

.wpcf7-list-item input[type="checkbox"] {
    margin: 0 !important;
}

/* =============================
   HEADER CONTACT ICONS
============================= */
.header-contact {
    text-align: right;
    font-size: 15px;
    line-height: 1.4;
    color: var(--color-dark);
}

.header-contact a {
    color: var(--color-dark);
    text-decoration: none;
}

.header-contact a:hover {
    text-decoration: underline;
}

.contact-line {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-bottom: 2px;
}

.header-contact svg.contact-icon {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    flex-shrink: 0;
    fill: var(--color-dark);
}

/* =============================
   HEADER FIXES – FINAL
============================= */
header.site-header {
    box-sizing: border-box;
    padding-right: 20px;
}

.header-inner {
    max-width: 100%;
    box-sizing: border-box;
    padding-right: 0;
}

.header-contact {
    flex-shrink: 0;
}

.header-inner > * {
    min-width: 0;
}

/* =============================
   FIX: Burger im Desktop ausblenden
============================= */
.menu-toggle {
    display: none;
}

/* ======================================
   REZEPTANFORDERUNG – CF7 CHECKBOX FIX
====================================== */
.page-template-rezeptanforderung .wpcf7-list-item {
    margin-left: 0;
}

.page-template-rezeptanforderung .wpcf7-list-item-label {
    margin-left: 6px;
    display: inline;
    line-height: 1.4;
}

.page-template-rezeptanforderung input[type="checkbox"] {
    margin-right: 6px;
}

/* ======================================
   FIX: MOBILE KONTAKT-BUTTONS
====================================== */
.mobile-contact-buttons {
    display: none !important;
}

/* =========================================================
   PRAXIS TICKER – VOLLER DURCHLAUF
========================================================= */

.site-ticker-container {
    width: 100vw;
    overflow: hidden;
    position: relative;
}

.site-ticker-text {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100vw;
    animation: praxis-ticker 26s linear infinite;
    font-size: 20px;   /* ← EINZIGE ÄNDERUNG */
}

@keyframes praxis-ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-200%);
    }
}
