/*
Theme Name: HAP Theme
Theme URI: https://hautarzt-stade.de
Author: Reimar Hausenblas
Author URI: https://hautarzt-stade.de
Description: Custom WordPress theme for Hautarztpraxis Stade — Dr. med. Petra Hausenblas dermatology practice. Migrated from Next.js.
Version: 1.1.2
Text Domain: hap-theme
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ==========================================================================
   CSS Custom Properties (Design Tokens)
   ========================================================================== */

:root {
  /* HAP Brand Colors (WCAG AA Compliant) */
  --color-primary: #0F3460;    /* Stade Navy */
  --color-accent: #A63E73;     /* Stade Magenta */
  --color-secondary: #537895;  /* Derma Blue */
  --color-text-body: #1A1A2E;  /* Deep Grey */
  --color-bg-light: #F2F2F2;   /* Soft Grey */
  --color-white: #FFFFFF;

  /* Background & Foreground */
  --background: var(--color-white);
  --foreground: var(--color-text-body);

  /* Fonts */
  --font-comfortaa: 'Comfortaa', sans-serif;
  --font-open-sans: 'Open Sans', sans-serif;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-open-sans);
  font-size: 18px;
  line-height: 1.6;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   A11y Focus States (WCAG AA)
   ========================================================================== */

*:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* Remove default outline for mouse users */
*:focus:not(:focus-visible) {
  outline: none;
}

/* ==========================================================================
   Skip Link for Accessibility
   ========================================================================== */

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 0 0 4px 0;
  z-index: 100;
  font-family: var(--font-open-sans);
  font-weight: 700;
}

.skip-link:focus {
  top: 0;
  color: var(--color-white);
  text-decoration: none;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-comfortaa);
  color: var(--color-primary);
  margin-bottom: 0.5em;
}

h1 {
  font-size: 42px;
  line-height: 1.2;
  font-weight: 700;
}

h2 {
  font-size: 32px;
  line-height: 1.3;
  font-weight: 700;
}

h3 {
  font-size: 24px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--color-secondary);
}

h4 {
  font-size: 20px;
  line-height: 1.4;
  font-weight: 700;
}

p {
  margin-bottom: 1rem;
}

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

/* ==========================================================================
   Links
   ========================================================================== */

a {
  color: var(--color-accent);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover,
a:focus {
  text-decoration: underline;
}

/* Prominent links (Comfortaa) */
a.link-prominent {
  font-family: var(--font-comfortaa);
}

/* ==========================================================================
   Lists
   ========================================================================== */

ul, ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

li {
  margin: 0.5rem 0;
  line-height: 1.6;
}

ul li {
  list-style-type: disc;
}

ol li {
  list-style-type: decimal;
}

/* ==========================================================================
   Container
   ========================================================================== */

.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-primary {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--font-comfortaa);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  line-height: 1.5;
}

.btn-primary:hover {
  background: #8c3560;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(166, 62, 115, 0.3);
  color: var(--color-white);
  text-decoration: none;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.btn-primary[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--color-accent);
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--font-comfortaa);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid var(--color-accent);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  line-height: 1.5;
}

.btn-secondary:hover {
  background: var(--color-accent);
  color: var(--color-white);
  text-decoration: none;
}

/* ==========================================================================
   Alert Bar
   ========================================================================== */

.alert-bar {
  position: sticky;
  top: 0;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-open-sans);
  font-size: 18px;
  font-weight: 700;
  padding: 15px;
  text-align: center;
  z-index: 50;
}

.alert-bar a {
  color: var(--color-white);
  text-decoration: underline;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  background: var(--color-bg-light);
  border-bottom: 1px solid rgba(15, 52, 96, 0.1);
  position: relative;
  z-index: 100;
}

.site-header nav {
  padding: 16px 0;
}

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

/* Logo */
.site-logo img {
  height: 40px;
  width: auto;
  mix-blend-mode: multiply;
}

.site-logo:hover {
  opacity: 0.9;
  text-decoration: none;
}

/* Desktop Navigation */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-comfortaa);
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
  text-shadow: 0 0 1px currentColor;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--color-primary);
  text-decoration: none;
}

