/* =========================================================
   GLOBAL VARIABLES
========================================================= */
@font-face {
  font-family: "Amazon Ember", sans-serif;
  src: url("/assets/fonts/amazon-ember/Amazon_Ember_V2.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

:root {
  --color-navigation-bar: #1e1e1e;
  --color-navigation-links: #fff;
  --color-navigation-links-hover: #a8a8a8;
  --color-primary: #384150;
  --color-secondary: #c19a6b;
  --color-bg: #ebebeb;
  --color-surface: #ebebeb;
  --color-text: #222;
  --color-muted: #777;

  --font-main: "Amazon Ember", sans-serif;
  --font-size-small: 0.9rem;
  --font-size-base: 18px;
  --font-size-lg: 2.5rem;
  --font-size-md: 1.2rem;

  --container-width: 1400px;
  --section-padding: 8rem;
  --nav-height: 80px;

  --transition-fast: 0.25s ease;
  --transition-smooth: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);

  --z-header: 1000;
  --z-footer: 900;

  --min-body-width: 1000px;
}

/* =========================================================
   RESET
========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  font-size: var(--font-size-base);
  background: var(--color-bg);
  color: var(--color-text);
  min-width: var(--min-body-width);
}

/* =========================================================
   LAYOUT
========================================================= */
.app-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.container {
  max-width: var(--container-width);
  margin: 0 20px 0 20px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

hr {
  border: none;
  height: 2px;
  width: 90dvw;
  margin: 2rem auto;

  background: linear-gradient(to right, transparent, #454444, transparent);
}

/* =========================================================
   NAVIGATION
========================================================= */

.app-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

  display: flex;
  align-items: center;
  z-index: var(--z-header);
  background: var(--color-navigation-bar);
  backdrop-filter: blur(10px);
  transition:
    transform var(--transition-smooth),
    opacity var(--transition-smooth);
}

.app-header.hidden {
  transform: translateY(-100%);
  opacity: 0;
}

.nav {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  margin-left: 20px;
}

.nav__logo img {
  height: 90px;
  display: block;
}

.nav__logo h1 {
  font-size: 28px;
  font-weight: 600;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  height: 100%;
}

.nav__links a,
.nav__dropdown-btn {
  text-decoration: none;
  color: var(--color-navigation-links);
  font-weight: 500;
  font-size: 1rem;
  background: none;
  min-width: 100px;
  text-align: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  height: 50%;
  transition: color var(--transition-fast);
}

.nav__links a:hover,
.nav__dropdown-btn:hover {
  color: var(--color-secondary);
  border: 1px solid var(--color-secondary);
}

.nav__dropdown {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  background: none;
}

.nav__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-navigation-bar);
  box-shadow: var(--shadow-soft);
  padding: 1.2rem 0;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 0;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity var(--transition-fast),
    transform var(--transition-fast);
  border-radius: 6px;
}

.nav__dropdown-menu a {
  padding: 0.7rem 1.5rem;
  width: 100%;
  height: auto;
}

.nav__dropdown-menu a:hover {
  color: #1e1e1e;
  background: var(--color-navigation-links-hover);
}

.nav__dropdown:hover .nav__dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* =========================================================
   SECTIONS
========================================================= */

.app-section {
  position: relative;
  top: auto;
  padding: var(--section-padding) 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: center;
  justify-items: center;

  scroll-margin-top: var(--nav-height);
  transition:
    opacity var(--transition-smooth),
    transform var(--transition-smooth);
}

/* Section backgrounds */
.section-hero {
  background: var(--color-surface);
  z-index: 1;
}
.section-services {
  background: var(--color-surface);
  z-index: 2;
}
.section-pricing {
  background: var(--color-surface);
  z-index: 3;
}
.section-contact {
  background: var(--color-surface);
  z-index: 4;
}

/* =========================================================
   HERO
========================================================= */

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* left: carousel, right: form */
  gap: 2rem;
  align-items: stretch;
}

