/* === Cantimplore Art: Vollständig optimiertes CSS für Mobil & Desktop === */

/* ----------- Basis-Layout & Reset ----------- */
body {
  font-family: 'Indie Flower', cursive;
  margin: 0;
  padding: 0;
  background-image: url("bilder/hintergrund.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: #f9f9f9;
  cursor: url('bilder/mein-cursor.cur'), auto;
}

a,
button,
input[type="button"],
input[type="submit"],
label,
[role="button"],
[onclick] {
  cursor: url('bilder/click-cursor.cur'), pointer;
}

/* Fallback für Browser ohne .cur-Support */
@supports not (cursor: url('bilder/mein-cursor.cur')) {
  body {
    cursor: url('bilder/mein-cursor.png') 0 0, auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    cursor: auto;
  }
}
@media (pointer: fine) {
  a, button, [onclick] {
    cursor: url('bilder/click-cursor.png'), pointer;
  }
}

h1 {
  display: flex;
  justify-content: center;
  align-items: center;
  /*margin-top: 2rem; */
  margin: 0; /* kill default spacing, test*/
}


/* Optional: Regenbogen-Animation */
@keyframes rainbow-move {
  0% { background-position: 0% }
  100% { background-position: 100% }
}


/* ----------- Regenbogen-Text ----------- */
.rainbow-text {
  background: linear-gradient(90deg, red, orange, yellow, green, blue, indigo, violet);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
  display: inline-block;
}

/* ----------- Footer ----------- */
footer {
  text-align: center;
  font-size: 15px;
  padding: 1rem 0;
  border-top: 1px solid #ccc;
  margin-top: 3rem;
}

.footer-links {
  margin-top: 0.5rem;
}

.footer-links a {
  color: #444;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #666;
}

/* ----------- Header ----------- */
header {
  background: transparent;
  padding: 0 40px 60px 40px;  /* vorher: 0 40px 10px 40px */
  position: relative;  /*Changed*/
  /*border-bottom: 2px solid #ccc;*/
  border-bottom: none;
  margin-top: 0;
  height: 320px;
  z-index: 10000;

}


/* Header Background */
.header-background {
  position: absolute;
  /*top: 50px;   */
  top: 0px;     
  left: 0;
  width: 100%;
 /* height: 425px; */  
  height: 300px;    
  background: linear-gradient(to bottom, #a8c8ff, #dce9ff);
  border-radius: 80px 80px 80px 80px;
  z-index: 0;
}


/* Mobil: Hintergrund entfernen */
@media (max-width: 768px) {
  .header-background {
    background: none !important;
    border-radius: 0; /* Ecken abrunden entfernen */
  }
}

/* Mobil: Header weiter runter */
@media (max-width: 768px) {

  header {
    height: auto;
    padding: 0 10px;
  }

  .site-logo {
    margin: 0.5rem auto 0.3rem auto;
  }

  .site-title {
    margin-top: 0.2rem !important;
  }
}


/* Sitetitle Font*/
  @font-face {
  font-family: 'Helsinki';
  src: url('fonts/helsinki.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.site-title {
  position: relative;
  z-index: 1;
  font-family: 'Helsinki', cursive, sans-serif;
  font-size: 2.6rem;
  font-weight: bold;
  text-align: center;
  margin: 0.1rem 0 0.3rem 0 !important;
  padding: 0.3rem 1rem;
  border-radius: 50%;

  background: linear-gradient(90deg, red, orange, yellow, green, blue, indigo, violet);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  animation: rainbow-move 5s linear infinite;
  background-size: 200% 100%;
}

.site-title::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;       
  height: 100%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
}


/* Dropdown-Menü */
.dropdown {
  position: relative;
  display: inline-block;
  z-index: 10000; /*changed */
}

.dropbtn {
  text-decoration: none;
  color: inherit;
  padding: 0.5em 1em;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f3f8ff;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 10001; /*changed */
  border-radius: 0 0 12px 12px;
}

.dropdown-content a {
  color: #2c3e92;
  padding: 0.6em 1em;
  text-decoration: none;
  display: block;
  font-family: 'Indie Flower', cursive;
}

.dropdown-content a:hover {
  background-color: #e0ebff;
}

.dropdown:hover .dropdown-content {
  display: block;
}




/* Logo */
.site-logo-link {
  display: inline-block;
  text-align: center;
}
.logo-nav-wrapper {
  position: relative;
  width: fit-content; /* oder 100%, je nach Layout */
  margin: 0 auto; /* zentriert */
 /* transform: scale(0.85); changed*/
  transform-origin: top center; /*changed*/
}
.site-logo {
  display: block;
  /*max-height: 440px; */
  max-height: 340px; /*changed*/
  width: auto;
  margin: 2rem auto 1rem auto;
}
@media only screen and (max-width: 768px) {
  .site-logo {
    max-width: 100%;
    max-height: 120px;
    margin: 1rem auto;
  }
}


/* Navigation Desktop */
.nav-container {
  position: relative;
  width: 100%;
}

.nav-container,
.navmenu {
  z-index: 9999;
}

.nav-background {
  position: relative;
  z-index: 0;
  max-width: 900px;
  display: block;
  margin: 0 auto;
}

/*.navmenu {
  position: relative;
  z-index: 10; /* höher als nav-background 
} */

.navmenu {
  position: absolute;
  /*top: 250px; */
  top: 190px; /*Changed*/
  left: 0;
  /*width: 100%;*/
  width: auto; /*Changed*/
  /*z-index: 20; */
  background-color: transparent;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;  /*Changed*/
  gap: 1.5rem;
  padding: 1rem;
  box-sizing: border-box;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.navmenu a {
  /*padding: 0.8em 1.5em; */
  padding: 0.65em 1.25em; /*Changed*/
  border-radius: 10px;
  border: 3px solid;
  transition: border-color 0.3s ease;
  /*font-size: 1.8rem; */
  font-size: 1.5rem; /*Changed*/
  color: #1a1a1a;
  font-weight: bold;
  font-family: 'Indie Flower', cursive;
  text-decoration: none;
  white-space: nowrap; /*Changed*/
}


/* Rahmenfarben Desktop */
.nav-welcome {
  border-color: orange;
  background-color: rgb(237, 109, 0);
}

.nav-about {
  border-color: green;
  background-color: rgb(142, 167, 2);
}

.nav-works {
  border-color: purple;
  background-color: rgb(115, 0, 117);
}

.nav-blog {
  border-color: blue;
  background-color: rgb(0, 178, 213);
}

.nav-contact {
  border-color: gold;
  background-color: gold;
}

.navmenu a:hover {
  filter: brightness(0.9);
}

.navmenu a:hover {
  background: linear-gradient(90deg, red, orange, yellow, green, blue, indigo, violet);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: scale(1.1) rotate(-1deg);
}

.kofi-link img {
  height: 48px;
}
.page-headline {
  font-size: clamp(1.5rem, 4vw, 2.6rem);
}

.newsbox-title {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
}

/*from Index */
.page-headline {
  font-family: 'Indie Flower', cursive, sans-serif;
  font-size: 2.6rem;
  text-align: center;
  font-weight: bold;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #2c3e92;
  text-shadow: 1px 1px 2px #ccc;
  white-space: normal;
  border: none;
  width: auto;
  animation: none;
}


/* Gallery Pictures */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* drei nebeneinander bei Desktop */
  gap: 1em;
  padding: 1em;
  max-width: 1000px;
  margin: 0 auto;
  z-index: 2;
}
.wasserbild {
  position: relative;
  overflow: hidden;
  display: inline-block;
  border-radius: 8px;
}
.gallery-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
.gallery-img:hover {
  transform: scale(1.02);
}
.gallery-img.loaded {
  opacity: 1;
}

.back-button-wrapper {
  display: flex;
  justify-content: flex-start;
  padding: 20px;
  z-index: 10;
  position: relative;
}

#back-to-gallery img {
  width: 60px;
  height: auto;
  display: block;
}

.wasserzeichen {
  position: absolute;
  top: 15%;              /* changed*/
  left: 50%;             /* changed*/
  transform: translate(-50%, -50%); /* changed*/
  font-size: 1.6em;
  color: white;
  text-shadow: 1px 1px 2px black;
  pointer-events: none;
}

/* ----------- Wasserzeichen Doublett-----

.wasserzeichen {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1em;
  font-weight: bold;
  opacity: 0.5;
  pointer-events: none;
  text-shadow: 1px 1px 3px black;
}
------ */
#caption {
  text-align: center;
  margin-top: 12px;
  font-family: 'Indie Flower', cursive;
  font-size: 1rem;
  color: #f0f0f0;
}
.gallery-img {
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Gallery Desktop */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: #000;
}
.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item img {
    height: 250px;
  }
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  font-family: 'Indie Flower', cursive;
  transition: opacity 0.3s ease;
  text-align: center;
  padding: 20px;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.gallery-item h3 {
  text-align: center;
  margin-top: 10px;
  font-size: 2.3rem;
  font-family: 'Indie Flower', bold;
}


