/* ============================================= */
/* Globale Stile & Reset & Sage Theme            */
/* ============================================= */
:root {
  /* Salbei & Black Theme Palette */
  --background-base: #0c0e0d; /* Sehr dunkles Schwarz-Grün */
  --background-gradient: radial-gradient(
    circle at 15% 50%,
    #151f18 0%,
    #0c0e0d 100%
  );

  --text-color: #e6e8e6;
  --text-muted: #a3b0a6;

  --primary-color: #ffffff;
  --accent-color: #94b49f; /* Der Salbei-Ton */
  --accent-glow: rgba(148, 180, 159, 0.4);

  /* Glassmorphism mit Salbei-Touch */
  --card-background: rgba(255, 255, 255, 0.03);
  --card-border: 1px solid rgba(148, 180, 159, 0.15); /* Subtiler grüner Rand */
  --card-hover-bg: rgba(148, 180, 159, 0.08);

  --glass-bg: rgba(18, 22, 20, 0.85); /* Dunkles Glas mit Grünstich */
  --glass-border: 1px solid rgba(148, 180, 159, 0.1);

  --blur: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--background-base);
  background-image: var(--background-gradient);
  background-attachment: fixed; /* Edler Effekt beim Scrollen */
  overflow-x: hidden;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
}

.container {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem;
}

section {
  padding: 6rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #fff, var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  width: 100%;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 4rem auto;
  font-weight: 300;
}

/* Hilfsklassen für Navigation zwischen "Seiten" */
.page-section {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  animation: fadeInPage 0.5s ease forwards;
}

.page-section.active {
  display: block;
  opacity: 1;
}

@keyframes fadeInPage {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================= */
/* Topbar / Navigation                           */
/* ============================================= */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  z-index: 1000;
  background: rgba(12, 18, 15, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: var(--glass-border);
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}
.topbar.scrolled {
  height: 60px;
  background: rgba(12, 18, 15, 0.95);
}
.topbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.topbar-logo {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
  position: relative;
}
.topbar-logo:hover {
  opacity: 0.8;
}

.topbar-menu {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}
.topbar-menu li a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  padding: 5px 0;
  position: relative;
}
.topbar-menu li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}
.topbar-menu li a:hover,
.topbar-menu li a.active {
  color: var(--accent-color);
}
.topbar-menu li a.active::after {
  width: 100%;
}

/* ============================================= */
/* Hero                                          */
/* ============================================= */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  min-height: 500px;
  color: #ffffff;
  text-align: center;
  padding: 2rem;
  position: relative;
  z-index: 1;
  /* Sanfter Übergang von Schwarz in das Bild mit Salbei-Stich */
  background-image: linear-gradient(
      to bottom,
      rgba(12, 14, 13, 0.3),
      rgba(12, 14, 13, 1)
    ),
    linear-gradient(to top, rgba(12, 14, 13, 1), rgba(148, 180, 159, 0.1)),
    url("./img/hero.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero.about-hero {
  height: 60vh;
  background-image: linear-gradient(
      to bottom,
      rgba(12, 14, 13, 0.4),
      rgba(12, 14, 13, 1)
    ),
    url("./img/hero.jpg");
  background-position: center 30%;
}

.hero-content {
  transition: opacity 0.1s linear;
  margin-top: 40px;
  z-index: 2;
}

.hero-subheading {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.hero-slogan {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  margin-bottom: 0.5rem;
  max-width: 900px;
  line-height: 1.1;
}

/* ============================================= */
/* About Page Content                            */
/* ============================================= */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.about-text {
  font-size: 1.1rem;
  color: var(--text-color);
}

.about-text p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.about-text h3 {
  color: #fff;
  border-left: 3px solid var(--accent-color);
  padding-left: 1rem;
  margin-top: 2rem;
}

.about-image {
  position: relative;
}

.about-image::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  border: 2px solid var(--accent-color);
  border-radius: 12px;
  z-index: -1;
  opacity: 0.5;
}

.about-image img {
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  width: 100%;
  height: auto;
  /* Leichter Sepia/Grün Filter für Integration */
  filter: sepia(10%) hue-rotate(90deg) contrast(0.95);
}

/* ============================================= */
/* Themen & Werte                                */
/* ============================================= */

#themen-werte {
  position: relative;
}

/* Deko-Elemente für Sage-Look */
.sage-blob {
  position: absolute;
  width: 400px;
  height: 400px;
  background: var(--accent-color);
  filter: blur(150px);
  opacity: 0.1;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}
.blob-1 {
  top: -100px;
  left: -100px;
}
.blob-2 {
  bottom: 0;
  right: 0;
  opacity: 0.05;
}

.werte-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.wert-card {
  background: var(--card-background);
  border: var(--card-border);
  border-radius: 16px;
  padding: 2.5rem;
  transition: all 0.4s ease;
  backdrop-filter: blur(5px);
  position: relative;
  overflow: hidden;
}

.wert-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.4s;
}

.wert-card:hover {
  background: var(--card-hover-bg);
  transform: translateY(-8px);
  border-color: rgba(148, 180, 159, 0.4);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.wert-card:hover::before {
  opacity: 1;
}

.wert-card h3 {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wert-card h3 i {
  color: var(--accent-color);
  font-size: 1rem;
  opacity: 0.8;
}

.wert-card p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================= */
/* Portfolio                                     */
/* ============================================= */
.portfolio-section {
  background-color: rgba(0, 0, 0, 0.2);
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
}

.logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 2rem 1rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 100%;
}

.logo-item:hover {
  transform: translateY(-5px) scale(1.02);
  /* Nutzt individuellen Glow oder Fallback zu Sage */
  background: radial-gradient(
    circle at center,
    var(--logo-glow-color, rgba(148, 180, 159, 0.2)) 0%,
    rgba(255, 255, 255, 0.05) 70%
  );
  border-color: var(--accent-color);
}

.logo-item img {
  max-height: 60px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.9); /* Standardmäßig S/W für cleanen Look */
  transition: filter 0.3s ease;
}

