@font-face {
  font-family: "Noto Sans";
  src: url("../fonts/NotoSans-VariableFont_wdth\,wght.ttf");
}

* {
  box-sizing: border-box;
  font-family: "Noto Sans", "Arial", sans-serif;
  line-height: 1.3;
}

/* Farbvariablen für Dark Mode */

:root {
  --background-color: #ffffff;
  --text-color: #000000;
  --accent-color: #66FF66;
}

[data-theme="dark"] {
  --background-color: #000000;
  --text-color: #ffffff;
  --accent-color: #66FF66;
  /* bleibt gleich */
}

/* Dark Mode Button */

#darkmode-toggle {
  background-color: var(--accent-color);
  color: var(--text-color);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  padding: 10px;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

#darkmode-toggle:hover {
  background-color: var(--text-color);
  color: var(--background-color);
  transform: scale(1.1);
}

/* Dark Mode Logo */



/* ----------------- Allgemeine Styles ------------------ */

body {
  background-color: var(--background-color);
  color: var(--text-color);
  margin: 0 40px;
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  font-weight: 200;
}

p {
  margin-bottom: 20px;
}

/* Navigation */

header {
  background-color: var(--background-color);
  padding: 20px 20px 60px 20px !important;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.active-page {
  text-decoration: underline;
  font-weight: 400;
  text-underline-offset: 2px;
  text-decoration-thickness: 5%;
  color: var(--accent-color);
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 20px;
  padding: 8px 16px;
}

.nav-links a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 5%;
  color: var(--accent-color);
}

/* Kreis, der dem Cursor folgt */

.cursor-circle {
  width: 100px;
  height: 100px;
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  /* Verhindert, dass der Kreis Events blockiert */
  mix-blend-mode: difference;
  /* Für die Farb-Invertierung */
  background: var(--background-color);
  /* Die invertierende Farbe */
  display: none;
  /* Standardmäßig ausgeblendet */
  z-index: 10;
}

/* Typografie und Deko-Linien */

strong {
  font-weight: 400;
}

h1 {
  font-weight: 200;
  font-style: italic;
  font-size: 72px;
  margin: 0;
}

h2 {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 10px;
  /* Fließtext bold */
}

h3 {
  color: var(--text-color);
  font-weight: 700;
  font-style: italic;
  font-size: 32px;
  text-align: center;
  margin-bottom: 0px;
  /* Zentrierte Zitate */
}

h4 {
  font-weight: 700;
  font-size: 24px;
  text-transform: uppercase;
  margin-bottom: 10px;
  margin-top: 0px;
  text-align: left;
  /* Headlines mit Linie drunter */
}

hr {
  margin-top: 10px;
  margin-bottom: 10px;
  color: var(--text-color);
}

.line_black {
  padding: 3px;
  background: var(--text-color);
  width: 60px;
  margin-bottom: 20px;
}

.line_white {
  padding: 3px;
  background: var(--background-color);
  width: 60px;
  margin-bottom: 20px;
}

p.zitat-unterschrift {
  text-align: center;
}

.text_in_box {
  padding: 50px 50px;
  margin-top: 20px;
  margin-bottom: 20px;
  color: var(--background-color);
  background-color: var(--text-color);
}

/* Links */

a[href="about.html"] {
  text-decoration: none;
}

.links {
  text-decoration: underline;
  text-decoration-thickness: 3%;
  text-underline-offset: 2px;
  color: var(--text-color);
}

.links:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 3%;
  color: var(--accent-color);
}

/* Logos und Bilder */

.logo-img {
  height: 24px;
  transition: filter 0.3s ease;
}

