/* Pia Horneffs neue Bildmarke: Originalmotiv, in verschiedenen Größen
   ohne Neuzeichnung verwendet. Das bestehende Seitendesign bleibt erhalten. */
:root {
  --brand-forest: #1a5152;
  --brand-clay: #c77855;
  --brand-warm: #f9f6f3;
}

/* Auf dunklem Untergrund erhält das dunkle Pferde-Signet eine helle Fläche. */
.brand-emblem {
  display: grid;
  place-items: center;
  flex: 0 0 61px;
  width: 61px;
  height: 61px;
  overflow: hidden;
  background: #fbf8f3;
  border: 1px solid rgba(204, 172, 140, .52);
  border-radius: 19px;
  box-shadow: 0 10px 27px rgba(0, 0, 0, .16);
  transition: transform .5s cubic-bezier(.18, .79, .25, 1), box-shadow .4s;
}
.brand-emblem img,
.brand .brand-emblem img,
.admin-brand .brand-emblem img {
  width: 100%;
  height: 100%;
  padding: 3px;
  object-fit: contain;
  filter: none;
}
.brand:hover .brand-emblem,
.admin-brand:hover .brand-emblem {
  transform: translateY(-2px) rotate(-4deg);
  box-shadow: 0 16px 35px rgba(0, 0, 0, .24);
}
.brand-text { gap: 4px; }
.brand-text strong {
  font-size: .77rem;
  line-height: 1.25;
  letter-spacing: .065em;
  font-weight: 700;
}
.brand-text small {
  font-size: .52rem;
  letter-spacing: .105em;
  opacity: .82;
}
.footer-emblem {
  flex-basis: 108px;
  width: 108px;
  height: 108px;
  border-radius: 30px;
  box-shadow: 0 19px 35px rgba(0, 0, 0, .2);
}
.footer-emblem img { padding: 6px; }
.footer-brand { align-items: center; }
.footer-brand strong { font-size: .86rem; letter-spacing: .08em; }
.footer-brand span { max-width: 370px; line-height: 1.85; }
.admin-brand .brand-emblem { display: grid; flex-basis: 55px; width: 55px; height: 55px; border-radius: 17px; }
.admin-brand .brand-emblem img { object-fit: contain; }
.admin-brand strong { letter-spacing: .065em; }
.thanks-emblem {
  display: inline-grid;
  place-items: center;
  width: 102px;
  height: 102px;
  padding: 4px;
  margin-bottom: 20px;
  border-radius: 25px;
  background: #fbf8f3;
  box-shadow: 0 20px 45px rgba(0, 0, 0, .28);
}
.thanks-emblem img { width: 100%; height: 100%; object-fit: contain; }

/* Neues Intro: der Weg zeichnet sich, die Menschen finden zusammen,
   dann setzt sich der neue Schriftzug nacheinander in Bewegung. */