/* Background deco Index */
.background-deco {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 480px;
  max-height: 70vh;
  object-fit: contain;
  z-index: -1;
  pointer-events: none;
}
.background-deco2 {
  position: fixed;
  top: 20vh;        /* Höhe anpassen, damit es neben der Newsbox passt */
  left: 10vw;       /* Links positionieren (oder rechts: right: xx) */
  width: 400px;     /* Breite passend wählen */
  max-height: 70vh; /* Höhe begrenzen */
  object-fit: contain;
  pointer-events: none; /* Klicks durchlassen */
  z-index: -1;          /* Hinter allen Inhalten */
}
@media (max-width: 768px) {
  .background-deco2 {
    display: none; /* Auf kleinen Bildschirmen ausblenden */
  }
}
@media only screen and (max-width: 768px) {
  .background-deco {
     width: 320px;
  }
}
@media only screen and (max-width: 480px) {
  .background-deco {
    display: none !important;
  }
}
@media only screen and (max-width: 768px) {
  .background-deco {
    width: 320px;
  }
}
@media only screen and (max-width: 480px) {
  .background-deco {
    display: none !important;
  }
}


/* Blog */
#news-section {
  padding: 2em;
  max-width: 800px;
  margin: 0 auto 3em;
  font-family: 'Indie Flower', cursive;
}

