/* ======================== FONTS ======================== */

@font-face {
    font-family: 'Bookmania';
    src: url('fnt/bookmania-regular.woff') format('woff');
}

@font-face {
    font-family: 'ABKStuttgart';
    src: url('fnt/ABKStuttgartWeb-Regular.woff2') format('woff2');
}

@keyframes wiggle {
  0%, 100% {
    transform: scale(var(--scale)) rotate(0deg);
  }
  25% {
    transform: scale(var(--scale)) rotate(2deg);
  }
  50% {
    transform: scale(var(--scale)) rotate(-1deg);
  }
  75% {
    transform: scale(var(--scale)) rotate(1.5deg);
  }
}

/* ======================== CURSOR ======================== */
@media (pointer: fine) {
  body.custom-cursor-enabled * {
    cursor: none !important; /* masque le curseur système */
  }

  
  .custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px; /* adapte à la taille de ton PNG */
    height: 32px;
    background-image: url("img/custom_cursor/cursor.svg");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
  }

  .cursor-visible {
    opacity: 1;
  }

  .cursor-pointer {
    background-image: url("img/custom_cursor/pointer.svg");
  }

    .cursor-active {
    background-image: url("img/custom_cursor/pointer-click.svg");
    transform: scale(0.9);
  }
}


/* ======================== ROOT VARS ======================== */

:root {
    --rose: rgb(255, 0, 0); /* Einheitliche Rosenfarbe */
}

/* ======================== RESET ======================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'ABKStuttgart', sans-serif;
    scroll-behavior: smooth;
    color: #000;
    line-height: 1.5;
    /* Scrollbar in Markenfarbe */
    scrollbar-color: var(--rose) #ffffff;
}

/* fixed background logo */

body::before {
    content: "";
    position: fixed;
    inset: 0;
    margin: auto;
    width: 45vw;
    height: 45vh;
    background: url("img/titles/logo.svg") center/contain no-repeat;
    pointer-events: none;
    z-index: -1;
}

/* ======================== GLOBAL BUTTON ======================== */

.button-pill {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border: 1.5px solid var(--rose);
    border-radius: 9999px;
    background: #fff;
    cursor: pointer;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out, box-shadow 0.3s;
    font-family: 'Bookmania', Georgia, serif;
    font-size: 1.4rem;
    text-align: center;
    position: relative;
    color: var(--rose);
}

.button-pill + .button-pill{
    margin-top: .05rem;
}

.button-pill:hover {
    background: var(--rose);
    color: #fff;
}

.button-pill:focus-visible {
    outline: 2px dashed currentColor;
    outline-offset: 4px;
}

.button-pill .cta {
    display: block;
}
/*TRANSLATION*/

#translate-btn {
  background: none;
  border: none;
  color: red;
  font-family: 'ABKStuttgart', sans-serif;
  font-size: 13pt;
  cursor: pointer;
  margin-top: 10px;
  padding: 0;
  text-decoration: underline;
}

#translate-btn:hover {
  color: black;
}


/* =============================================================== */
/* 0 — explanation enno                                            */
/* =============================================================== */

.projekte {
  position: fixed;
  bottom: 50px;
  right: 20px;
  width: 300px; /* ou adapte à la taille de tes images */
  height: auto;
  z-index: 99;
  cursor: pointer;
  border: #00000000;
  background-color: rgba(255, 0, 0, 0); /* pour test visuel */
}

.umfrage .img-normal{
  width:150px;
}
/* Superposition des images */
.projekte img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%; /* ou dimension fixe si souhaité */
  height: auto;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.projekte .img-normal {
  opacity: 1;
  pointer-events: auto;
}

.projekte .img-hover {
  opacity: 0;
  cursor:  pointer;
}

.projekte:hover .img-normal {
  opacity: 0;
  cursor:  pointer;
}

.projekte:hover .img-hover {
  opacity: 1;
  cursor:  pointer;
}

/* Texte cliquable */
.projekte-text {
  font-family: "ABKStuttgart";
  font-size: 12pt;
  display: none;
  position: absolute;
  max-width: 400px;
  max-height: 600px; /* définit la hauteur max visible */
  overflow-y: auto;  /* active le scroll vertical si besoin */
  overflow-x: hidden; /* empêche le scroll horizontal */
  right: 0;
  bottom: 100%;
  transform: translateY(-40px);
  padding: 15px;
  background-color: white;
  color: #ff0000;
  border: 1px solid #ff0000;
  border-radius: 5px;
  z-index: 999;
  white-space: normal; /* <-- très important pour autoriser le retour à la ligne */
  box-sizing: border-box;
  cursor:default;
}

