@font-face {
  font-family: "Apfel Grotesk";
  src:
    url("fonts/ApfelGrotezk-Regular.woff2") format("woff2"),
    url("fonts/ApfelGrotezk-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Apfel Grotesk";
  src:
    url("fonts/ApfelGrotezk-Mittel.woff2") format("woff2"),
    url("fonts/ApfelGrotezk-Mittel.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Apfel Grotesk";
  src:
    url("fonts/ApfelGrotezk-Fett.woff2") format("woff2"),
    url("fonts/ApfelGrotezk-Fett.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Apfel Grotesk";
  src:
    url("fonts/ApfelGrotezk-Satt.woff2") format("woff2"),
    url("fonts/ApfelGrotezk-Satt.woff") format("woff");
  font-weight: 900; /* schwere Schnitte → 900 */
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Apfel Grotesk Brukt";
  src:
    url("fonts/ApfelGrotezk-Brukt.woff2") format("woff2"),
    url("fonts/ApfelGrotezk-Brukt.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Apfel Grotesk";
  overflow-x: hidden;
  color: #dfd9d8;
  font-size: 23px;
  cursor:
    url("images/cursor.png") 16 16,
    auto;
}

h1 {
  margin-top: 0;
  font-size: 28px;
  max-width: 65%;
  margin-bottom: 16px;
}

body.startseite {
  overflow-x: hidden;
}

.startseite main.content-area h1 {
  margin-bottom: 65px;
}

.text-image-wrapper {
  margin-top: 120px;
  display: flex;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
}

.text-image-wrapper .intro-text {
  flex: 1 1 300px;
  z-index: 998;
  position: relative;
}

.corner-image {
  position: fixed;
  bottom: 0;
  right: 0;
  max-height: 100vh;
  width: auto;
  z-index: 1001;
  pointer-events: none;
}

.intro-text ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.intro-text li {
  margin: 0;
  line-height: 1.4;
  max-width: 65%;
}

.stern {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  background: url("images/stern.png") no-repeat center/contain;
  animation: rotieren infinite ease-in-out alternate;
  transform-origin: center;
}

.stern1 {
  top: 152px;
  left: 36%;
  width: 150px;
  height: 150px;
  animation-duration: 1.3s;
}
.stern2 {
  top: 91px;
  left: 48%;
  width: 90px;
  height: 90px;
  animation-duration: 1.1s;
}
.stern3 {
  top: 168px;
  left: 64%;
  width: 110px;
  height: 110px;
  animation-duration: 1s;
}
.stern4 {
  top: 241px;
  left: 53%;
  width: 80px;
  height: 80px;
  animation-duration: 1.9s;
}

@keyframes rotieren {
  0% {
    transform: rotate(-20deg);
  }
  100% {
    transform: rotate(20deg);
  }
}

.blog-stern {
  position: fixed;
  width: 150px;
  height: 150px;
  z-index: 0;
  pointer-events: none;
}

.blog-stern-l1 {
  top: 46%;
  left: 10%;
  animation-duration: 1.6s;
}

.blog-stern-l2 {
  top: 61%;
  left: 5%;
  width: 60px;
  animation-duration: 1.3s;
}

.blog-stern-l3 {
  top: 73%;
  left: 11%;
  width: 140px;
  animation-duration: 1.9s;
}

.blog-stern-r1 {
  top: 27%;
  right: 12%;
  width: 200px;
  height: 200px;
  animation-duration: 1.4s;
}

.blog-stern-r2 {
  top: 50%;
  right: 3%;
  width: 130px;
  animation-duration: 1.8s;
}

.blog-stern-r3 {
  top: 70%;
  right: 13%;
  animation-duration: 1.2s;
}

a,
button,
input[type="submit"],
label,
[role="button"] {
  cursor:
    url("images/cursor-clickable.png") 16 16,
    pointer;
}

a {
  color: #fc8f8f;
  display: inline-block;
  width: fit-content;
  height: fit-content;
}

p {
  max-width: 684px;
}

.startseite .content-area p {
  font-size: 26px;
  margin-top: 100px;
}

.startseite .hero-image2 {
  padding-left: 20px;
}

.page-frame {
  position: fixed;
  inset: 0;
  border: 20px solid #fc8f8f;
  pointer-events: none;
  z-index: 1000;
  box-sizing: border-box;
}

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: #b44446;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 0 60px;
  z-index: 999;
}

.top-bar nav {
  display: flex;
  align-items: center;
}

.top-bar a.active {
  text-decoration: underline;
}

.site-name {
  font-family: "Apfel Grotesk";
  font-weight: 700;
  font-size: 30px;
  padding: 40px 0 20px 0;
}

.top-bar a {
  margin-left: 25px;
  color: #dfd9d8;
  text-decoration: none;
  font-size: 28px;
  line-height: 1;
  padding: 40px 0 20px 0;
}

.hero-image {
  width: 400px;
  margin: -70px 0 15px 0;
}

.hero-image2 {
  width: 400px;
  margin: -76px 1px 5px -65px;
}

.content-area {
  background: #64242f;
  min-height: 120vh;
  padding: 180px 100px 40px 100px;
  box-sizing: border-box;
}

.image-text-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 30px;
  margin-top: 50px;
}

.image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-auto-rows: 260px;
  gap: 15px;
  max-width: 600px;
  min-width: 300px;

  grid-template-areas:
    "a b b"
    "c c d";
}

.a {
  grid-area: a;
}
.b {
  grid-area: b;
}
.c {
  grid-area: c;
}
.d {
  grid-area: d;
}

.image-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.image-grid2 {
  display: grid;
  grid-template-columns: 15fr 15fr;
  grid-template-rows: 15fr 15fr;
  gap: 15px;
  width: 700px;
}

.image-grid2 img.img-normal {
  width: 100%;
}

.image-grid3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  width: 100%;
  gap: 15px;
  margin-left: auto;
  margin-right: auto;
  height: auto;
}