[data-theme="dark"] .logo-img {
  filter: invert(1) brightness(2);
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.logosize {
  max-width: 100%;
  height: auto;
}

[data-theme="dark"] .logosize {
  filter: invert(1) brightness(2);
}

.header-image {
  width: 100%;
  height: auto;
  margin-bottom: 10px;
  background-size: cover;
  position: relative;
}

/* Bild-Slider */

img.bild {
  width: 100%;
  height: auto;
  margin-bottom: 30px;
}

.carousel {
  padding-bottom: 30px;
}

.carousel-inner {
  font-family: "Noto Sans", sans-serif;
  line-height: 1.3;
  margin: 0 auto;
}

.carousel-item img {
  object-fit: cover;
  margin: 0;
  padding: 0;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-image: none;
  background-color: var(--accent-color);
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
}

/* Carousel Dots sichtbar und größer machen */
.carousel-indicators [data-bs-target] {
  width: 16px;                 /* größerer Durchmesser */
  height: 16px;
  border-radius: 50%;         
  background-color: var(--accent-color);
  opacity: 0.5;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.carousel-indicators .active {
  opacity: 1;
  transform: scale(1.3);        /* aktiver Dot zusätzlich hervorgehoben */
  background-color: #000;       /* kannst du auf var(--accent-color) ändern */
}

/* Position der Dots anpassen */
.carousel-indicators {
  bottom: -25px;   /* Abstand unterhalb der Bilder */
}



/* Kontaktseite */

.gif_hase {
  margin-left: 350px;
  position: relative;
  top: 20px;
  width: 15%;
  height: auto;
}

.form-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.responsive-form {
  width: 100%;
  max-width: 600px;
  margin: 0 auto 10px auto;
}

.responsive-form input[type="text"],
.responsive-form input[type="email"],
.responsive-form textarea {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  box-sizing: border-box;
  font-size: 18px;
  border: 1px solid var(--text-color);
  border-radius: 4px;
}

.responsive-form textarea {
  min-height: 100px;
}

.responsive-form input[type="submit"] {
  width: 100%;
  padding: 10px;
  background-color: var(--accent-color);
  color: var(--background-color);
  border: none;
  border-radius: 4px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.responsive-form input[type="submit"]:hover {
  background-color: var(--text-color);
}

/* Buttons */

.button {
  background-color: var(--accent-color);
  color: var(--text-color) !important;
  border-radius: 4px;
  padding: 10px 20px;
  min-width: 250px;
  cursor: pointer;
  font-size: 18px;
  text-align: center;
  border: none;
  margin: 5px auto;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: var(--text-color);
  color: var(--background-color) !important;
  border: 1px;
  border-color: var(--accent-color);
}

.audio-container {
  text-align: center;
  margin: 10px auto;
  margin-bottom: 30px;
  width: 100%;
  max-width: 400px;
}

/* Pulsierende Animation für #playAudioButton */

@keyframes pulse {
  0% {
    background-color: var(--background-color);
  }

  50% {
    background-color: var(--accent-color);
  }

  100% {
    background-color: var(--background-color);
  }
}

#playAudioButton {
  background-color: var(--accent-color);
  color: var(--text-color);
  border: 1px solid var(--accent-color);
  padding: 10px 20px;
  width: 100%;
  min-width: 250px;
  border-radius: 4px;
  font-size: 18px;
  cursor: pointer;
  animation: pulse 2s infinite;
  transition: color 0.3s ease, border-color 0.3s ease;
}

#playAudioButton:hover {
  color: var(--text-color);
  background-color: var(--background-color);
  border-color: none;
  animation: none;
}

/* Hintergrund Datenschutzseite und Impressum */

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.datenschutz .background-circle,
.impressum .background-circle {
  position: fixed;
  top: 200px;
  left: 200px;
  z-index: -1;
  animation: fadeIn 2s ease-out;
}

/* Footer */

.footer {
  display: flex;
  font-size: 18px;
  width: fit-content;
}

.footer div {
  margin-right: 40px;
  margin-bottom: 40px;
  width: 100%;
}

.back-to-top {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 700;
}

.back-to-top:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 3%;
  color: var(--accent-color);
}

/* ------------- Breakpoints ------------------ */

/* Breakpoint: Tablets */
@media only screen and (max-width: 1040px) {
  body {
    font-size: 18px;
  }

  .grid-container {
    grid-template-columns: repeat(4, 1fr);
  }

  .cursor-circle {
    display: none;
  }

  .logosize {
    max-height: 80px;
    /* für kleinere Logos */
  }

  .footer div {
    margin-bottom: 10px;
  }

}

/* Breakpoint: Small Tablets and Large Phones */
@media only screen and (max-width: 768px) {

  .grid-container {
    grid-template-columns: repeat(3, 1fr);
  }

  .cursor-circle {
    display: none;
  }

  body {
    font-size: 18px;
    margin-right: 40px;
    margin-left: 40px;
    color: var(--text-color);
  }

  .nav {
    flex-direction: column;
    align-items: center;
  }

  .nav-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 10px;
  }

  .nav-links li {
    margin: 10px 0;
  }

  .logo-img {
    margin-bottom: 0px;
  }

  .gif_hase {
    display: block;
    position: absolute;
    margin: 30px 0px 0px 30px;
    top: 200;
    left: 15;
    width: 20%;
    height: auto;
    z-index: 100;
  }

  .footer {
    display: block;
  }

}

