/* ==========================================================================
   Adriatic Croatia - Main Stylesheet
   Light Mediterranean Theme
   ========================================================================== */

@import 'variables.css';
@import 'fonts.css';


/* ==========================================================================
   1. Reset & Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-base);
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  padding: 0;
  color: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  margin: 0;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

@media (min-width: 768px) {
  h1 { font-size: var(--text-5xl); }
  h2 { font-size: var(--text-4xl); }
  h3 { font-size: var(--text-2xl); }
}

p {
  margin: 0;
}

/* Selection */
::selection {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 12px 24px;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-md);
  transition: top var(--transition-base);
}

.skip-link:focus {
  top: 16px;
}


/* ==========================================================================
   2. Layout
   ========================================================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 40px;
  }
}

/* Section */
.section {
  padding: 80px 0;
}

@media (min-width: 768px) {
  .section {
    padding: 96px 0;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 128px 0;
  }
}

.section--blue {
  background: var(--gradient-blue);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.section--blue::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(212, 165, 116, 0.04) 20%,
    rgba(212, 165, 116, 0.10) 40%,
    rgba(212, 165, 116, 0.15) 50%,
    rgba(212, 165, 116, 0.10) 60%,
    rgba(212, 165, 116, 0.04) 80%,
    transparent 100%
  );
  background-size: 100% 400%;
  background-attachment: fixed;
  pointer-events: none;
  z-index: 0;
}

.section--blue > * {
  position: relative;
  z-index: 1;
}

/* iOS doesn't support background-attachment: fixed — use static shimmer */
@supports (-webkit-touch-callout: none) {
  .section--blue::after,
  .stats-bar::after {
    background-attachment: scroll;
    background-size: 100% 100%;
  }
}

.section--gray {
  background: var(--color-bg-section);
}

/* Section header */
.section__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

.section__subtitle {
  display: block;
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section--blue .section__subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: var(--font-bold);
  color: var(--color-text);
  margin-bottom: 16px;
  line-height: var(--leading-tight);
}

.section--blue .section__title {
  color: var(--color-white);
}

.section__description {
  font-size: var(--text-lg);
  color: var(--color-text-light);
  line-height: var(--leading-relaxed);
}

.section--blue .section__description {
  color: rgba(255, 255, 255, 0.85);
}

/* Section label (FAQ etc.) */
.section-label {
  display: block;
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: var(--font-bold);
  color: var(--color-text);
  margin: 0;
}


/* ==========================================================================
   3. Header
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: var(--z-fixed);
  transition: box-shadow var(--transition-base);
}

.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.header.scrolled::before {
  opacity: 1;
}

.header.scrolled {
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.header__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
}

@media (min-width: 768px) {
  .header__inner {
    padding: 0 32px;
  }
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__logo-img {
  height: 48px;
  width: auto;
  transition: height var(--transition-base);
}

/* Header transparent state — white elements over hero */
.header .nav__link {
  color: #ffffff;
}

.header .lang-btn {
  color: rgba(255, 255, 255, 0.6);
}

.header .lang-btn.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
}

.header .theme-toggle {
  background: rgba(255, 255, 255, 0.15);
}

.header .theme-toggle svg {
  color: #ffffff;
}

.header .btn--primary {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
  color: #0C1B24;
}

/* Header scrolled state — solid background, dark elements */
.header.scrolled .nav__link {
  color: var(--color-text);
}

.header.scrolled .lang-btn {
  color: var(--color-text-muted);
}

.header.scrolled .lang-btn.active {
  color: var(--color-text);
  background: var(--color-primary);
  color: #ffffff;
}

.header.scrolled .header__logo-img {
  filter: invert(1);
}

.header.scrolled .theme-toggle {
  background: var(--color-gray-100);
}

.header.scrolled .theme-toggle svg {
  color: var(--color-text);
}

.header.scrolled .btn--primary {
  background: var(--gradient-blue);
  color: #ffffff;
}

/* Dark mode scrolled — keep dark-appropriate colors */
html.dark-mode .header.scrolled .header__logo-img {
  filter: none;
}

html.dark-mode .header.scrolled .nav__link {
  color: var(--color-text);
}

html.dark-mode .header.scrolled .theme-toggle {
  background: var(--color-gray-200);
}

html.dark-mode .header.scrolled .theme-toggle svg {
  color: var(--color-text);
}

html.dark-mode .header.scrolled .btn--primary {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
  color: #0C1B24;
}

.header.scrolled .header__logo-img {
  height: 40px;
}

@media (max-width: 480px) {
  .header__logo-img { height: 36px; }
  .header.scrolled .header__logo-img { height: 32px; }
}

.header__logo-text {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.header__logo-text span {
  color: var(--color-primary);
}

/* Desktop Nav */
.nav {
  display: none;
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
  }
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-text);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition-base);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-base);
}

.nav__link:hover {
  color: var(--color-primary);
}

.nav__link:hover::after {
  width: 100%;
}

/* Header actions */
.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__actions .btn--sm {
  display: none;
}

@media (min-width: 1024px) {
  .header__actions .btn--sm {
    display: inline-flex;
  }
}

/* Theme toggle (Dark Mode) */
.theme-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-gray-100);
  transition: background var(--transition-base), transform var(--transition-base);
  cursor: pointer;
}

.theme-toggle:hover {
  background: var(--color-gray-200);
  transform: scale(1.1);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  color: var(--color-text);
  transition: opacity var(--transition-base), transform var(--transition-slow);
  position: absolute;
}

.theme-toggle__sun {
  opacity: 1;
  transform: rotate(0deg);
}

.theme-toggle__moon {
  opacity: 0;
  transform: rotate(-90deg);
}

html.dark-mode .theme-toggle {
  background: var(--color-gray-200);
}

html.dark-mode .theme-toggle:hover {
  background: var(--color-gray-300);
}

html.dark-mode .theme-toggle__sun {
  opacity: 0;
  transform: rotate(90deg);
}

html.dark-mode .theme-toggle__moon {
  opacity: 1;
  transform: rotate(0deg);
}