#news-section h2 {
  color: #2c3e92;
  margin-bottom: 1em;
  text-align: center;
  text-shadow: 0 0 8px #a3bffa;
}

.news-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start; /* links ausrichten */
  text-align: left;        /* Text linksbündig */

  background: url('bilder/newsbox.png') no-repeat center 10px;
  background-size: contain;
  padding: 0.2em 1em 0.5em 5em; /* links noch mehr Abstand für Text */
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
  background-color: transparent;
  color: #1a2a6c;
  min-height: 400px;

  
  margin-bottom: 0.2em;
}

.news-item:hover, .news-item:focus-within {
  box-shadow: 0 14px 30px rgba(70, 100, 244, 0.5);
}

.news-item h3 {
  margin: 0 0 0.4em;
  color: #1a2a6c;
  font-size: 1.4em;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-shadow: 0 0 6px #e3eaff;
}

.news-entry {
  max-width: 800px;
  margin: 0; /* margin auto entfernen, sonst zentriert */
  font-size: 1.05em;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #243665;
  text-align: left;
}

.read-more {
  display: inline-block;
  margin-top: 0.6em;
  color: #2c3e92;
  cursor: pointer;
  font-weight: 700;
  user-select: text;
  text-decoration: underline;
  font-size: 1em;
  transition: color 0.25s ease;
}
.read-more:hover, .read-more:focus {
  color: #4664f4;
  outline: none;
}

@keyframes fadeSlide {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.news-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0.8em 0 1.2em;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.news-flex {
  display: flex;
  flex-direction: row; /* explizit */
  align-items: flex-start;
  gap: 1.2em;
  flex-wrap: nowrap; /* verhindert Umbruch auf kleine Bildschirme */
}

.news-image {
  width: 140px;
  height: auto;
  flex-shrink: 0;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  margin: 0;
}

@media (max-width: 600px) {
  .news-flex {
    flex-direction: column;
  }

  .news-image {
    width: 100%;
    max-width: 100%;
    margin-bottom: 1em;
  }
}

#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 25, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 1em;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#lightbox.active {
  opacity: 1;
  pointer-events: all;
}

#lightbox img {
  max-width: 95%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
  transition: transform 0.3s;
}

.newsbox-overlay {
  background-image: url('bilder/newsbox.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center top;
  background-color: transparent;
  border: none;
  box-shadow: none;
  padding: 0.1em 1em 0.5em 1em; /* klein halten oder nach Wunsch */
  margin: 0 auto;
  /* Kein Rahmen */
  border-radius: 0;
  overflow: visible;
}

.newsbox-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2c3e92;
  text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.9);
  margin: 0;
  text-align: center;
}
#index-news-list p,
#index-news-list em,
#index-news-list strong {
  color: #1a2a6c;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

