:root {
  --body-bg: hsl(200deg 60% 36%);
  --main-color: hsl(340, 66%, 80%);
  --radial-gradient: radial-gradient(
    ellipse at center,
    hsl(340, 66%, 86%),
    hsl(340, 66%, 77%)
  );
  --radial-gradient-btn: radial-gradient(
    ellipse at center,
    hsl(200deg 60% 40%),
    hsl(200deg 60% 36%)
  );
  --desktop-small: 700px;
  --desktop-medium: 960px;
  --desktop-wide: 1300px;
  --light: hsl(0, 0%, 100%);
  --secondary-text-color: #b3b4b6;
  --primary-color: hsl(200deg 77% 22%);
  --btn-bg: rgba(255, 255, 255, 0.25);
  --btn-border: rgba(255, 255, 255, 0.4);
  --btn-color: hsl(200deg 77% 24%);
  --section-bg: hsl(0, 0%, 96%);
}

/* Allgemein */

*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
  padding: 0;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

::-webkit-scrollbar {
  height: 15px;
  width: 15px;
}

::-webkit-scrollbar-track {
  background: var(--section-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--main-color);
  border-radius: 100vw;
  border: 2px solid var(--section-bg);
}

ul,
ol {
  list-style: none;
}
a {
  text-decoration: none;
}

html {
  font-size: 62.5%;
}

