/*
Theme Name: Augenarztpraxis Biberach
Theme URI: https://www.augenarzt-biberach.eu
Author: Augenarztpraxis Biberach Dres. med. Kürzinger
Author URI: https://www.augenarzt-biberach.eu
Description: Professionelles WordPress-Theme für die Augenarztpraxis Biberach Dres. med. Kürzinger. DSGVO-konform, barrierefrei (WCAG 2.1 AA / EAA), SEO-optimiert mit vollständiger Customizer-Integration und Inline-Editing.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: augenarzt-biberach
Tags: one-page, custom-logo, custom-colors, accessibility-ready, translation-ready
*/

/* ========== CSS CUSTOM PROPERTIES ========== */
:root {
    --navy: #00264c;
    --navy-light: #003a73;
    --green-dark: #5a7a1e;
    --green: #84a92b;
    --green-mid: #b0da46;
    --green-light: #d0ea8d;
    --green-pale: #eef7d4;
    --white: #ffffff;
    --off-white: #f8faf5;
    --gray-100: #f5f5f5;
    --gray-200: #e8e8e8;
    --gray-400: #999;
    --gray-600: #666;
    --gray-800: #333;
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'Outfit', -apple-system, sans-serif;
    --max-width: 1200px;
    --radius: 16px;
    --radius-sm: 8px;
    --shadow-sm: 0 2px 8px rgba(0,38,76,0.06);
    --shadow-md: 0 8px 30px rgba(0,38,76,0.08);
    --shadow-lg: 0 16px 60px rgba(0,38,76,0.12);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }

/* Screen reader only */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0;
    margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* ========== SKIP LINK (Accessibility) ========== */
.skip-link {
    position: absolute; left: -9999px; top: auto;
    background: var(--green); color: var(--white);
    padding: 0.75rem 1.5rem; z-index: 10000;
    font-weight: 600; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; top: 0; }

/* ========== UTILITY ========== */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; }
.section--green { background: var(--off-white); }
.section-label {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em;
    text-transform: uppercase; color: var(--green); margin-bottom: 1rem;
}
.section-label::before {
    content: ''; width: 32px; height: 2px; background: var(--green-mid);
}
.section-title {
    font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem);
    color: var(--navy); line-height: 1.2; margin-bottom: 1.5rem;
}
.section-subtitle {
    font-size: 1.1rem; color: var(--gray-600); max-width: 600px; line-height: 1.8;
}
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.875rem 2rem; border-radius: 50px; font-family: var(--font-body);
    font-weight: 600; font-size: 0.95rem; cursor: pointer; border: none;
    transition: all var(--transition); text-decoration: none;
}
.btn--primary {
    background: var(--green); color: var(--white);
    box-shadow: 0 4px 15px rgba(132,169,43,0.3);
}
.btn--primary:hover, .btn--primary:focus-visible {
    background: var(--green-dark); transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(132,169,43,0.4);
}
.btn--outline {
    background: transparent; color: var(--navy);
    border: 2px solid var(--navy);
}
.btn--outline:hover, .btn--outline:focus-visible { background: var(--navy); color: var(--white); }
.btn--white {
    background: var(--white); color: var(--navy);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.btn--white:hover, .btn--white:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(0,0,0,0.15); }
.btn svg { width: 18px; height: 18px; }

