/* ==========================================================================
   GLOBAL FOUNDATION
   ========================================================================== */

/* Smooth scrolling (disabled for reduced motion preferences) */
html,
body {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html,
  body {
    scroll-behavior: auto;
  }
}

/* Consistent focus treatment across the site */
:focus-visible {
  outline: 2px solid var(--wp--preset--color--custom-hauptfarbe);
  outline-offset: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}

:focus-within {
  scroll-margin-top: 6rem;
}

/* Date input normalization (iOS zoom/layout stabilizer) */
input[type="date"] {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  font-size: 16px;
  line-height: 1.2;
  box-sizing: border-box;
}

input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
}

/* Globale Textlinks
p a {
  text-underline-offset: 0.25em;
} */

/* --------------------------------------------------
   Animierter Underline-Effekt
   Nur für Paragraphen
-------------------------------------------------- */

p a {
  position: relative;
  text-decoration: none;
}

p a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.1em;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(1);
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

p a:hover::after {
  transform: scaleX(0);
}


/* ==========================================================================
   RESPONSIVE VISIBILITY UTILITIES
   ========================================================================== */

/* Handset: < 768px */
@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
}

/* Tablet: 768–1023px */
@media (min-width: 768px) and (max-width: 1023px) {
  .hide-tablet { display: none !important; }
}

/* Desktop: ≥ 1024px */
@media (min-width: 1024px) {
  .hide-desktop { display: none !important; }
}


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

/* Overlay navigation positioning layer */
.overlay-navigation {
  position: absolute;
  top: 10px;
  z-index: 100;
  width: 100%;
}

/* Navigation typography (scoped to header navigation instance) */
#header-navigation .wp-block-navigation .wp-block-navigation-item__content {
  font-family: var(--wp--preset--font-family--ubuntu-sans) !important;
  font-size: var(--wp--preset--font-size--x-large) !important;
  font-weight: bold !important;
  color: var(--wp--preset--color--custom-text-schwach) !important;
}

/* Mobile layout adjustment for a specific Group container (block editor generated class) */
@media (max-width: 767px) {
  .wp-container-core-group-is-layout-3ac8fab1 {
    align-items: flex-start;
  }
}

/* Responsive navigation toggle icon sizing (WP nav breakpoint) */
@media (max-width: 781px) {
  .wp-block-navigation__responsive-container-open svg,
  .wp-block-navigation__responsive-container-close svg {
    width: 36px;
    height: 36px;
  }
}


/* ==========================================================================
   BUTTONS (BLOCK THEME)
   ========================================================================== */

/* WP Button: ensure icon + label alignment and full-width link styling */
.wp-block-button__link {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6em;
  text-align: center;
}

/* WP Button wrapper: full-width on handset */
@media (max-width: 767px) {
  .wp-block-button { width: 100%; }
}


/* ==========================================================================
   NOTICE / MARQUEE BANNER
   ========================================================================== */

/* Notice base appearance */
.site-notice {
  background-color: #2e5d50;
  color: #ffffff;
  padding: 3px 0;
  font-size: 0.95rem;
  line-height: 1.3;
}

/* Track container: viewport mask + max width stage */
.site-notice__track {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
  overflow: hidden;
  white-space: nowrap;

  /* Edge fade mask */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 6%,
    black 94%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 6%,
    black 94%,
    transparent 100%
  );
}

/* Desktop padding: keep marquee start/end away from edges */
@media (min-width: 1024px) {
  .site-notice__track {
    padding: 0 80px;
    box-sizing: border-box;
  }
}

/* Marquee text runner */
.site-notice__text {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: notice-marquee 25s linear infinite;
  will-change: transform;
}

/* Faster cadence on smaller viewports */
@media (max-width: 1023px) {
  .site-notice__text { animation-duration: 18s; }
}

/* Marquee keyframes */
@keyframes notice-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Reduced motion: disable marquee animation */
@media (prefers-reduced-motion: reduce) {
  .site-notice__text {
    animation: none;
    padding-left: 0;
    transform: none;
  }
}

/* Notice section variant: full-bleed content band */
.site-notice--section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background-color: #2e5d50;
  color: #ffffff;
  padding-top: 32px;
  padding-bottom: 32px;
}

/* Section spacing adjustments for desktop */
@media (min-width: 1024px) {
  .site-notice--section {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}


/* ==========================================================================
   LISTS (CUSTOM MARKERS)
   ========================================================================== */

/* Icon list: replace bullets with a custom SVG marker */
.list-with-icon {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
  --list-icon: url("/wp-content/uploads/2026/01/check-small.svg");
}

.list-with-icon li {
  position: relative;
  padding-left: 2.2rem;
}

.list-with-icon li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 1.4rem;
  height: 1.4rem;
  background-image: var(--list-icon);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}


/* ==========================================================================
   MEDIA (IMAGES)
   ========================================================================== */

/* Prevent rounded corners on SVGs rendered via Image block */
.wp-block-image img[src$=".svg"] {
  border-radius: 0 !important;
}


/* ==========================================================================
   MAP PLACEHOLDER (DEFERRED LOAD UI)
   ========================================================================== */

/* Placeholder container with background image */
.map-placeholder {
  position: relative;
  min-height: 400px;
  border-radius: 24px;
  overflow: hidden;
  background-image: url("/wp-content/uploads/map-placeholder.jpg");
  background-size: cover;
  background-position: center;
}

/* Backdrop blur layer (reuses background-image via inheritance) */
.map-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  filter: blur(3px);
  transform: scale(1.1);
  z-index: 1;
}

/* Foreground overlay (content + CTA) */
.map-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(237, 237, 237, 0.45);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}