.language-toggle{
position:relative;
  top:0px;
  right:0px;
  z-index: 19999;
}

.language-toggle button {
  background-color: rgb(255, 255, 255); 
  border: 0px solid #00000000;        
  color: #ff0000;                     
  font-size: 15px; 
  padding: 0%;
  font-family: 'ABKStuttgart', sans-serif;                   
  cursor: pointer;          
}


/* =============================================================== */
/* 1 — SURVEY AREA                                                 */
/* =============================================================== */

.survey-svg-button {
  position: relative;
  display: block;
  background: rgba(0, 0, 0, 0);
  border: none;
  width: 300px; 
  height: auto;   
  min-height:15%; 
  margin: 0 auto;
  cursor: pointer;
  padding: 0;
  z-index: 999;
}

.survey-svg-button img {
  position:absolute;
  width: 100%;
  height: auto;
  display: block;
  padding:10px;
  margin: 10px;
  top: 5px;
  left: 0;
}

.survey-svg-button .img-hover {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.survey-svg-button:hover .img-normal {
  opacity: 0;
  cursor: pointer;
}

.survey-svg-button:hover .img-hover {
  opacity: 1;
  cursor: pointer;
}

#survey-wrapper {
  position: fixed;
  inset: 0;
  display: none; /* affiché quand actif */
  justify-content: center;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.8);
  z-index: 1000;
}

.survey-content {
  position: relative;
  width: 95vw;
  height: 90vh;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  overflow: hidden;
}


#survey-wrapper.open {
  max-height: 95vh;
  border-bottom: #ff0000 3px dotted;
}

#survey-btn{
  padding-top: 0px;
  padding-bottom: 0px;
}

#survey-wrapper.open + #rose-head #survey-btn {
  display: none;
}

#survey-wrapper iframe {
  width: 100%;
  min-width: 315px;
  max-width: 100%;
  box-sizing: border-box;
  width: 100%;
  height: 100vh;
  border: none;
  display: block;
}

/* close button inside survey */

#survey-close {
  position: absolute;
  bottom: -2.75vh;
  right: 5rem;

  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1.5px solid var(--rose);
  background: white;
  color: #ff0000;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}


#survey-close:hover {
  background: var(--rose);
  color: #ffffff;
}

#survey-wrapper:not(.open) #survey-close {
  opacity: 0;
  pointer-events: none;
}

/* =============================================================== */
/* 2 — ROSE BLOOM SECTION                                          */
/* =============================================================== */

#rose-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}


#rose-head {
  height: 100vh;
  display: flex;
  justify-content: center; /* ✔ rose centrée */
  align-items: center;
  position: relative;      /* ← important */
}


#rose-head.overlap {
  margin-top: -14rem;
}


/* Bloom-Stack ohne JS */

.bloom-stack {
  position: relative;
  
}

.bloom-stack img {
  width: min(30vw, 600px);
  height: auto;
  display: block;
  transform: translateX(0%);  /*z. B. 5% nach links schieben */
  z-index: 99;
}

.bloom-stack::after {
  content: "";
  position: absolute;
  top: 100%;               /* ← commence EXACTEMENT sous la fleur */
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: calc(100vh + 100%);           /* première longueur visible */
  background: url("img/rose_design/stem-4.svg") center top repeat-y;
  background-size: 90px auto;

  z-index: 0;             /* derrière la fleur */
  pointer-events: none;
}
/* =============================================================== */
/* 3 — STEM & APP CARDS                                            */
/* =============================================================== */

#stem {
  position: relative;
  background: url("img/rose_design/stem-thorn.svg") center top repeat-y;
  background-size: 90px auto;
  padding-bottom: 12rem;
  margin-top:-25px ;
}

.app-card {
    position: relative;
    width: 80vw;
    max-width: 950px;
    height: clamp(420px, 75vh, 800px);
    margin:10rem auto 0;
    border: 1.5px solid var(--rose);
    background: #fff;
    display: flex;
    flex-direction: column;
    border-radius: 54px;
    overflow: visible;
}

.card-frame {
    flex: 1;
    overflow: hidden;
    border-radius: 54px;
}