.image-grid3 .img-box {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.image-grid3 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.text-left {
  max-width: 400px;
  min-width: 200px;
  text-align: right;
}

.image-grid-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.image-grid-right img {
  width: 100%;
  object-fit: cover;
  display: block;
}

.text-block {
  max-width: 500px;
  text-align: left;
  margin-top: -18px;
}

.text-block-content-column p {
  min-width: 76px;
}

.text-block-content-column {
  max-width: 450px;
}

.text-block-content-column2 {
  max-width: 550px;
}

.content-column {
  max-width: 500px;
}

.fullscreen-image {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
  margin: 0 auto 20px;
}

.row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.row img {
  max-width: 45%;
  height: auto;
}

.portfolio-text {
  max-width: 500px;
  margin: 0 auto;
}

.portfolio-text p {
  max-width: 684px;
  min-width: 200px;
  text-align: justify;
  text-align-last: center;
  hyphens: auto;
}

.blog-text-wrapper {
  max-width: 619px;
  margin: 0 auto;
  text-align-last: left;
  line-height: 1.6;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.blog-text-wrapper h1,
.blog-text-wrapper h2,
.blog-text-wrapper h3 {
  text-align: center;
  margin-bottom: 20px;
  margin-top: 40px;
}

.blog-text-wrapper img {
  display: block;
  margin: 20px auto;
  max-width: 100%;
  height: auto;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(4, 1fr) 0.5fr;
  gap: 15px;
  grid-auto-flow: dense;
  height: 100%;
}

.gallery-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 80px auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: 20px;
}

.item {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.08);
}

.item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: center;
  transition: transform 0.3s ease;
}

.item img:hover {
  transform: scale(1.05);
}

.tall {
  grid-row: span 2;
}
.big {
  grid-column: span 2;
  grid-row: span 2;
}

.img-small {
  max-width: 450px;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.lightbox:target {
  display: flex;
}

.lightbox-bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 0;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  position: relative;
  z-index: 2;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 2rem;
  text-decoration: none;
  z-index: 3;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  display: block;
  z-index: 1;
}

.site-footer {
  text-align: center;
  padding: 10px 10px 30px;
  background-color: #b44446;
  position: relative;
}

.hover-caption {
  position: relative;
  overflow: hidden;
}

.caption-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  transition: opacity 0.3s ease;
}

.hover-caption:hover .caption-overlay {
  opacity: 1;
}

.caption-text {
  max-width: 300px;
  text-align: center;
  color: #dfd9d8;
  font-size: 18px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.sketchbook {
  position: sticky;
  top: 100px;
  margin: 0 auto;
  width: auto;
  height: 80vh;
  background: #64242f;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.sketch-page {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
  opacity: 0;
}

.sketch-page:first-child {
  display: flex;
  opacity: 1;
}

body:has(:target) .sketch-page {
  display: none;
  opacity: 0;
}

body:has(:target) .sketch-page:target {
  display: flex;
  opacity: 1;
}

.sketch-page img {
  height: 90%;
  width: 90%;
  object-fit: contain;
}

.sketch-page .next,
.sketch-page .prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: #dfd9d8;
  text-decoration: none;
  padding: 10px;
  opacity: 0.4;
}

.sketch-page .next:hover,
.sketch-page .prev:hover {
  opacity: 1;
}

.sketch-page .next {
  right: 20px;
}
.sketch-page .prev {
  left: 20px;
}

