/* =======================================================
   GLOBAL
======================================================= */
html, body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  font-family: 'JetBrains Mono', monospace;
  color: #333;
  background-color: #fafafa;
  line-height: 1.2;
  letter-spacing: 0.2px;
  font-weight: 400;
}

.container {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  box-sizing: border-box;
  padding: 6rem 3rem 4rem 3rem;
  position: relative;
}

/* =======================================================
   HEADER
======================================================= */
header {
  text-align: left;
  margin-bottom: 2rem;
}

header h1 {
  font-size: 1rem;
  font-weight: normal;
  line-height: 1.2;
  margin: 0;
  max-width: 34ch;
}

header h1 .strich {
  position: relative;
  display: inline-block;
}

header h1 .strich::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  margin-left: 0.45rem;
  height: 1.5px;
  width: 60px;
  background-color: var(--strich-farbe, #362D29);
  transform: translateY(-50%);
}

/* =======================================================
   NAVIGATION
======================================================= */
nav {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  margin: 1rem 0rem 0 0rem;
}

nav a {
  color: inherit;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

/* =======================================================
   "SOON" SINGLE ITEM
======================================================= */
.gallery-item-soon {
  display: flex;
  justify-content: center;
  margin-top: 8rem;
}

.gallery-item-soon img {
  width: 45%;
  max-width: 300px;
  height: auto;
  object-fit: contain;
}

/* =======================================================
   CARDS (INDEX)
======================================================= */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 2rem;
  flex-grow: 1;
  margin: 3rem 0rem 5rem 0rem;
}

.cards a.card {
  color: inherit;
  text-decoration: none;
}

.card {
  border: 1px solid #999;
  background: #fff;
  border-radius: 26px;
  padding: 1.5rem 2rem 1rem 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: box-shadow 0.35s ease;
  transform-origin: center;
}

.card:hover {
  /* animation: wobble 0.7s ease-in-out; */
  box-shadow:
    0 0 8px rgba(0, 0, 0, 0.15),
    0 0 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #333;
}


