:root {
  --ph-notice-ink: #19372e;
  --ph-notice-cream: #fbf9f3;
  --ph-notice-green: #2e6250;
  --ph-notice-green-dark: #21483c;
  --ph-notice-gold: #c7a456;
  --ph-notice-red: #ad5c4b;
  --ph-notice-shadow: 0 18px 55px rgba(32, 45, 35, 0.2);
}

.ph-notice {
  position: fixed;
  z-index: 99998;
  color: var(--ph-notice-ink);
  border: 1px solid rgba(36, 49, 40, 0.13);
  background: var(--ph-notice-cream);
  box-shadow: var(--ph-notice-shadow);
  font-family: inherit;
  line-height: 1.5;
}

.ph-notice[hidden] {
  display: none !important;
}

.ph-notice--banner {
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  max-width: 1160px;
  max-height: min(42vh, 360px);
  margin-inline: auto;
  overflow: auto;
  border-radius: 18px;
}

.ph-notice--card {
  right: 22px;
  bottom: 22px;
  width: min(410px, calc(100vw - 32px));
  max-height: min(70vh, 620px);
  overflow: auto;
  border-radius: 22px;
}

.ph-notice--dialog {
  width: min(620px, calc(100vw - 32px));
  max-height: min(78vh, 720px);
  padding: 0;
  overflow: auto;
  border-radius: 24px;
}

.ph-notice--dialog::backdrop {
  background: rgba(24, 32, 27, 0.46);
  backdrop-filter: blur(3px);
}

.ph-notice__image {
  display: block;
  width: 180px;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
}

.ph-notice--card .ph-notice__image,
.ph-notice--dialog .ph-notice__image {
  width: 100%;
  height: 210px;
  min-height: 0;
}

.ph-notice__body {
  padding: 22px 62px 22px 26px;
}

.ph-notice--card .ph-notice__body,
.ph-notice--dialog .ph-notice__body {
  padding: 24px 28px 28px;
}

.ph-notice__eyebrow {
  margin: 0 0 4px;
  color: var(--ph-notice-green-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ph-notice__title {
  margin: 0 0 7px;
  color: var(--ph-notice-ink);
  font-family: inherit;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 750;
  line-height: 1.15;
}

.ph-notice__content,
.ph-notice__content p {
  margin: 0;
  color: var(--ph-notice-ink);
  font-size: 1rem;
}

.ph-notice__content p + p {
  margin-top: 0.55em;
}

.ph-notice__button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-top: 14px;
  padding: 9px 17px;
  color: #fff !important;
  border-radius: 999px;
  background: var(--ph-notice-green);
  font-weight: 750;
  text-decoration: none !important;
  transition: background 160ms ease, transform 160ms ease;
}

.ph-notice__button:hover,
.ph-notice__button:focus-visible {
  background: var(--ph-notice-green-dark);
  transform: translateY(-1px);
}

.ph-notice__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  color: var(--ph-notice-ink);
  border: 1px solid rgba(36, 49, 40, 0.18);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.94);
  cursor: pointer;
  font: 400 27px/1 system-ui, sans-serif;
}

.ph-notice--offer {
  border-top: 5px solid var(--ph-notice-gold);
}

.ph-notice--important {
  border-top: 5px solid var(--ph-notice-red);
}

body.admin-bar .ph-notice--dialog {
  margin-top: 32px;
}

@media (max-width: 680px) {
  .ph-notice--banner,
  .ph-notice--card {
    right: 10px;
    bottom: 10px;
    left: 10px;
    display: block;
    width: auto;
    max-height: 44vh;
    border-radius: 16px;
  }

  .ph-notice--banner .ph-notice__image,
  .ph-notice--card .ph-notice__image {
    display: none;
  }

  .ph-notice__body,
  .ph-notice--card .ph-notice__body,
  .ph-notice--dialog .ph-notice__body {
    padding: 18px 54px 18px 19px;
  }

  .ph-notice__title {
    font-size: 1.2rem;
  }

  .ph-notice__content,
  .ph-notice__content p {
    font-size: 0.94rem;
  }

  body.admin-bar .ph-notice--dialog {
    margin-top: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ph-notice *,
  .ph-notice *::before,
  .ph-notice *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Einschiebbares Anfrageformular */
.ph-contact-fab,
.ph-contact-open,
.ph-contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 19px;
  color: #fff;
  border: 0;
  border-radius: 999px;
  background: var(--ph-notice-green);
  box-shadow: 0 10px 30px rgba(47, 67, 34, 0.22);
  cursor: pointer;
  font: 750 0.96rem/1.2 inherit;
  text-decoration: none;
}

.ph-contact-fab:hover,
.ph-contact-fab:focus-visible,
.ph-contact-open:hover,
.ph-contact-open:focus-visible,
.ph-contact-submit:hover,
.ph-contact-submit:focus-visible {
  color: #fff;
  background: var(--ph-notice-green-dark);
}

.ph-contact-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9997;
}