/* ==========================================================================
   5. Hero Section — Fullscreen
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 25, 35, 0.6) 0%,
    rgba(10, 25, 35, 0.35) 40%,
    rgba(10, 25, 35, 0.65) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #ffffff;
  max-width: 1000px;
  padding: 0 24px;
  gap: 0;
}

.hero__badge-text {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--color-secondary-light);
  margin-bottom: 14px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: var(--font-bold);
  color: #ffffff;
  line-height: 1.1;
  margin-top: 0;
  margin-bottom: 24px;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

.hero__title span {
  color: var(--color-secondary-light);
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  line-height: var(--leading-relaxed);
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.btn--outline-white {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
}

/* Scroll hint arrow */
.hero__scroll-hint {
  margin-top: 48px;
  animation: heroFloat 2s ease-in-out infinite;
}

.hero__scroll-hint svg {
  width: 28px;
  height: 28px;
  color: rgba(255, 255, 255, 0.6);
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}


/* ==========================================================================
   6. Stats Bar
   ========================================================================== */

.stats-bar {
  background: linear-gradient(135deg, #145574 0%, #1B6B93 50%, #145574 100%);
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}

.stats-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(212, 165, 116, 0.04) 20%,
    rgba(212, 165, 116, 0.12) 40%,
    rgba(212, 165, 116, 0.18) 50%,
    rgba(212, 165, 116, 0.12) 60%,
    rgba(212, 165, 116, 0.04) 80%,
    transparent 100%
  );
  background-size: 100% 400%;
  background-attachment: fixed;
  pointer-events: none;
  z-index: 0;
}

.stats-bar__container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .stats-bar__container {
    padding: 0 32px;
  }
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

@media (min-width: 768px) {
  .stats-bar__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
  }
}

.stats-bar__item {
  text-align: center;
  color: var(--color-white);
}

.stats-bar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  color: var(--color-white);
}

.stats-bar__icon svg {
  width: 22px;
  height: 22px;
}

.stats-bar__number {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: var(--color-white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  margin-bottom: 4px;
}

@media (min-width: 768px) {
  .stats-bar__number {
    font-size: var(--text-4xl);
  }
}

.stats-bar__label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}


/* ==========================================================================
   7. Services / Why Us Section
   ========================================================================== */

.services-section {
  padding: 80px 0;
  background: var(--color-bg);
}

@media (min-width: 768px) {
  .services-section {
    padding: 96px 0;
  }
}

@media (min-width: 1024px) {
  .services-section {
    padding: 128px 0;
  }
}

.services-section__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .services-section__container {
    padding: 0 32px;
  }
}

.services-section__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

.services-section__label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--color-primary);
  margin-bottom: 12px;
}

.services-section__label span:first-child,
.services-section__label span:last-child {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--color-primary);
  opacity: 0.3;
}

.services-section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: var(--font-bold);
  color: var(--color-text);
  margin-bottom: 16px;
  line-height: var(--leading-tight);
}

.services-section__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-light);
  line-height: var(--leading-relaxed);
}

.services-section__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .services-section__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-section__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.services-section__card {
  background: var(--color-white);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-xl);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  position: relative;
  overflow: hidden;
}

.services-section__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(105deg, transparent 40%, rgba(27, 107, 147, 0.06) 50%, transparent 60%);
  background-size: 200% 100%;
  background-position: 200% 0;
  transition: none;
  pointer-events: none;
  z-index: 0;
}

.services-section__card:hover::before {
  animation: card-shimmer 0.7s ease forwards;
}

@keyframes card-shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

.services-section__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-alpha-20);
}

.services-section__card > * {
  position: relative;
  z-index: 1;
}

.services-section__card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--color-primary-alpha-10);
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  color: var(--color-primary);
}

.services-section__card-icon svg {
  width: 24px;
  height: 24px;
}

.services-section__card-number {
  display: none;
}

.services-section__card:hover .services-section__card-number {
  color: var(--color-primary);
}

.services-section__card-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-text);
  margin-bottom: 8px;
}

.services-section__card-text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: 12px;
}

.services-section__card-more {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--font-primary);
  transition: color var(--transition-fast);
}

.services-section__card-more:hover {
  color: var(--color-primary-dark);
}

/* Surroundings Modal */
.surr-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.surr-modal.active {
  display: flex;
}

.surr-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.surr-modal__dialog {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 36px;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-2xl);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.surr-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gray-100);
  border: none;
  border-radius: 50%;
  font-size: 20px;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.surr-modal__close:hover {
  background: var(--color-gray-200);
  color: var(--color-text);
}

.surr-modal__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--color-text);
  margin-bottom: 16px;
  padding-right: 40px;
}

.surr-modal__body {
  font-size: var(--text-base);
  color: var(--color-text-light);
  line-height: var(--leading-relaxed);
}

.surr-modal__body p {
  margin-bottom: 12px;
}

.surr-modal__body ul {
  padding-left: 0;
  margin-bottom: 16px;
}

.surr-modal__body li {
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
  list-style: none;
}

.surr-modal__body li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

/* City sections in modal */
.surr-modal__city {
  margin-bottom: 20px;
}

.surr-modal__city-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--color-text);
  margin-bottom: 10px;
}

.surr-modal__city-title svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.surr-modal__divider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
}

.surr-modal__divider::before,
.surr-modal__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-secondary), transparent);
  animation: shimmerLine 3s ease-in-out infinite;
}

.surr-modal__divider-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-secondary-light);
  color: #ffffff;
  border-radius: var(--radius-full);
  font-size: 14px;
  flex-shrink: 0;
  animation: dividerPulse 2s ease-in-out infinite;
}

@keyframes shimmerLine {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

@keyframes dividerPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.surr-modal__cta {
  padding-top: 20px;
  border-top: 1px solid var(--color-gray-100);
  margin-top: 8px;
}

.surr-modal__cta .btn {
  width: 100%;
}


/* ==========================================================================
   8. Tuning Cards (Accommodations)
   ========================================================================== */

.tuning-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .tuning-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin: 0 auto;
  }
}

.tuning-card {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-xl);
  overflow: visible;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  perspective: 1000px;
  -webkit-perspective: 1000px;
}

.tuning-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
}

.tuning-card.expanded,
.tuning-card.flipped,
.tuning-card:hover {
  border-color: var(--color-secondary);
  border-width: 2px;
  box-shadow: 0 8px 32px rgba(212, 165, 116, 0.3);
}

.tuning-card__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  padding: 6px 14px;
  background: var(--color-secondary);
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  border-radius: var(--radius-full);
}

