/* Ausschließlich auf der Kontaktseite geladen. */
.site-header > .contact-wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  color: #443346;
  font-family: "Snell Roundhand", "Segoe Script", "Apple Chancery", cursive;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
}
.site-header > .contact-wordmark .contact-wordmark-title {
  color: inherit;
  font-family: inherit;
  font-size: 2rem;
  font-weight: 400;
  line-height: .84;
  white-space: nowrap;
}
.site-header > .contact-wordmark .contact-wordmark-heart { margin-left: 2px; font-size: .94em; }
.site-header > .contact-wordmark small {
  display: block;
  margin: 3px 0 0 4px;
  color: inherit;
  font-family: var(--sans);
  font-size: .43rem;
  font-weight: 600;
  letter-spacing: .2em;
  line-height: 1;
  white-space: nowrap;
}
.contact-body .site-header,
.contact-body footer { position: relative; z-index: 3; }
.contact-page { position: relative; z-index: 2; isolation: isolate; padding-top: 55px; }
.contact-bubble-field { position: fixed; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.contact-bubble {
  position: absolute;
  bottom: var(--bottom);
  left: var(--left);
  width: var(--size);
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, .88);
  border-radius: 50%;
  background: radial-gradient(circle at 27% 23%, rgba(255, 255, 255, .98) 0 4%, rgba(255, 233, 249, .42) 16%, rgba(194, 208, 255, .25) 46%, rgba(221, 190, 246, .14) 61%, rgba(255, 255, 255, 0) 74%);
  box-shadow: inset 5px 6px 10px rgba(255, 255, 255, .86), inset -5px -6px 12px rgba(160, 142, 218, .32), 0 0 22px rgba(244, 183, 218, .66), 0 0 34px rgba(181, 203, 255, .28);
  opacity: 0;
  animation: contact-bubble-float var(--duration) ease-in-out var(--delay) infinite;
}
.contact-panel { z-index: 2; }
@keyframes contact-bubble-float {
  0% { opacity: 0; transform: translate3d(0, 24px, 0) rotate(0deg); }
  12% { opacity: .82; }
  42% { opacity: .64; transform: translate3d(var(--mid-x), var(--mid-travel), 0) rotate(var(--turn)) scale(1.04); }
  72% { opacity: .52; transform: translate3d(var(--end-x), var(--late-travel), 0) rotate(-9deg) scale(.96); }
  90% { opacity: .2; }
  100% { opacity: 0; transform: translate3d(var(--end-x), var(--travel), 0) rotate(-14deg) scale(.9); }
}
@keyframes contact-glimmer { 0%, 100% { opacity: .08; transform: scale(.8); } 50% { opacity: .48; transform: scale(1.15); } }
.contact-bubble::before { position: absolute; top: 14%; left: 20%; width: 17%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .96); box-shadow: 0 0 8px rgba(255, 255, 255, .92); content: ""; }
.contact-bubble::after { position: absolute; right: 16%; bottom: 17%; width: 25%; height: 13%; border-radius: 50%; border-top: 2px solid rgba(236, 197, 255, .65); content: ""; transform: rotate(-32deg); }
.contact-sparkle { position: absolute; bottom: var(--bottom); left: var(--left); z-index: 1; color: rgba(255, 244, 215, .92); font-size: 15px; line-height: 1; opacity: 0; text-shadow: 0 0 12px rgba(255, 222, 167, .94), 0 0 20px rgba(204, 197, 255, .6); animation: contact-sparkle-float var(--duration) ease-in-out var(--delay) infinite; }
@keyframes contact-sparkle-float { 0%, 100% { opacity: 0; transform: translateY(14px) rotate(0deg) scale(.7); } 28%, 70% { opacity: .86; } 50% { transform: translateY(-44px) rotate(20deg) scale(1.4); } }
.contact-panel {
  position: relative;
  max-width: 1180px;
  min-height: 520px;
  margin: 0 auto;
  padding: clamp(44px, 6vw, 76px);
  overflow: hidden;
  border: 1px solid #eadde1;
  border-radius: 30px;
  background: linear-gradient(112deg, #fffdf9 0%, #fff9f6 54%, #faedf3 100%);
  box-shadow: 0 14px 34px rgba(110, 75, 92, .08);
}
.contact-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 252, 248, .08), rgba(255, 250, 248, .58) 48%, rgba(251, 239, 245, .55));
  pointer-events: none;
}
.contact-figures {
  position: absolute;
  left: 2.5%;
  bottom: 5%;
  z-index: 0;
  width: min(47%, 510px);
  height: auto;
  max-width: none;
  object-fit: contain;
  opacity: .28;
  filter: saturate(.68) brightness(1.28) blur(.35px);
  -webkit-mask-image: radial-gradient(ellipse 105% 88% at 24% 57%, #000 30%, rgba(0, 0, 0, .84) 56%, transparent 100%);
  mask-image: radial-gradient(ellipse 105% 88% at 24% 57%, #000 30%, rgba(0, 0, 0, .84) 56%, transparent 100%);
  pointer-events: none;
}
.contact-content { position: relative; z-index: 1; width: min(51%, 540px); margin-left: auto; text-align: center; }
.contact-content h1 { margin: 0 0 22px; font-size: clamp(2.8rem, 4.8vw, 4rem); }
.contact-greeting { margin: 0 0 34px; color: #74656d; font-size: 1.25rem; line-height: 1.5; }
.contact-copy { color: var(--muted); font-size: 1.12rem; line-height: 1.72; }
.contact-copy p { margin: 0; }
.contact-email {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  width: 100%;
  margin: 38px auto 0;
  padding: 15px 22px;
  border: 1px solid #dec9d3;
  border-radius: 18px;
  background: rgba(255, 255, 255, .7);
  color: var(--accent);
  font-size: 1.04rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-email:hover { text-decoration: underline; }
.contact-email span[aria-hidden="true"] { font-size: 1.35rem; line-height: 1; }
.contact-closing { margin: 48px 0 0; color: #a66b83; font-family: "Snell Roundhand", "Segoe Script", "Apple Chancery", cursive; font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-style: italic; line-height: 1.4; }
.contact-heart { margin: 10px 0 0; color: #b3738d; font-family: var(--serif); font-size: 2.15rem; line-height: 1; }
@media (max-width: 720px) {
  .site-header > .contact-wordmark .contact-wordmark-title { font-size: 1.7rem; }
  .site-header > .contact-wordmark small { font-size: .36rem; }
  .contact-page { padding-top: 36px; }
  .contact-bubble:nth-child(n + 8),
  .contact-sparkle:nth-child(n + 21) { display: none; }
  .contact-panel { min-height: 0; padding: 42px 26px 38px; border-radius: 22px; }
  .contact-panel::before { background: rgba(255, 250, 248, .72); }
  .contact-figures { left: -4%; bottom: 2%; width: 108%; height: auto; opacity: .13; }
  .contact-content { width: 100%; }
  .contact-content h1 { margin-bottom: 18px; }
  .contact-greeting { margin-bottom: 28px; font-size: 1.1rem; }
  .contact-copy { font-size: 1rem; line-height: 1.68; }
  .contact-email { margin-top: 30px; padding: 14px 16px; font-size: .94rem; }
  .contact-closing { margin-top: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-bubble,
  .contact-sparkle { animation: none; }
  .contact-bubble { opacity: .12; }
}

/* Nur die normale Kontaktseite: vorhandene Inhalte umbrechen bei schmaleren
   Breiten, ohne eine zweite mobile Fassung zu erzeugen. */
@media (max-width: 1100px) {
  .contact-page-only .site-header { gap: 18px; }
  .contact-page-only .site-header nav { gap: 12px 22px; flex-wrap: wrap; justify-content: flex-end; }
  .contact-page-only .contact-panel { min-height: 0; padding: 54px 46px; }
  .contact-page-only .contact-content { width: min(55%, 540px); }
}

@media (max-width: 900px) {
  .contact-page-only .site-header { justify-content: center; padding-block: 16px; }
  .contact-page-only .site-header > .contact-wordmark { margin-inline: auto; }
  .contact-page-only .site-header nav { flex: 1 0 100%; justify-content: center; gap: 10px 18px; }
  .contact-page-only .contact-page { padding-top: 38px; padding-bottom: 68px; }
  .contact-page-only .contact-panel { padding: 46px 32px 42px; }
  .contact-page-only .contact-panel::before { background: rgba(255, 250, 248, .72); }
  .contact-page-only .contact-figures { left: -4%; bottom: 2%; width: 108%; height: auto; opacity: .13; }
  .contact-page-only .contact-content { width: 100%; max-width: 540px; margin-inline: auto; }
  .contact-page-only .contact-content h1 { margin-bottom: 18px; }
}

@media (max-width: 520px) {
  .contact-page-only .site-header { gap: 12px; }
  .contact-page-only .site-header > .contact-wordmark .contact-wordmark-title { font-size: 1.55rem; }
  .contact-page-only .site-header > .contact-wordmark small { margin-left: 2px; font-size: .33rem; letter-spacing: .16em; }
  .contact-page-only .site-header nav { gap: 8px 14px; font-size: .84rem; }
  .contact-page-only .contact-page { padding-top: 28px; padding-bottom: 52px; }
  .contact-page-only .contact-panel { padding: 38px 18px 34px; border-radius: 20px; }
  .contact-page-only .contact-content h1 { font-size: clamp(2.2rem, 11vw, 2.8rem); }
  .contact-page-only .contact-greeting { margin-bottom: 24px; font-size: 1.05rem; }
  .contact-page-only .contact-copy { font-size: 1rem; line-height: 1.64; }
  .contact-page-only .contact-email { gap: 9px; margin-top: 28px; padding: 13px 12px; font-size: .92rem; }
  .contact-page-only .contact-email > span:last-child { min-width: 0; overflow-wrap: anywhere; }
  .contact-page-only .contact-closing { margin-top: 34px; }
}