.hero-carousel {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.hero-main {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  border-radius: 8px;
}

.section-hero {
  display: grid;
  grid-template-columns: 1fr;
}

.hero-checkboard {
  width: 100%;
  max-width: 1200px;
  min-width: var(--min-body-width);
  display: flex;
  justify-content: space-around;
  gap: 0.5rem;
  margin: 0 auto;
  margin-top: 1rem;
}

.check-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.check-item span img {
  width: 40px;
  height: 40px;
  margin-right: 0.5rem;
}

.hero-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.5s ease-in-out;
}

/* Thumbnail carousel */
.hero-thumbnails {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.thumbnails-wrapper {
  display: flex;
  justify-content: center;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 0.5rem;
  flex: 1; /* allow to take available space */
}

.thumbnails-wrapper::-webkit-scrollbar {
  display: none; /* optional: hide scrollbar */
}

.thumbnail {
  width: 80px;
  height: 50px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
  transition:
    opacity 0.3s,
    border 0.3s;
  flex-shrink: 0;
}

.thumbnail.active {
  opacity: 1;
  border-color: var(--color-secondary);
}

/* Carousel buttons for thumbnails */
.hero-thumbnails .carousel-btn-prev,
.hero-thumbnails .carousel-btn-next {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 4px;
  flex-shrink: 0;
  transition: background 0.3s;
}

.hero-thumbnails .carousel-btn-prev:hover,
.hero-thumbnails .carousel-btn-next:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* =========================================================
   SECTION CONTENT (Grid Layout)
========================================================= */

.section-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.section-media {
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
}

/* Centered sections (e.g., contact) */
.section-center {
  grid-column: 1 / -1;
  text-align: center;
}

/* Headings & text */
.heading-lg {
  font-size: var(--font-size-lg);
  margin-bottom: 1.5rem;
}

.text-base {
  font-size: var(--font-size-md);
  color: #2d2d2d;
  line-height: 1.6;
}

/* =========================================================
   COMPONENTS
========================================================= */

.benefits-list {
  margin-top: 2rem;
  list-style: none;
}

.benefits-list li {
  margin-bottom: 0.8rem;
}

.media-image {
  width: 100%;
  box-shadow: var(--shadow-soft);
}

.pricing-card {
  background: rgb(255, 255, 255);
  padding: 3rem;
  box-shadow: var(--shadow-soft);
}

/* =========================================================
   FORMS
========================================================= */
.alert.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.alert.alert-success {
  background-color: #d4edda;
  color: #155724;
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

/* Form styling */
.hero-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: #ffffff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.hero-form label {
  font-size: 0.8rem;
  color: var(--color-primary);
}

.hero-form .form-input {
  padding: 0.55rem;
  font-size: 0.8rem;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 5px;
  background-color: #f5f5f5;
}

.form-input:focus {
  outline: 2px solid var(--color-secondary);
}

.btn {
  padding: 1rem 2rem;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--color-secondary);
}

.btn-primary.btn-full {
  width: 100%;
  border-radius: 6px;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* =========================================================
   FOOTER
========================================================= */

.app-footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: var(--color-primary);
  color: white;
  padding: 10px !important;
  transform: translateY(100%);
  transition: transform var(--transition-smooth);
  z-index: var(--z-footer);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-grid h3 {
  font-size: var(--font-size-small);
  margin-bottom: 0.5rem;
}

.footer-links li {
  padding-top: 5px;
}

.footer-links a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: white;
  text-decoration: none;
  font-size: var(--font-size-small);
  margin-left: 5px;
}

.footer-links a:hover {
  color: var(--color-secondary);
}

.app-footer.visible {
  transform: translateY(0);
}

/* =========================================================
   AGB STYLES
========================================================= */

.agb-container {
  max-width: 900px;
  margin: 0 auto;
  display: block;
}

.agb-title {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.agb-meta {
  color: var(--color-muted);
  margin-bottom: 3rem;
  line-height: 1.6;
}

.agb-section {
  margin-bottom: 1.2rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: white;
}

.agb-toggle {
  width: 100%;
  text-align: left;
  padding: 1.2rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  background: var(--color-primary);
  color: white;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.agb-toggle:hover {
  background: var(--color-secondary);
}

.agb-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  transition:
    max-height 0.4s ease,
    padding 0.3s ease;
  background: white;
}

.agb-content p {
  margin: 1rem 0;
  line-height: 1.6;
}

.agb-section.active .agb-content {
  max-height: 1000px;
  padding: 1rem 1.5rem 1.5rem 1.5rem;
}

/* =========================================================
   IMPRESSUM (Design angepasst an Layout)
========================================================= */

.impressum-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem;
  background: white;
  box-shadow: var(--shadow-soft);
  border-radius: 8px;
  display: block;
}