/* Focus styles for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--green);
    outline-offset: 2px;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}
.animate { opacity: 0; }
.animate.visible { animation: fadeInUp 0.8s ease forwards; }
.animate-delay-1 { animation-delay: 0.1s !important; }
.animate-delay-2 { animation-delay: 0.2s !important; }
.animate-delay-3 { animation-delay: 0.3s !important; }

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .animate { opacity: 1; }
    html { scroll-behavior: auto; }
}

/* ========== ANNOUNCEMENT BAR ========== */
.announcement-bar {
    background: linear-gradient(90deg, var(--navy), var(--navy-light));
    color: var(--white); padding: 0.75rem 1.5rem;
    text-align: center; font-size: 0.88rem; font-weight: 500;
    position: relative; z-index: 1001;
}
.announcement-bar a { color: var(--green-light); text-decoration: underline; }
.announcement-bar a:hover { color: var(--white); }
.announcement-bar__close {
    position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: rgba(255,255,255,0.6);
    cursor: pointer; padding: 0.25rem; font-size: 1.2rem; line-height: 1;
}
.announcement-bar__close:hover { color: var(--white); }
.announcement-bar--vacation {
    background: linear-gradient(90deg, #c0392b, #e74c3c);
}
.announcement-bar--info {
    background: linear-gradient(90deg, var(--green-dark), var(--green));
}

/* ========== ANNOUNCEMENT SECTION (front page cards) ========== */
.announcement-section {
    background: linear-gradient(135deg, #fef3f2 0%, #fff5f5 100%);
    border-top: 3px solid #e74c3c;
    border-bottom: 3px solid #e74c3c;
}
.announcement-section .section-label { color: #c0392b; }
.announcement-section .section-label::before { background: #e74c3c; }
.announcement-section .section-title { color: #c0392b; }

.announcement-cards {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem; margin-top: 2rem;
}
.announcement-card {
    background: var(--white); border-radius: var(--radius);
    padding: 2rem; border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm); transition: all var(--transition);
}
.announcement-card--urgent {
    border-left: 4px solid #e74c3c;
}
.announcement-card:hover {
    box-shadow: var(--shadow-md); transform: translateY(-2px);
}
.announcement-card__header {
    display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1rem;
}
.announcement-card__icon {
    font-size: 2rem; line-height: 1; flex-shrink: 0;
}
.announcement-card__type {
    display: inline-block; font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: #c0392b; background: #fde8e8;
    padding: 0.2rem 0.6rem; border-radius: 4px;
    margin-bottom: 0.35rem;
}
.announcement-card__title {
    font-family: var(--font-display); font-size: 1.3rem;
    color: var(--navy); line-height: 1.3;
}
.announcement-card__dates {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.95rem; font-weight: 600; color: #c0392b;
    margin-bottom: 1rem; padding: 0.5rem 0.75rem;
    background: #fde8e8; border-radius: var(--radius-sm);
}
.announcement-card__dates svg { color: #c0392b; flex-shrink: 0; }
.announcement-card__message {
    font-size: 0.95rem; color: var(--gray-600); line-height: 1.7;
    margin-bottom: 1.25rem;
}
.announcement-card__substitution {
    background: var(--green-pale); border-radius: var(--radius-sm);
    padding: 1.25rem; border: 1px solid rgba(132,169,43,0.2);
}
.announcement-card__sub-title {
    display: flex; align-items: center; gap: 0.4rem;
    font-size: 0.85rem; font-weight: 700; color: var(--green-dark);
    text-transform: uppercase; letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}
.announcement-card__sub-title svg { color: var(--green); }
.announcement-card__sub-details {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1.5rem;
}
.announcement-card__sub-row {
    font-size: 0.9rem; color: var(--gray-600); display: flex;
    align-items: flex-start; gap: 0.4rem;
}
.announcement-card__sub-row strong { color: var(--navy); }
.announcement-card__sub-row a { color: var(--green); font-weight: 600; }
.announcement-card__sub-row a:hover { color: var(--navy); }
.announcement-card__sub-row svg { color: var(--green); flex-shrink: 0; margin-top: 2px; }

@media (max-width: 768px) {
    .announcement-cards { grid-template-columns: 1fr; }
    .announcement-card__sub-details { grid-template-columns: 1fr; }
}

/* ========== HEADER / NAV ========== */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,0.92); backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,38,76,0.06);
    transition: all var(--transition);
}
.has-announcement .header { top: auto; }
.header.scrolled { box-shadow: var(--shadow-sm); }
.header__inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.75rem 1.5rem; max-width: var(--max-width); margin: 0 auto;
}
.header__logo img { height: 48px; width: auto; }
.header__nav { display: flex; align-items: center; gap: 0.25rem; }
.header__nav a {
    padding: 0.5rem 1rem; font-size: 0.85rem; font-weight: 500;
    color: var(--gray-800); border-radius: 8px;
    transition: all var(--transition); letter-spacing: 0.02em;
}
.header__nav a:hover, .header__nav a:focus-visible, .header__nav a[aria-current="true"] {
    color: var(--green); background: var(--green-pale);
}
.header__cta { display: flex; align-items: center; gap: 0.75rem; }
.header__phone {
    display: flex; align-items: center; gap: 0.4rem;
    font-weight: 600; font-size: 0.9rem; color: var(--navy);
}
.header__phone svg { width: 16px; height: 16px; color: var(--green); }

/* Hamburger */
.hamburger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 0.5rem; z-index: 1001;
}
.hamburger span {
    display: block; width: 24px; height: 2px; background: var(--navy);
    transition: all var(--transition); border-radius: 2px;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--white); z-index: 999; padding: 6rem 2rem 2rem;
    flex-direction: column; gap: 0.5rem; overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    padding: 1rem; font-size: 1.1rem; font-weight: 500; color: var(--navy);
    border-bottom: 1px solid var(--gray-200); display: block;
}
.mobile-menu a:hover { color: var(--green); }
.mobile-menu__cta {
    margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem;
}