.tuning-card__inner {
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
  position: relative;
  will-change: transform;
}

/* -- Desktop flip behavior -- */
@media (min-width: 768px) and (hover: hover) {
  .tuning-card__inner {
    min-height: 520px;
  }

  .tuning-card:hover .tuning-card__inner {
    transform: rotateY(180deg);
  }

  .tuning-card__front,
  .tuning-card__back {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
}

/* -- Desktop flip (no hover / touch devices) -- */
@media (min-width: 768px) and (hover: none) {
  .tuning-card__inner {
    min-height: 520px;
  }

  .tuning-card.flipped .tuning-card__inner {
    transform: rotateY(180deg);
  }

  .tuning-card__front,
  .tuning-card__back {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
}

/* Front */
.tuning-card__front {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding-bottom: 24px;
}

.tuning-card__image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  margin-bottom: 20px;
}

.tuning-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--color-primary-alpha-10);
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  color: var(--color-primary);
}

.tuning-card__icon svg {
  width: 24px;
  height: 24px;
}

.tuning-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-text);
  margin-bottom: 6px;
}

.tuning-card__subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.tuning-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 12px;
}

.tuning-card__tag {
  display: inline-block;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: var(--font-semibold);
  color: var(--color-primary);
  background: var(--color-primary-alpha-10);
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

html.dark-mode .tuning-card__tag {
  background: rgba(212, 165, 116, 0.15);
  color: var(--color-secondary);
}

.tuning-card__availability {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: 12px;
}

.tuning-card__price {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--color-primary);
}

/* Back */
.tuning-card__back {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--gradient-blue);
  color: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  transform: rotateY(180deg);
}

.tuning-card__back h4 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-white);
  margin-bottom: 12px;
}

.tuning-card__back p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.9);
  line-height: var(--leading-relaxed);
  margin-bottom: 16px;
}

.tuning-card__back ul {
  text-align: left;
  margin-bottom: 20px;
  width: 100%;
  max-width: 220px;
}

.tuning-card__back ul li {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.9);
  padding: 4px 0;
  padding-left: 24px;
  position: relative;
}

.tuning-card__back ul li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--color-secondary);
  font-weight: var(--font-bold);
}

.tuning-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background: var(--color-white);
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  transition: all var(--transition-base);
}

.tuning-card__cta:hover {
  background: var(--color-secondary);
  color: var(--color-white);
}

/* -- Mobile: flip on tap -- */
@media (max-width: 767px) {
  .tuning-card__inner {
    min-height: 480px;
  }

  .tuning-card__front,
  .tuning-card__back {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  .tuning-card:hover .tuning-card__inner {
    transform: none;
  }

  .tuning-card.expanded .tuning-card__inner {
    transform: rotateY(180deg);
  }
}


/* ==========================================================================
   9. Swipe Gallery
   ========================================================================== */

.gallery-section {
  padding: 80px 0;
  background: var(--color-bg-section);
  overflow: hidden;
}

@media (min-width: 768px) {
  .gallery-section {
    padding: 96px 0;
  }
}

.swipe-gallery {
  position: relative;
  padding: 0 0 60px;
  cursor: grab;
  user-select: none;
}

.swipe-gallery:active {
  cursor: grabbing;
}

.swipe-gallery__track {
  display: flex;
  gap: 20px;
  padding: 0 max(20px, calc((100vw - 1200px) / 2 + 40px));
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.swipe-gallery__track.is-dragging {
  transition: none;
}

.swipe-gallery__slide {
  flex: 0 0 auto;
  width: 85vw;
  max-width: 560px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

@media (min-width: 768px) {
  .swipe-gallery__slide {
    width: 45vw;
    max-width: 520px;
  }
}

@media (min-width: 1200px) {
  .swipe-gallery__slide {
    width: 380px;
  }
}

.swipe-gallery__slide:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.swipe-gallery__slide img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
  pointer-events: none;
}

.swipe-gallery__slide:hover img {
  transform: scale(1.04);
}

/* Nav Buttons */
.swipe-gallery__btn {
  position: absolute;
  top: calc(50% - 30px);
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-white);
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition: all 0.25s ease;
  z-index: 5;
}

.swipe-gallery__btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 24px rgba(27, 107, 147, 0.3);
}

.swipe-gallery__btn svg {
  width: 22px;
  height: 22px;
}

.swipe-gallery__btn--prev {
  left: max(12px, calc((100vw - 1200px) / 2 + 10px));
}

.swipe-gallery__btn--next {
  right: max(12px, calc((100vw - 1200px) / 2 + 10px));
}

@media (max-width: 640px) {
  .swipe-gallery__btn {
    width: 40px;
    height: 40px;
  }
  .swipe-gallery__btn svg {
    width: 18px;
    height: 18px;
  }
}

/* Dots */
.swipe-gallery__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
}

.swipe-gallery__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-gray-300);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.swipe-gallery__dot:hover {
  background: var(--color-primary-alpha-50, rgba(27, 107, 147, 0.5));
}

.swipe-gallery__dot.active {
  background: var(--color-primary);
  width: 28px;
  border-radius: 5px;
}


/* ==========================================================================
   11. Testimonials
   ========================================================================== */

.testimonial-section {
  padding: 80px 0;
  background: var(--color-bg-section);
  overflow: hidden;
}

@media (min-width: 768px) {
  .testimonial-section {
    padding: 96px 0;
  }
}

@media (min-width: 1024px) {
  .testimonial-section {
    padding: 128px 0;
  }
}

.testimonial-section__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .testimonial-section__container {
    padding: 0 32px;
  }
}

.testimonial-section__header {
  text-align: center;
  margin-bottom: 48px;
}

.testimonial-section__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--color-primary);
  margin-bottom: 12px;
}

.testimonial-section__label svg {
  color: var(--color-warning);
}

.testimonial-section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: var(--font-bold);
  color: var(--color-text);
}

.testimonial-section__track {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}
.testimonial-section__track::-webkit-scrollbar { display: none; }
.testimonial-section__track.is-dragging { cursor: grabbing; scroll-behavior: auto; }

.testimonial-section__slider {
  display: flex;
  gap: 16px;
  width: max-content;
}

@media (min-width: 768px) {
  .testimonial-section__slider {
    gap: 24px;
  }
}

