/* ================================
   BASIS RESET
================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #f9f9f9;
  color: #222;
  font-size: 18px;
  line-height: 1.8;
  scroll-behavior: smooth;
}

h1, h2, h3 {
  font-weight: 700;
}

p, a {
  font-weight: 400;
}

/* ================================
   HEADER
================================ */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(249,249,249,0);
  transition: background 0.5s, box-shadow 0.5s, backdrop-filter 0.5s;
}

/* Scrollzustand: Hintergrund + Schatten */
header.scrolled {
  background: rgba(249,249,249,0.8);
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Logo - Standardzustand */
header h1 img {
  height: 50px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.7;          /* leicht transparent */
  transform: scale(0.01);   /* Standardgröße */
}

/* Logo - Scrollzustand */
header.scrolled h1 img {
  opacity: 1;             /* volle Sichtbarkeit */
  transform: scale(3);  /* leicht vergrößern */
}

/* Hover-Effekt */
header h1 img:hover {
  transform: scale(1.15);
}

/* Navigation */
nav a {
  margin-left: 2rem;
  text-decoration: none;
  color: #555;
  font-weight: 500;
  transition: color 0.3s, transform 0.3s, opacity 0.3s, filter 0.3s;
  cursor: pointer;
}

nav a.blur { opacity: 0.3; filter: blur(1px); }
nav a.active { color: #000; opacity: 1; filter: blur(0); }
nav a:hover { transform: translateY(-2px); color: #000; }

/* ================================
   HERO
================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 2rem;
}

.hero h2 { font-size: 3.5rem; margin-bottom: 1rem; }
.hero p { font-size: 1.4rem; color: #555; }

/* ================================
   SECTIONS
================================ */
section {
  min-height: 100vh;
  padding: 6rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

section.fade-in-hidden {
  opacity: 0;
  transform: translateY(-50px);
  pointer-events: none;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* ================================
   Art
================================ */
.art-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

.art {
  background: #f2f2f2;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s;
  font-weight: 500;
  position: relative; /* für Overlay */
  overflow: hidden;   /* damit Overlay nicht rausfällt */
}

.art:hover {
  transform: translateY(-5px);
  background: #e0e0e0;
}

.art-overlay-hover {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34,34,34,0.95);
  color: #fff;
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  font-size: 1.5rem;
  line-height: 1.6;
  opacity: 0;
  pointer-events: none; /* <-- Hier wichtig */
  transition: opacity 0.2s ease-in-out;
  z-index: 2000;
  overflow-y: auto;
}

.art:hover ~ .art-overlay-hover[data-id="overlay-id"] {
  opacity: 1;
}

/* ================================
   Projects
================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.projects-post {
  background: #f2f2f2;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  text-align: left;
  transition: transform 0.3s ease, background 0.3s ease;
  cursor: pointer;
}

.projects-post:hover {
  transform: translateY(-5px);
  background: #e0e0e0;
}

.projects-post h3 {
  margin-bottom: 0.8rem;
  font-size: 1.4rem;
  color: #111;
}

.projects-post p {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
}


/* ================================
   OVERLAY
================================ */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 1.5rem;
  z-index: 2000;
}

.overlay.hidden { display: none; }

#overlay-content {
  background: #222;
  padding: 2rem;
  border-radius: 12px;
  max-width: 500px;
  text-align: center;
}

#close-overlay {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

/* ================================
   CURSOR BLOB
================================ */
.blob {
  position: fixed;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(80,80,80,0.85), rgba(50,50,50,0.4));
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.2s;
}

/* ================================
   SOCIAL ICONS
================================ */
.social-links a {
  margin: 0 0.8rem;
  color: #555;
  font-size: 2rem;
  transition: transform 0.3s, color 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-links a:hover {
  color: #000;
  transform: scale(1.3);
}

/* ================================
   FOOTER
================================ */
footer {
  text-align: center;
  padding: 2rem;
  color: #888;
  border-top: 1px solid #ddd;
}

a { color: #222; text-decoration: none; }
a:hover { text-decoration: underline; }


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

  body { font-size: 16px; line-height: 1.6; }

  h1 { font-size: 1.8rem; }
  h2 { font-size: 2.2rem; }
  h3 { font-size: 1.6rem; }
  .hero h2 { font-size: 2.5rem; }
  .hero p { font-size: 1.2rem; }

  header h1 img { height: 40px; }

  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 2rem;
  }

  nav {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  nav a { margin: 0.5rem 0; }

  .art-list {
    gap: 1rem;
    padding: 1rem;
  }

  .social-links a { font-size: 1.8rem; margin: 0 0.5rem; }
}

/* Cursor auf Touch-Geräten ausblenden */
@media (hover: none) {
  .blob { display: none; }
}

/* Extra Abstand für Projects nach Hero */
#projects { margin-top: 2rem; }
