* {
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html {
  scroll-behavior:smooth;
}

body {
  font-family: 'Inter', sans-serif;
}

/* HEADER */
header {
  position:fixed;
  top:0;
  width:100%;
  padding:20px 40px;
  z-index:1000;
  mix-blend-mode:difference;
  color:white;
}

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

.logo {
  display:flex;
  align-items:center;
  text-decoration:none;
}

.logo img {
  height:100px;
  width:auto;
  display:block;
}

nav ul {
  display:flex;
  align-items:center;
  gap:30px;
  list-style:none;
  margin:0;
  padding:0;
}

nav a {
  font-size:16px;
  text-decoration:none;
  color:white;
}

/* Screen reader only */
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

#menu-toggle {
  display:none;
  background:none;
  border:none;
  font-size:18px;
  cursor:pointer;
  color:white;
}

/* Globale Linkfarbe */
a {
  color: black;         /* Standardfarbe */
  transition: color 0.3s; /* sanfter Farbwechsel */
}

a:hover,
a:focus {
  color: #515151;        /* Dunkelgrau beim Hover */
}


/* WORK SECTIONS */
.work {
  cursor:help;
}

/* MEDIA */
.media {
  height:100vh;
}

.media img,
.media iframe {
  width:100%;
  height:100%;
  object-fit:cover;
  image-rendering:auto;
  content-visibility:auto;
}

/* LQIP: blurred placeholder shown via inline background-image */
.media img[data-lqip] {
  background-repeat:no-repeat;
  background-position:center;
  /* background-size:cover is set inline */
  transition:filter 0.4s ease;
  filter:blur(20px);
  transform:scale(1.05); /* hide blur edges */
}

.media img[data-lqip].loaded {
  filter:blur(0);
  transform:scale(1);
}

.media {
  overflow:hidden; /* clip the scale(1.05) blur overflow */
}

/* WHITE SECTIONS */
section[data-theme="dark"],
footer {
  background:white;
  color:black;
  padding:120px 40px;
}

/* ABOUT */
.about-inner {
  max-width:1200px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
}

#shop {
  padding-top: 140px;
}

/* NEWSLETTER */
.newsletter {
  margin-top:40px;
}

.newsletter input,
.newsletter button {
  font-family:inherit;
  font-size:16px;
  border:1px solid black;
  background:none;
  padding:10px;
}

/* ABOUT */
.about-inner h3 {
  margin-top:24px;
  margin-bottom:8px;
  font-size:16px;
  font-weight:600;
}

.about-inner ul {
  list-style:none;
  padding:0;
  margin:0 0 16px 0;
}

.about-inner li {
  margin-bottom:8px;
  line-height:1.5;
}

.about-inner p {
  line-height:1.5;
  margin-bottom:12px;
}

/* CONTACT */
#contact h2,
#contact h3 {
  font-size:16px;
  font-weight:400;
  text-transform:uppercase;
  letter-spacing:0.05em;
}

#contact h2 {
  margin-bottom:10px;
}

#contact h3 {
  margin-top:30px;
  margin-bottom:10px;
}

#contact address {
  font-style:normal;
}

.websites ul,
.socials ul {
  list-style:none;
  padding:0;
  margin:0;
}

.websites li,
.socials li {
  margin-top:6px;
}

/* SOCIAL */
.socials a {
  display:inline;
}

#contact {
  padding-top:140px;
}

/* OVERLAYS (dialog) */
#work-overlay,
#legal-overlay {
  position:fixed;
  inset:0;
  width:100%;
  max-width:100%;
  max-height:100%;
  height:100%;
  border:none;
  background:white;
  z-index:2000;
  overflow-y:auto;
  padding:0;
  margin:0;
}

#work-overlay::backdrop,
#legal-overlay::backdrop {
  background:rgba(0,0,0,0.5);
}

.overlay-inner {
  padding:40px;
  max-width:800px;
}

.overlay-inner button {
  background:none;
  border:none;
  font-family:inherit;
  font-size:16px;
  cursor:pointer;
  padding:0;
  text-decoration:underline;
}

.overlay-inner h2 {
  margin-top:20px;
  margin-bottom:10px;
}

.overlay-inner h3 {
  margin-top:24px;
  margin-bottom:8px;
}

.overlay-inner p,
.overlay-inner address {
  margin-bottom:12px;
  font-style:normal;
  line-height:1.5;
}

#overlay-text {
  white-space:pre-line;
  line-height:1.5;
  margin-top:16px;
}

/* FOOTER */
footer ul {
  display:flex;
  gap:16px;
  list-style:none;
  padding:0;
  margin:8px 0 0 0;
}

footer button {
  background:none;
  border:none;
  font-family:inherit;
  font-size:inherit;
  color:black;
  cursor:pointer;
  padding:0;
  text-decoration:underline;
}

footer button:hover,
footer button:focus {
  color:#515151;
}

/* MOBILE */
@media(max-width:768px){

  header {
    padding:15px 20px;
  }

  #menu-toggle {
    display:block;
    margin-left:auto;
  }

  nav ul {
    display:none;
    flex-direction:column;
    gap:10px;
    position:absolute;
    top:100%;
    left:0;
    width:100%;
    padding:10px 20px 20px;
  }

  nav.active ul {
    display:flex;
  }

  .about-inner {
    grid-template-columns:1fr;
  }
}