.testimonial-card {
  flex: 0 0 300px;
  background: var(--color-white);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .testimonial-card {
    flex: 0 0 380px;
    padding: 28px;
  }
}

.testimonial-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
}

.testimonial-card__stars svg {
  width: 18px;
  height: 18px;
  fill: #D4944A;
}

.testimonial-card__text {
  font-size: var(--text-base);
  font-style: italic;
  color: var(--color-text-light);
  line-height: var(--leading-relaxed);
  margin-bottom: 20px;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--gradient-blue);
  color: var(--color-white);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.testimonial-card__name {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--color-text);
}

.testimonial-card__detail {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}


/* ==========================================================================
   12. FAQ
   ========================================================================== */

.faq-section {
  padding: 80px 0;
  background: var(--color-bg);
}

.faq-section--with-bg {
  position: relative;
  background: linear-gradient(rgba(10, 10, 10, 0.7), rgba(20, 15, 10, 0.8)),
              url('../img/villa-adria-nacht-infinity-pool.webp') center/cover no-repeat;
  background-attachment: fixed;
  color: var(--color-white);
}

@media (max-width: 768px) {
  .faq-section--with-bg {
    background-attachment: scroll;
  }
}

.faq-section--with-bg .section-label,
.faq-section--with-bg .faq-section__label {
  color: var(--color-secondary);
}

.faq-section--with-bg .section-title,
.faq-section--with-bg .faq-section__title {
  color: var(--color-white);
}

.faq-section--with-bg .accordion__item {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.faq-section--with-bg .accordion__header {
  color: var(--color-white);
}

.faq-section--with-bg .accordion__header:hover {
  color: var(--color-secondary);
}

.faq-section--with-bg .accordion__item.active {
  border-color: rgba(212, 165, 116, 0.4);
  background: rgba(255, 255, 255, 0.1);
}

.faq-section--with-bg .accordion__body {
  color: rgba(255, 255, 255, 0.85);
}

.faq-section--with-bg .accordion__icon {
  color: rgba(255, 255, 255, 0.6);
}

.faq-section--with-bg .accordion__item.active .accordion__icon {
  color: var(--color-secondary);
}

.faq-section--with-bg .btn--outline {
  border-color: var(--color-white);
  color: var(--color-white);
}

.faq-section--with-bg .btn--outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

@media (min-width: 768px) {
  .faq-section {
    padding: 96px 0;
  }
}

@media (min-width: 1024px) {
  .faq-section {
    padding: 128px 0;
  }
}

.faq-section__header {
  text-align: center;
  margin-bottom: 48px;
}

.accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion__item {
  background: var(--color-white);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.accordion__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 24px;
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  transition: color var(--transition-base);
  gap: 16px;
  background: none;
  border: none;
}

.accordion__header:hover {
  color: var(--color-primary);
}

.accordion__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition-base);
  color: var(--color-text-muted);
}

.accordion__item.active .accordion__icon {
  transform: rotate(180deg);
}

.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.accordion__item.active .accordion__content {
  max-height: 800px;
}

.accordion__body {
  padding: 0 24px 20px;
  font-size: var(--text-base);
  color: var(--color-text-light);
  line-height: var(--leading-relaxed);
}


/* ==========================================================================
   13. Contact Section
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    max-width: 640px;
  }
}

.contact-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.contact-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form__label {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-text);
}

.contact-form__input {
  width: 100%;
  padding: 12px 16px;
  background: var(--color-white);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--color-text);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  outline: none;
}

.contact-form__input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-alpha-15);
}

.contact-form__input::placeholder {
  color: var(--color-text-muted);
}

.contact-form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23555' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.contact-form__textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form__status {
  font-size: var(--text-sm);
  min-height: 20px;
}

/* Contact info sidebar */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 768px) {
  .contact-info {
    position: sticky;
    top: 100px;
  }
}

.contact-info__or {
  font-size: var(--text-base);
  color: var(--color-text-light);
  font-weight: var(--font-medium);
}

.contact-info__buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}


/* ==========================================================================
   14. CTA Section
   ========================================================================== */

.about-cta__content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.about-cta__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: var(--font-bold);
  color: var(--color-white);
  margin-bottom: 16px;
  line-height: var(--leading-tight);
}

.about-cta__title span {
  color: var(--color-secondary);
}

.about-cta__text {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.85);
  line-height: var(--leading-relaxed);
  margin-bottom: 28px;
}

.about-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}


/* ==========================================================================
   15. Footer — Wave Design
   ========================================================================== */

/* Legal page language blocks */
.legal-lang { display: none; flex-direction: column; gap: 24px; }
html[lang="de"] .legal-lang--de,
html:not([lang]) .legal-lang--de { display: flex; }
html[lang="en"] .legal-lang--en { display: flex; }
html[lang="hr"] .legal-lang--hr { display: flex; }

