/* --- CSS Variablen & Reset --- */

/* --- LOKALE FONTS --- */

/* inter-300 - latin */
@font-face {
  font-display: swap;
  font-family: "Inter";
  font-style: normal;
  font-weight: 300;
  src: url("../fonts/inter-v20-latin-300.woff2") format("woff2");
}
/* inter-regular - latin */
@font-face {
  font-display: swap;
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/inter-v20-latin-regular.woff2") format("woff2");
}
/* inter-500 - latin */
@font-face {
  font-display: swap;
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  src: url("../fonts/inter-v20-latin-500.woff2") format("woff2");
}
/* cormorant-garamond-regular - latin */
@font-face {
  font-display: swap;
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/cormorant-garamond-v21-latin-regular.woff2")
    format("woff2");
}
/* cormorant-garamond-italic - latin */
@font-face {
  font-display: swap;
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400;
  src: url("../fonts/cormorant-garamond-v21-latin-italic.woff2") format("woff2");
}
/* cormorant-garamond-600 - latin */
@font-face {
  font-display: swap;
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  src: url("../fonts/cormorant-garamond-v21-latin-600.woff2") format("woff2");
}
/* cormorant-garamond-600italic - latin */
@font-face {
  font-display: swap;
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 600;
  src: url("../fonts/cormorant-garamond-v21-latin-600italic.woff2")
    format("woff2");
}
/* lavishly-yours-regular - latin */
@font-face {
  font-display: swap;
  font-family: "Lavishly Yours";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/lavishly-yours-v7-latin-regular.woff2") format("woff2");
}
/* eagle-lake-regular - latin */
@font-face {
  font-display: swap;
  font-family: "Eagle Lake";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/eagle-lake-v26-latin-regular.woff2") format("woff2");
}

:root {
  /* Colorpalette: Ruhe Wald */
  --bg-deep: #1a2622; /* Dark Grün */
  --bg-soft: #2c3e36; /* Helles Grün */
  --mist: rgba(255, 255, 255, 0.05); /* Dichte Nebel */
  --text-main: #e8ece9; /* Weich-White */
  --text-muted: #aabeb4; /* Grau-Grün */
  --accent: #d4c6a6; /* pastel Gold/Beige */
  --accent-glow: rgba(212, 198, 166, 0.2);

  /* Distans & Layout */
  --wrapper-width: 1100px;
  --space-md: 2rem;
  --space-lg: 4rem;

  /* Fonts */
  --font-serif: "Cormorant Garamond", serif;
  --font-sans: "Inter", sans-serif;
  --font-script: "Lavishly Yours", cursive;
}

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

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  /* kl. Noise im Hintergrund für Textur */
  background-image: radial-gradient(
    circle at top left,
    var(--bg-soft),
    var(--bg-deep)
  );
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