/* Breakpoint: Phones */
@media only screen and (max-width: 490px) {

  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .cursor-circle {
    display: none;
  }

  body {
    font-size: 18px;
    margin-right: 20px;
    margin-left: 20px;
    color: var(--text-color);
  }

  .nav {
    flex-direction: column;
    align-items: center;
  }

  .nav-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 10px;
  }

  .nav-links li {
    margin: 10px 0;
  }

  .logo-img {
    margin-bottom: 0px;
  }

  img {
    width: 100%;
    height: auto;
  }

  .gif_hase {
    width: 20vw;
    position: fixed;
    top: 0;
    left: 20%;
    transform: translate(-50%, -50%);
  }

  h3 {
    font-weight: 700;
    font-style: italic;
    font-size: 24px;
    text-align: center;
    margin-bottom: 0px;
    /* Zentrierte Zitate */
  }

  .form-container {
    padding: 0px 10px 30px 10px;
  }

  .responsive-form {
    padding: 0px;
    margin-bottom: 0;
  }

  .responsive-form input[type="text"],
  .responsive-form input[type="email"],
  .responsive-form textarea {
    margin: 0;
  }

  .button,
  .responsive-form input[type="submit"] {
    width: 100%;
    font-size: 14px;
    padding: 10px;
    margin: 0;
  }

  #playAudioButton {
    font-size: 14px;
    padding: 10px;
    width: 100%;
    margin: 0;
  }

  h4 {
    font-weight: 700;
    font-size: 20px;
    text-transform: uppercase;
    margin-bottom: 10px;
    margin-top: 0px;
    text-align: left;
    /* Headlines mit Linie drunter */
  }

  .footer {
    display: block;
  }

}

/* ==================================================================
   Startseite (index.html)
   ================================================================== */

/* Eckige Ecken für die drei Arbeitsbeispiel-Karten */
main .card,
main .card-image {
  border-radius: 0 !important;
}

.card-image {
  aspect-ratio: 4 / 5;
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.card-title {
  font-size: inherit;
  font-weight: bold;
  line-height: inherit;
  text-align: left;
}

/* ==================================================================
   Über mich (about.html)
   ================================================================== */

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 3rem;
}

.intro-image {
  width: 600px;
  max-width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  justify-self: end;
  display: block;
}

.text-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.text-columns p {
  margin-bottom: 0;
}

.text-columns .col-title {
  text-transform: uppercase;
  font-weight: bold;
  margin-bottom: 0.75rem;
}

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

@media (max-width: 768px) {
  .intro-grid,
  .text-columns {
    grid-template-columns: 1fr;
  }

  .intro-image {
    justify-self: stretch;
  }
}

/* ==================================================================
   Arbeitsübersicht (work.html)
   ================================================================== */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 24px;
  margin-bottom: 4rem;
  width: 100%;
}

.work-card {
  min-width: 0;
}

.work-card img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background-color: #e8e8e8;
  margin-bottom: 12px;
}

.work-card h3 {
  font-size: inherit;
  font-style: normal;
  font-weight: bold;
  text-align: left;
  margin: 0 0 6px 0;
  overflow-wrap: anywhere;
}

.work-card p {
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 1040px) {
  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .work-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}

/* ==================================================================
   Projektseiten (projekt_01/02/03.html)
   ================================================================== */

.back-link {
  display: inline-block;
  margin-bottom: 40px;
  text-decoration: none;
}

.project-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  font-style: normal;
  line-height: 1.1;
  margin: 0 0 20px 0;
}

.project-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.project-meta p,
.project-text p {
  margin-bottom: 24px;
}

.project-meta .label {
  color: #8a8a8a;
}

/* Standard-Bildliste: untereinander */
.project-images {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 80px;
}

.project-images figure {
  margin: 0;
}

.project-images img {
  display: block;
  width: 100%;
  height: auto;
  background-color: #e8e8e8;
}

.project-images figcaption {
  font-size: 0.9em;
  margin-top: 8px;
}

/* Bildraster (Goldene Pause): 1–3 untereinander, 4+5 nebeneinander, 6 breit */
.project-images--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.project-images--grid figure:nth-child(-n+3),
.project-images--grid figure:nth-child(6) {
  grid-column: 1 / -1;
}

.project-images--grid img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background-color: #fff;
}

@media (max-width: 768px) {
  .project-info {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .project-images--grid {
    grid-template-columns: 1fr;
  }
}