.card-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.app-cta {

    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
}
.app-cta:hover {

    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.4s ease; /* ici la transition */
}



/* =============================================================== */
/* 4 — FOOTER                                                      */
/* =============================================================== */

footer {
    border-top: 3px dotted var(--rose);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 0;
    min-height: 50vh;
    background: #fff;
    position: relative;
}

footer::before {
    content:"";
    position:absolute;
    top: -2px;                        /* 1 px nach oben → verdeckt Border */
    left:50%;
    transform:translateX(-50%);       /* zentriert */
    width:80px;                       /* gleiche Breite wie repeat-Stamm */
    aspect-ratio:1/3;                 /* Bild = 80 px × 240 px */
    background:url("img/rose_design/stem-end.svg") center/contain no-repeat;
    z-index:10;                        /* liegt VOR der roten Linie */
    pointer-events:none;}

footer .credits {
    position: absolute;
    bottom: 2.5rem; /* etwas höher, damit darunter Platz für die Links ist */
    left: 50%;
    transform: translateX(-50%);
    color: var(--rose);
    font-family: 'ABKStuttgart', sans-serif;
    font-size: 1rem;
    text-align: center;
}

footer .legal-links {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
}

footer .legal-links a {
    color: var(--rose);
    text-decoration: none;
}

footer .legal-links a:hover {
    text-decoration: underline;
}

/* combine wiggle + scale via transform */

.watering-link {
  position: absolute;
  bottom: 30vh;
  left: -5vw;
  transform: translateY(20%);
  height: 350px;
  width: auto; /* selon ta taille d’image */
  z-index: 998;
  display: inline-block; /* pour éviter soucis de positionnement */
}

.watering-link:hover {
  animation-play-state: paused;
}

.footer-watering {
  position: absolute;
  top: 0;
  left: 0;
  height: 350px;
  transition: opacity 0.3s ease;
  display: block;
}

.img-hover {
  opacity: 0;
  pointer-events: none;
}

.watering-link.hovered .img-hover {
  opacity: 1;
}

.watering-link.hovered .img-normal {
  opacity: 1;
}

/**SEEDS*/
.seed-group {
  position: absolute;
  left: 20vw;
  bottom: 27vh;
  display: inline-block;
  cursor: pointer;
  transform-origin: center center;
  --scale: 1; /* valeur par défaut */
  animation: wiggle 0.5s ease-in-out infinite;
  transition: transform 0.3s ease;
}


/* Appliquer le scale via une variable */
.seed-group.hovered {
  --scale: 1.5;
  animation-play-state: paused;
}

/* Style commun pour toutes les images de graines */
.seed-group .seed {
  width: 105px;
  height: auto;
  transition: opacity 0.3s ease;
  position: absolute;
  top: 0;
  left: 0;
}

/* Affiche uniquement la version normale au début */
.seed-group .img-hover {
  opacity: 0;
  pointer-events: none;
}

/* Survol = on montre l’image hover et on cache la normale */
.seed-group.hovered .img-hover {
  opacity: 1;
}

.seed-group.hovered .seed:not(.img-hover) {
  opacity: 0;
}

/* =============================================================== */
/* MODAL FOR FULL APPS                                             */
/* =============================================================== */

#modal {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    z-index: 100;
}

#modal.active {
    display: flex;
}

.modal-box {
    width: 90vw;
    height: 90vh;
    border: 1px dotted var(--rose);
    border-radius: 54px;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: visible;
    position: relative;
}

.modal-content {
    flex: 1;
    border-radius: inherit;
    overflow: hidden;
    display: flex;
}

.modal-content iframe {
    flex: 1;
    width: 100%;
    height: 100%;
    border: none;
}

#close-btn {
    position: absolute;
    bottom: 0rem;
    left: 80%;
    transform: translateX(-50%) translateY(50%);
    width: 2.5rem;
    height: 2.5rem;
    border: 1.5px solid var(--rose);
    border-radius: 50%;
    background: #fff;
    font-size: 2rem;
    line-height: 2rem;
    text-align: center;
    cursor: pointer;
    color: var(--rose);
    transition: background 0.3s, color 0.3s;
    z-index: 101;
}

#close-btn:hover {
    background: var(--rose);
    color: #fff;
}