.intro-overlay {
  background: #f8f5f1;
  color: #205252;
}
.intro-photo {
  z-index: -4;
  background-position: center 56%;
  filter: grayscale(1) contrast(.75) brightness(1.6);
  opacity: .055;
  animation: brandBackdrop 6s ease-out both;
}
.intro-glow {
  z-index: -3;
  background:
    radial-gradient(ellipse 39% 45% at 35% 42%, rgba(202, 119, 85, .11), transparent 80%),
    radial-gradient(ellipse 42% 50% at 69% 34%, rgba(40, 112, 99, .12), transparent 82%),
    linear-gradient(140deg, #fdfaf6, #f4f0e9 55%, #faf7f2);
  animation: brandGlow 5.4s ease-in-out infinite alternate;
}
.intro-light-sweep {
  z-index: -2;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .63), rgba(205, 166, 130, .09), transparent);
  filter: blur(40px);
  animation: introSweep 4.6s .15s cubic-bezier(.2, .55, .2, 1) both;
}
.intro-particles {
  z-index: -1;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(circle, rgba(29, 85, 83, .34) 1px, transparent 1.5px),
    radial-gradient(circle, rgba(196, 113, 76, .28) 1.5px, transparent 2px);
  background-size: 157px 183px, 243px 229px;
  animation: brandDust 5.2s .3s ease-in-out both;
}
.intro-orbits { z-index: -1; }
.intro-orbits i {
  top: 41%;
  width: min(72vw, 620px);
  border-color: rgba(31, 93, 86, .19);
  animation-name: introOrbitEntry, introOrbit;
}
.intro-orbits i:nth-child(2) { border-color: rgba(191, 119, 83, .18); }
.intro-orbits i:nth-child(3) { border-color: rgba(31, 93, 86, .14); }
.intro-orbits i:nth-child(4) { border-color: rgba(191, 119, 83, .11); }
.intro-brand-trace {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  opacity: .62;
}
.intro-brand-trace path {
  fill: none;
  stroke: #b2c1ac;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1800;
  stroke-dashoffset: 1800;
  animation: brandPath 4.2s .12s cubic-bezier(.22, .76, .3, 1) forwards;
}
.intro-brand-trace path:nth-child(2) {
  stroke: rgba(199, 120, 85, .48);
  stroke-width: 1.4;
  animation-delay: .62s;
}
.intro-brand-sparks { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.intro-brand-sparks i {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid #c77855;
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 0 9px rgba(199, 120, 85, .07);
  animation: brandSpark 4.2s ease-out forwards;
}
.intro-brand-sparks i:nth-child(1) { left: 17%; top: 28%; animation-delay: .1s; }
.intro-brand-sparks i:nth-child(2) { left: 78%; top: 20%; border-color: #326960; animation-delay: .42s; }
.intro-brand-sparks i:nth-child(3) { left: 83%; top: 73%; width: 8px; height: 8px; animation-delay: .73s; }
.intro-brand-sparks i:nth-child(4) { left: 24%; top: 82%; border-color: #326960; width: 7px; height: 7px; animation-delay: 1.06s; }
.intro-brand-sparks i:nth-child(5) { left: 62%; top: 14%; width: 6px; height: 6px; animation-delay: 1.44s; }
.intro-center {
  z-index: 2;
  width: min(97%, 1240px);
  padding: 65px 20px 75px;
}
.intro-logo-frame {
  width: clamp(218px, 26vh, 305px);
  opacity: 0;
  filter: blur(17px);
  transform: translateY(60px) scale(.53) rotate(-10deg);
  animation: brandLogoArrive 1.8s .22s cubic-bezier(.13, .85, .2, 1) forwards;
}
.intro-logo-frame:before {
  inset: -25px;
  border: 1px dashed rgba(35, 98, 91, .3);
  box-shadow: none;
  animation: brandRing 11s linear infinite;
}
.intro-logo-frame:after {
  inset: -47px;
  border-color: rgba(199, 120, 85, .15);
  animation: introLogoHalo 2s 1.05s ease-out both;
}
.intro-logo-frame img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 20px rgba(27, 76, 72, .10));
}
.intro-eyebrow {
  order: 0;
  color: #a65d43;
  font-size: .68rem;
  letter-spacing: .25em;
  margin: 24px 0 12px;
  animation-delay: 1.15s;
}
.intro-eyebrow span { color: #3b776d; padding: 0 12px; }
.intro-name {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  column-gap: .33em;
  row-gap: .035em;
  font-size: clamp(2.65rem, 5.2vw, 4.6rem);
  line-height: 1.09;
  letter-spacing: -.047em;
  white-space: normal;
  text-shadow: none;
  color: #1f5350;
}
.intro-name span { transform: translateY(42px) scale(1.07); animation: brandWordArrive 1.05s cubic-bezier(.2, .8, .16, 1) forwards; }
.intro-name span:nth-child(1) { animation-delay: 1.46s; }
.intro-name span:nth-child(2) { animation-delay: 1.73s; }
.intro-name span:nth-child(3) { animation-delay: 1.98s; }
.intro-name em { color: #bb7152; font-style: normal; }
.intro-line {
  width: min(280px, 55vw);
  height: 2px;
  margin: 27px 0 22px;
  background: linear-gradient(90deg, transparent, #c77855 35%, #306b65 70%, transparent);
  box-shadow: none;
  animation-delay: 2.22s;
}
.intro-signature {
  color: #2c605b;
  max-width: 830px;
  margin: 0;
  font-size: clamp(.8rem, 1.32vw, 1.12rem);
  font-weight: 400;
  letter-spacing: .035em;
  line-height: 1.7;
  animation-delay: 2.65s;
}
.intro-signature span { color: #b6694c; padding: 0 5px; }
.intro-skip {
  color: #255b54;
  background: rgba(255, 255, 255, .72);
  border-color: rgba(36, 87, 78, .28);
  border-radius: 24px;
  backdrop-filter: blur(12px);
}
.intro-skip:hover,
.intro-skip:focus-visible { color: #184c47; background: #fff; border-color: #b97155; }
.intro-loading { height: 4px; background: rgba(44, 100, 89, .13); }
.intro-loading span {
  background: linear-gradient(90deg, #1f6260, #ba7353, #d6bca1);
  animation: introLoad 5.55s linear forwards;
}
@keyframes brandBackdrop { from { transform: scale(1.19) translateX(-2%); } to { transform: scale(1.03) translateX(1.5%); } }
@keyframes brandGlow { from { opacity: .64; transform: scale(.97); } to { opacity: 1; transform: scale(1.06); } }
@keyframes brandDust { 0% { opacity: 0; transform: translateY(25px); } 35% { opacity: .35; } 100% { opacity: .18; transform: translateY(-25px); } }
@keyframes brandPath { 0% { stroke-dashoffset: 1800; opacity: 0; } 18% { opacity: .75; } 100% { stroke-dashoffset: 0; opacity: .65; } }
@keyframes brandSpark { 0% { opacity: 0; transform: translate(-12px, 25px) scale(.4); } 28% { opacity: .75; } 80% { opacity: .65; } 100% { opacity: 0; transform: translate(17px, -25px) scale(1.35); } }
@keyframes brandLogoArrive { 0% { opacity: 0; filter: blur(17px); transform: translateY(60px) scale(.53) rotate(-10deg); } 65% { opacity: 1; filter: blur(0); } 100% { opacity: 1; filter: blur(0); transform: translateY(0) scale(1) rotate(0); } }
@keyframes brandRing { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes brandWordArrive { 0% { opacity: 0; filter: blur(13px); transform: translateY(42px) scale(1.07); } 100% { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); } }

@media (max-width: 1200px) {
  .brand-text strong { font-size: .7rem; letter-spacing: .03em; }
  .brand-text small { font-size: .47rem; letter-spacing: .07em; }
  .brand-emblem { width: 53px; height: 53px; flex-basis: 53px; border-radius: 16px; }
  .footer-emblem { width: 100px; height: 100px; flex-basis: 100px; border-radius: 28px; }
}
@media (max-width: 700px) {
  .brand-emblem { flex-basis: 46px; width: 46px; height: 46px; border-radius: 14px; }
  .brand-text strong { font-size: .63rem; letter-spacing: .018em; }
  .brand-text small { font-size: .44rem; letter-spacing: .02em; }
  .intro-center { padding: 78px 20px 82px; }
  .intro-logo-frame { width: clamp(155px, 27vh, 216px); }
  .intro-orbits i { top: 40%; }
  .intro-eyebrow { font-size: .58rem; letter-spacing: .17em; margin-top: 25px; }
  .intro-name { font-size: clamp(2.45rem, 10.1vw, 3.7rem); max-width: 540px; line-height: 1.08; }
  .intro-line { margin: 22px 0 17px; }
  .intro-signature { max-width: 380px; font-size: .8rem; line-height: 1.7; }
  .intro-signature span { padding: 0 2px; }
  .intro-brand-trace { opacity: .32; }
  .footer-emblem { flex-basis: 90px; width: 90px; height: 90px; border-radius: 23px; }
  .footer-brand strong { font-size: .76rem; }
  .footer-brand span { font-size: .73rem; }
}
@media (max-width: 420px) {
  .brand { gap: 8px; }
  .brand-emblem { flex-basis: 41px; width: 41px; height: 41px; border-radius: 12px; }
  .brand-text strong { font-size: .515rem; letter-spacing: 0; }
  .brand-text small { display: none; }
  .header-cta { padding-inline: 8px; font-size: .6rem; }
  .intro-center { padding-inline: 13px; }
  .intro-eyebrow { letter-spacing: .1em; }
  .intro-name { font-size: clamp(2.1rem, 10.4vw, 2.65rem); }
  .intro-logo-frame { width: clamp(140px, 24vh, 180px); }
  .intro-brand-sparks i:nth-child(2),
  .intro-brand-sparks i:nth-child(4) { display: none; }
}
@media (max-height: 700px) {
  .intro-center { padding-block: 42px; }
  .intro-logo-frame { width: clamp(125px, 22vh, 195px); }
  .intro-eyebrow { margin: 15px 0 8px; }
  .intro-name { font-size: clamp(2.2rem, 6vh, 3.8rem); }
  .intro-line { margin: 15px 0 12px; }
  .intro-signature { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-emblem { transition: none; }
  .brand:hover .brand-emblem,
  .admin-brand:hover .brand-emblem { transform: none; }
}

/* Ein durchgehender, ruhiger Bewegungsfaden vom Intro bis zum Kontakt. */
main > .ambient-section { position: relative; isolation: isolate; }
main > .ambient-section > .container { position: relative; z-index: 2; }
main > .ambient-section > .ambient-flow {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.35s ease, transform 4s ease;
  --flow-green: rgba(38, 94, 83, .21);
  --flow-clay: rgba(178, 111, 81, .59);
}
main > .ambient-section.flow-visible > .ambient-flow {
  opacity: 1;
  transform: translateY(0);
}
main > .ambient-section.ambient-dark > .ambient-flow {
  --flow-green: rgba(183, 214, 192, .25);
  --flow-clay: rgba(231, 166, 130, .62);
}
main > .ambient-section.ambient-photo > .ambient-flow { opacity: 0; }
main > .ambient-section.ambient-photo.flow-visible > .ambient-flow { opacity: .55; }
.ambient-flow-base,
.ambient-flow-spark {
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
}
.ambient-flow-base {
  stroke: var(--flow-green);
  stroke-width: 2;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 2.3s cubic-bezier(.18, .68, .24, 1);
}
.ambient-flow-base-2 { stroke: var(--flow-clay); stroke-width: 1.3; opacity: .46; transition-delay: .42s; }
.ambient-section.flow-visible .ambient-flow-base { stroke-dashoffset: 0; }
.ambient-flow-spark {
  stroke: var(--flow-clay);
  stroke-width: 3;
  stroke-dasharray: 100 900;
  stroke-dashoffset: 1000;
  opacity: .7;
  animation: ambientFlowTravel 13s linear infinite;
  animation-play-state: paused;
}
.ambient-flow-spark-2 {
  stroke: var(--flow-green);
  stroke-width: 3.4;
  stroke-dasharray: 160 840;
  animation-duration: 19s;
  animation-direction: reverse;
  animation-delay: -12s;
}
.ambient-section.flow-visible .ambient-flow-spark { animation-play-state: running; }
@keyframes ambientFlowTravel { to { stroke-dashoffset: 0; } }

/* Sichtbare, aber zurückhaltende Design-Signatur im Footer. */
.footer-studio {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(28px, 6vw, 100px);
  position: relative;
  padding: 35px clamp(25px, 5vw, 75px);
  margin: 0 0 15px;
  overflow: hidden;
  border: 1px solid rgba(157, 194, 171, .24);
  border-radius: 3px;
  background: linear-gradient(112deg, rgba(49, 97, 83, .51), rgba(29, 69, 61, .53) 57%, rgba(93, 72, 61, .23));
}
.footer-studio:before {
  content: '';
  position: absolute;
  inset: auto -8% -95px 20%;
  height: 200px;
  border: 1px solid rgba(207, 157, 131, .28);
  border-radius: 50%;
  transform: rotate(-8deg);
  pointer-events: none;
}
.footer-studio-caption { z-index: 1; position: relative; }
.footer-studio-caption > span {
  display: block;
  margin-bottom: 10px;
  color: #dcb9a2;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .22em;
}
.footer-studio-caption strong {
  display: block;
  color: #fbf6eb;
  font: 400 clamp(1.5rem, 2.5vw, 2.7rem)/1.2 var(--serif);
  letter-spacing: -.04em;
}
.footer-studio-caption p { margin: 9px 0 0; color: #b9cfc3; font-size: .84rem; }
.footer-studio-logo {
  display: block;
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
  width: clamp(180px, 24vw, 270px);
  padding: 4px;
  transition: transform .35s ease, filter .35s ease;
}
.footer-studio-logo img {
  width: 100%;
  height: auto;
  /* Originaldatei ist freigestellt; Neon wird zum ruhigen Marken-Grün. */
  filter: hue-rotate(-65deg) saturate(.58) brightness(.94);
}
.footer-studio-logo:hover { transform: translateY(-4px) scale(1.025); filter: drop-shadow(0 8px 15px rgba(186, 219, 193, .15)); }
.footer-studio-logo:focus-visible { outline: 2px solid #dbb593; outline-offset: 5px; }
@media (max-width: 700px) {
  main > .ambient-section > .ambient-flow { opacity: 0; }
  main > .ambient-section.flow-visible > .ambient-flow { opacity: .67; }
  main > .ambient-section.ambient-photo.flow-visible > .ambient-flow { opacity: .36; }
  .footer-studio { align-items: flex-start; flex-direction: column; padding: 28px 26px; gap: 12px; }
  .footer-studio-logo { width: min(235px, 85%); align-self: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  main > .ambient-section > .ambient-flow { opacity: 1; transform: none; transition: none; }
  main > .ambient-section.ambient-photo > .ambient-flow { opacity: .35; }
  .ambient-flow-base { stroke-dashoffset: 0; transition: none; }
  .ambient-flow-spark { display: none; }
  .footer-studio-logo { transition: none; }
  .footer-studio-logo:hover { transform: none; }
}
