/* ===============================
   Grundlayout & Variablen
=================================*/
:root {
  --primary: #4d7c83;
  --secondary: #90b2a2;
  --light: #DDDDDD;
  --accent: #e6c69f;

  --text-dark: #000;
  --text-light: #fff;
  --text-gray: #555;

  --transition: all 0.3s ease;
  --header-height: 70px;
}

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

body {
  font-family: "Segoe UI", sans-serif;
  background: var(--light);
  color: var(--text-dark);
  line-height: 1.6;
}

a {
  text-decoration: none;
}

/* ===============================
   Header / Navigation
=================================*/
header {
  position: sticky;
  top: 0;
  width: 100%;
  background: var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-light);
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: var(--text-light);
  position: relative;
  transition: var(--transition);
}

nav a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--accent);
  transition: var(--transition);
}

nav a:hover::after {
  width: 100%;
}

nav a:hover {
  color: var(--accent);
}

/* Icons */
.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  color: var(--text-light);
  font-size: 1.1rem;
  transition: var(--transition);
}

.social-icons a:hover {
  transform: scale(1.2);
  color: var(--accent);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  transition: var(--transition);
}

/* ===============================
   Hero (Startseite)
=================================*/
.hero {
  display: flex;
  height: calc(100vh - var(--header-height));
}

.hero-section {
  flex: 1;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  color: white;
  backdrop-filter: blur(0px);
  transition: background 0.5s ease, backdrop-filter 0.5s ease;
}

/* Hover über die gesamte hero-section */
@media (hover: hover) {

  .hero-section:hover .hero-overlay {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
  }

  .hero-section:hover .button {
    background: var(--secondary);
    transform: translateY(-3px);
  }

}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.button {
  background: var(--accent);
  color: black;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
  text-align: center;
}

.button:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}

/* ===============================
   Bücher Cards
=================================*/
.container {
  width: 85%;
  margin: 4rem auto;
}

.book-card {
  display: flex;
  background: white;
  margin-bottom: 3rem;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: var(--transition);
}

.book-card:hover {
  transform: translateY(-5px);
}

.book-card img {
  width: 40%;
  height: auto;
  object-fit: cover;
}

.book-content {
  width: 60%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.book-content h2 {
  margin-bottom: 1rem;
  color: var(--primary);
}

.isbn{
  margin-bottom: 1rem;
}

/* ===============================
   Bilder Galerie
=================================*/
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

@media (hover: hover) {

  .gallery-item:hover {
    transform: scale(1.05)!important;
    filter: brightness(1.05)!important;
  }

}

/* ===============================
   Über mich
=================================*/
.about {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.about img {
  width: 300px;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* ===============================
   Responsive
=================================*/
@media (max-width: 992px) {
  .book-card {
    flex-direction: column;
  }

  .book-card img {
    width: 100%;
    height: 300px;
  }

  .book-content {
    width: 100%;
  }

  .about {
    flex-direction: column;
  }

  .hero {
    flex-direction: column;
    max-height: calc(100vh - var(--header-height))!important;
    max-height: calc(100dvh - var(--header-height))!important;
  }

  .hero-section {
    height: 50vh;
  }

  .hero-section:active,
  .gallery-item:active {
    transform: scale(0.98);
  }

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

  #imguebermich{
    width: 100%!important;
  }

}

@media (max-width: 768px) {
  nav {
    position: absolute;
    top: 70px;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    width: 200px;
    padding: 2rem;
    display: none;
  }

  nav.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .social-icons {
    margin-top: 1rem;
  }

  .hero {
    flex-direction: column;
    max-height: calc(100vh - var(--header-height))!important;
    max-height: calc(100dvh - var(--header-height))!important;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    height: 260px;
  }

  .lightbox-content {
    max-width: 95%;
    max-height: 85%;
  }

  #imguebermich{
    width: 100%!important;
  }
}

/* ===============================
   Lightbox
=================================*/

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
  z-index: 2000;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 80vw;
  max-height: 80vh;
  perspective: 1000px;
  transform: scale(0.7);
  transition: transform 0.4s ease;
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-inner {
  position: relative;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.lightbox-inner.flipped {
  transform: rotateY(180deg);
}

.lightbox-front, .lightbox-back {
  backface-visibility: hidden;
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 15px;
  display: block;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.lightbox-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--light);
  transform: rotateY(180deg);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  box-sizing: border-box;
}

.lightbox-title {
  color: var(--primary);
  font-size: 1.8rem;
  line-height: 1.4;
}

/* Buttons */
.lightbox button,
.lightbox .close {
  position: absolute;
  background: var(--light);
  border: none;
  padding: 5px 15px;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  transition: 0.3s;
}

.lightbox button:hover,
.lightbox .close:hover {
  background: var(--secondary);
}

.close {
  top: 20px;
  right: 30px;
}

.prev {
  left: 30px;
}

.next {
  right: 30px;
}

#imguebermich{
  width: 35vw;
}

.hero-left {
  animation: slideInLeft 1s ease forwards;
}

.hero-right {
  animation: slideInRight 1s ease forwards;
}

.futter{
  display: flex;
  justify-content: center;
  width: 100%;
  color: black;
}

.impressum{
  color: black!important;
}

/* Startzustand innerhalb der Animation */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-200px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(200px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