/* Farbwolken / Gradient-Animationen */
.gradient-1 .card-image {
  background: linear-gradient(66deg, #f2f2f2, #fda79a, #f0f0f0);
  background-size: 200% 200%;
  animation: gradient-anim-1 14s ease infinite;
}

.gradient-2 .card-image {
  background: linear-gradient(168deg, #F9F7F1, #E7E3D8, #094E48);
  background-size: 200% 200%;
  animation: gradient-anim-2 14s ease infinite;
}

.gradient-3 .card-image {
  background: linear-gradient(120deg, #fdf6ec, #F3ECE2, #414F62);
  background-size: 200% 200%;
  animation: gradient-anim-3 14s ease infinite;
}

.gradient-4 .card-image {
  background: linear-gradient(120deg, #F8F7F3, #BDA27C, #829279);
  background-size: 200% 200%;
  animation: gradient-anim-3 14s ease infinite;
}

.gradient-5 .card-image {
  background: linear-gradient(135deg, #717275, #D49F92, #f7d8c8);
  background-size: 200% 200%;
  animation: gradient-anim-4 14s ease infinite;
}

.gradient-6 .card-image {
  background: linear-gradient(120deg, #FFF8F1, #BFA1FF, #e6dff5);
  background-size: 200% 200%;
  animation: gradient-anim-1 14s ease infinite;
}

.gradient-7 .card-image {
  background: linear-gradient(66deg, #FFF9E8, #c6e7f5, #67A4BE);
  background-size: 200% 200%;
  animation: gradient-anim-2 14s ease infinite;
}

/* sanfte, gleichmäßige Bewegung */
@keyframes gradient-anim-1 {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes gradient-anim-2 {
  0% { background-position: 100% 0%; }
  50% { background-position: 0% 100%; }
  100% { background-position: 100% 0%; }
}
@keyframes gradient-anim-3 {
  0% { background-position: 50% 0%; }
  50% { background-position: 50% 100%; }
  100% { background-position: 50% 0%; }
}
@keyframes gradient-anim-4 {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

/* Card image */
.card-image {
  width: 100%;
  height: 5px;
  border-radius: 1px;
  overflow: hidden;
  margin-bottom: 1.2rem;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Footer */
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  margin-left: 0.15rem;
}

/* Dots */
.dots {
  display: flex;
  align-items: center;
  height: 20px;
  color: #999;
  margin-right: 0.15rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid #362D29;
  background-color: var(--dot-color, #ccc);
}

.dot:not(:first-child) {
  margin-left: -6px;
}

/* Hover animation */
@keyframes wobble {
  0%   { transform: rotate(0deg) scale(1); }
  15%  { transform: rotate(-1deg) scale(1.01); }
  30%  { transform: rotate(1.5deg) scale(1.01); }
  45%  { transform: rotate(-1deg) scale(1.01); }
  60%  { transform: rotate(1deg) scale(1.005); }
  75%  { transform: rotate(-0.5deg) scale(1); }
  100% { transform: rotate(0deg) scale(1); }
}

/* =======================================================
   ARBEITSPROBEN
======================================================= */
.page-arbeitsproben .container {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  position: relative;
  padding-top: 6rem;
  padding-bottom: 4rem;
  padding-left: 0;
  padding-right: 0;
}

.page-arbeitsproben header {
  margin-bottom: 3rem;
  padding: 0 3rem; /* Header bleibt mit Seitenabstand */
}

/* Galerie */
.page-arbeitsproben .gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  width: 100%;
  margin: 2.5rem 0 2rem 0;
}

.page-arbeitsproben .gallery-item {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e0e0e0;
}

.page-arbeitsproben .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* BACK BUTTON – jetzt perfekt zentriert mobil */
.page-arbeitsproben nav {
  position: absolute;
  bottom: 2.5rem;         /* Abstand vom unteren Rand */
  left: 50%;              /* horizontale Mitte */
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  width: auto;
  margin: 0;
  padding: 0;
}

.page-arbeitsproben nav a {
  text-decoration: none;
  color: #333;
  font-size: 0.9rem;
}

/* ✨ Hover-Effekt für Back-Button */
.page-arbeitsproben nav a:hover {
  text-decoration: underline;
}

/* =======================================================
   RESUME
======================================================= */

h3 {
  color: #BFA1FF;
  text-decoration: underline;
}

.resume-text {
  font-size: 0.9rem;
   border: 1px solid #999;
  background: #fff;
  border-radius: 26px;
  padding: 0.5rem 2rem 0.5rem 2rem;
  margin: 0 3rem;
}

/* =======================================================
   MEDIA QUERIES
======================================================= */
/* Desktop */
@media (min-width: 1024px) {
  header h1 .strich::after {
    width: 150px;
    margin-left: 1rem;
  }

  .container,
  .page-arbeitsproben .container {
    padding-left: 14rem;
    padding-right: 14rem;
  }

  .card-image {
    height: 8px;
  }

  /* NAV & BACK BUTTON oben rechts, untereinander */
  nav,
  .page-arbeitsproben nav {
    position: absolute;
    top: 6rem;
    right: 14rem;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 0.25rem;
    width: auto;
    margin: 0;
    padding: 0;
    transform: none;
    bottom: auto;
  }

  nav a,
  .page-arbeitsproben nav a {
    font-size: 0.9rem;
  }

  .page-arbeitsproben nav {
    top: 6rem;
  }

  .page-arbeitsproben header {
  margin-bottom: 3rem;
  padding: 0 0rem; /* Header bleibt mit Seitenabstand */
  }

  .resume-text {
  margin: 0;
  font-size: 1rem;
}

}

/* =======================================================
   MISC
======================================================= */
img {
  -webkit-user-drag: none;
  user-select: none;
}

body, a, button, .hover-element, * {
  cursor: url('bluemle2.png') 16 16, auto;
}

/* FONT */
@font-face {
  font-family: 'JetBrains Mono';
  src: url('./JetBrainsMono[wght].woff2') format('woff2');
  font-weight: 100 800; /* alle verfügbaren Gewichte */
  font-style: normal;
  font-display: swap;
}