.portfolio-text {
  text-align-last: center;
}

@media (min-width: 1600px) {
  body,
  p,
  h1,
  h2,
  ul,
  li,
  .intro-text,
  .content-area,
  .portfolio-text p,
  .blog-text-wrapper h1,
  .blog-text-wrapper h2,
  .blog-text-wrapper h3,
  .caption-text,
  .hover-caption .caption-text {
    font-size: 31px;
  }

  .text-image-wrapper .intro-text h1 {
    font-size: 49px;
  }

  .intro-text ul {
    font-size: 30px;
  }

  .hero-image2 {
    width: 32vw;
    max-width: 710px;
  }

  .stern1 {
    top: 248px;
    margin-left: 56px;
  }
  .stern2 {
    top: 148px;
  }
  .stern3 {
    top: 214px;
  }
  .stern4 {
    top: 322px;
  }

  .corner-image {
    max-height: 95vh;
    width: auto;
  }

  .text-image-wrapper ul {
    margin-top: 5%;
  }

  .contact .content-area p {
    font-size: 35px;
    line-height: 1.5;
  }
}

@media (max-width: 1200px) {
  .blog-stern {
    display: none;
  }

  .stern1,
  .stern2,
  .stern3,
  .stern4 {
    display: none;
  }

  .corner-image {
    max-height: 75vh;
    width: auto;
  }
}

@media (max-width: 800px) {
  
  p {
    font-size: 20px;
  }
  
   h2 {
    font-size: 23px;
  }

  html,
  body {
    overflow-x: hidden;
  }

  .corner-image {
    max-height: 60vh;
    width: auto;
  }

  .gallery {
    gap: 5px;
  }
}

@media (max-width: 600px) {
  
  body {
    font-size: 20px;
  }

  h1,
  .intro-text li {
    max-width: 100%;
    margin-right: 50px;
  }

  .startseite main.content-area h1 {
    margin-bottom: 30px;
  }

  .text-image-wrapper h1 {
    font-size: 23px;
    max-width: 80%;
  }

  h2 {
    font-size: 23px;
  }

  .page-frame {
    border-width: 10px;
  }

  .top-bar {
    height: 50px;
    justify-content: flex-start;
    padding-left: 10px;
    padding-right: 10px;
    gap: 10px;
  }

  .site-name {
    font-size: 16px !important;
    padding: 8px 0;
    margin-top: 12.4px;
    height: 41px;
    justify-content: flex-start;
    gap: 10px;
  }

  .top-bar nav a {
    font-size: 13px !important;
    margin-left: 3px;
    margin-right: 3px;
    margin-bottom: 10px;
  }

  .content-area,
  .blog-text-wrapper,
  .text-image-wrapper .intro-text {
    margin-left: 0;
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-image2 {
    max-width: 80%;
    margin-bottom: 20px;
    margin-left: 0;
  }

  body.startseite .hero-image2 {
    width: 80%;
    max-width: 100%;
    height: auto;
    display: block;
  }

  body.startseite .text-image-wrapper {
    margin-top: 40px;
    flex-direction: column;
  }

  .hero-image {
    max-width: 90%;
    margin-bottom: 5px;
    margin-left: 0;
  }

  .corner-image {
    display: none;
  }

  .text-image-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .text-image-wrapper > .image-grid,
  .text-image-wrapper > img,
  .text-image-wrapper > .hero-image2 {
    order: 0;
    width: 100%;
    flex: none;
  }

  .text-image-wrapper > .text-block,
  .text-image-wrapper > .intro-text {
    order: 1;
    width: 100%;
    flex: none;
    margin: 0 auto;
  }

  .text-image-wrapper .intro-text li {
    max-width: 100%;
    flex: 1;
  }

  .sketch-page img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  .gallery {
    gap: 4px;
  }

  .img-box img {
    width: 100%;
    height: auto;
    display: block;
  }

  .image-grid,
  .image-grid2 {
    flex-direction: column;
  }

  .image-grid {
    display: grid;
    grid-auto-rows: auto;
  }

  .image-grid2 {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .image-grid img,
  .image-grid2 img {
    flex: 1 1 100%;
  }

  .image-text-wrapper {
    display: flex;
    flex-direction: column;
  }

  .image-text-wrapper .image-grid {
    width: 100%;
    height: auto;
    display: inline-flex;
    object-fit: contain;
  }

  .image-text-wrapper img {
    width: 100%;
    height: auto;
    margin: 0 auto;
  }

  .image-text-wrapper.text-block {
    padding: 0 20px;
  }

  .text-block {
    width: 90vw;
  }

  .image-grid3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
  }
}