/* ========== HERO ========== */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    background: var(--navy); overflow: hidden;
}
.hero__bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--green-dark) 100%);
}
.hero__bg::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(132,169,43,0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 20% 80%, rgba(176,218,70,0.08) 0%, transparent 50%);
}
.hero__pattern {
    position: absolute; inset: 0; opacity: 0.04;
    background-image: radial-gradient(circle at 1px 1px, white 1px, transparent 0);
    background-size: 40px 40px;
}
.hero__content {
    position: relative; z-index: 2; max-width: var(--max-width);
    margin: 0 auto; padding: 8rem 1.5rem 4rem; width: 100%;
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.hero__text { animation: slideInLeft 1s ease; }
.hero__badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(132,169,43,0.15); border: 1px solid rgba(176,218,70,0.3);
    padding: 0.4rem 1rem; border-radius: 50px; margin-bottom: 1.5rem;
    font-size: 0.8rem; font-weight: 500; color: var(--green-light);
}
.hero__badge::before {
    content: ''; width: 6px; height: 6px; background: var(--green-mid);
    border-radius: 50%; animation: pulse-ring 2s infinite;
}
.hero__title {
    font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 3.75rem);
    color: var(--white); line-height: 1.15; margin-bottom: 1.5rem;
}
.hero__title em { font-style: italic; color: var(--green-light); }
.hero__desc {
    font-size: 1.1rem; color: rgba(255,255,255,0.7); line-height: 1.8;
    margin-bottom: 2.5rem; max-width: 480px;
}
.hero__buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__image { position: relative; animation: fadeIn 1.2s ease 0.3s both; }
.hero__image-main {
    border-radius: var(--radius); overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    aspect-ratio: 4/3; position: relative;
}
.hero__image-main img { width: 100%; height: 100%; object-fit: cover; }
.hero__image-float {
    position: absolute; bottom: -2rem; left: -2rem;
    background: var(--white); border-radius: var(--radius);
    padding: 1.25rem 1.5rem; box-shadow: var(--shadow-lg);
    animation: float 4s ease-in-out infinite;
}
.hero__image-float-label {
    font-size: 0.7rem; font-weight: 600; color: var(--gray-400);
    text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.25rem;
}
.hero__image-float-value { font-size: 1.5rem; font-weight: 700; color: var(--green); }
.hero__image-float-sub { font-size: 0.8rem; color: var(--gray-600); }
.hero__deco {
    position: absolute; top: 15%; right: 5%; width: 120px; height: 120px;
    opacity: 0.06; z-index: 1;
}

/* ========== TRUST BAR ========== */
.trust-bar {
    background: var(--white); border-bottom: 1px solid var(--gray-200);
    padding: 1.5rem 0;
}
.trust-bar__inner {
    display: flex; align-items: center; justify-content: center;
    gap: 3rem; flex-wrap: wrap;
}
.trust-item {
    display: flex; align-items: center; gap: 0.75rem;
    font-size: 0.9rem; color: var(--gray-600);
}
.trust-item svg { width: 22px; height: 22px; color: var(--green); flex-shrink: 0; }
.trust-item strong { color: var(--navy); }