.ac-footer { background: #0F2D3D; position: relative; padding: 0; }

.ac-footer__waves { position: relative; width: 100%; height: 140px; background: var(--color-bg); overflow: hidden; margin-bottom: -15px; }
@media(min-width:768px) { .ac-footer__waves { height: 150px; } }
@media(min-width:1024px) { .ac-footer__waves { height: 180px; } }
.ac-footer__wave { position: absolute; bottom: -15px; left: 0; width: 100%; height: calc(100% + 20px); }
.ac-footer__wave svg { position: absolute; bottom: -10px; left: 0; width: 300%; height: calc(100% + 15px); }
.ac-footer__wave--1 { z-index: 1; opacity: 0.5; }
.ac-footer__wave--1 svg { animation: acWave1 4s ease-in-out infinite; will-change: transform; }
.ac-footer__wave--1 svg path { fill: #1a4a63; }
.ac-footer__wave--2 { z-index: 2; opacity: 0.6; }
.ac-footer__wave--2 svg { animation: acWave2 3.5s ease-in-out infinite; will-change: transform; }
.ac-footer__wave--2 svg path { fill: #174058; }
.ac-footer__wave--3 { z-index: 3; opacity: 0.7; }
.ac-footer__wave--3 svg { animation: acWave3 3s ease-in-out infinite; will-change: transform; }
.ac-footer__wave--3 svg path { fill: #14374d; }
.ac-footer__wave--4 { z-index: 4; opacity: 0.85; }
.ac-footer__wave--4 svg { animation: acWave4 2.5s ease-in-out infinite; will-change: transform; }
.ac-footer__wave--4 svg path { fill: #113045; }
.ac-footer__wave--5 { z-index: 5; }
.ac-footer__wave--5 svg { animation: acWave5 2s ease-in-out infinite; will-change: transform; }
.ac-footer__wave--5 svg path { fill: #0F2D3D; }

/* Mobile: slightly slower for performance */
@media (max-width: 767px) {
  .ac-footer__wave--1 svg,
  .ac-footer__wave--2 svg,
  .ac-footer__wave--3 svg,
  .ac-footer__wave--4 svg,
  .ac-footer__wave--5 svg { animation-duration: 5s; }
}

@keyframes acWave1 { 0%,100%{transform:translateX(0) translateY(0)} 50%{transform:translateX(-15%) translateY(-4px)} }
@keyframes acWave2 { 0%,100%{transform:translateX(0) translateY(0)} 50%{transform:translateX(-12%) translateY(5px)} }
@keyframes acWave3 { 0%,100%{transform:translateX(0) translateY(0)} 50%{transform:translateX(-10%) translateY(-5px)} }
@keyframes acWave4 { 0%,100%{transform:translateX(0) translateY(0)} 50%{transform:translateX(-8%) translateY(4px)} }
@keyframes acWave5 { 0%,100%{transform:translateX(0) translateY(0)} 50%{transform:translateX(-6%) translateY(-3px)} }

.ac-footer .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 10; background: #0F2D3D; }
.ac-footer__content { padding: 4rem 0 2rem; }
.ac-footer__logo { width: 160px; height: auto; margin-bottom: 1.5rem; }
@media(max-width:767px) { .ac-footer__brand { text-align: center; } .ac-footer__logo { display: block; margin-left: auto; margin-right: auto; } }

/* Gallery Grid (contact-info + 3 images in one row) */
.ac-footer__gallery { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 3rem; }
@media(min-width:768px) { .ac-footer__gallery { grid-template-columns: repeat(4, 1fr); align-items: end; } }
.ac-footer__contact-info h4,
.ac-footer__contact-info .footer__title { font-family: var(--font-heading); font-size: 1.3rem; color: var(--color-secondary); margin-bottom: 1rem; display: block; }
.ac-footer__contact-info p { color: rgba(255,255,255,0.9); font-size: 0.95rem; margin-bottom: 0.25rem; }
.ac-footer__contact-info a { color: rgba(255,255,255,0.9); transition: color 0.3s; }
.ac-footer__contact-info a:hover { color: var(--color-secondary); }
.ac-footer__gallery-item { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16/10; display: block; }
.ac-footer__gallery-item::after { content:''; position:absolute; inset:0; background:linear-gradient(to top,rgba(0,0,0,0.6) 0%,rgba(0,0,0,0.2) 50%,rgba(0,0,0,0) 100%); z-index:1; pointer-events:none; }
.ac-footer__gallery-item img { width:100%; height:100%; object-fit:cover; transition:transform 0.3s ease; }
.ac-footer__gallery-item:hover img { transform:scale(1.05); }
.ac-footer__gallery-label { position:absolute; bottom:8px; left:8px; z-index:2; background:rgba(0,0,0,0.7); color:#fff; padding:4px 10px; border-radius:6px; font-size:0.85rem; font-weight:600; }

/* Link Columns */
.ac-footer__links-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-bottom: 3rem; }
@media(min-width:768px) { .ac-footer__links-grid { grid-template-columns: repeat(4, 1fr); } }
.ac-footer__links-col h5,
.ac-footer__links-col .footer__subtitle { font-family: var(--font-heading); font-size: 1.1rem; color: var(--color-secondary); margin-bottom: 1rem; display: block; }
.ac-footer__links-col ul { display:flex; flex-direction:column; gap:0.5rem; list-style:none; padding:0; margin:0; }
.ac-footer__links-col a { color:rgba(255,255,255,0.7); font-size:0.9rem; transition:color 0.3s; }
.ac-footer__links-col a:hover { color: var(--color-secondary); }

/* Social */
.ac-footer__social { display:flex; justify-content:center; gap:12px; margin-bottom:1.5rem; }
.ac-footer__social-link { width:44px; height:44px; display:flex; align-items:center; justify-content:center; background:rgba(255,255,255,0.08); border-radius:50%; color:rgba(255,255,255,0.7); transition:all 0.3s; border:1px solid rgba(255,255,255,0.1); }
.ac-footer__social-link:hover { background:var(--color-secondary); color:#0F2D3D; transform:translateY(-3px); box-shadow:0 8px 20px rgba(212,165,116,0.3); }
.ac-footer__social-link svg { width:20px; height:20px; }

/* Legal */
.ac-footer__legal { text-align:center; margin-bottom:1rem; }
.ac-footer__legal a { color:rgba(255,255,255,0.7); font-size:0.9rem; transition:color 0.3s; }
.ac-footer__legal a:hover { color:var(--color-secondary); }
.ac-footer__legal-sep { margin:0 1rem; color:rgba(255,255,255,0.3); }
.ac-footer__copyright { text-align:center; color:rgba(255,255,255,0.5); font-size:0.85rem; margin-bottom:2rem; }
.ac-footer__made-by { text-align:center; font-size:0.85rem; color:rgba(255,255,255,0.5); padding-top:1.5rem; border-top:1px solid rgba(255,255,255,0.08); }
.ac-footer__heart { color:#e74c3c; }
.ac-footer__made-by a { color:var(--color-secondary); font-weight:700; transition:all 0.2s; }
.ac-footer__made-by a:hover { color:#e8c9a0; transform:scale(1.05); display:inline-block; }


/* ==========================================================================
   16. Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Primary */
.btn--primary {
  background: var(--gradient-blue);
  color: var(--color-white);
  border-color: transparent;
  box-shadow: var(--shadow-blue);
}

.btn--primary:hover {
  box-shadow: var(--shadow-blue-lg);
  transform: translateY(-1px);
}

/* Secondary */
.btn--secondary {
  background: var(--color-gray-100);
  color: var(--color-text);
  border-color: transparent;
}

.btn--secondary:hover {
  background: var(--color-gray-200);
}

/* Outline */
.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}


/* Phone */
.btn--phone {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: transparent;
}

.btn--phone:hover {
  background: var(--color-primary-dark);
}

/* Sizes */
.btn--sm {
  padding: 8px 16px;
  font-size: var(--text-xs);
}

.btn--lg {
  padding: 14px 32px;
  font-size: var(--text-sm);
}

.btn--full {
  width: 100%;
}

/* Disabled */
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* White variant (for blue backgrounds) */
.section--blue .btn--primary {
  background: var(--color-white);
  color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.section--blue .btn--primary:hover {
  box-shadow: var(--shadow-lg);
}


/* ==========================================================================
   17. Language Switcher
   ========================================================================== */

.lang-switcher {
  display: flex;
  gap: 4px;
}

.lang-btn {
  padding: 4px 8px;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-base);
}

.lang-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.lang-btn.active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}


/* ==========================================================================
   18. Cookie Banner
   ========================================================================== */

/* Cookie Consent — Modern Centered Overlay */
.cookie-banner {
  position: fixed;
  inset: 0;
  z-index: var(--z-cookie-banner);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.cookie-banner.show {
  display: flex;
  animation: cookieFadeIn 0.3s ease;
}

@keyframes cookieFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cookie-banner__inner {
  background: var(--color-white);
  border-radius: 20px;
  padding: 0;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  animation: cookieSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cookieSlideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Top accent bar */
.cookie-banner__inner::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.cookie-banner__content {
  padding: 28px 28px 0;
}

.cookie-banner__title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: var(--font-bold);
  color: var(--color-text);
  margin-bottom: 8px;
}

.cookie-banner__text {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.cookie-banner__text a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__options {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 20px 28px;
}

.cookie-banner__option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-gray-100);
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--color-text);
  transition: background var(--transition-fast);
}

.cookie-banner__option:last-child {
  border-bottom: none;
}

.cookie-banner__option input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--color-primary);
  flex-shrink: 0;
  cursor: pointer;
  border-radius: 4px;
}

.cookie-banner__option strong {
  font-weight: var(--font-semibold);
  color: var(--color-text);
}

.cookie-banner__option span span:first-of-type {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-left: 4px;
}

.cookie-banner__desc {
  display: block;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin-top: 4px;
}

.cookie-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 28px 24px;
}

.cookie-banner__btn {
  width: 100%;
  padding: 14px 24px;
  font-size: 0.9rem;
  font-weight: var(--font-semibold);
  font-family: var(--font-primary);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-align: center;
}

.cookie-banner__btn--accept {
  background: var(--color-primary);
  color: var(--color-white);
}

.cookie-banner__btn--accept:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 4px 16px rgba(27, 107, 147, 0.3);
}

.cookie-banner__btn--save {
  background: var(--color-gray-50);
  color: var(--color-text);
  border: 1px solid var(--color-gray-200);
}

.cookie-banner__btn--save:hover {
  background: var(--color-gray-100);
}

.cookie-banner__btn--reject {
  background: transparent;
  color: var(--color-text-muted);
  font-weight: var(--font-normal);
  font-size: 0.825rem;
  padding: 8px;
}

.cookie-banner__btn--reject:hover {
  color: var(--color-text);
}

/* Cookie settings float button */
.cookie-settings-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: var(--z-fixed);
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #D4A574, #C49560);
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(212, 165, 116, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  color: #fff;
}

.cookie-settings-float:hover {
  box-shadow: 0 6px 24px rgba(212, 165, 116, 0.5);
  transform: scale(1.1);
  color: #fff;
}

.cookie-settings-float svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}


/* ==========================================================================
   19. Modal
   ========================================================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

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

.modal__dialog {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px;
}


/* ==========================================================================
   20. Utilities
   ========================================================================== */

.hidden {
  display: none !important;
}

.main {
  min-height: 100vh;
}


/* ==========================================================================
   21. Scroll Animations
   ========================================================================== */

/* Data-animate: elements start hidden, revealed by JS */
[data-animate] {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.js-animations-ready [data-animate] {
  opacity: 0;
  transform: translateY(20px);
}

.js-animations-ready [data-animate].animated {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

/* Testimonial scroll */

/* Image shimmer */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}


/* Spin */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Fade in up */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Header Solid (Subpages — no transparent hero)
   ========================================================================== */

.header--solid::before {
  opacity: 1 !important;
}

.header--solid .nav__link {
  color: var(--color-text);
}

.header--solid .lang-btn {
  color: var(--color-text-muted);
}

.header--solid .lang-btn.active {
  color: #ffffff;
  background: var(--color-primary);
}

.header--solid .header__logo-img {
  filter: invert(1);
}

.header--solid .theme-toggle {
  background: var(--color-gray-100);
}

.header--solid .theme-toggle svg {
  color: var(--color-text);
}

.header--solid .btn--primary {
  background: var(--gradient-blue);
  color: #ffffff;
}

.header--solid .header__phone {
  color: var(--color-text);
}

.header--solid .header__phone svg {
  fill: var(--color-primary);
}

html.dark-mode .header--solid .header__logo-img {
  filter: none;
}

html.dark-mode .header--solid .nav__link {
  color: var(--color-text);
}

html.dark-mode .header--solid .btn--primary {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
  color: #0C1B24;
}


/* ==========================================================================
   Legal Pages (Impressum, Datenschutz)
   ========================================================================== */

.legal-hero {
  padding: 140px 0 60px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.legal-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  z-index: 0;
}

.legal-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 25, 35, 0.7) 0%, rgba(10, 25, 35, 0.5) 100%);
  z-index: 1;
}