.read-older-news-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.45em 1.2em;
  background-color: #4664f4;
  color: white;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.read-older-news-btn:hover {
  background-color: #2c3e92;
}

@media only screen and (max-width: 480px) {
  .news-item {
    padding: 1.4em;
    border-radius: 18px;
    background:
      linear-gradient(145deg, #f4f7ff, #e0e7ff),
      url('bilder/paper-texture.png'); /* leichte Textur einbauen */
    background-blend-mode: overlay;
    background-repeat: repeat;
    background-size: cover;
    box-shadow:
      0 6px 18px rgba(70, 100, 244, 0.25),
      inset 0 2px 4px rgba(255, 255, 255, 0.6);
    font-size: 0.96rem;
    line-height: 1.6;
    margin-bottom: 1.5em;
    border: 1px solid #dce5ff;
    position: relative;
    overflow: hidden;
  }

  .news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -25%;
    width: 150%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(255,255,255,0.25), transparent 70%);
    pointer-events: none;
    mix-blend-mode: soft-light;
  }

  .news-item h3 {
    font-size: 1.4rem;
    margin-bottom: 0.6em;
    color: #1a2a6c;
    text-shadow: 0 1px 3px rgba(180, 200, 255, 0.6);
    text-align: center;
  }

  .news-entry {
    font-size: 1rem;
    line-height: 1.65;
    color: #2a3566;
    text-align: left;
  }

  .read-more {
    font-size: 0.92rem;
    color: #3759e5;
    background: #e4eaff;
    padding: 0.3em 0.6em;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
  }

  .read-more:hover {
    background: #d0dcff;
    color: #1a2a6c;
  }

  .news-image {
    margin-bottom: 1em;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }

  .news-flex {
    flex-direction: column;
    gap: 1em;
  }
}

@media only screen and (max-width: 768px) {
  .newsbox-overlay {
    display: grid;
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Contact Page */
.background-image { position: fixed; top: 0; left: 0; width: 50vw; height: 100vh; background-image: url('bilder/back_contact.png'); background-size: contain; background-repeat: no-repeat; background-position: left top; z-index: -1; opacity: 0.9; pointer-events: none; }
  .popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 999;
  display: none;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.6s ease forwards;
  backdrop-filter: blur(4px);
}

.popup-content {
  background: #fff6c9;
  padding: 2.5em;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  max-width: 520px;
  width: 95%;
  display: flex;
  align-items: center;
  gap: 1.8em;
  transform: scale(0.8) rotate(-2deg);
  animation: popIn 0.5s ease forwards, floaty 3s ease-in-out infinite;
}

.popup-content img {
  max-width: 180px;
  height: auto;
  border-radius: 15px;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.popup-text {
  font-size: 1.3rem;
  color: #d6336c;
  display: flex;
  flex-direction: column;
  font-weight: 700;
}

.popup-text .emoji {
  font-size: 2rem;
}

.popup-content button {
  margin-top: 1.4em;
  padding: 0.6em 1.4em;
  font-size: 1rem;
  background: #ff80b3;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  color: white;
  transition: background-color 0.3s ease, transform 0.2s;
}

.popup-content button:hover {
  background: #ff6699;
  transform: scale(1.05);
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

@keyframes popIn {
  0% {transform: scale(0.8) rotate(-3deg); opacity: 0;}
  100% {transform: scale(1) rotate(0deg); opacity: 1;}
}

@keyframes floaty {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.01); }
}
@media (max-width: 767px) {
  .background-image {
    display: none;
  }
}

/* ----------- Slideshow ----------- */
.slideshow-container {
  position: relative;
  max-width: 1000px;
  margin: 40px auto;
  overflow: hidden;
}

.slide {
  display: none;
  position: relative;
}

.slide img {
  width: 100%;
  height: 50vh;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 12px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 24px;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 10;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.fade {
  animation: fade 0.6s ease-in-out;
}

@keyframes fade {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

/* ----------- Modal-Overlay ----------- */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0; top: 0; width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
  cursor: pointer;
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ddd;
  padding: 10px 0;
  font-style: italic;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.modal-arrow {
  position: fixed;
  top: 50%;
  color: white;
  font-size: 50px;
  background: transparent;
  border: none;
  cursor: pointer;
  user-select: none;
  padding: 10px;
  transform: translateY(-50%);
  z-index: 1001;
  transition: color 0.3s;
}

.modal-arrow:hover {
  color: #ddd;
}

.prev-arrow {
  left: 15px;
}

.next-arrow {
  right: 15px;
}

/* ----------- Zurück-Button ----------- */
.back-button-wrapper {
  display: flex;
  margin: 1rem 0;
}

#back-to-gallery img {
  width: 60px;
  height: auto;
  transition: transform 0.3s ease;
}

#back-to-gallery {
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  position: relative;
  left: 350px;
}

#back-to-gallery:focus {
  outline: none;
  box-shadow: none;
}