/* ========== SERVICES ========== */
.services-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem; margin-top: 3rem;
}
.service-card {
    background: var(--white); border-radius: var(--radius);
    padding: 2.5rem 2rem; border: 1px solid var(--gray-200);
    transition: all var(--transition); position: relative; overflow: hidden;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 3px; background: linear-gradient(90deg, var(--green), var(--green-mid));
    transform: scaleX(0); transition: transform var(--transition);
    transform-origin: left;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-card__icon {
    width: 52px; height: 52px; border-radius: 12px;
    background: var(--green-pale); display: flex; align-items: center;
    justify-content: center; margin-bottom: 1.5rem;
}
.service-card__icon svg { width: 24px; height: 24px; color: var(--green); }
.service-card__title {
    font-family: var(--font-display); font-size: 1.25rem;
    color: var(--navy); margin-bottom: 0.75rem;
}
.service-card__desc { font-size: 0.92rem; color: var(--gray-600); line-height: 1.7; }

/* ========== ABOUT / WELCOME ========== */
.about__grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
    margin-top: 3rem;
}
.about__images { position: relative; }
.about__img-primary {
    border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-lg); position: relative; z-index: 2;
}
.about__img-primary img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.about__img-secondary {
    position: absolute; bottom: -2rem; right: -2rem;
    width: 55%; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-lg); border: 4px solid var(--white); z-index: 3;
}
.about__img-secondary img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.about__accent {
    position: absolute; top: -1.5rem; left: -1.5rem;
    width: 80px; height: 80px; background: var(--green-pale);
    border-radius: var(--radius); z-index: 1;
}
.about__list {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
    margin: 1.5rem 0 2rem;
}
.about__list-item {
    display: flex; align-items: flex-start; gap: 0.5rem;
    font-size: 0.92rem; color: var(--gray-600);
}
.about__list-item svg { width: 18px; height: 18px; color: var(--green); flex-shrink: 0; margin-top: 2px; }

/* ========== TEAM ========== */
.team-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 2rem; margin-top: 3rem;
}
.team-card {
    background: var(--white); border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--gray-200); transition: all var(--transition);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-card__image {
    aspect-ratio: 3/4; overflow: hidden; background: var(--gray-100);
    position: relative;
}
.team-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.team-card:hover .team-card__image img { transform: scale(1.05); }
.team-card__image--placeholder {
    background: linear-gradient(135deg, var(--green-pale), var(--gray-100));
    display: flex; align-items: center; justify-content: center;
}
.team-card__body { padding: 1.75rem; }
.team-card__name {
    font-family: var(--font-display); font-size: 1.3rem;
    color: var(--navy); margin-bottom: 0.25rem;
}
.team-card__role { font-size: 0.85rem; color: var(--green); font-weight: 500; margin-bottom: 0.75rem; }
.team-card__bio { font-size: 0.88rem; color: var(--gray-600); line-height: 1.7; }

/* ========== HOURS ========== */
.hours {
    background: var(--navy); color: var(--white); position: relative; overflow: hidden;
}
.hours::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 80% 20%, rgba(132,169,43,0.1) 0%, transparent 50%);
}
.hours__grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
    position: relative; z-index: 2;
}
.hours__title {
    font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}
.hours__desc { color: rgba(255,255,255,0.6); font-size: 1rem; line-height: 1.8; margin-bottom: 2rem; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table tr { border-bottom: 1px solid rgba(255,255,255,0.08); }
.hours-table td { padding: 0.875rem 0; font-size: 0.95rem; }
.hours-table td:first-child { color: rgba(255,255,255,0.5); width: 40%; }
.hours-table td:last-child { font-weight: 500; text-align: right; }
.hours-table .closed { color: rgba(255,255,255,0.3); }
.emergency-box {
    background: rgba(132,169,43,0.15); border: 1px solid rgba(176,218,70,0.2);
    border-radius: var(--radius); padding: 2rem; margin-top: 2rem;
}
.emergency-box__title {
    font-weight: 600; font-size: 1rem; color: var(--green-light);
    margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem;
}
.emergency-box__title svg { width: 18px; height: 18px; }
.emergency-box p { font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 1.7; }

/* ========== CONTACT ========== */
.contact__grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 3rem;
}
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-info__item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info__icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--green-pale); display: flex; align-items: center;
    justify-content: center; flex-shrink: 0;
}
.contact-info__icon svg { width: 20px; height: 20px; color: var(--green); }
.contact-info__label {
    font-size: 0.75rem; font-weight: 600; color: var(--gray-400);
    text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.15rem;
}
.contact-info__value { font-weight: 500; color: var(--navy); }
.contact-info__value a:hover { color: var(--green); }