/* Main Title */
.impressum-container h1 {
  font-size: var(--font-size-lg);
  margin-bottom: 2rem;
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-secondary);
  padding-bottom: 0.8rem;
}

/* Section Headings */
.impressum-container h2 {
  font-size: 1.4rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.impressum-container h3 {
  font-size: 1.1rem;
  margin-top: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
  font-weight: 600;
}

/* Paragraphs */
.impressum-container p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
}

/* Lists */
.impressum-container ul {
  margin: 1rem 0 1.5rem 1.5rem;
}

.impressum-container li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: var(--color-text);
}

/* Links */
.impressum-container a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.impressum-container a:hover {
  color: var(--color-secondary);
}

/* Subtle Section Separation */
.impressum-container h2:not(:first-of-type) {
  border-top: 1px solid #e5e5e5;
  padding-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .impressum-container {
    padding: 2rem;
  }

  .impressum-container h1 {
    font-size: 1.8rem;
  }
}

/* =========================================================
   TEAM SECTION
========================================================= */

.section-team {
  background: var(--color-surface);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.team-member {
  text-align: center;
}

.team-member img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
  margin-bottom: 1rem;
  transition: transform var(--transition-fast);
}

.team-member img:hover {
  transform: scale(1.05);
}

.team-member h4 {
  margin-bottom: 0.3rem;
  font-weight: 600;
  color: var(--color-primary);
}

.team-member span {
  font-size: var(--font-size-small);
  color: var(--color-muted);
}

/* =========================================================
   MISSION SECTION
========================================================= */

.section-mission {
  background: white;
}

.mission-text {
  max-width: 800px;
  margin: 0 auto 1.5rem auto;
}

/* =========================================================
   REVIEWS SECTION
========================================================= */

.section-reviews {
  background: var(--color-surface);
}

.review-carousel {
  position: relative;
  max-width: 800px;
  margin: 2rem auto 0 auto;
  overflow: hidden;
}

.review-track {
  display: flex;
  transition: transform var(--transition-smooth);
}

.review-card {
  min-width: 100%;
  background: white;
  padding: 3rem;
  box-shadow: var(--shadow-soft);
  border-radius: 8px;
  text-align: center;
}

.review-card p {
  margin: 1rem 0;
  font-style: italic;
}

.review-card span {
  font-size: var(--font-size-small);
  color: var(--color-muted);
}

.stars {
  font-size: 1.5rem;
  color: var(--color-secondary);
}

.review-controls {
  margin-top: 1rem;
}

.review-controls button {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  margin: 0 0.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.review-controls button:hover {
  background: var(--color-secondary);
}

/* =========================================================
   COOKIE SYSTEM
========================================================= */

.cookie-banner {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background: black;
  color: white;
  padding: 10px;
  z-index: 9999;
  transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
}

.cookie-banner.show {
  bottom: 0;
}

.cookie-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.cookie-text h3 {
  margin-bottom: 10px;
}

.cookie-text p {
  font-size: 0.8rem;
  opacity: 0.9;
}

.cookie-text a {
  color: white;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-banner button {
  padding: 0.8rem 1.5rem;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: background var(--transition-fast);
}

.btn-light {
  background: white;
  color: var(--color-primary);
  border: none;
  padding: 1rem 2rem;
  cursor: pointer;
}

/* ===================== MODAL ===================== */

.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.cookie-modal.show {
  display: flex;
}

.cookie-modal-content {
  background: white;
  width: 500px;
  max-width: 95%;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.cookie-option {
  margin-bottom: 1.5rem;
}

.cookie-option p {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: 0.3rem;
}

.cookie-modal-actions {
  text-align: right;
}

@media (max-width: 768px) {
  .cookie-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-thumbnails {
    justify-content: center;
  }

  .container {
    grid-template-columns: 1fr;
  }
}