#back-to-gallery:hover img {
  transform: scale(1.05);
}

/* === Kontaktformular Styling === */
#mitteilung-form {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  backdrop-filter: blur(5px);
  font-family: 'Indie Flower', cursive;
}

#mitteilung-form .fields {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

#mitteilung-form .field {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
}

#mitteilung-form .field.half {
  flex: 1 1 48%;
}

#mitteilung-form input,
#mitteilung-form select,
#mitteilung-form textarea {
  padding: 0.8rem;
  border: 2px dashed #ffcad4;
  border-radius: 10px;
  font-size: 1rem;
  background-color: #fff;
  transition: border-color 0.3s ease;
}

#mitteilung-form input:focus,
#mitteilung-form select:focus,
#mitteilung-form textarea:focus {
  border-color: #7873f5;
  outline: none;
}

#mitteilung-form label {
  font-weight: bold;
  margin-bottom: 0.3rem;
}

#mitteilung-form .actions {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

#mitteilung-form .actions li {
  display: block;
}

#mitteilung-form input[type="submit"],
#mitteilung-form input[type="reset"] {
  background-color: #ffcad4;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s;
}

#mitteilung-form input[type="submit"]:hover,
#mitteilung-form input[type="reset"]:hover {
  background-color: #f8b5c6;
  transform: scale(1.05);
}

#mitteilung-form textarea {
  resize: vertical;
  min-height: 120px;
}

@media (max-width: 600px) {
  #mitteilung-form .field.half {
    flex: 1 1 100%;
  }

  #mitteilung-form {
    padding: 1.2rem;
  }
}

/* KATZE Nur auf Desktop anzeigen */
@media (min-width: 768px) {
  .chat-katze {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    display: flex;
    align-items: center; /* Sprechblase mittig an Katze ausrichten */
    gap: 6px;
    animation: katzen-wackeln 3s ease-in-out infinite;
  }
  
  .katzenbild {
    width: 160px;
    height: auto;
    image-rendering: pixelated;
    cursor: pointer;
  }

  .sprechblase {
    background: #fff8dc;
    color: #333;
    font-family: "Indie Flower", cursive;
    padding: 8px 14px;
    border-radius: 20px;
    border: 2px solid #ccc;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    font-size: 0.9rem;
    max-width: 150px;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: relative;
    margin-top: -30px; /* hebt die Sprechblase etwas über die Mitte der Katze */
    text-align: center;
  }

  .chat-katze:hover .sprechblase {
    opacity: 1;
    transform: translateY(0);
  }

  @keyframes katzen-wackeln {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-2px) rotate(-2deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(-2px) rotate(2deg); }
  }
}
@media (max-width: 767px) {
  .chat-katze {
    display: none !important;
  }
}
@media (max-width: 480px) {
  .chat-katze {
    display: none;
  }
}


/* Kofi Button */
.navmenu a.kofi-link img {
  border: none !important;
  box-shadow: none !important;
  vertical-align: middle;
}

.navmenu a.kofi-link {
  border: none !important;
  background: none !important;
  padding: 0 !important;
  margin-left: 1rem;
  display: inline-block;
}
.kofi-button,
.navmenu a.kofi-link,
.navmenu a.kofi-link img {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-left: 1rem !important;
  filter: none !important;
  outline: none !important;
  vertical-align: middle;
  display: inline-block;
}

/* SidebarBild Projects.mywrld */
 .sidebar-bild {
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 0; /*changed from 1*/
}
@media (max-width: 768px) {
  .sidebar-bild {
    display: none !important;
  }
}
 .inhalt {
    margin-left: 45%;
    padding: 40px;
}