.legal-hero__content {
  position: relative;
  z-index: 2;
}

.legal-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
}

.legal-hero__badge svg {
  width: 16px;
  height: 16px;
}

.legal-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: var(--font-bold);
  color: #ffffff;
  margin-bottom: 8px;
}

.legal-hero__subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.8);
}

/* Legal Section */
.legal-section {
  padding: 64px 0 80px;
  background: var(--color-bg);
}

.legal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .legal-grid {
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
  }
}

.legal-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Legal Cards */
.legal-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--color-bg-card);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.legal-card__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-alpha-10);
  border-radius: var(--radius-full);
  color: var(--color-primary);
}

.legal-card__icon svg {
  width: 20px;
  height: 20px;
}

.legal-card__content {
  flex: 1;
  min-width: 0;
}

.legal-card__title,
.legal-card .legal-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-text);
  line-height: var(--leading-snug);
  margin-bottom: 12px;
}

.legal-card__note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.legal-card__content p {
  font-size: var(--text-base);
  color: var(--color-text-light);
  line-height: var(--leading-relaxed);
  margin-bottom: 8px;
}

.legal-card__content p:last-child {
  margin-bottom: 0;
}

.legal-card .legal-card__content h2.legal-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-text);
  margin-bottom: 12px;
  line-height: var(--leading-snug);
}