/* Contact Form */
.contact-form {
    background: var(--white); border-radius: var(--radius);
    padding: 2.5rem; border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block; font-size: 0.85rem; font-weight: 500;
    color: var(--navy); margin-bottom: 0.4rem;
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 0.875rem 1rem; border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm); font-family: var(--font-body);
    font-size: 0.95rem; color: var(--gray-800);
    transition: border-color var(--transition); background: var(--white);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none; border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(132,169,43,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-consent { display: flex; gap: 0.75rem; align-items: flex-start; margin: 1.5rem 0; }
.form-consent input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green); }
.form-consent label { font-size: 0.82rem; color: var(--gray-600); line-height: 1.6; }
.form-consent a { color: var(--green); text-decoration: underline; }
.form-message { padding: 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: 0.9rem; }
.form-message--success { background: var(--green-pale); color: var(--green-dark); }
.form-message--error { background: #fde8e8; color: #c0392b; }

/* Map */
.contact-map {
    margin-top: 2rem; border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--gray-200); aspect-ratio: 16/9;
}
.contact-map__placeholder {
    width: 100%; height: 100%; background: var(--gray-100);
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 1rem; padding: 2rem; text-align: center;
}
.contact-map__placeholder p { color: var(--gray-600); font-size: 0.9rem; }
.contact-map__placeholder .privacy-note { font-size: 0.75rem; color: var(--gray-400); }
#osm-map { width: 100%; height: 100%; }

/* Accessibility badge */
.accessibility-badge {
    background: var(--green-pale); border-radius: var(--radius);
    padding: 1.5rem; display: flex; align-items: center; gap: 1rem;
    margin-top: 2rem;
}
.accessibility-badge svg { width: 28px; height: 28px; color: var(--green); flex-shrink: 0; }
.accessibility-badge p { font-size: 0.88rem; color: var(--gray-600); line-height: 1.6; }
.accessibility-badge strong { color: var(--navy); }

/* ========== CTA BAND ========== */
.cta-band {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    padding: 4rem 0; text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
}
.cta-band__title {
    font-family: var(--font-display); font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    color: var(--white); margin-bottom: 1rem; position: relative;
}
.cta-band__desc {
    color: rgba(255,255,255,0.8); font-size: 1.05rem; margin-bottom: 2rem;
    position: relative;
}
.cta-band .btn { position: relative; }

/* ========== FOOTER ========== */
.footer {
    background: var(--navy); color: rgba(255,255,255,0.6); padding: 4rem 0 0;
}
.footer__grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
    padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__brand .footer__logo-img {
    height: 40px; margin-bottom: 1rem;
    filter: brightness(0) invert(1); /* Works with transparent PNG — renders as white silhouette */
}
/* Fallback: if someone still uploads a JPG with white bg */
.footer__brand img:not(.footer__logo-img) { height: 40px; margin-bottom: 1rem; }
.footer__brand p { font-size: 0.88rem; line-height: 1.7; max-width: 300px; }
.footer__heading {
    font-weight: 600; font-size: 0.85rem; color: var(--white);
    text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.25rem;
}
.footer__links li { margin-bottom: 0.6rem; }
.footer__links a { font-size: 0.9rem; transition: color var(--transition); }
.footer__links a:hover { color: var(--green-light); }
.footer__bottom {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.5rem 0; font-size: 0.82rem; flex-wrap: wrap; gap: 1rem;
}
.footer__legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer__legal a:hover { color: var(--green-light); }