.ph-contact-fab > span[aria-hidden="true"] {
  font-size: 1.1em;
}

.ph-contact-layer {
  position: fixed;
  z-index: 100000;
  inset: 0;
}

.ph-contact-layer[hidden] {
  display: none !important;
}

.ph-contact-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(24, 32, 27, 0.5);
  backdrop-filter: blur(3px);
  cursor: pointer;
}

.ph-contact-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(520px, 94vw);
  height: 100%;
  padding: clamp(28px, 5vw, 52px);
  overflow: auto;
  color: var(--ph-notice-ink);
  background: var(--ph-notice-cream);
  border-left: 8px solid #cf8872;
  box-shadow: -20px 0 65px rgba(25, 36, 29, 0.28);
  transform: translateX(102%);
  transition: transform 260ms ease;
}

.ph-contact-layer.is-open .ph-contact-panel {
  transform: translateX(0);
}

.ph-contact-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  color: var(--ph-notice-ink);
  border: 1px solid rgba(36, 49, 40, 0.18);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font: 400 29px/1 system-ui, sans-serif;
}

.ph-contact-kicker {
  margin: 0 0 5px;
  color: var(--ph-notice-green-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ph-contact-panel h2 {
  margin: 0 48px 8px 0;
  color: var(--ph-notice-ink);
  font-family: inherit;
  font-size: clamp(1.65rem, 4vw, 2.3rem);
  line-height: 1.1;
}

.ph-contact-intro {
  margin: 0 0 24px;
  color: rgba(36, 49, 40, 0.78);
}

.ph-contact-form p {
  margin: 0 0 15px;
}

.ph-contact-form label {
  display: block;
  margin-bottom: 5px;
  color: var(--ph-notice-ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.ph-contact-form input:not([type="checkbox"]),
.ph-contact-form select,
.ph-contact-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ph-notice-ink);
  border: 1px solid rgba(36, 49, 40, 0.24);
  border-radius: 10px;
  background: #fff;
  font: 500 1rem/1.35 inherit;
}

.ph-contact-form textarea {
  min-height: 108px;
  resize: vertical;
}

.ph-contact-form input:focus,
.ph-contact-form select:focus,
.ph-contact-form textarea:focus {
  border-color: var(--ph-notice-green);
  outline: 3px solid rgba(100, 123, 43, 0.18);
  outline-offset: 1px;
}

.ph-contact-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ph-contact-privacy label {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 9px;
  align-items: start;
  font-size: 0.82rem;
  font-weight: 500;
}

.ph-contact-privacy input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
}

.ph-contact-privacy a {
  color: var(--ph-notice-green-dark);
  text-decoration: underline;
}

.ph-contact-submit {
  width: 100%;
  margin-top: 5px;
}

.ph-contact-required {
  margin-top: 8px !important;
  color: rgba(36, 49, 40, 0.64);
  font-size: 0.78rem;
  text-align: center;
}

.ph-contact-honey {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.ph-contact-message {
  margin: 0 0 20px;
  padding: 13px 15px;
  border-radius: 10px;
}

.ph-contact-message--success {
  color: #285d17;
  background: #e6f4df;
}

.ph-contact-message--error {
  color: #7a2b25;
  background: #f9e3e0;
}

body.ph-contact-locked {
  overflow: hidden;
}

@media (max-width: 680px) {
  .ph-contact-fab {
    right: 12px;
    bottom: 12px;
    min-height: 44px;
    padding: 10px 15px;
    font-size: 0.9rem;
  }

  .ph-contact-panel {
    top: auto;
    bottom: 0;
    width: 100%;
    height: min(92vh, 820px);
    padding: 27px 20px 34px;
    border-radius: 20px 20px 0 0;
    transform: translateY(102%);
  }

  .ph-contact-layer.is-open .ph-contact-panel {
    transform: translateY(0);
  }

  .ph-contact-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