.legal-card .legal-card__content h3 {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  color: var(--color-text);
  line-height: var(--leading-normal);
  margin-top: 20px;
  margin-bottom: 6px;
}

.legal-card .legal-card__content h4 {
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-text);
  line-height: var(--leading-normal);
  margin-top: 14px;
  margin-bottom: 4px;
}

.legal-card .legal-card__content ul {
  margin: 8px 0;
  padding-left: 20px;
}

.legal-card .legal-card__content ul li {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  line-height: var(--leading-relaxed);
  margin-bottom: 4px;
  list-style: disc;
}

.legal-address {
  background: var(--color-bg-section);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 12px 0;
  font-size: var(--text-base);
  color: var(--color-text-light);
  line-height: var(--leading-relaxed);
}

/* Legal contact links */
.legal-contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal-contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  background: var(--color-bg-section);
  border-radius: var(--radius-md);
  transition: background var(--transition-base);
}

.legal-contact-item:hover {
  background: var(--color-primary-alpha-10);
}

.legal-contact-item__label {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-text-muted);
}

.legal-contact-item__value {
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  color: var(--color-primary);
}

/* Legal link (external) */
.legal-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-primary);
  font-weight: var(--font-semibold);
  font-size: var(--text-base);
  margin-top: 8px;
}

.legal-link svg {
  width: 16px;
  height: 16px;
}

.legal-link:hover {
  text-decoration: underline;
}

/* Legal Sidebar */
.legal-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 768px) {
  .legal-sidebar {
    position: sticky;
    top: 100px;
  }
}

.legal-sidebar__card {
  padding: 24px;
  background: var(--color-bg-card);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.legal-sidebar__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--color-text);
  margin-bottom: 16px;
}

.legal-sidebar__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-sidebar__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  color: var(--color-text);
  transition: background var(--transition-base), color var(--transition-base);
}

.legal-sidebar__link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-primary);
}

.legal-sidebar__link:hover {
  background: var(--color-primary-alpha-10);
  color: var(--color-primary);
}

/* Simple footer for legal pages */
.footer {
  background: var(--color-bg-section);
  border-top: 1px solid var(--border-color-light);
  padding: 40px 0;
}

.footer__top {
  margin-bottom: 24px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__logo-text {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-text);
}

.footer__logo-text span {
  color: var(--color-primary);
}

.footer__contact-name {
  font-weight: var(--font-semibold);
  color: var(--color-text);
}

.footer__contact-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

.footer__contact-link {
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-weight: var(--font-medium);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.footer__title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-text);
  margin-bottom: 12px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__link {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer__link:hover {
  color: var(--color-primary);
}

.footer__legal-bar {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 16px 0;
  border-top: 1px solid var(--border-color-light);
  margin-bottom: 12px;
}

.footer__legal-link {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer__legal-link:hover {
  color: var(--color-primary);
}

.footer__legal-separator {
  color: var(--color-text-muted);
}

.footer__copyright-section {
  text-align: center;
}

.footer__copyright {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Header back button (legal pages) */
.header__back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-text);
  background: var(--color-gray-100);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.header__back-btn:hover {
  background: var(--color-gray-200);
}

.header--solid .header__back-btn {
  color: var(--color-text);
}

html.dark-mode .header__back-btn,
html.dark-mode .header--solid .header__back-btn {
  color: var(--color-text);
  background: var(--color-gray-200);
}

html.dark-mode .header__back-btn:hover {
  background: var(--color-gray-300);
}

@media (max-width: 480px) {
  .header__back-btn span { display: none; }
  .header__back-btn { padding: 8px; }
}

/* Header phone link */
.header__phone {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
}

.header__phone svg {
  width: 18px;
  height: 18px;
}

@media (min-width: 768px) {
  .header__phone {
    display: flex;
  }
}


/* ==========================================================================
   Dark Mode Overrides
   ========================================================================== */

/* Smooth transition for theme switching */
html {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header */
html.dark-mode .header::before {
  background: rgba(12, 27, 36, 0.95);
}

html.dark-mode .header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

html.dark-mode .header__logo-text {
  color: var(--color-text);
}

html.dark-mode .nav__link {
  color: var(--color-text);
}

/* Hero */
html.dark-mode .hero__overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.25) 40%, rgba(0,0,0,0.55) 100%);
}

/* Cards & Containers */
html.dark-mode .tuning-card {
  background: var(--color-bg-card);
}

html.dark-mode .tuning-card__front {
  background: var(--gradient-card);
}