/* ========== COOKIE BANNER (GDPR) ========== */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    background: var(--white); border-top: 1px solid var(--gray-200);
    box-shadow: 0 -4px 30px rgba(0,0,0,0.1); padding: 1.5rem;
    transform: translateY(100%); transition: transform 0.5s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner__inner {
    max-width: var(--max-width); margin: 0 auto;
    display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
}
.cookie-banner__text {
    flex: 1; min-width: 280px; font-size: 0.88rem;
    color: var(--gray-600); line-height: 1.6;
}
.cookie-banner__text a { color: var(--green); text-decoration: underline; }
.cookie-banner__buttons { display: flex; gap: 0.75rem; flex-shrink: 0; }
.cookie-btn {
    padding: 0.65rem 1.25rem; border-radius: 8px; font-family: var(--font-body);
    font-weight: 600; font-size: 0.85rem; cursor: pointer; border: none;
    transition: all var(--transition);
}
.cookie-btn--accept { background: var(--green); color: var(--white); }
.cookie-btn--accept:hover { background: var(--green-dark); }
.cookie-btn--decline { background: var(--gray-100); color: var(--gray-800); }
.cookie-btn--decline:hover { background: var(--gray-200); }

/* ========== DOCTOLIB FLOATING BUTTON — RIGHT SIDE, VERTICALLY CENTERED ========== */
.doctolib-fab {
    position: fixed; top: 50%; right: 0; z-index: 900;
    transform: translateY(-50%);
    display: flex; flex-direction: column; align-items: center;
    gap: 0.35rem;
    background-color: #0596DE; color: var(--white);
    padding: 1rem 0.6rem;
    border-radius: 8px 0 0 8px; /* rounded left side, flat against right edge */
    font-family: var(--font-body);
    text-decoration: none; text-align: center;
    box-shadow: -3px 0 15px rgba(0,0,0,0.15);
    transition: all var(--transition);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    line-height: 1.3;
}
.doctolib-fab:hover {
    background-color: #0480c0; color: var(--white);
    padding-right: 0.8rem;
    box-shadow: -5px 0 25px rgba(0,0,0,0.2);
}
.doctolib-fab__text {
    font-size: 13px; font-weight: 600; letter-spacing: 0.03em;
}
.doctolib-fab__logo {
    font-size: 10px; font-weight: 700; letter-spacing: 0.05em;
    text-transform: lowercase; opacity: 0.85;
    border-top: 1px solid rgba(255,255,255,0.3);
    padding-top: 0.4rem; margin-top: 0.1rem;
}

/* ========== LEGAL PAGES ========== */
.legal-header {
    background: var(--navy); color: var(--white);
    padding: 8rem 1.5rem 3rem; text-align: center;
}
.legal-header h1 {
    font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.5rem;
}
.legal-header p { opacity: 0.6; font-size: 0.95rem; }
.legal-content {
    max-width: 800px; margin: 0 auto; padding: 3rem 1.5rem 5rem;
}
.legal-content h2 {
    font-family: var(--font-display); font-size: 1.5rem;
    color: var(--navy); margin: 2.5rem 0 1rem;
    padding-top: 1rem; border-top: 1px solid var(--gray-200);
}
.legal-content h2:first-of-type { border-top: none; margin-top: 0; }
.legal-content h3 { font-size: 1.1rem; color: var(--navy); margin: 1.5rem 0 0.5rem; }
.legal-content p { margin-bottom: 1rem; color: var(--gray-600); }
.legal-content ul { margin: 0.5rem 0 1rem 1.5rem; color: var(--gray-600); }
.legal-content ul li { margin-bottom: 0.4rem; list-style: disc; }
.legal-content a { color: var(--green); text-decoration: underline; }
.legal-content a:hover { color: var(--navy); }
.back-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.75rem 1.5rem; background: var(--green); color: var(--white);
    border-radius: 50px; text-decoration: none; font-weight: 600;
    font-size: 0.9rem; margin-top: 2rem; transition: all var(--transition);
}
.back-btn:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .hero__content { grid-template-columns: 1fr; gap: 3rem; }
    .hero__image { max-width: 500px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .about__grid { grid-template-columns: 1fr; gap: 3rem; }
    .about__images { max-width: 500px; }
    .hours__grid { grid-template-columns: 1fr; gap: 3rem; }
    .contact__grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .header__nav, .header__cta .header__phone { display: none; }
    .hamburger { display: flex; }
    .section { padding: 4rem 0; }
    .hero { min-height: auto; }
    .hero__content { padding: 7rem 1.5rem 3rem; }
    .hero__title { font-size: 2.2rem; }
    .hero__buttons { flex-direction: column; }
    .hero__buttons .btn { text-align: center; justify-content: center; }
    .hero__image-float { display: none; }
    .trust-bar__inner { gap: 1.5rem; }
    .trust-item { font-size: 0.8rem; }
    .services-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; }
    .about__list { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer__bottom { flex-direction: column; text-align: center; }
    .cookie-banner__inner { flex-direction: column; text-align: center; }
    .cookie-banner__buttons { width: 100%; justify-content: center; }
    .doctolib-fab { padding: 0.7rem 0.4rem; font-size: 11px; }
}
@media (max-width: 480px) {
    .hero__title { font-size: 1.8rem; }
    .section-title { font-size: 1.75rem; }
    .service-card { padding: 1.75rem 1.5rem; }
    .contact-form { padding: 1.5rem; }
}