.logo-item:hover img {
  filter: grayscale(0%) brightness(1); /* Farbe bei Hover */
}

.logo-item figcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================= */
/* About                                         */
/* ============================================= */

#about {
  position: relative;
}

/* ============================================= */
/* Footer                                        */
/* ============================================= */
footer {
  padding: 4rem 1.5rem;
  color: #666;
  text-align: center;
  background-color: #080a09;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
}

footer p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

footer i {
  color: var(--accent-color);
}
/* ============================================= */
/* CONTACT WIDGET (Glass & Sage)                 */
/* ============================================= */
.contact-toggle {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(
    148,
    180,
    159,
    0.25
  ); /* Semi-transparent sage for glass effect */
  backdrop-filter: blur(12px); /* Glass blur */
  -webkit-backdrop-filter: blur(12px); /* Glass blur for Safari */
  color: #fff; /* White text for contrast */
  padding: 14px 20px;
  border-radius: 30px 0 0 30px;
  cursor: pointer;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 0 20px rgba(148, 180, 159, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid rgba(148, 180, 159, 0.4); /* More defined sage border */
  border-right: none;
}

.contact-toggle:hover {
  padding-right: 30px;
  background: rgba(148, 180, 159, 0.5); /* More opaque on hover */
  border-color: var(--accent-color);
  box-shadow: 0 0 30px rgba(148, 180, 159, 0.6); /* Stronger glow */
}

.contact-toggle:hover .toggle-icon {
  /* color: var(--accent-color); Icon is already white, no change needed */
}

.contact-toggle.active {
  transform: translate(100%, -50%);
}

.toggle-icon {
  font-size: 1.2rem;
}

.contact-panel {
  position: fixed;
  top: 0;
  right: -500px;
  width: 100%;
  max-width: 450px;
  height: 100vh;
  background: rgba(15, 20, 18, 0.95); /* Deep dark sage/black */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid rgba(148, 180, 159, 0.2);
  z-index: 2100;
  transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
}

.contact-panel.open {
  right: 0;
}

.close-btn {
  position: absolute;
  top: 30px;
  right: 30px;
  background: none;
  border: none;
  color: var(--accent-color);
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.2s;
  z-index: 10;
}

.close-btn:hover {
  opacity: 1;
  transform: rotate(90deg);
}

.contact-content {
  padding: 4rem 3rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-header h3 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.contact-header p {
  color: var(--accent-color);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  font-weight: 300;
}

/* Form Styles */
.playful-form {
  position: relative;
  min-height: 350px;
}

.form-step {
  display: none;
  animation: fadeIn 0.5s ease forwards;
}

.form-step.active {
  display: block;
}

.playful-form label {
  display: block;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: #fff;
  line-height: 1.4;
  font-weight: 300;
}

.playful-form label span {
  color: var(--accent-color);
  font-weight: 600;
}

.playful-form input[type="text"],
.playful-form input[type="email"],
.playful-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.5rem;
  padding: 15px 0;
  margin-bottom: 2.5rem;
  outline: none;
  transition: border-color 0.3s;
  font-family: inherit;
  font-weight: 300;
}

.playful-form input:focus,
.playful-form textarea:focus {
  border-bottom-color: var(--accent-color);
}

/* Shake Animation */
.shake {
  animation: shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
@keyframes shake {
  10%,
  90% {
    transform: translate3d(-1px, 0, 0);
  }
  20%,
  80% {
    transform: translate3d(2px, 0, 0);
  }
  30%,
  50%,
  70% {
    transform: translate3d(-4px, 0, 0);
  }
  40%,
  60% {
    transform: translate3d(4px, 0, 0);
  }
}

/* Topic Buttons */
.topic-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 2.5rem;
}

.topic-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 18px 20px;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  font-size: 1.1rem;
  transition: all 0.3s;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.topic-btn:hover {
  background: rgba(148, 180, 159, 0.1);
  border-color: var(--accent-color);
  color: #fff;
  padding-left: 25px;
}

.topic-btn.selected {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #000;
  font-weight: 600;
  padding-left: 25px;
}

/* Nav Buttons */
.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.next-btn,
.submit-btn,
.reset-btn {
  background: var(--accent-color);
  color: #0c0e0d;
  border: none;
  padding: 14px 30px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.next-btn:hover,
.submit-btn:hover,
.reset-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(148, 180, 159, 0.3);
  background: #fff;
}

.back-btn {
  background: transparent;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 0.95rem;
  padding: 10px;
  transition: color 0.3s;
}

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

/* Success State */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  animation: fadeIn 0.5s;
}

.success-icon {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
  animation: pop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pop {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

/* Progress Bar */
.progress-bar-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
}

.progress-bar {
  height: 100%;
  background: var(--accent-color);
  width: 25%;
  transition: width 0.5s ease;
  box-shadow: 0 0 10px var(--accent-glow);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 2050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Responsive */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  .logo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .topbar-container {
    padding: 0 1rem;
  }
  .topbar-menu {
    gap: 1rem;
  }
  .topbar-menu li button {
    font-size: 0.85rem;
  }
  .hero-slogan {
    font-size: 2.5rem;
  }

  .about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .about-image {
    order: -1; /* Bild zuerst */
    max-width: 80%;
    margin: 0 auto;
  }
}