/* ----------- Mobile not affecting desktop ----------- */
@media only screen and (min-width: 769px) {
  #mobileNav {
    display: none !important;
  }
}
.menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
}



/* ----------- Mobile Navigation ----------- */

@media only screen and (max-width: 768px) {

  /* 🌿 MENU CARD */
  .navmenu {
    display: none;
    flex-direction: column;
    align-items: stretch;

    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);

    width: min(92vw, 360px);

    padding: 1.4rem 1rem;
    gap: 0.55rem;

    border-radius: 24px;

    background: linear-gradient(180deg,
      #fffaf6,
      #f6f2ff,
      #eef7f2
    );

    box-shadow:
      0 14px 35px rgba(0,0,0,0.12),
      inset 0 1px 0 rgba(255,255,255,0.7);

    z-index: 10002; /* 🔥 above header */
    
    /* 🔥 force true viewport anchoring */
    will-change: transform;
  }

  .navmenu.show {
    display: flex;
    animation: menuSoftIn 0.35s ease;
  }

  @keyframes menuSoftIn {
    from {
      opacity: 0;
      transform: translateX(-50%) translateY(-8px) scale(0.97);
    }
    to {
      opacity: 1;
      transform: translateX(-50%) translateY(0) scale(1);
    }
  }

  /* 🌸 BUTTONS */
  .navmenu a,
  .dropbtn {
    width: 100%;
    box-sizing: border-box;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 0.9rem 1rem;

    font-size: 1.2rem;
    font-weight: 700;

    border-radius: 18px;

    color: #444;
    text-decoration: none;

    border: 2px solid rgba(0,0,0,0.08);

    box-shadow: 0 4px 10px rgba(0,0,0,0.08);

    transition: all 0.18s ease;

    -webkit-tap-highlight-color: transparent;
  }

  .navmenu a:nth-child(odd) { transform: rotate(-0.6deg); }
  .navmenu a:nth-child(even) { transform: rotate(0.6deg); }

  .nav-welcome { background: #ffe7dc; }
  .nav-about   { background: #e6f6e9; }
  .nav-works   { background: #ece4ff; }
  .nav-blog    { background: #e3f3ff; }
  .nav-contact { background: #fff4d6; }

  .navmenu a:hover,
  .dropbtn:hover {
    transform: scale(1.04);
    filter: brightness(1.03);
  }

  .navmenu a:active,
  .dropbtn:active {
    transform: scale(0.96);
    filter: brightness(0.95);
  }

  /* 📦 DROPDOWN */
  .dropdown {
    width: 100%;
  }

  .dropdown-content {
    display: flex;
    flex-direction: column;

    margin-top: 0.3rem;
    padding: 0.4rem;

    border-radius: 14px;

    background: linear-gradient(180deg,
      #ffffffcc,
      #f6f6ffcc
    );

    box-shadow:
      inset 0 0 0 1px rgba(0,0,0,0.08),
      0 6px 16px rgba(0,0,0,0.08);

    animation: dropdownSoft 0.25s ease;
  }

  @keyframes dropdownSoft {
    from {
      opacity: 0;
      transform: translateY(-4px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .dropdown-content a {
    width: 100%;
    box-sizing: border-box;

    margin: 0.2rem 0;
    padding: 0.6rem;

    border-radius: 10px;

    font-size: 1rem;

    background: rgba(255,255,255,0.75);
    color: #555;

    transition: all 0.18s ease;

    -webkit-tap-highlight-color: transparent;
  }

  .dropdown-content a:hover {
    background: #f3f3f3;
    transform: translateX(2px);
  }

  .dropdown-content a:active {
    transform: scale(0.96);
  }

  .kofi-link {
    display: flex;
    justify-content: center;
  }

  /* 🍔 BURGER BUTTON */
  .menu-toggle {
    display: block;

    position: fixed;
    top: 12px;
    right: 12px;

    z-index: 10003; /* 🔥 always above everything */

    font-size: 2.2rem;

    padding: 0.35em 0.6em;

    border-radius: 14px;
    border: none;

    background: #ffffff;
    color: #555;

    box-shadow:
      0 4px 10px rgba(0,0,0,0.12);

    transition: all 0.2s ease;

    -webkit-tap-highlight-color: transparent;
  }

  .menu-toggle:hover {
    background: #f4f4f4;
    transform: scale(1.05);
  }

  .menu-toggle:active {
    transform: scale(0.92);
  }
}