/* CTA button */
.map-load {
  appearance: none;
  background: transparent;
  border: 1px solid;

  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

/* CTA interactions */
.map-load:hover,
.map-load:focus-visible {
  background-color: rgba(255, 255, 255, 0.15);
  outline: none;
}

/* Handset: full-width CTA */
@media (max-width: 767px) {
  .map-load { width: 100%; }
}


/* ==========================================================================
   CONTACT FORM 7 (FIELD + BUTTON STYLES)
   ========================================================================== */

/* Field normalization (transparent inputs) */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="date"],
.wpcf7-form textarea {
  box-sizing: border-box;
  width: 100%;

  background-color: transparent;
  border: 1px solid hsla(171, 97%, 15%, 0.5);
  border-radius: 8px;

  padding: 0.625rem 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  color: #012727;

  appearance: none;
  box-shadow: none;

  transition:
    background-color 0.15s ease,
    border-color 0.15s ease;
}

/* Submit buttons: shared base */
.wpcf7-form input[type="submit"],
.wpcf7-form input.wp-block-button__link {
  appearance: none;
  border: none;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  font-family: inherit;
  font-weight: 500;

  transition:
    background-color 0.2s ease,
    transform 0.1s ease;
}

/* Native CF7 submit */
.wpcf7-form input[type="submit"] {
  padding: 0.75rem 1.5rem 0.75rem 1.25rem;
  border-radius: 999px;

  background-color: var(--wp--preset--color--custom-hauptfarbe);
  color: #ffffff;

  font-size: 1rem;
}

/* Submit rendered as WP Button block */
.wpcf7-form input.wp-block-button__link {
  padding: calc(0.667em + 2px) calc(1.333em + 2px);
  border-radius: 9999px;

  font-size: var(--wp--preset--font-size--small);
  line-height: 1.2;
  text-align: center;

  transition:
    background-color 0.2s ease,
    transform 0.1s ease,
    filter 0.2s ease;

  width: auto;
}

.wpcf7-form input.wp-block-button__link:hover {
  filter: brightness(0.95);
}

.wpcf7-form input.wp-block-button__link:active {
  transform: translateY(1px);
  filter: brightness(0.9);
}

.wpcf7-form input.wp-block-button__link:focus-visible {
  outline: 2px solid color-mix(
    in srgb,
    var(--wp--preset--color--custom-hauptfarbe) 60%,
    transparent
  );
  outline-offset: 3px;
}

/* Handset: full-width submit button */
@media (max-width: 767px) {
  .wpcf7-form input.wp-block-button__link { width: 100%; }
}

.wpcf7-list-item {
  margin: 0px !important;
}


/* ==========================================================================
   LAYOUT ORDER OVERRIDES
   ========================================================================== */

/* Mobile re-ordering (kept at WP nav breakpoint intentionally) */
@media (max-width: 781px) {
  .arzt-adam { order: 2; }
  .arzt-boeckeler { order: 1; }
  .arzt-luerweg { order: 3; }
}


/* ==========================================
   Hinweis Banner (klein)
   ========================================== */

.site-notice {
  background-color: var(--wp--preset--color--custom-hauptfarbe);
  color: #fff;

  /* garantiert Full Width (auch in TT5 / constrained layout) */
  display: block;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);

  padding: 10px 0;
  overflow: hidden;
}

/* sichtbares Fenster max. 1300px */
.site-notice__inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;

  overflow: hidden;
  white-space: nowrap;

  /* "Wand" / Maske */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 6%,
    #000 94%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 6%,
    #000 94%,
    transparent 100%
  );
}

/* animierter Text */
.site-notice__text {
  display: inline-block;
  padding-left: 100%;
  will-change: transform;
  animation: notice-marquee 25s linear infinite;
}

@keyframes notice-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Banner: immer volle Viewport-Breite (TT5-safe) */
.site-notice {
  width: 100vw !important;
  max-width: 100vw !important;

  position: relative;
  left: 50%;
  transform: translateX(-50%);

  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Header-Wrapper: oben keinen Abstand */
#header-navigation {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Falls der Banner in einem Group-Block liegt, der Padding/Margin hat */
#header-navigation .wp-block-group {
  margin-top: 0;
}


/* Banner vorhanden → Header rutscht ganz nach oben */
body.has-site-notice .overlay-navigation {
  top: 0;
}



/* ==========================================
   Hinweis Banner (groß)
   ========================================== */

.content-notice {
  background-color: var(--wp--preset--color--custom-hauptfarbe);
  color: #ffffffe6;

  /* Full width (TT5 / constrained safe) */
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);

  padding-top: var(--wp--preset--spacing--70);
  padding-bottom: var(--wp--preset--spacing--70);
}

/* Content-Hinweis: Absatztext größer */
.content-notice__text p {
  font-size: var(--wp--preset--font-size--medium);
  line-height: 1.6;
}

.content-notice__inner {
  max-width: 1300px;
  margin: 0 auto;
  padding-right: var(--wp--preset--spacing--50);
  padding-left: var(--wp--preset--spacing--50);

  text-align: center;
}

.content-notice__headline {
  margin: 0 0 12px 0;
  color: inherit;
}

.content-notice__text {
  color: inherit;
  white-space: normal; /* wichtig: Umbruch erlauben */
}

.content-notice__text p {
  margin: 0.6em 0 0 0;
}

.content-notice__text p:first-child {
  margin-top: 0;
}


/* ==========================================================================
   BACKGROUND IMAGE SVG MOBILE ADAPTATION / CHANGE IMAGE
   ========================================================================== */

@media (max-width: 767px) {
  .background-pattern {
    background-image: url(https://b15eadc.myrdbx.io/wp-content/uploads/2026/02/background-image-mobile3.svg) !important;
  }
}