/* =============================================================== */
/* AKA LOGO                                                        */
/* =============================================================== */
.corner-fixed-link {
  position: fixed;
  bottom: 50px;
  left: 20px;
  width: 90px;
  height: auto;
  z-index: 50;
  cursor: pointer;
  display: inline-block;
  /* pour que les images se superposent */
  position: fixed;
}

.corner-fixed-link img {
  position: absolute;
  width: 90px;
  height: auto;
  top: 0;
  left: 0;
  transition: opacity 0.3s ease;
}

.img-hover {
  opacity: 0;
}

.corner-fixed-link:hover .img-hover {
  opacity: 1;
}

.corner-fixed-link:hover .img-normal {
  opacity: 0;
}

/*SEEDBAG*/

.seedbag-wrapper {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 99;
}
.seedbag {
  position: fixed;
  top: 100px;
  left: 6vw;
  width: 90px; /* même taille que les images */
  height: 90px;
  z-index: 50;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center; /* ✅ centre les images dans le conteneur */
  animation: wiggle 0.7s ease-in-out infinite;
  transform-origin: center center; /* ✅ pivot au milieu du bloc */
  --scale: 2.2;
}

.seedbag img {
  position: absolute;
  width: 90px;
  height: auto;
  top: 0;
  left: 0;
  transition: opacity 0.1s ease-in-out, transform 0.3s ease-in-out;
}

.img-hover {
  opacity: 0;
}

.seedbag:hover {
  animation-play-state: paused;
}

.seedbag:hover .img-hover {
  opacity: 1;
  transform: rotate(30deg) scale(1.05);
}

.seedbag:hover .img-normal {
  opacity: 0;
}

.close-button {
  position: absolute;
  top: 20px; /* ajustable selon ton SVG */
  right: -38px;
  width: 26px;
  height: 26px;
  background: white;
  border: 1.5px solid red;
  color: red;
  border-radius: 50%;
  font-size: 16px;
  line-height: 22px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'ABKStuttgart', sans-serif;
  z-index: 999;
}

.close-button:hover {
  background: red;
  color: white;
}

/**/

.svg-button {
  display: inline-block;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  border: none;
  width: 600px;
  min-height:20%; 
  margin: 0 auto;      /* si tu veux centrer le bouton */
  cursor: pointer;
  padding: 0;          /* retire padding par défaut */
  outline: 2px solid rgba(255, 0, 0, 0); /* pour visualiser */
  background-color: #711c1c00;
  
}

.svg-button img {
  position: absolute;    
  object-fit: contain;
  top:0;
  left:0;
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none; /* clic = bouton, pas image */
  transition: opacity 0.5s ease;
   
}

.svg-button:hover .img {
  opacity: 0;
}

.svg-button .img-hover {
  opacity: 0;
}

/* Au hover, on montre l’image hover et on masque l’autre */
.svg-button:hover .img-hover {
  opacity: 1;}
/* =============================================================== */
/* MEDIA QUERIES                                                   */
/* =============================================================== */

@media (max-width: 600px) {

.projekte {
  position: fixed;
  bottom: 20px;
  right: 10px;
  width: 170px; /* ou adapte à la taille de tes images */
}

.projekte-text {
  font-size: 11pt;
  width: 90vw !important;
  max-width: 90vw !important;
  max-height: 60vh; /* définit la hauteur max visible */
  overflow-y: auto;  /* active le scroll vertical si besoin */
  overflow-x: hidden; /* empêche le scroll horizontal */
  right: 0;
  bottom: 100%;
  transform: translateY(-40px);
  padding: 15px;
  padding-top: 10px;
  z-index: 9999;
}

.language-toggle{
  position:relative;
  top:0px;
  right:0px;
  z-index: 1000;
}

.language-toggle button {
  background-color: rgb(255, 255, 255);   /* Fond transparent */
  border: 0px solid #00000000;           /* Bordure noire */
  color: #ff0000;                      /* Texte en noir */
  font-size: 15px; 
  padding: 0%;
  font-family: 'ABKStuttgart', sans-serif;                 /* Taille de police */                 /* Espacement interne */
  cursor: pointer;                  /* Le curseur devient une main lorsqu'on survole */      /* Transition fluide */
}

.bloom-stack img {
 width: 80vw;
}


.bloom-stack::after {
  content: "";
  position: absolute;

  top: 100%;               /* ← commence EXACTEMENT sous la fleur */
  left: 50%;
  transform: translateX(-50%);

  width: 90px;
  height: calc(100vh + 100%);           /* première longueur visible */

  background: url("img/rose_design/stem-2.svg") center top repeat-y;
  background-size: 70px auto;

  z-index: -1;             /* derrière la fleur */
  pointer-events: none;
}
#stem{
  background-size:70px auto;
  margin-top:-25vh;
}