.nav-link.current-menu-item,
.nav-link[aria-current="page"] {
  color: var(--color-primary);
}

/* Dropdown Toggle */
.dropdown-toggle {
  font-family: var(--font-comfortaa);
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--color-accent);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  text-shadow: 0 0 1px currentColor;
  transition: color 0.2s ease;
  padding: 0;
}

.dropdown-toggle:hover,
.dropdown-toggle:focus {
  color: var(--color-primary);
}

.dropdown-toggle[aria-expanded="true"] {
  color: var(--color-primary);
}

.dropdown-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.dropdown-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-wrapper {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  width: 288px;
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(15, 52, 96, 0.1);
  padding: 8px 0;
  z-index: 200;
  animation: dropdownFadeIn 0.2s ease;
}

.dropdown-menu.is-open {
  display: block;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-menu a {
  display: block;
  padding: 12px 24px;
  color: var(--color-primary);
  font-family: var(--font-open-sans);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
  border-bottom: 1px solid rgba(15, 52, 96, 0.05);
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
  background: var(--color-bg-light);
  color: var(--color-accent);
  text-decoration: none;
}

/* Desktop CTA */
.header-cta {
  display: none;
}

/* Mobile Menu Button */
.mobile-menu-toggle {
  display: block;
  padding: 8px;
  border-radius: 4px;
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.mobile-menu-toggle:hover {
  background: rgba(166, 62, 115, 0.1);
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
}

.mobile-menu-toggle .icon-close {
  display: none;
}

.mobile-menu-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.mobile-menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  padding: 16px 0;
  border-top: 1px solid rgba(15, 52, 96, 0.1);
  max-height: 70vh;
  overflow-y: auto;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu .nav-link {
  display: block;
  padding: 12px 0;
}

.mobile-menu .mobile-dropdown-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-family: var(--font-comfortaa);
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  color: var(--color-accent);
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px 0;
  text-shadow: 0 0 1px currentColor;
}

.mobile-menu .mobile-dropdown-toggle svg {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.mobile-menu .mobile-dropdown-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.mobile-submenu {
  display: none;
  margin-left: 16px;
  padding-left: 16px;
  border-left: 2px solid rgba(166, 62, 115, 0.2);
}

.mobile-submenu.is-open {
  display: block;
}

.mobile-submenu a {
  display: block;
  padding: 8px 0;
  color: rgba(15, 52, 96, 0.8);
  font-family: var(--font-open-sans);
  font-weight: 400;
  font-size: 18px;
  text-decoration: none;
}

.mobile-submenu a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.mobile-menu .btn-primary {
  margin-top: 16px;
  text-align: left;
}

/* ==========================================================================
   Service Card
   ========================================================================== */

.service-card {
  background: var(--color-white);
  border-top: 4px solid var(--color-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 32px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.service-card h3 {
  margin-bottom: 16px;
}

.service-card p {
  color: var(--color-text-body);
  margin-bottom: 24px;
}

.service-card-link {
  color: var(--color-accent);
  font-family: var(--font-comfortaa);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  display: inline-block;
  margin-top: 16px;
}

.service-card-link::after {
  content: ' >';
  margin-left: 4px;
}

.service-card-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Grid Layouts
   ========================================================================== */

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  padding: 64px 0;
}

.section-sm {
  padding: 48px 0;
}

.bg-primary {
  background: var(--color-primary);
}

.bg-light {
  background: var(--color-bg-light);
}

.bg-white {
  background: var(--color-white);
}

.text-white {
  color: var(--color-white);
}

.text-white h1,
.text-white h2,
.text-white h3 {
  color: var(--color-white);
}

.text-white p {
  color: rgba(255, 255, 255, 0.9);
}

.text-center {
  text-align: center;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 48px 0;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: 24px;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  max-width: 768px;
}

.hero .btn-primary:focus-visible {
  outline-offset: 2px;
}

.hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-right {
  flex: 0 0 220px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-portrait {
  width: 220px !important;
  height: 275px !important;
  max-width: 220px !important;
  object-fit: cover;
  object-position: top;
  border-radius: 6px;
  display: block;
}

/* Page Header (used on inner pages) */
.page-header {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 64px 0;
}

.page-header h1 {
  color: var(--color-white);
  margin-bottom: 16px;
}

.page-header p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 768px;
}

/* ==========================================================================
   Team Cards
   ========================================================================== */

.team-card {
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

.team-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.team-card-image {
  background: rgba(83, 120, 149, 0.2);
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.team-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card-image .placeholder-icon {
  color: rgba(83, 120, 149, 0.5);
}

.team-card-body {
  padding: 24px;
}

.team-card-body h3 {
  color: var(--color-primary);
  margin-bottom: 4px;
}

.team-card-role {
  font-family: var(--font-open-sans);
  font-size: 14px;
  color: var(--color-accent);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.team-card-bio {
  color: var(--color-text-body);
}

/* ==========================================================================
   News Cards
   ========================================================================== */

.news-card {
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

.news-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.news-card-image {
  aspect-ratio: 16 / 9;
  background: rgba(83, 120, 149, 0.2);
  overflow: hidden;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card-body {
  padding: 32px;
}

.news-card-date {
  font-size: 14px;
  color: rgba(26, 26, 46, 0.6);
  margin-bottom: 12px;
}

.news-card-body h2 {
  margin-bottom: 12px;
}

.news-card-excerpt {
  color: var(--color-text-body);
  margin-bottom: 24px;
}

/* ==========================================================================
   Contact Info Card
   ========================================================================== */

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.contact-info-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(166, 62, 115, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-icon svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
}

.contact-info-item h3 {
  margin-bottom: 8px;
}

.contact-info-item a {
  color: var(--color-text-body);
  font-weight: 400;
  transition: color 0.2s ease;
}

.contact-info-item a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

/* Sprechzeiten Table */
.sprechzeiten-table {
  width: 100%;
}

.sprechzeiten-table dt {
  font-weight: 600;
  color: var(--color-text-body);
  min-width: 120px;
}

.sprechzeiten-table dd {
  color: var(--color-text-body);
}

.sprechzeiten-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px;
  padding: 1px 0;
}

/* ==========================================================================
   Content Card (white bg with shadow)
   ========================================================================== */

.content-card {
  background: var(--color-white);
  padding: 32px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.content-card-lg {
  padding: 32px;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta-section {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 64px 0;
}

.cta-section h2 {
  color: var(--color-white);
  margin-bottom: 24px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
}

.cta-section .btn-primary:focus-visible {
  outline-offset: 2px;
}

/* ==========================================================================
   Rich Text / Prose Styling
   ========================================================================== */

.rich-text p {
  margin: 0.75rem 0;
}

.rich-text ul,
.rich-text ol {
  margin: 1rem 0;
}

.rich-text li {
  margin: 0.5rem 0;
}

.prose {
  max-width: none;
  color: var(--color-text-body);
  font-family: var(--font-open-sans);
  font-size: 18px;
  line-height: 1.6;
}

.prose h1 { font-size: 42px; margin-top: 2rem; margin-bottom: 1rem; }
.prose h2 { font-size: 32px; margin-top: 1.75rem; margin-bottom: 0.75rem; }
.prose h3 { font-size: 24px; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.prose h4 { font-size: 20px; margin-top: 1.25rem; margin-bottom: 0.5rem; }

.prose p {
  margin-bottom: 1rem;
}

.prose ul,
.prose ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.prose li {
  margin: 0.5rem 0;
}

.prose a {
  color: var(--color-accent);
  font-weight: 600;
}

.prose a:hover {
  text-decoration: underline;
}

.prose img {
  border-radius: 8px;
  margin: 1.5rem 0;
}

.prose blockquote {
  border-left: 4px solid var(--color-accent);
  padding-left: 16px;
  margin: 1.5rem 0;
  color: rgba(26, 26, 46, 0.8);
  font-style: italic;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.prose th,
.prose td {
  border: 1px solid rgba(15, 52, 96, 0.1);
  padding: 8px 12px;
  text-align: left;
}

.prose th {
  background: var(--color-bg-light);
  font-weight: 700;
}

.prose pre {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.prose code {
  background: var(--color-bg-light);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.prose pre code {
  background: none;
  padding: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--color-bg-light);
  color: var(--color-primary);
  border-top: 1px solid rgba(15, 52, 96, 0.1);
  padding-bottom: 48px; /* Space for mobile sticky footer */
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 48px 0;
}

.footer-heading {
  font-family: var(--font-comfortaa);
  font-size: 24px;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.footer-contact-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--color-accent);
}

.footer-contact-item span {
  color: var(--color-text-body);
}

.footer-contact-item a {
  color: var(--color-accent);
  font-weight: 700;
  transition: color 0.2s ease;
}

.footer-contact-item a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  list-style: none;
  margin: 8px 0;
}

.footer-nav a {
  color: var(--color-accent);
  font-family: var(--font-open-sans);
  font-size: 18px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.footer-service a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-service svg {
  width: 16px;
  height: 16px;
}

/* Legal Bar */
.legal-bar {
  background: rgba(15, 52, 96, 0.05);
  border-top: 1px solid rgba(15, 52, 96, 0.1);
  padding: 16px 0;
}

.legal-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.legal-bar p {
  font-family: var(--font-open-sans);
  font-size: 14px;
  color: rgba(26, 26, 46, 0.8);
  margin: 0;
}

.legal-links {
  display: flex;
  gap: 16px;
}

.legal-links a {
  font-family: var(--font-open-sans);
  font-size: 14px;
  color: rgba(26, 26, 46, 0.8);
  font-weight: 400;
  transition: color 0.2s ease;
}

.legal-links a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

/* Mobile Sticky Footer */
.mobile-sticky-footer {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-bg-light);
  border-top: 1px solid rgba(15, 52, 96, 0.2);
  z-index: 50;
}

.mobile-sticky-footer a {
  flex: 1;
  padding: 12px;
  text-align: center;
  font-family: var(--font-comfortaa);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-primary);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-sticky-footer a:hover {
  background: var(--color-accent);
  color: var(--color-white);
  text-decoration: none;
}

.mobile-sticky-footer .divider {
  width: 1px;
  background: rgba(15, 52, 96, 0.2);
}

/* ==========================================================================
   x.webtermin Overlay
   ========================================================================== */

.terminbuchung-overlay {
  z-index: 10000 !important;
  position: fixed !important;
  top: 80px !important;
  right: 20px !important;
  left: auto !important;
  bottom: auto !important;
  width: 480px !important;
  max-width: calc(100vw - 40px) !important;
  height: calc(100vh - 100px) !important;
  background-color: transparent !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  overflow: hidden !important;
}

.terminbuchung-overlay #terminbuchung-iframe {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
}

/* ==========================================================================
   Two-Column Layout (Kontakt, Praxis)
   ========================================================================== */

.layout-sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.layout-3-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

/* ==========================================================================
   Single Leistung Content
   ========================================================================== */

.single-leistung-content {
  max-width: 900px;
  margin: 0 auto;
}

.single-leistung-content .content-card-lg {
  padding: 32px;
}

.single-leistung-image {
  margin-top: 32px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.single-leistung-image img {
  width: 100%;
  height: auto;
}

/* ==========================================================================
   Contact Form Styles (CF7 compatible)
   ========================================================================== */

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(15, 52, 96, 0.2);
  border-radius: 8px;
  font-family: var(--font-open-sans);
  font-size: 18px;
  color: var(--color-text-body);
  background: var(--color-white);
  transition: border-color 0.2s ease;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  border-color: var(--color-accent);
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.wpcf7 label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  color: var(--color-text-body);
}

.wpcf7 .wpcf7-form-control-wrap {
  display: block;
  margin-bottom: 16px;
}

.wpcf7 input[type="submit"] {
  background: var(--color-accent);
  color: var(--color-white);
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--font-comfortaa);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wpcf7 input[type="submit"]:hover {
  background: #8c3560;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(166, 62, 115, 0.3);
}

/* ==========================================================================
   Empty State
   ========================================================================== */

.empty-state {
  text-align: center;
  padding: 64px 0;
}

.empty-state svg {
  width: 64px;
  height: 64px;
  color: rgba(83, 120, 149, 0.3);
  margin: 0 auto 16px;
}

.empty-state h3 {
  margin-bottom: 8px;
}

.empty-state p {
  color: rgba(26, 26, 46, 0.7);
}

/* ==========================================================================
   WordPress Core Alignment Classes
   ========================================================================== */

.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  max-width: 100%;
  margin-bottom: 1rem;
}

.wp-caption-text {
  font-size: 14px;
  color: rgba(26, 26, 46, 0.6);
  text-align: center;
  padding-top: 8px;
}

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

.screen-reader-text:focus {
  background-color: var(--color-bg-light);
  clip: auto !important;
  display: block;
  font-size: 14px;
  font-weight: bold;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* ==========================================================================
   Responsive — Tablet (768px+)
   ========================================================================== */

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-logo img {
    height: 56px;
  }

  .content-card-lg {
    padding: 48px;
  }
}

/* ==========================================================================
   Responsive — Desktop (1024px+)
   ========================================================================== */

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .desktop-nav {
    display: flex;
  }

  .header-cta {
    display: block;
  }

  .mobile-menu-toggle {
    display: none;
  }

  .mobile-menu {
    display: none !important;
  }

  .mobile-sticky-footer {
    display: none;
  }

  .site-footer {
    padding-bottom: 0;
  }

  .layout-sidebar {
    grid-template-columns: 1fr 1fr;
  }

  .layout-3-2 {
    grid-template-columns: 3fr 2fr;
  }
}

/* ==========================================================================
   Responsive — Small screens
   ========================================================================== */

@media (max-width: 767px) {
  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 26px;
  }

  h3 {
    font-size: 22px;
  }

  .hero-inner {
    flex-direction: column;
  }

  .hero-right {
    flex: none;
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .hero-portrait {
    width: 100px;
    height: 125px;
  }

  .hero {
    padding: 48px 0;
  }

  .section {
    padding: 48px 0;
  }

  .page-header {
    padding: 48px 0;
  }

  .service-card {
    padding: 24px;
  }

  .news-card-body {
    padding: 24px;
  }
}

/* ==========================================================================
   Urlaubshinweis-Banner
   ========================================================================== */

.urlaub-banner {
  padding: 20px 0;
  border-bottom: 3px solid transparent;
}

.urlaub-banner--urlaub {
  background-color: #FFF3CD;
  border-color: #D4A017;
  color: #7A4E00;
}

.urlaub-banner--vorankuendigung {
  background-color: #E8F4FD;
  border-color: var(--color-secondary);
  color: #1A3A5C;
}

.urlaub-banner__inner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.urlaub-banner__icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.urlaub-banner--urlaub .urlaub-banner__icon {
  color: #D4A017;
}

.urlaub-banner--vorankuendigung .urlaub-banner__icon {
  color: var(--color-secondary);
}

.urlaub-banner__text {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
  font-family: var(--font-comfortaa);
}

@media (max-width: 768px) {
  .urlaub-banner__inner {
    gap: 12px;
  }

  .urlaub-banner__text {
    font-size: 16px;
  }
}

/* ==========================================================================
   Online-Termin "Demnächst verfügbar" Modal
   ========================================================================== */

.termin-demnächst-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 52, 96, 0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.termin-demnächst-overlay[hidden] {
  display: none;
}

.termin-demnächst-modal {
  background: #fff;
  border-radius: 12px;
  padding: 40px 36px 36px;
  max-width: 440px;
  width: 100%;
  position: relative;
  text-align: center;
  box-shadow: 0 20px 60px rgba(15, 52, 96, 0.25);
}

.termin-demnächst-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-secondary);
  padding: 4px;
  line-height: 1;
  border-radius: 4px;
}

.termin-demnächst-close:hover {
  color: var(--color-primary);
}

.termin-demnächst-close:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.termin-demnächst-icon {
  color: var(--color-accent);
  margin-bottom: 20px;
}

.termin-demnächst-modal h2 {
  font-size: 22px;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.termin-demnächst-modal p {
  color: var(--color-text-body);
  font-size: 17px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.termin-demnächst-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-comfortaa);
  font-weight: 700;
  font-size: 18px;
  padding: 14px 28px;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.termin-demnächst-phone:hover {
  opacity: 0.88;
  color: #fff;
}

@media (max-width: 480px) {
  .termin-demnächst-modal {
    padding: 32px 24px 28px;
  }
}
