/*
Theme Name: Geisler Praxis
Theme URI: https://hausarztpraxis-geisler.de
Author: Hausarztpraxis Dr. med. Michael Geisler
Description: Minimales Theme für die Hausarztpraxis von Dr. med. Michael Geisler
Version: 1.1
License: GNU General Public License v2 or later
Text Domain: geisler-praxis
*/

/* =============================================
   RESET & GRUNDLAGEN
   ============================================= */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: #1e2410;
    background-color: #edf0e3;
}

/* =============================================
   TYPOGRAFIE
   ============================================= */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 0.75em;
    color: #1e2410;
    letter-spacing: -0.01em;
}

h1 { font-size: 1.6rem; }
h2 { font-size: 1.3rem; margin-top: 2em; }
h3 { font-size: 1.1rem; margin-top: 1.5em; }

p {
    margin-bottom: 1em;
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: #4d6019;
    text-decoration: none;
    transition: color 0.15s;
}

a:hover {
    color: #2e3a0d;
    text-decoration: underline;
}

ul, ol {
    margin: 0 0 1em 1.5em;
}

li {
    margin-bottom: 0.3em;
}

strong {
    font-weight: 600;
}

hr {
    border: none;
    border-top: 1px solid #cdd6a8;
    margin: 2em 0;
}

/* =============================================
   LAYOUT
   ============================================= */

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.site-content {
    flex: 1;
    padding: 3rem 0 4rem;
}

/* =============================================
   HEADER
   ============================================= */

.site-header {
    background-color: #3f5212;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-branding {
    flex-shrink: 0;
}

.site-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    letter-spacing: 0.01em;
    margin: 0;
}

.site-title a {
    color: #ffffff;
    text-decoration: none;
}

.site-title a:hover {
    color: #d6e3a8;
    text-decoration: none;
}

.site-tagline {
    font-size: 0.78rem;
    color: #b8c888;
    margin: 0.1rem 0 0;
    font-weight: 400;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

/* =============================================
   NAVIGATION
   ============================================= */

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    display: block;
    padding: 0.35rem 0.75rem;
    color: #d6e3a8;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}

.main-nav a:hover,
.main-nav .current-menu-item a,
.main-nav .current_page_item a {
    background-color: rgba(255,255,255,0.14);
    color: #ffffff;
    text-decoration: none;
}

/* Hamburger (mobil) */
.nav-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 3px;
    color: #ffffff;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.3rem 0.6rem;
    flex-shrink: 0;
}

/* =============================================
   SEITENINHALT
   ============================================= */

.entry-title {
    font-size: 1.45rem;
    font-weight: 600;
    color: #3f5212;
    margin-bottom: 1.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #cdd6a8;
    letter-spacing: -0.02em;
}

.entry-content {
    color: #1e2410;
}

/* Content-Block – weißes "Papier" auf olivgrünem Hintergrund */
.entry-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 2rem 2.25rem;
    box-shadow: 0 2px 12px rgba(40, 55, 10, 0.08);
}

/* Startseite Willkommensblock */
.home-intro {
    background-color: #dce5b0;
    border-left: 4px solid #4d6019;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 0 8px 8px 0;
}

.home-intro p {
    margin: 0;
    color: #2e3a0d;
    font-weight: 500;
}

/* Infoboxen (z.B. Öffnungszeiten) */
.info-box {
    background-color: #f3f7e6;
    border: 1px solid #cdd6a8;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}

.info-box h3 {
    color: #4d6019;
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.78rem;
    margin-bottom: 0.75em;
}

/* =============================================
   FORMULARE (Contact Form 7 + allgemein)
   ============================================= */

.wpcf7 form,
form {
    margin-top: 0.5rem;
}

/* Labels */
.wpcf7 label,
form label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: #3f5212;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
    margin-top: 1.25rem;
}

.wpcf7 label:first-child,
form label:first-child {
    margin-top: 0;
}

/* Eingabefelder & Textarea */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="number"],
.wpcf7 input[type="url"],
.wpcf7 select,
.wpcf7 textarea,
form input[type="text"],
form input[type="email"],
form input[type="tel"],
form textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    font-family: inherit;
    font-size: 0.95rem;
    color: #1e2410;
    background-color: #f8faf0;
    border: 1px solid #bfcb90;
    border-radius: 7px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    appearance: none;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus,
form input[type="text"]:focus,
form input[type="email"]:focus,
form textarea:focus {
    border-color: #4d6019;
    box-shadow: 0 0 0 3px rgba(77, 96, 25, 0.12);
    background-color: #ffffff;
}

.wpcf7 textarea,
form textarea {
    min-height: 130px;
    resize: vertical;
    line-height: 1.6;
}

/* Absenden-Button */
.wpcf7 input[type="submit"],
form input[type="submit"],
form button[type="submit"] {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.7rem 2rem;
    background-color: #4d6019;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    transition: background-color 0.15s, box-shadow 0.15s;
}

.wpcf7 input[type="submit"]:hover,
form input[type="submit"]:hover,
form button[type="submit"]:hover {
    background-color: #3a4d10;
    box-shadow: 0 2px 8px rgba(40, 55, 10, 0.2);
}

.wpcf7 input[type="submit"]:active {
    background-color: #2e3a0d;
}

/* CF7 Fehlermeldungen */
.wpcf7-not-valid-tip {
    font-size: 0.8rem;
    color: #a33;
    margin-top: 0.3rem;
    display: block;
}

.wpcf7-not-valid {
    border-color: #c44 !important;
}

/* CF7 Erfolgsmeldung */
.wpcf7-response-output {
    margin-top: 1.25rem;
    padding: 0.75rem 1rem;
    border-radius: 7px;
    font-size: 0.88rem;
    border: none !important;
}

.wpcf7 .wpcf7-mail-sent-ok,
.wpcf7 form.sent .wpcf7-response-output {
    background-color: #dce5b0;
    color: #2e3a0d;
}

.wpcf7 .wpcf7-validation-errors,
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
    background-color: #fdecea;
    color: #7a1f1f;
}

/* =============================================
   FOOTER
   ============================================= */

.site-footer {
    background-color: #2a3709;
    color: #b8c888;
    padding: 1.75rem 0;
    font-size: 0.82rem;
}

.site-footer .container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-info strong {
    color: #e8f0cc;
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    align-items: center;
}

.footer-nav li {
    margin: 0;
}

.footer-nav a {
    color: #b8c888;
    font-size: 0.82rem;
}

.footer-nav a:hover {
    color: #e8f0cc;
    text-decoration: underline;
}

.footer-copy {
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1rem;
    margin-top: 0.5rem;
    color: #7a9040;
}

.footer-copy a {
    color: #b8c888;
}

.footer-copy a:hover {
    color: #e8f0cc;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 600px) {
    .site-header .container {
        flex-wrap: wrap;
    }

    .main-nav {
        width: 100%;
        display: none;
    }

    .main-nav.is-open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        border-top: 1px solid rgba(255,255,255,0.2);
        padding-top: 0.5rem;
        margin-top: 0.25rem;
    }

    .main-nav a {
        padding: 0.5rem 0.25rem;
        font-size: 0.9rem;
    }

    .nav-toggle {
        display: block;
    }

    .site-footer .container {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-nav ul {
        flex-direction: column;
        gap: 0.4rem;
    }

    h1 { font-size: 1.35rem; }
}