html.dark-mode .tuning-card__back {
  background: linear-gradient(135deg, #1B6B93 0%, #145574 100%);
}

html.dark-mode .tuning-card__title {
  color: var(--color-secondary-light);
}

html.dark-mode .tuning-card__subtitle {
  color: var(--color-text-light);
}

html.dark-mode .tuning-card__price {
  color: var(--color-secondary);
}

/* Testimonials */
html.dark-mode .testimonial-card {
  background: var(--color-bg-card);
}

/* Accordion / FAQ */
html.dark-mode .accordion__item {
  background: var(--color-bg-card);
}

html.dark-mode .faq-section {
  background: var(--color-bg);
}

/* Contact Form */
html.dark-mode .contact-form__input {
  background: var(--color-bg-card);
  border-color: var(--color-gray-300);
  color: var(--color-text);
}

html.dark-mode .contact-form__input::placeholder {
  color: var(--color-text-muted);
}

/* Modals */
html.dark-mode .surr-modal__dialog {
  background: var(--color-bg-card);
}

html.dark-mode .surr-modal__close {
  background: var(--color-gray-200);
}

/* Cookie Banner */
html.dark-mode .cookie-banner__inner {
  background: var(--color-bg-card);
}

/* Stats Bar (already dark, slightly adjust) */
html.dark-mode .stats-bar {
  background: linear-gradient(135deg, #0F2231 0%, #145574 50%, #0F2231 100%);
}

html.dark-mode .btn--outline {
  border-color: var(--color-gray-400);
  color: var(--color-text);
}

html.dark-mode .btn--outline:hover {
  background: var(--color-gray-200);
}

/* Section backgrounds */
html.dark-mode .section--gray {
  background: var(--color-bg-section);
}

/* Surroundings cards */
html.dark-mode .surr-card {
  background: var(--color-bg-card);
}

/* Gallery */
html.dark-mode .swipe-gallery {
  background: var(--color-bg-section);
}

/* Lang switcher */
html.dark-mode .lang-btn {
  color: var(--color-text-light);
}

html.dark-mode .lang-btn.active {
  color: var(--color-text);
}

/* ---- Gold Accents in Dark Mode ---- */

/* Section labels/subtitles → gold */
html.dark-mode .section-label,
html.dark-mode .section__subtitle,
html.dark-mode .services-section__label,
html.dark-mode .testimonial-section__label,
html.dark-mode .faq-section__label {
  color: var(--color-secondary);
}

/* Section titles / headings → gold */
html.dark-mode .section-title,
html.dark-mode .section__title,
html.dark-mode .services-section__title,
html.dark-mode .testimonial-section__title,
html.dark-mode .faq-section__title {
  color: var(--color-secondary-light);
}

/* Primary buttons → gold gradient */
html.dark-mode .btn--primary {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
  color: #0C1B24;
  box-shadow: 0 4px 20px rgba(212, 165, 116, 0.3);
}

html.dark-mode .btn--primary:hover {
  box-shadow: 0 8px 30px rgba(212, 165, 116, 0.4);
}

/* Nav links hover → gold */
html.dark-mode .nav__link:hover,
html.dark-mode .nav__link.active {
  color: var(--color-secondary);
}

/* Service cards (Warum-Section) */
html.dark-mode .services-section__card {
  background: var(--color-bg-card);
  border-color: var(--border-color-light);
}

html.dark-mode .services-section__card-title {
  color: var(--color-secondary-light);
}

html.dark-mode .services-section__card-more {
  color: var(--color-secondary);
}

html.dark-mode .services-section__card-more:hover {
  color: var(--color-secondary-light);
}

html.dark-mode .services-section__card-number {
  color: var(--color-gray-300);
}

html.dark-mode .services-section__card:hover .services-section__card-number {
  color: var(--color-primary-light);
}

html.dark-mode .services-section__card-text {
  color: var(--color-text-light);
}

/* FAQ with background — keep the background image, just adjust overlay */
html.dark-mode .faq-section--with-bg {
  background: linear-gradient(rgba(8, 18, 24, 0.8), rgba(10, 20, 28, 0.88)),
              url('../img/villa-adria-nacht-infinity-pool.webp') center/cover no-repeat;
  background-attachment: fixed;
}

@media (max-width: 768px) {
  html.dark-mode .faq-section--with-bg {
    background-attachment: scroll;
  }
}

html.dark-mode .faq-section--with-bg .btn--outline {
  border-color: #ffffff;
  color: #ffffff;
}

html.dark-mode .faq-section--with-bg .btn--outline:hover {
  background: #ffffff;
  color: var(--color-primary);
}

/* Footer — already dark, just adjust wave transition */
html.dark-mode .ac-footer__waves {
  background: var(--color-bg);
}

/* Selection in dark mode */
html.dark-mode ::selection {
  background-color: var(--color-primary-light);
  color: #ffffff;
}

/* Scrollbar in dark mode */
html.dark-mode ::-webkit-scrollbar-track {
  background: var(--color-gray-100);
}

html.dark-mode ::-webkit-scrollbar-thumb {
  background: var(--color-gray-400);
}


/* ==========================================================================
   404 Error Page
   ========================================================================== */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #f0f7fa 0%, #e8f4f8 50%, #dceef5 100%);
  position: relative;
  overflow: hidden;
}
.error-page::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(27, 107, 147, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(27, 107, 147, 0.06) 0%, transparent 50%);
  pointer-events: none;
}
.error-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
  position: relative;
  z-index: 1;
}
.error-code {
  font-family: var(--font-heading);
  font-size: clamp(6rem, 18vw, 12rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, #1B6B93 0%, #5bb8d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 60px rgba(27, 107, 147, 0.3));
}
.error-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
}
.error-message {
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}
.error-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.error-links__title {
  font-size: 0.8rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
}
.error-links__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  max-width: 360px;
}
@media (min-width: 640px) {
  .error-links__grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 420px;
  }
}
.error-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 1rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(27, 107, 147, 0.15);
  border-radius: 12px;
  text-decoration: none;
  color: var(--color-text-light);
  transition: all 0.3s ease;
}
.error-link:hover {
  background: #ffffff;
  border-color: #1B6B93;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(27, 107, 147, 0.15);
}
.error-link:hover .error-link__icon { color: #1B6B93; }
.error-link__icon {
  width: 28px;
  height: 28px;
  color: var(--color-text-light);
  transition: color 0.3s ease;
}
.error-link__text {
  font-size: 0.85rem;
  font-weight: 500;
}

/* 404 Dark Mode */
html.dark-mode .error-page {
  background: linear-gradient(135deg, #0C1B24 0%, #112530 50%, #0F2231 100%);
}
html.dark-mode .error-link {
  background: rgba(21, 45, 58, 0.7);
  border-color: rgba(255, 255, 255, 0.1);
}
html.dark-mode .error-link:hover {
  background: rgba(21, 45, 58, 1);
  border-color: #1B6B93;
}

/* 404 Header (minimal) */
.error-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  position: relative;
  z-index: 2;
}
.error-header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.error-header__logo img {
  height: 36px;
  width: auto;
}
.error-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Reduced motion — only disable decorative looping animations, keep all transitions */
@media (prefers-reduced-motion: reduce) {
  /* Disable only decorative bouncing/floating animations */
  .hero__scroll-hint {
    animation: none !important;
  }

  /* Show data-animate elements instantly (no slide-up) */
  .js-animations-ready [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
