/* === Cantimplore Art: Vollständig optimiertes CSS für Mobil & Desktop === */

/* ----------- Basis-Layout & Reset ----------- */
body {
  font-family: 'Comic Neue', 'Comic Sans MS', 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;
}

.site-title {
  position: relative;
  z-index: 1;
  font-size: 4rem;
  font-weight: bold;
  background: linear-gradient(90deg, #ff6ec4, #7873f5, #42e695, #f8ff00, #ff6ec4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 1rem 2rem;
  text-align: center;
  border-radius: 50%;
  animation: rainbow-move 5s linear infinite;
  background-size: 200% 100%;
}
.site-title {
  animation: rainbow-move 5s linear infinite !important;
  background-size: 200% 100% !important;
  background: linear-gradient(90deg, red, orange, yellow, green, blue, indigo, violet) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  font-size: 4rem !important;
  border-radius: 50% !important;
  padding: 1rem 2rem !important;
}

.site-title::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;       /* wichtig: nicht zu groß */
  height: 100%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
}


/* Optional: Regenbogen-Animation */
@keyframes rainbow-move {
  0% { background-position: 0% }
  100% { background-position: 100% }
}

.site-title {
  animation: rainbow-move 5s linear infinite;
  background-size: 200% 100%;
}



/* ----------- Navigation ----------- */

.main-nav a {
  text-decoration: none;
  color: #4a4e69;
  font-weight: bold;
  font-size: 1.3rem;
  padding: 16px 32px;
  border-radius: 40px;
  border: 2px dashed #ffcad4;
  background: transparent;
  transition: all 0.3s ease;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(5px);
}

nav a:hover, .main-nav 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);
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  background-color: #fff;
  border: 2px dashed #ffcad4;
  border-radius: 10px;
  padding: 0.4rem 0.8rem;
  color: #4a4e69;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1001;
}

.main-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1rem;
}

/* ----------- 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 10px 40px;  /* kein Padding oben */
  position: static;
  border-bottom: 2px solid #ccc;
  margin-top: 0;
}

/* ----------- 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; }
}

/* ----------- Galerie ----------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  justify-content: center;
  max-width: 540px;
  margin: 0 auto;
}

.gallery-img {
  width: 100%;
  max-width: 250px;
  cursor: pointer;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.5s ease-in, transform 0.3s ease-in;
}
.gallery-img.loaded {
  opacity: 1;
  transform: scale(1);
}


.gallery-img:hover {
  transform: scale(1.05);
}

/* ----------- 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);
}

/* ----------- Wasserzeichen ----------- */
.wasserbild {
  position: relative;
  display: inline-block;
}

.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;
}

/* ----------- Responsive Design ----------- */
@media (max-width: 768px) {
  .inhalt {
    margin-left: 0;
    padding: 20px;
  }

  .sidebar-bild {
    display: none;
  }

  @media (max-width: 768px) {
  .main-nav {
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1rem;
    box-shadow: 0 0 8px rgba(0,0,0,0.2);
    position: absolute;
    top: 4rem;
    z-index: 1000;

    /* Ergänzungen zur Fehlerbehebung */
    width: 100vw;
    left: 0;
    right: 0;
    border-radius: 0;
  }

  .main-nav.show {
    display: flex;
  }
}

  .menu-toggle {
    display: block;
  }

  .slide img {
    height: 35vh;
  }

  footer {
    font-size: 13px;
    padding: 0.5rem;
  }

  .footer-links a {
    display: block;
    margin: 0.3rem 0;
  }

  #back-to-gallery {
    left: 0;
    margin: 0 auto;
    display: block;
  }

  .back-button-wrapper {
    justify-content: center;
  }

  .kofi-button {
    display: block;
    margin: 1rem auto;
  }
}
.main-nav a.kofi-link img {
  border: none !important;
  box-shadow: none !important;
  vertical-align: middle;
}

.main-nav a.kofi-link {
  border: none !important;
  background: none !important;
  padding: 0 !important;
  margin-left: 1rem;
  display: inline-block;
}
.kofi-button,
.main-nav a.kofi-link,
.main-nav 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;
}
/* === 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: 'Comic Neue', sans-serif;
}

#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: "Comic Neue", sans-serif;
    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;
  }
}
header {
  margin-top: 0rem;
}

.nav-container {
  position: relative;
  width: 100%;
}

.nav-background {
  position: relative;
  z-index: 0;
  max-width: 900px;
  display: block;
  margin: 0 auto;
}

.logo-nav-wrapper {
  position: relative;
  width: fit-content;
  margin: 0 auto;
}

.site-logo-link {
  display: inline-block;
  text-align: center;
}

.site-logo {
  display: block;
  max-height: 440px;
  width: auto;
  margin: 2rem auto 1rem auto;
}

.navmenu {
  position: static; /* oder ganz weglassen */
  width: 100%;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem;
  background-color: transparent;
  box-sizing: border-box;
  display: flex;
  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;
  border-radius: 10px;
  border: 3px solid;
  transition: border-color 0.3s ease;
  font-size: 1.8rem;
  color: #1a1a1a;
  font-weight: bold;
  font-family: 'Comic Neue', cursive;
}

.navmenu a:hover {
  filter: brightness(0.9);
}

.nav-welcome {
  border-color: orange;
  background-color: rgb(237, 109, 0) !important;
}