/* ========== PRINT ========== */
@media print {
    .header, .cookie-banner, .doctolib-fab, .hamburger, .mobile-menu,
    .announcement-bar, .admin-fab { display: none !important; }
    .hero { min-height: auto; background: var(--white) !important; }
    .section { padding: 2rem 0; }
    body { color: #000; }
}

/* ========== ADMIN FAB (logged-in editors only) ========== */
.admin-fab {
    position: fixed; bottom: 1.25rem; left: 1.25rem; z-index: 9998;
}
.admin-fab__trigger {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--navy); color: var(--white);
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 15px rgba(0,38,76,0.3);
    transition: all var(--transition);
}
.admin-fab__trigger:hover,
.admin-fab__trigger.open {
    background: var(--green); transform: scale(1.08);
    box-shadow: 0 6px 25px rgba(132,169,43,0.4);
}
.admin-fab__trigger.open svg {
    transform: rotate(90deg); transition: transform var(--transition);
}
.admin-fab__menu {
    position: absolute; bottom: calc(100% + 0.75rem); left: 0;
    background: var(--white); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); border: 1px solid var(--gray-200);
    min-width: 220px; padding: 0.5rem 0;
    opacity: 0; visibility: hidden;
    transform: translateY(8px) scale(0.95);
    transform-origin: bottom left;
    transition: all 0.2s ease;
}
.admin-fab__menu.open {
    opacity: 1; visibility: visible;
    transform: translateY(0) scale(1);
}
.admin-fab__greeting {
    padding: 0.75rem 1rem 0.5rem;
    font-size: 0.75rem; font-weight: 600; color: var(--gray-400);
    text-transform: uppercase; letter-spacing: 0.08em;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 0.25rem;
}
.admin-fab__item {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.6rem 1rem; font-size: 0.88rem; font-weight: 500;
    color: var(--gray-800); text-decoration: none;
    transition: all var(--transition);
}
.admin-fab__item:hover {
    background: var(--green-pale); color: var(--green-dark);
}
.admin-fab__item svg { color: var(--gray-400); flex-shrink: 0; }
.admin-fab__item:hover svg { color: var(--green); }
.admin-fab__item--accent { color: var(--green-dark); font-weight: 600; }
.admin-fab__item--accent svg { color: var(--green); }
.admin-fab__item--logout { color: var(--gray-400); }
.admin-fab__item--logout:hover { background: #fde8e8; color: #c0392b; }
.admin-fab__item--logout:hover svg { color: #c0392b; }
.admin-fab__divider {
    height: 1px; background: var(--gray-200);
    margin: 0.25rem 0;
}
@media (max-width: 768px) {
    .admin-fab { bottom: 1rem; left: 1rem; }
    .admin-fab__trigger { width: 42px; height: 42px; }
}

/* ========== LEAFLET MAP OVERRIDES ========== */
.leaflet-container { font-family: var(--font-body); }
.leaflet-popup-content-wrapper { border-radius: var(--radius-sm); }
