/* Bereinigte Fassung für die bereitgestellte index.php.
   Gestaltung und eigenständige Animationen bleiben erhalten.
   Maus-Parallax ist in script.js entfernt. */

:root {
  --paper: #faf9f6;
  --hero: #efe9e3;
  --hero-light: #fcf8f4;
  --ink: #30352f;
  --muted: #73776e;
  --line: #d8d9cf;
  --accent: #7b676c;
}

@font-face {
  font-display: swap;
  font-family: "Oooh Baby";
  font-style: normal;
  font-weight: 400;
  src: url("./assets/fonts/oooh-baby-v4-latin-regular.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Zen Kaku Gothic Antique";
  font-style: normal;
  font-weight: 400;
  src: url("./assets/fonts/zen-kaku-gothic-antique-v19-latin-regular.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Zen Kaku Gothic Antique";
  font-style: normal;
  font-weight: 700;
  src: url("./assets/fonts/zen-kaku-gothic-antique-v19-latin-700.woff2") format("woff2");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 35px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.75 system-ui,
    -apple-system,
    "Zen Kaku Gothic Antique",
    sans-serif;
  background-color: var(--hero-light);
  font-family: "Zen Kaku Gothic Antique";
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #796478;
  outline-offset: 6px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  font-weight: 400;
  line-height: 1.12;
}

h1 {
  font-family: "Oooh Baby";
  font-size: clamp(46px, 5.3vw, 75px);
}

h2 {
  font-size: clamp(44px, 5vw, 30px);
  margin-top: 20px;
  line-height: 1.4em;
}

em {
  font-weight: 400;
  color: var(--accent);
}

.container {
  width: min(1200px, calc(100% - 112px));
  margin-inline: auto;
}

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.ambient {
  position: absolute;
  inset: -20%;
  z-index: -2;
  background: radial-gradient(ellipse at 25% 30%, #f7e6e780, transparent 48%),
    radial-gradient(ellipse at 85% 55%, #dce3d590, transparent 45%);
  animation: ambient 18s ease-in-out infinite alternate;
}

.hero-main {
  display: grid;
  grid-template-columns: 1.14fr 1fr;
  align-items: center;
  gap: 70px;
  min-height: 100vh;
  padding-block: 100px 100px;
}

.hero-wrapper {
  position: relative;
  z-index: 2;
  animation: intro 1.1s 0.1s both;
}

.hero-wrapper p {
  font-size: clamp(16px, 4vw, 22px);
  margin-top: 20px;
}

.hero-wrapper h2 {
  font-size: clamp(22px, 5vw, 35px);
}

.hero-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 35px;
  flex-wrap: wrap;
}

.hero-links a {
  align-items: center;
  display: flex;
  transition: all .4s;
  min-width: 200px;
  justify-content: center;
}

.hero-links a:hover,
.hero-links a:focus,
.hero-links a:active {
  background-color: #1a1a1a;
  color: white;
}

.hero-links a svg {
  width: 21px !important;
  height: 21px !important;
  margin-left: 10px;
  transition: all .4s;
}

.hero-links a:hover svg,
.hero-links a:focus svg,
.hero-links a:active svg {
  fill: white;
}

.logo-stage {
  position: relative;
  z-index: 1;
}

.logo {
  position: relative;
  width: 100%;
  animation: logoIn 1.3s 0.15s both;
}

.logo-orbit {
  position: absolute;
  inset: 0 -11%;
  border-radius: 50%;
  transform: rotate(-22deg);
  animation: breathe 10s ease-in-out infinite;
}

.assortment {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 50px 35px;
  position: relative;
  z-index: 2;
}

.assortment-item {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: center;
  animation: intro 1s both;
}

.assortment-item + .assortment-item {
  border-left: 1px solid #fff;
}

.assortment-item:nth-child(2) {
  animation-delay: 0.15s;
}

.assortment-item:nth-child(3) {
  animation-delay: 0.3s;
}

.assortment-item:nth-child(4) {
  animation-delay: 0.45s;
}

.assortment-item span {
  font-family: "Oooh Baby";
  font-size: 40px;
  letter-spacing: -0.035em;
}

.assortment-item img {
  width: 39px;
  height: 39px;
  object-fit: contain;
  animation: spin 40s linear infinite;
  transition: scale 0.5s;
}

.assortment-item:nth-child(even) img {
  animation-direction: reverse;
}

.assortment-item:hover img {
  scale: 1.2;
}

.petal {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.petal img {
  animation: float 9s ease-in-out infinite;
}

.petal-one {
  width: 90px;
  left: -28px;
  top: 15%;
  opacity: 0.6;
  filter: blur(0.3px);
}

.petal-two {
  width: 62px;
  right: 4%;
  top: 4%;
  opacity: 0.8;
}

.petal-two img {
  animation-delay: -3s;
  animation-duration: 11s;
}

.petal-three {
  width: 110px;
  left: 45%;
  bottom: 18%;
  opacity: 0.18;
}

.petal-three img {
  animation-delay: -5s;
  animation-duration: 13s;
}

.visit {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 105px;
  padding-block: 105px 90px;
}

.visit-intro h2 {
  position: relative;
  z-index: 1;
}

.flower-garden {
  display: flex;
  align-items: center;
  height: 80px;
  gap: 30px;
  margin-top: 35px;
}

.flower-garden img {
  width: 60px;
  animation: float 8s ease-in-out infinite;
  transform-origin: center bottom;
}

.flower-garden img:nth-child(2) {
  width: 60px;
  animation-delay: -3s;
}

.flower-garden img:nth-child(3) {
  width: 60px;
  animation-delay: -5s;
}

.info-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 30px;
  padding: 25px 0;
  border-top: 1px solid var(--line);
}

.info-row:first-child {
  padding-top: 0;
  border: 0;
}

.info-row p {
  line-height: 1.8;
}

footer {
  background-color: var(--hero);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-block: 20px;
  color: var(--muted);
  font-size: 15px;
  position: relative;
}
footer .container{
  z-index: 1;
  flex-wrap: wrap !important;
}
footer .dotted-line {
  border-bottom: none;
}

footer div {
  display: flex;
  gap: 25px;
  justify-content: space-between;
  align-items: center;
}

footer button {
  border: none;
  background: none;
  padding: 5px 0;
  cursor: pointer;
  font-size: 15px;
}

footer span {
  align-content: center;
}

footer button:hover {
  color: var(--ink);
}

.skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
  background: white;
  padding: 10px;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s,
    transform 0.9s;
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

dialog {
  width: min(680px, calc(100% - 32px));
  max-height: 86dvh;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 0;
  box-shadow: 0 25px 100px #2224;
}

dialog[open] {
  animation: modalIn 0.3s ease both;
}

dialog::backdrop {
  background: #242b25ba;
  backdrop-filter: blur(6px);
}

.close {
  border: 0;
  background: none;
  font-size: 30px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  line-height: 1;
  position: absolute;
  right: 25px;
  top: 30px;
}

.modal-content {
  padding: 0 35px 40px;
}

.modal-content h2 {
  font-size: 44px;
  overflow-wrap: anywhere;
}

.modal-content h3 {
  font: 600 15px/1.5 system-ui,
    sans-serif;
  margin: 24px 0 0px;
}

.modal-content p {
  font-size: 14px;
  margin-top: 10px;
  overflow-wrap: anywhere;
}

.modal-content ul {
  padding-left: 15px;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-8deg);
  }
  50% {
    transform: translateY(-18px) rotate(10deg);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes intro {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes logoIn {
  from {
    opacity: 0;
    transform: translateY(25px) rotate(-4deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes breathe {
  50% {
    transform: rotate(-12deg) scale(1.045);
  }
}

@keyframes ambient {
  to {
    transform: translate(3%, -3%) scale(1.1);
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1000px) {
  .container {
    width: calc(100% - 64px);
  }

  .hero h1 {
    font-size: 55px;
  }

  .visit {
    gap: 50px;
  }

  .info-row {
     gap: 20px;
  }

  .assortment-item span {
    font-size: 21px;
  }

  .assortment-item img {
    width: 30px;
    height: 30px;
  }

  .assortment-item {

    gap: 10px;
  }
}

@media (max-width: 991px) {
  #besuch > .visit-intro{
    margin-bottom: 35px;
    display: block;
  }
  .hero-links a{
    min-width: 140px;
  }
  .hero-main {
    grid-template-columns: 1fr;
  }
  .hero-wrapper{
    padding: 50px 0;
    max-width: 500px;
    margin: 0 auto;
  }
  .hero-main > .logo-stage {
    order: -1;
  }

  .container {
    width: calc(100% - 44px);
  }
.logo{
  max-width: 250px;
  margin: 0 auto;
}
  .hero-main {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-top: 62px;
    padding-bottom: 35px;
    min-height: 0;
  }

  .hero-wrapper {
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(40px, 8.9vw, 60px);
  }

  .hero-links {
    justify-content: center;
    gap: 23px;
    margin-top: 45px;
  }

  .logo-orbit {
    inset: 0 -8%;
  }

  .petal-one {
    width: 60px;
    left: -30px;
    top: 5%;
  }

  .petal-two {
    width: 45px;
    right: -10px;
    top: 35%;
  }

  .petal-three {
    width: 75px;
    left: 0;
    bottom: 23%;
  }

  .assortment {
    grid-template-columns: repeat(2, 1fr);
    padding-block:  18px;
    gap: 0;
  }

  .assortment-item {
    justify-content: center;
    padding: 15px 10px;
    gap: 12px;
  }

  .assortment-item span {
    font-size: 22px;
  }

  .assortment-item:nth-child(3) {
    border-left: 0;
  }

  .assortment-item:nth-child(n + 3) {
    border-top: 1px solid #fff;
  }

  .assortment-item img {
    width: 30px;
    height: 30px;
  }

  .visit {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-block: 55px 45px;
  }

  .visit-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
  }

  .visit h2 {
    font-size: clamp(40px, 7vw, 55px);
  }

  .flower-garden {
    position: relative;
    width: 85px;
    height: 100px;
    margin: 0;
    flex-shrink: 0;
  }

  .flower-garden img {
    position: absolute;
    width: 41px !important;
    left: 0;
    bottom: 0;
  }

  .flower-garden img:nth-child(2) {
    width: 54px !important;
    left: 27px;
    top: 7px;
    bottom: auto;
  }

  .flower-garden img:nth-child(3) {
    width: 32px !important;
    left: 50px;
    bottom: -2px;
  }

  .info-row {
     gap: 18px;
    padding-block: 21px;
  }
 

 
  footer {
    padding-block: 21px;
     gap: 10px;
  }

  footer > div {
    gap: 16px;
  }

 
  .modal-content {
    padding: 0 23px 30px;
  }

  .modal-content h2 {
    font-size: 39px;
  }
}

@media (max-width: 360px) {
  .container {
    width: calc(100% - 32px);
  }

  .hero h1 {
    font-size: 39px;
  }

  .assortment-item {
    padding-inline: 6px;
    gap: 8px;
  }

  .assortment-item span {
    font-size: 20px;
  }

  .info-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .visit-intro {
    gap: 5px;
  }

  .visit h2 {
    font-size: 39px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

.bg-darker {
  background-color: var(--hero);
  position: relative;
}

.dotted-line {
  border-top: 2px dashed white;
  border-bottom: 2px dashed white;
  position: absolute;
  top: 6px;
  bottom: 6px;
  width: 100%;
}

.hero-links a {
  border: 1px solid black;
  padding: 10px 20px;
}

.hero .petal-four {
  width: clamp(60px, 7vw, 105px);
  left: 29%;
  top: 5%;
  opacity: 0.34;
}

.hero .petal-four img {
  animation: background-flower-float 12s ease-in-out infinite;
  animation-delay: -4s;
}

.hero .petal-five {
  width: clamp(75px, 9vw, 135px);
  right: 1%;
  bottom: 18%;
  opacity: 0.28;
}

.hero .petal-five img {
  animation: background-flower-float 15s ease-in-out infinite;
  animation-delay: -8s;
}

.hero .hero-main,
.hero .bg-darker {
  position: relative;
  z-index: 1;
}

#besuch {
  position: relative;
  isolation: isolate;
}

#besuch > .visit-intro,
#besuch > .visit-content {
  position: relative;
  z-index: 1;
}

@keyframes background-flower-float {
  0%,
  100% {
    transform: translateY(0) rotate(-9deg);
  }
  50% {
    transform: translateY(-16px) rotate(10deg);
  }
}

@media (max-width: 680px) {
  .hero .petal-four {
    width: 52px;
    left: 5%;
    top: 27%;
    opacity: 0.25;
  }

  .hero .petal-five {
    width: 75px;
    right: -15px;
    bottom: 20%;
    opacity: 0.24;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero .petal-four img,
  .hero .petal-five img {
    animation: none;
  }
}

.m-t-0 {
  margin-top: 0;
}

#besuch .visit-content > .info-row {
  position: relative;
  border-top: none;
}

#besuch .visit-content > .info-row + .info-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    #bdb3a9 0,
    #bdb3a9 5px,
    transparent 5px,
    transparent 11px
  );
  opacity: 0.65;
}
a,
footer button{
  transition: all .4s;
}
a:hover,
footer button:hover{
  color: #618e98;
}
@media(max-width: 500px){
    .assortment {
    grid-template-columns: repeat(1, 1fr);
    padding-block:  18px;
    gap: 0;
  }
  .assortment-item + .assortment-item{
    border-left: none;
  }
  .assortment-item:nth-child(1){
    border-bottom: 1px solid #fff;
  }
  .visit-intro{
    flex-wrap: wrap;
  }
    .logo {
    max-width: 190px;
   }
   .flower-garden img{
    width: 31px !important;
   }
   .flower-garden img:nth-child(2){
    width: 40px !important;
   }
   .flower-garden img:nth-child(3){
    width: 25px !important;
   }
}
@media(max-width: 460px){
  .info-row{
    grid-template-columns: 1fr;
  }
    .visit h2 {
    font-size: clamp(30px, 4vw, 39px);
    margin-bottom: 10px;
  }
  footer > div{
    gap: 5px !important;
  }
  footer div{
    gap: 10px;
  }
}
@media(max-width: 350px){
  .hero-links a{
    width: 100%;
    max-width: 250px;
  }
}
.flower-garden {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 30px;

  width: auto;
  height: auto;
  margin-top: 35px;
  flex-shrink: 0;
}

.flower-garden img,
.flower-garden img:nth-child(2),
.flower-garden img:nth-child(3) {
  position: static;
  inset: auto;

  width: 60px;
  height: auto;
  flex: 0 0 auto;
}

/* Tablet und kleinere Bildschirme */
@media (max-width: 991px) {
  .flower-garden {
    gap: 20px;
  }

  .flower-garden img,
  .flower-garden img:nth-child(2),
  .flower-garden img:nth-child(3) {
    width: 45px;
  }
}

/* Smartphones */
@media (max-width: 500px) {
  .flower-garden {
    gap: 12px;
  }

  .flower-garden img,
  .flower-garden img:nth-child(2),
  .flower-garden img:nth-child(3) {
    width: 32px;
  }
  .modal-content h2{
    font-size: 30px;
  }
  .close{
    top: 25px;
  }
}
.close {
  display: grid;
  place-items: center;
  border-radius: 50%;
  cursor: pointer;

  transition:
    background-color 0.25s ease,
    transform 0.2s ease;
}

.close svg {
  display: block;
  fill: currentColor;
  transform-origin: center;
  transition: transform 0.3s ease;
}

/* Maus und Tastatur */
.close:hover,
.close:focus-visible {
  background-color: #efe9e3;
}

.close:hover svg,
.close:focus-visible svg {
  transform: rotate(90deg);
}

/* Leichter Druckeffekt beim Klicken */
.close:active {
  transform: scale(0.92);
}

/* Reduzierte Bewegung berücksichtigen */
@media (prefers-reduced-motion: reduce) {
  .close,
  .close svg {
    transition: none;
  }

  .close:hover svg,
  .close:focus-visible svg,
  .close:active {
    transform: none;
  }
}