body {
  font-family: "Poppins", sans-serif;
  font-size: 1.8rem;
  line-height: 1.3;
  color: var(--light);
  background-color: var(--body-bg);
  background-image: var(--radial-gradient-btn);
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

img,
picture,
svg {
  max-width: 100%;
  vertical-align: middle;
}

p,
li {
  text-wrap: pretty;
}

p {
  color: var(--primary-color);
  font-weight: 300;
  line-height: 1.4;
}

h1 {
  font-size: 3.125rem;
  text-transform: capitalize;
}

h1,
h2 {
  font-weight: 600;
}

h2 {
  color: hsl(200deg 77% 36%);
  font-weight: 600;
  font-style: normal;
  font-size: clamp(3rem, 6vw, 4rem);
}

h3 {
  color: hsl(200deg 77% 36%);
  font-size: 2.4rem;
  font-weight: 500;
}

.subheading {
  margin-top: 1.563rem;
  color: var(--secondary-text-color);
}

.row {
  display: flex;
}

/*Colors*/

.pink {
  color: var(--main-color);
}
.light {
  color: var(--light);
}

/*Container/ Grid*/

@media (width < 1000px) {
  .order-1 {
    order: -1;
  }
}

.w-fullsize {
  display: grid;
  justify-items: center;
  padding: 9rem 0;
  font-size: clamp(1.8rem, 3vw, 2rem);
}

.w-fullsize {
  width: 100%;
  overflow: clip;
}

.grid {
  display: grid;
  gap: 4rem;
  padding: 0 clamp(2.4rem, 3vw, 4rem);
}

.grid-container {
  display: grid;
  gap: clamp(3.6rem, 3vw, 4rem);
  width: 100%;
  max-width: var(--desktop-wide);
  padding: 0 clamp(2.4rem, 3vw, 4rem);
}

.max {
  width: 100%;
  max-width: 115rem;
}

.fr-2 {
  grid-template-columns: 1fr;
}

.align-center {
  align-content: center;
  justify-items: center;
  margin-inline: auto;
}

.grid-element {
  display: grid;
  gap: 1rem;
  text-align: center;
  justify-items: center;
  align-content: start;
}

.grid-gap-container {
  display: grid;
  gap: 3rem;
}

.margin-block-start {
  margin-block-start: clamp(9rem, 9vw, 13rem);
}

.app {
  height: 100%;
  max-height: 40rem;
  width: auto;
}

/*Margin*/

.top-margin {
  margin-top: 6rem;
}

.marge-bottom {
  margin: 0 0 6rem 0;
}

main {
  display: grid;
  align-content: start;
  justify-items: center;
}

.headline-sans {
  font-weight: 600;
  letter-spacing: 1px;
  font-style: normal;
  font-size: clamp(4.2rem, 8vw, 5.5rem);
}

/* Buttons */
button {
  font-family: inherit;
  user-select: none;
}

.btn {
  background-color: var(--main-color);
  padding: 0.9rem 2.5rem;
  border-radius: 100vw;
  margin: 0 auto;
  text-decoration: none;
  color: var(--btn-color);
  font-weight: 500;
  border: 0.25rem solid var(--main-color);
  transition: all 200ms ease-in-out;
  position: relative;
  contain: paint;
}

.btn::before {
  position: absolute;
  content: "";
  inset: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  opacity: 1;
  background-image: var(--radial-gradient);
  transition: opacity 240ms ease-in-out;
  z-index: -11;
}

.start-buttons {
  display: inline-flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.ux-btn {
  display: inline-flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.btn:hover {
  background: transparent;
  color: var(--light);
}

/* Und das muss neu rein */
.btn:hover::before {
  opacity:  0.0001;
}


.btn-main {
  background-color: var(--body-bg);
  display: inline-flex;
  width: fit-content;
  padding: 0.9rem 2.5rem;
  border-radius: 100vw;
  text-decoration: none;
  margin-block-start: 1rem;
  color: white;
  font-weight: 400;
  border: 0.25rem solid var(--body-bg);
  transition: all 200ms ease-in-out;
  position: relative;
  contain: paint;
}

.btn-main::before {
  position: absolute;
  content: "";
  inset: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  opacity: 1;
  background-image: var(--radial-gradient-btn);
  transition: opacity 240ms ease-in-out;
  z-index: -11;
}


.btn-main:hover {
  background: transparent;
  color: var(--btn-color);
}


/* Und das muss neu rein */
.btn-main:hover::before {
  opacity:  0.0001;
}

@media (min-width: 1000px) {
  .fr-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .auto {
    grid-template-columns: auto 1fr;
  }

  .gap-xl {
    gap: 6rem;
    margin: 0;
    align-content: center;
  }

  .grid-shadow-mobile {
    box-shadow: none;
  }
}

.hero {
  padding: clamp(1rem, 2.4vw, 3rem) 0;
}

.section {
  background-color: var(--section-bg);
}

.about {
  max-width: 86rem;
  gap: clamp(2rem, 3vw, 2.4rem);
}

.about h2 {
  margin: 0 0 2rem 0;
}

.about img {
  margin: 2rem 0 0 0;
}

.white-bg {
  background-color: white;
}
.grey-bg {
  background-color: hsl(0, 0%, 92%);
}

/* Styles Photoshop- Section*/

.galerie-container {
  display: grid;
  grid-auto-columns: auto;
  justify-items: center;
  align-items: center;
  grid-template-areas:
    "Cover Cover Cover Text Text Text"
    "Card-1 Card-1 Card-2 Card-2 Card-3 Card-3"
    "Card-4 Card-4 Card-5 Card-5 Card-6 Card-6";
  max-width: var(--desktop-medium);
  gap: 3rem;
  padding: 3rem;
}

@media (max-width: 768px) {
  .galerie-container {
    grid-template-areas:
      "Cover Cover"
      "Text Text"
      "Card-1 Card-2"
      "Card-3 Card-4"
      "Card-5 Card-6";
  }
}

@media (max-width: 500px) {
  .galerie-container {
    grid-template-areas:
      "Cover"
      "Text"
      "Card-1"
      "Card-2"
      "Card-3"
      "Card-4"
      "Card-5"
      "Card-6";
  }
}

.galerie-bild {
  transition: transform 0.5s;
  overflow: hidden;
  border-radius: 0.75rem;
  box-shadow: 0.313rem 0.625rem 0.875rem rgb(81, 82, 82, 0.4);
}

.Text {
  grid-area: Text;
  display: grid;
  gap: 3rem;
}

.Cover {
  grid-area: Cover;
}

.Card-1 {
  grid-area: Card-1;
}

.Card-2 {
  grid-area: Card-2;
}

.Card-3 {
  grid-area: Card-3;
}

.Card-4 {
  grid-area: Card-4;
}

.Card-5 {
  grid-area: Card-5;
}

.Card-6 {
  grid-area: Card-6;
}

/* -------------------------------------------------- */
/* Stile für die Bilder-Collage                                    */
/* -------------------------------------------------- */

.collage ul {
  max-width: 150rem;
  margin-inline: auto;
  padding: clamp(1.6rem, 3vw, 2rem);
  display: grid;
  gap: 1.3rem;
  grid-auto-columns: 1fr;
  grid-auto-rows: 1fr;
  grid-template-areas:
    "deco1 bild1 bild2 bild3 deco2"
    "bild10 bild4 bild5 bild3 ....."
    "bild10 bild6 bild7 bild8 bild9";
}

/* Basis-Stile für die Collage-Elemente (li) */
.collage ul > * {
  contain: paint;
  border-radius: 1rem;
  border: 6px solid white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  background: white;
}

/* Nicht verwendete deco-Elemente ausblenden */

.collage ul li.deco3 {
  display: none;
}

/* -------------------------------------------------- */
/* Stile für den Bild-Container mit Unterschrift (figure) */
/* -------------------------------------------------- */

.collage ul figure.image-container {
  position: relative;
  display: block;
  margin: 0;
  height: 100%;
}

.collage ul figure.image-container img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  transition: transform 0.3s ease-in-out;
  cursor: zoom-in;
  object-fit: cover;
}

.collage ul li:hover figure.image-container img {
  transform: scale(1.1);
}

/* -------------------------------------------------- */
/* Stile für das Overlay (figcaption)                 */
/* -------------------------------------------------- */

.close-btn {
  cursor: pointer;
}

.collage ul figure.image-container figcaption.overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.0001;

  transition: opacity 0.3s ease-in-out;
  text-align: center;
  pointer-events: none;
}

.collage ul li:hover figure.image-container figcaption.overlay {
  opacity: 1;
}

.collage ul figure.image-container figcaption h3 {
  margin: 0;
  color: white;
  font-weight: 600;
  font-size: 2.2rem;
  opacity:  0.0001;
  transform: scale(0.8);
  white-space: pre-wrap;
  word-break: break-word;
  text-align: center;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.collage ul li:hover figure.image-container figcaption.overlay h3 {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.collage ul li figure.image-container figcaption.overlay h3 span,
.collage ul li:hover figure.image-container figcaption.overlay h3 span {
  display: block;
  font-size: 1.6rem;
  margin-top: 0.4em;
}

/* -------------------------------------------------- */
/* Stile für das Popup-Bild                                        */
/* -------------------------------------------------- */

.w-fullsize .popup-image {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  height: 100%;
  width: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  /* hier nochmal sicherstellen dass auch die mobile navi verdeckt wird */
  z-index: 9999;
}

.w-fullsize .popup-image span.close-btn {
  position: fixed;
  top: 60px;
  right: 100px;
  font-size: 60px;
  color: white;
  cursor: pointer;
}

.w-fullsize .popup-image img {
  position: absolute;
  inset: 0;
  margin: auto;
  border: 3px solid white;
  border-radius: 5px;
  width: auto;
  max-width: 90vw;
  max-height: 90vh;
  height: auto;
  object-fit: cover;
}

/* -------------------------------------------------- */
/* Spezifische Stile für die Dekorations-Elemente     */
/* -------------------------------------------------- */

.collage ul li.deco1 {
  grid-area: deco1;
  background-color: var(--main-color);
  border-top-left-radius: 100%;
}

.collage ul li.bild1 {
  grid-area: bild1;
}

.collage ul li.bild2 {
  grid-area: bild2;
}

.collage ul li.bild3 {
  grid-area: bild3;
}

.collage ul li.deco2 {
  grid-area: deco2;
  background-color: var(--main-color);
  border-bottom-right-radius: 100%;
}

.collage ul li.bild4 {
  grid-area: bild4;
}

.collage ul li.bild5 {
  grid-area: bild5;
}

.collage ul li.bild6 {
  grid-area: bild6;
}

.collage ul li.bild7 {
  grid-area: bild7;
}

.collage ul li.bild8 {
  grid-area: bild8;
}

.collage ul li.bild9 {
  grid-area: bild9;
}

.collage ul li.bild10 {
  grid-area: bild10;
}

.collage ul li.deco3 {
  grid-area: deco3;
  background-color: var(--main-color);
  border-top-right-radius: 100%;
}

/* LAPTOP VERSION ----------------------------- */
@media (width < 1420px) {
  .collage ul {
    grid-template-areas:
      "bild1 bild2 bild3 bild10"
      "bild4 bild5 bild3 bild10"
      "bild6 bild7 bild8 bild9";
  }

  /* Nicht verwendete deco-Elemente ausblenden */

  .collage ul li.deco2,
  .collage ul li.deco3,
  .collage ul li.deco1 {
    display: none;
  }

  .collage ul figure.image-container {
    display: grid;
    grid-template-rows: 1fr auto;
    height: 100%;
  }

  .collage ul figure.image-container figcaption.overlay {
    position: absolute;
    inset: auto 0 0 0;
    background-color: rgba(0, 0, 0, 0.7);
    height: auto;
    padding: 1em 0;
    opacity: 1;
  }

  .collage ul figure.image-container figcaption {
    border: none;
  }

  /* hier muss der :hover zustand hinzugefügt werden damit nichts "zoomt" */
  .collage ul figure.image-container figcaption h3,
  .collage ul li:hover figure.image-container figcaption.overlay h3 {
    font-size: 1.5rem;
    opacity: 1;
    transform: scale(1);
  }

  .collage ul figure.image-container figcaption span {
    display: block;
    font-size: 1.6rem;
    margin-top: 0.4em;
    color: #ddd;
  }
}

/* 3-Spalten TABLET QUER */

@media (width < 1200px) {
  .collage ul {
    grid-template-areas:
      "bild1 bild2 bild3"
      "bild4 bild5 bild3"
      "bild6 bild8 bild10"
      "bild7 bild9 bild10";
  }

  /* Nicht verwendete deco-Elemente ausblenden */
  .collage ul li.deco1,
  .collage ul li.deco3 {
    display: none;
  }
}

/* 2-Spalten TABLET HOCH */

@media (width < 800px) {
  .collage ul {
    grid-template-areas:
      "bild1 bild2"
      "bild3 bild10"
      "bild3 bild10"
      "bild6 bild5"
      "bild7 bild9"
      "bild8 bild4";
  }

  /* Nicht verwendete deco-Elemente ausblenden */
  .collage ul li.deco1,
  .collage ul li.deco2 .collage ul li.deco3 {
    display: none;
  }

  /* figcaption anstelle figcaption.overlay nutzen */
  .collage ul figure.image-container figcaption {
    position: absolute;
    inset: auto 0 0 0;
    background-color: rgba(0, 0, 0, 0.7);
    height: auto;
    padding: 1em 0;
  }
}

/* -------------------------------------------------- */
/* Mobile Spezifische Stile (kleinere Bildschirme)          */
/* Geändert auf 550px */
/* -------------------------------------------------- */
@media (width < 550px) {
  .collage ul {
    /* die beiden auto-Werte sorgen dafür dass die Bilder voll dargestellt werden */
    grid-auto-columns: auto;
    grid-auto-rows: auto;
    grid-template-areas:
      "bild1"
      "bild2"
      "bild3"
      "bild4"
      "bild5"
      "bild6"
      "bild7"
      "bild8"
      "bild9"
      "bild10";
  }

  /* Dekorationen auf kleinen Bildschirmen ausblenden */
  .collage ul li.deco1,
  .collage ul li.deco2,
  .collage ul li.deco3 {
    display: none;
  }

  /* text unter dem bild platzieren */
  .collage ul figure.image-container figcaption {
    position: relative;
    background-color: rgba(0, 0, 0, 0.8);
  }

  /* aspect-ratio: auto; zeigt das Bild in voller Größe */
  .collage ul li figure.image-container img,
  .collage ul li:hover figure.image-container img {
    transform: scale(1);
    cursor: default;
    aspect-ratio: auto;
  }
}

/* Styles Grusskarten- Section*/

.greetingcard-container {
  display: grid;
  grid-auto-columns: 1fr;
  justify-items: center;
  align-items: center;
  grid-template-areas:
    "Card1 Text"
    "Card2 Card3";
  max-width: var(--desktop-medium);
  gap: 3rem;
  padding: 3rem;
}

@media (max-width: 680px) {
  .greetingcard-container {
    grid-template-areas:
      "Text"
      "Card1"
      "Card2"
      "Card3";
  }
}

.Card1 {
  grid-area: Card1;
}
.Card2 {
  grid-area: Card2;
}
.Card3 {
  grid-area: Card3;
}

.home-text h2 {
  font-size: 20px;
  text-transform: capitalize;
  font-weight: 300;
  margin: 0 0 30px;
}
.home-text .btn {
  margin: 0;
}
.home-img .img-box {
  max-width: 360px;
  background-color: var(--btn-bg);
  border-radius: 50%;
  margin: auto;
  z-index: -1;
}
.home-img .img-box img {
  width: 100%;
  border-radius: 50%;
  box-shadow: 0 0 0 16rem hsla(0, 0%, 100%, 0.026),
    44rem -10rem 0 6rem hsla(0, 0%, 100%, 0.026),
    -42rem 16rem 0 6rem hsla(0, 0%, 100%, 0.026),
    -106rem -13rem 0 19rem hsla(0, 0%, 100%, 0.026);
}

@media (max-width: 999px) {
  .home-text,
  .home-img {
    width: 100%;
  }
  .home-text {
    text-align: center;
  }
  .home-img {
    order: -1;
  }
  .home-img .img-box {
    max-width: 300px;
  }
  .home-text .btn {
    margin: 0;
  }
  .btn-main,
  .ux-btn {
    margin: 0 auto;
  }
}

@media (max-width: 575px) {
  .header ul li a {
    font-size: 35px;
  }
}

/* Kontakt */

.contact {
  display: grid;
  justify-items: center;
  gap: 3rem;
}

.contact .btn-main {
  margin: 0;
}

.me {
  width: clamp(24rem, 30vw, 30rem);
  aspect-ratio: 1/1;
  border-radius: 50%;
}

/* Footer */

footer {
  display: grid;
  padding: 3rem 2rem;
  text-align: center;
  margin-bottom: 6rem;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  width: 100%;
}

.footer-list {
  margin-inline: auto;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 1rem;
}

.footer-list .list-item {
  display: inline-block;
  padding: 1rem;
}
.links {
  margin-inline: auto;
}

/* Social-Media Icons */

.footer-list .list-item img {
  width: 44px;
  transition: transform 360ms ease;
}
.footer-list .list-item img:is(:hover, :focus-visible) {
  transform: scale(1.2);
}

.to-top {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: fit-content;
  aspect-ratio: 1/1;
  margin-top: 2rem;
  transition: background-color 360ms ease;
}
.to-top:is(:hover, :focus-visible) {
  background-color: rgba(255, 255, 255, 0.6);
}
.to-top svg {
  fill: white;
  width: 5rem;
  height: auto;
  transition: fill 360ms ease;
}

.to-top:is(:hover, :focus-visible) svg {
  fill: var(--body-bg);
}
.center {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