.nav-about {
  border-color: green;
  background-color: rgb(142, 167, 2) !important;
}

.nav-works {
  border-color: purple;
  background-color: rgb(115, 0, 117) !important;
}

.nav-blog {
  border-color: blue;
  background-color: rgb(0, 178, 213) !important;
}

.nav-contact {
  border-color: gold;
  background-color: gold !important;
}

.mobile-menu-icon {
  display: none;
}

@media (max-width: 768px) {
  .navmenu {
    display: none;
    flex-direction: column;
    align-items: center;
    /* verträumter, künstlerischer Hintergrund */
    background: linear-gradient(135deg, rgba(255,200,220,0.9), rgba(200,230,255,0.8));
    box-shadow: 0 8px 20px rgba(255, 182, 193, 0.6);
    border-radius: 20px;
    padding: 1rem 2rem;
    position: absolute;
    top: 4rem;
    right: 1rem;
    z-index: 1000;
    backdrop-filter: blur(15px) saturate(150%);
    border: 2px solid rgba(255, 182, 193, 0.8);
  }

  .navmenu.show {
    display: flex;
  }
  }

  /* Kofi-Link sichtbar und schön ausgerichtet */
@media (max-width: 768px) {
  .main-nav a.kofi-link {
    display: flex !important;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
  }
  .main-nav a.kofi-link img {
    height: 36px;
    width: auto;
  }


  .navmenu a.kofi-link img:hover {
    filter: drop-shadow(0 0 6px rgba(255,20,147,1));
  }
  }

  /* Mobile Menü Links größer und gut klickbar */
  @media (max-width: 768px) {
  .navmenu {
    display: none; /* Standard versteckt, wird durch JS bei Klick sichtbar */
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, rgba(255,200,220,0.85), rgba(237,109,0,0.85));
    padding: 1rem 0;
    box-shadow: 0 4px 15px rgba(237,109,0,0.3);
    position: fixed;
    top: 60px; /* unter der Headerhöhe */
    left: 0;
    width: 100vw;
    border-radius: 0;
    z-index: 9999;
  }
  
  .navmenu.show {
    display: flex;
  }
  
  .navmenu a {
    font-size: 1.6rem;
    padding: 0.7rem 2.5rem;
    margin: 0.3rem 0;
    width: fit-content;
    min-width: 150px;
    border-radius: 30px;
    border-width: 2px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
  }
  
  .navmenu a:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
  }
  
  /* Menu-Button sichtbar machen */
  .menu-toggle {
    display: block;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 10000;
    cursor: pointer;
  }
}


.kofi-link img {
  height: 48px;

}

.header-background {
  position: absolute;
  top: 50px;        /* Abstand nach unten – Hintergrund startet weiter unten */
  left: 0;
  width: 100%;
  height: 425px;    /* Höhe insgesamt kleiner, damit er nicht überlappt */
  background: linear-gradient(to bottom, #a8c8ff, #dce9ff);
  border-radius: 80px 80px 80px 80px;
  z-index: 0;
}

/* Logo und navmenu darüber */
.logo-nav-wrapper,
.navmenu {
  position: relative;
  z-index: 10;
  
}
/* Mobil: Hintergrund entfernen */
@media (max-width: 768px) {
  .header-background {
    background: none !important;
    border-radius: 0; /* Ecken abrunden entfernen */
  }
}

/* neues zur mobilen ansicht navbox */
@media (max-width: 768px) {
  /* NAV-BOX Optik mobil */
  .main-nav {
    background: linear-gradient(135deg, #ffe5ec, #e0bbff, #caffbf);
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    border: 2px dashed #ffcad4;
    backdrop-filter: blur(6px);
    border-radius: 16px;
  }

  /* Menü-Links mobil – besser lesbar */
@media (max-width: 768px) {
  .main-nav a {
    padding: 10px 20px;
    width: 90%;
    text-align: center;
    font-size: 1.2rem;
    border-radius: 20px;
    border: 2px solid #ffcad4;
    margin: 5px 0;
    background: #fff8f9;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
     font-family: 'Comic Neue', sans-serif;
    background: #fff8f9;
    color: #4a4e69;
    letter-spacing: 0.5px;
    line-height: 1.4;
  }

  .main-nav 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.05);
  }
}


  /* Regenbogeneffekt beim KLICK */
  .main-nav a:active {
    background: linear-gradient(90deg, red, orange, yellow, green, blue, indigo, violet);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    transform: scale(1.05);
  }

  /* Besseres Menü-Icon mobil */
  .menu-toggle {
    background: #fff0f6;
    color: #4a4e69;
    border: 2px dashed #ffb3c1;
    font-weight: bold;
    font-size: 1.8rem;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    transition: background-color 0.3s ease;
  }

  .menu-toggle:hover {
    background: #ffe5ec;
  }
}
@media (max-width: 768px) {
  .back-button-wrapper {
    display: none;
  }
}
@media (max-width: 768px) {
  .site-title {
    font-size: 2rem !important;       /* Kleinere Schriftgröße */
    padding: 0.5rem 1rem !important;  /* Weniger Padding */
    border-radius: 10px !important;   /* Nicht mehr rund, damit der Text nicht abgeschnitten wird */
    background-size: 100% 100% !important; /* Falls gewünscht */
    white-space: normal !important;   /* Damit Zeilenumbruch erlaubt ist */
  }
}