.seed-group .seed {
  width: 80px;
}

.seed-group {
  position: absolute;
  left: 30vw;
  bottom: 35vh;
  animation: wiggle 1.5s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.seedbag {
  top: 75%;
  left: 5vw;
  width: 10px; /* même taille que les images */
  --scale: 1.5;
  z-index:98;
}

.seedbag-wrapper {
  top: 20px;
  left: 20px;
}

/* style du bouton "close" */
.close-button {
  top:70vh;
  left:37vw;
  width: 28px;
  height: 28px;
  background: white;
  border: 1.2px solid red;
  color: red;
  border-radius: 50%;
  font-size: 18px;
  line-height: 22px;
  text-align: center;
  font-family: 'ABKStuttgart', sans-serif;
  z-index:100;
}

.close-button:hover {
  background: red;
  color: white;
}


/*AKA queries*/

.corner-fixed-link {

  bottom: 5vh;
  left: 2vh;
  width: 30vh;
}
.corner-fixed-link img {

  width: 40px;
}

/*footer media queries*/

footer {
  padding: 0.5rem 0;
    min-height: 60vh;
 
}
footer::before {
        /* zentriert */
    width:60px;                      
}

footer .credits {
  font-size: 0.75rem;
  text-align: center;
}

.footer-watering {
  position: absolute;
  bottom: 350px;
  left: -60px;
  transform: translateY(20%);
  height: 200px;
  z-index: 500;
}

/*APP cards queries*/

.app-card {
    width: 90vw;
    height: 60vh;
}
.app-card {
  border: 2px solid red; /* temporaire */
}


.app-cta {
  bottom: -4rem;
}

.svg-button {
  display: flex;      /* important */
  background: transparent;
  border: none;
  width: 350px;        /* ou la largeur souhaitée */
  margin: 0 auto;      /* si tu veux centrer le bouton */
  cursor: pointer;
  padding: 0;          /* retire padding par défaut */
}

.svg-button img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none; /* clic = bouton, pas image */
}

.svg-button:hover .img-normal {
  opacity: 0;
}

.svg-button .img-hover {
  opacity: 0;
}

/* Au hover, on montre l’image hover et on masque l’autre */
.svg-button:hover .img-hover {
  opacity: 1;
}

.survey-svg-button {
  width: 200px;
  min-height:15%; 
}
/* closing buttons*/

#survey-close {
position: absolute;
right: 1.5vh;
width: 2.3rem;
height: 2.3rem;
font-size: 1.7rem;
line-height: 2.1rem;
}

.survey-content {
  position: relative;
  width: 100vw;
  height: 90vh;
}


#survey-wrapper.open {
  max-height: 90vh;
}
}

@media (max-width: 380px) {

.button-pill {
font-size: 1.0rem;
padding: 0.4rem 2rem;
text-align: center;
line-height: 0.9;
}

.button-pill .designer { 
font-size: 0.65rem;
margin-top: 0.25rem;
}

body::before {
   
    width: 80vw;
    height: 60vh;  
}}

#survey-wrapper iframe {
  height: 90vh;
}


@media (min-width: 700px) and (max-width: 950px) {
  /* Ton CSS ici */

  /*APP cards queries*/

 .app-card {
    width: 90vw;
    height: 60vh;
  }
    .app-card {
  border: 2px solid red; /* temporaire */
  }

 .app-cta {
    bottom: -5rem;
  }

 .footer-watering {
  position: absolute;
  bottom: 300px;
  left: -30px;
  transform: translateY(20%);
  height: 250px;
  z-index: 999;
  }
}

@media (min-width: 950px) and (max-width: 2050px){
    #stem{
    position: relative;
    background: url(img/rose_design/stem-thorn.svg) center top repeat-y;
    background-size: 90px auto;
    padding-bottom: 12rem;
    margin-top: -25px;

    /* NEU: gleicher Wert wie bisheriger Card-Bottom-Abstand */
    padding-bottom:12rem;          /* = 128px */
  }
}