.wrapper {
  max-width: var(--wrapper-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Header & Navigation */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  /* Glas-Effekt für Navi */
  background: rgba(26, 38, 34, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.site-title {
  font-family: var(--font-script);
  font-size: 2.2rem;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0;
  color: #cfc98af9;
  text-shadow: 0 0 20px rgba(232, 236, 233, 0.2);
  padding-top: 5px;
}

.site-nav ul {
  display: flex;
  gap: 2rem;
}

.site-nav a {
  font-size: 0.95rem;
  color: var(--text-muted);
}

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

.btn-cta {
  border: 1px solid var(--accent);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  color: var(--accent) !important;
}

.btn-cta:hover {
  background: var(--accent);
  color: var(--bg-deep) !important;
}

/* Hero Section (Wald Atmosphäre) */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 60px 0; /* Platz für fixierten Header schaffen */
}

/* Hintergrundbild oder CSS Gradient */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(to bottom, rgba(26, 38, 34, 0.85), rgba(26, 38, 34, 0.7)),
    url("../img/wald1.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: -1;
  filter: blur(1px);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.greeting {
  display: block;
  font-family: "Eagle Lake", serif;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 1.1;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--text-muted);
  font-weight: 300;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 100%;
  margin-bottom: 2rem;
}

.highlight-box {
  display: block;
  margin-top: 10px;
  margin-bottom: 30px;
  padding: 15px 20px;
  border-left: 3px solid #cfc98af9;
  background: rgba(212, 198, 166, 0.08); /* Мягкий золотистый фон! */
  color: var(--text-main);
  font-style: italic;
  border-radius: 0 5px 5px 0;
  max-width: 100%;
}

.highlight-box strong {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-style: normal; /* Убираем курсив с самого заголовка, так солиднее */
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-deep);
}

.btn-primary:hover {
  background: #e8dcc4;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-text {
  margin-left: 1rem;
  color: var(--text-main);
}

/* Glassmorphism Cards und Sections */
section {
  padding: var(--space-lg) 0;
}

.glass-card {
  background: var(--mist);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  margin-bottom: 2rem;
}

.highlight-text {
  margin-top: 1.5rem;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  color: var(--text-main);
}

h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

h3 {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

/* Grid & Skills */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.skill-card {
  background: rgba(255, 255, 255, 0.02);
  padding: 2rem;
  border-radius: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.04);
}

.skill-card ul li {
  margin-bottom: 0.5rem;
  padding-left: 1.2rem;
  position: relative;
  color: var(--text-muted);
}

.skill-card ul li::before {
  content: "•";
  color: var(--accent);
  position: absolute;
  left: 0;
}

/* Project Body Text Style */
.project-body h1,
.project-body h2,
.project-body h3,
.project-body h4 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
  color: var(--text-heading, #c5b49f);
}

.project-body h2 {
  font-size: 2.2rem;
  border-left: 4px solid #c5b49f;
  padding-left: 12px;
  margin-top: 3rem;
}

.project-body h3 {
  font-size: 1.6rem;
  color: #e8dcc4;
  border-bottom: 1px solid #c5b49f;
  padding-bottom: 6px;
}

.project-body h4 {
  font-size: 1.25rem;
  color: #e8dcc4;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-body ul {
  padding-left: 1rem;
  margin-bottom: 1.5rem;
  list-style: none;
}

.project-body ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

.project-body ul li::before {
  content: "•";
  color: #c5b49f;
  font-size: 1.2rem;
  position: absolute;
  left: 0;
  top: 0;
  line-height: 1.2;
}

/* --- Project Grid (Hauptseite) --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
  background-color: var(--bg-soft);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border-color: var(--accent);
}

.project-card:hover .card-image img {
  transform: scale(1.1);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 38, 34, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}

.project-card:hover .card-overlay {
  opacity: 1;
}

.overlay-content {
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.project-card:hover .overlay-content {
  transform: translateY(0);
}

.overlay-content h3 {
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.view-btn {
  font-size: 0.9rem;
  color: var(--text-main);
  border: 1px solid var(--text-main);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  display: inline-block;
}

/* --- Kontaktbereich Styling --- */
.contact-grid {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s ease;
}

.icon-box svg {
  width: 32px;
  height: 32px;
  stroke: var(--accent);
  margin-bottom: 0.8rem;
  transition: transform 0.3s ease;
}

.contact-label {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  color: var(--text-main);
}

.contact-item:hover .icon-box svg {
  transform: scale(1.1);
  stroke: #fff;
}

footer {
  text-align: center;
  padding: 3rem 0;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-links {
  margin-top: 0.5rem;
}

.legal-links a {
  margin: 0 10px;
}

/* --- Projekt Seite Details --- */
.project-hero {
  font-family: var(--font-serif);
  font-size: 20px;
  text-shadow: 1px 1px 3px rgb(46, 46, 46);
  height: 60vh;
  position: relative;
  display: flex;
  overflow: hidden;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.project-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(1px);
  z-index: 1;
}

.project-hero-content {
  position: relative;
  z-index: 2;
}

.tech-tag {
  display: inline-block;
  background: rgba(212, 198, 166, 0.1);
  border: 1px solid var(--accent);
  color: #d4c6a6;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 1.2rem;
  margin-right: 0.5rem;
  margin-top: 1rem;
}

/* Gallery in Projekt (Grid) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.gallery-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  cursor: zoom-in;
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-item img:hover {
  transform: scale(1.03);
  filter: brightness(1.1);
  border-color: var(--accent);
}

/* --- LIGHTBOX (Modal Fenster) --- */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(26, 38, 34, 0.98);
  opacity: 0;
  backdrop-filter: blur(10px);
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: block;
  opacity: 1;
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90vh;
  border: 2px solid var(--accent);
  box-shadow: 0 0 50px rgba(212, 198, 166, 0.1);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  transition: transform 0.3s ease;
}

/* Beim Öffnen vergrößert sich das Bild allmählich auf normale Größe */
.lightbox.active .lightbox-content {
  transform: translate(-50%, -50%) scale(1);
}

/* --- Lightbox Arrow --- */

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10001; /* oben */
}

/* position */
.prev-btn {
  left: 20px;
}
.next-btn {
  right: 20px;
}

/* SVG icon */
.lightbox-arrow svg {
  width: 30px;
  height: 30px;
  stroke: var(--text-muted);
  transition: stroke 0.3s ease;
}

/* effect hover */
.lightbox-arrow:hover {
  background: var(--accent); /* gold */
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.1); /* grosse */
}

.lightbox-arrow:hover svg {
  stroke: var(--bg-deep); /* farbe tausch */
}

/* Handy Arrow */
@media (max-width: 768px) {
  .lightbox-arrow {
    width: 40px;
    height: 40px;
    background: transparent; /* ohne background */
    border: none;
  }
  .prev-btn {
    left: 10px;
  }
  .next-btn {
    right: 10px;
  }

  .lightbox-arrow svg {
    stroke: var(--accent); /* gold */
  }
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--accent);
  font-size: 3rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
  z-index: 10000;
}

.close-btn:hover {
  color: #fff;
}

/* --- Legal Pages (Impressum & Datenschutz) --- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.legal-content h1 {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
}

.legal-content h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--text-main);
  margin-top: 3rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}

.legal-content h3 {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  color: var(--accent);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.legal-content h4 {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-main);
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-content p,
.legal-content li {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.3s ease;
}

.legal-content a:hover {
  color: #fff;
  text-decoration: none;
}

.legal-content ul {
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}

.legal-content ul li {
  margin-bottom: 0.5rem;
  list-style: disc;
}

/* Animations */
.fade-in {
  animation: fadeIn 1.5s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .site-nav {
    display: none;
  }

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