/* =========================================================
   agi.gt – Milchglas-Effekt für die Menüleiste beim Scrollen
   Statt einer festen, deckenden Braunfarbe schimmert
   der Hintergrund (Foto/Inhalt) leicht verschwommen durch.
   ========================================================= */
[style*="--sticky-overlaps-navigation-background-color"] {
  --sticky-overlaps-navigation-background-color: rgba(180, 138, 97, 0.45) !important;
}

header.section-sticky {
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

/* =========================================================
   agi.gt – Kontaktbereich
   Das Kontaktformular wurde durch eine ruhige, typografische
   Kontaktkarte ersetzt. Palette und Schriften folgen dem
   Rest der Seite: Cormorant Garamond für Überschriften,
   Quicksand für Fließtext, Akzent #e5c2a2 auf Braun #574533.
   ========================================================= */

/* --- Sicherheitsnetz: Kontaktformulare seitenweit ausblenden --- */
.module-container-root .form-container,
.module-container-root form.form-form {
  display: none !important;
}

/* --- Farb- und Maßvariablen des Kontaktbereichs --- */
.agi-contact-card {
  --agi-ink: #fef9fa;
  --agi-accent: #e5c2a2;
  --agi-dark: #574533;
  --agi-hairline: rgba(254, 249, 250, 0.22);

  position: relative;
  max-width: 460px;
  margin: 0 auto;
  padding: 8px 0 12px;
  color: var(--agi-ink);
  font-family: Quicksand, sans-serif;
  text-align: left;
}

/* Feine Zierlinie über der Karte */
.agi-contact-ornament {
  display: block;
  width: 56px;
  height: 1px;
  margin-bottom: 22px;
  background: linear-gradient(to right, var(--agi-accent), rgba(229, 194, 162, 0));
}

.agi-contact-kicker {
  margin: 0 0 6px;
  font-family: Quicksand, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--agi-accent);
  opacity: 0.95;
}

.agi-contact-title {
  margin: 0 0 26px;
  font-family: CormorantGaramond, "Cormorant Garamond", Georgia, serif;
  font-size: 44px;
  font-weight: 400;
  line-height: 1;
  color: var(--agi-ink);
}

/* --- Liste der Kontaktdaten --- */
.agi-contact-list {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
}

.agi-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--agi-hairline);
}

.agi-contact-item:last-child {
  border-bottom: 1px solid var(--agi-hairline);
}

.agi-contact-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 6px;
  color: var(--agi-accent);
  opacity: 0.9;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.agi-contact-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.agi-contact-item:hover .agi-contact-icon {
  opacity: 1;
  transform: translateY(-1px);
}

.agi-contact-body {
  display: block;
  min-width: 0;
}

.agi-contact-label {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--agi-ink);
  opacity: 0.6;
}

.agi-contact-value {
  display: inline-block;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--agi-ink);
  text-decoration: none;
  word-break: break-word;
}

/* Dezent unterstrichener Link, der beim Hover aufblüht */
a.agi-contact-value {
  background-image: linear-gradient(var(--agi-accent), var(--agi-accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size 0.4s ease, color 0.3s ease;
}

a.agi-contact-value:hover,
a.agi-contact-value:focus-visible {
  color: var(--agi-accent);
  background-size: 100% 1px;
}

.agi-contact-value-static {
  font-weight: 400;
}

.agi-contact-note {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  font-style: italic;
  letter-spacing: 0.3px;
  color: var(--agi-ink);
  opacity: 0.65;
}

/* --- Buttons --- */
.agi-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.agi-contact-btn {
  display: inline-block;
  padding: 13px 26px;
  font-family: Quicksand, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 3px;
  line-height: 1.6;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  border: 1px solid var(--agi-accent);
  transition: background-color 0.35s ease, color 0.35s ease, transform 0.35s ease;
}

.agi-contact-btn-primary {
  background-color: var(--agi-accent);
  color: #151515;
}

.agi-contact-btn-primary:hover,
.agi-contact-btn-primary:focus-visible {
  background-color: transparent;
  color: var(--agi-accent);
  transform: translateY(-2px);
}

.agi-contact-btn-ghost {
  background-color: transparent;
  color: var(--agi-accent);
}

.agi-contact-btn-ghost:hover,
.agi-contact-btn-ghost:focus-visible {
  background-color: var(--agi-accent);
  color: #151515;
  transform: translateY(-2px);
}

/* --- Panel (rechte Spalte) etwas luftiger --- */
.agi-contact-panel {
  padding: 56px 8px !important;
}

/* Der Einleitungstext über der Karte bekommt etwas Luft */
.agi-contact-panel h3 {
  line-height: 1.45 !important;
  margin-bottom: 8px;
}

.agi-contact-panel h3 p + p {
  margin-top: 12px;
}

/* --- Bildspalte: Foto füllt die volle Höhe der Zeile --- */
@media (min-width: 768px) {
  .agi-contact-visual .image-wrapper {
    height: 100%;
    padding-bottom: 0 !important;
    min-height: 520px;
  }

  .agi-contact-visual .image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* --- Mobil --- */
@media (max-width: 767px) {
  .agi-contact-panel {
    padding: 40px 8px !important;
  }

  .agi-contact-title {
    font-size: 36px;
  }

  .agi-contact-value {
    font-size: 18px;
  }

  .agi-contact-actions {
    flex-direction: column;
  }

  .agi-contact-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .agi-contact-btn,
  .agi-contact-icon,
  a.agi-contact-value {
    transition: none;
  }
}

/* =========================================================
   agi.gt – Cookie-/Consent-Banner
   Banner, Privacy-Popup und Modul-Blocker sind aus dem HTML
   entfernt. Diese Regeln greifen zusätzlich auf allen Seiten,
   die noch nicht neu hochgeladen wurden.
   ========================================================= */
.consent-banner-root,
.privacy-settings-root,
.privacy-settings-popup-container,
.page-blocker-root,
#pbModal,
.module-blocker-root,
.module-blocker-backdrop {
  display: none !important;
}

/* Falls ein Video noch vom Blocker versteckt wird: sichtbar machen */
.video-module-root.module-blocker-consent-video-hidden {
  display: block !important;
}

/* --- Direkt eingebettetes Video (16:9, responsiv) --- */
.agi-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #151515;
}

.agi-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* =========================================================
   agi.gt – Menüleiste (Basis + weiche Übergänge)
   Die eigentliche Progressivität (immer durchsichtiger und
   kompakter je tiefer man scrollt) wird direkt von
   custom-animations.js gesteuert – zuverlässiger, als sich
   auf die interne Farblogik der Seiten-Software zu verlassen.
   Diese Regeln liefern nur die statische Grundfarbe (falls
   JavaScript einmal nicht laufen sollte) und sorgen für ein
   sanftes Angleiten statt harter Sprünge.
   ========================================================= */
:root {
  --agi-nav-progress: 0;
  --agi-nav-blur: 14px;
}

[style*="--sticky-overlaps-navigation-background-color"] {
  --sticky-overlaps-navigation-background-color: rgba(180, 138, 97, 0.45) !important;
}

header.section-sticky {
  backdrop-filter: blur(var(--agi-nav-blur)) !important;
  -webkit-backdrop-filter: blur(var(--agi-nav-blur)) !important;
  transition: backdrop-filter 0.1s linear, -webkit-backdrop-filter 0.1s linear;
}

.navigation-root.navigation {
  transition: background-color 0.1s linear;
}

/* =========================================================
   agi.gt – Titelbild (Seehaus): dunkle Abblendung wird beim
   Scrollen langsam heller. custom-animations.js steuert die
   Deckkraft dieser Ebene über die Session hinweg.
   ========================================================= */
#agi-hero-overlay {
  position: absolute;
  inset: 0;
  background-color: #000;
  opacity: 0.6;
  pointer-events: none;
  transition: opacity 0.15s linear;
}

/* =========================================================
   agi.gt – Übersetzer-Widget: nur noch EIN Sprachcode
   Jeder Eintrag zeigt zwei Dinge nebeneinander: ein Flaggen-
   Bild (das auf diesem Server nicht lädt und dann als Text
   wie "EN" oder "DE" durchscheint) und einen eigenen Text-
   Span mit dem Sprachcode (.iwt-lang-code), der ohnehin
   korrekt lesbar ist. Wir blenden nur das Bild aus – übrig
   bleibt genau ein sauberer Code wie "DE" oder "NL".
   ========================================================= */
#iwt_float_wrapper img {
  display: none !important;
}

/* =========================================================
   agi.gt – Edle Gesamtwirkung statt "Baukasten-Look"
   Vier ruhige, zueinander passende Bausteine: feines Filmkorn
   über der ganzen Seite, gedämpfter (statt überladener) Bild-
   Zoom, ein warmer Gold-Glanz auf Buttons und ein sanftes
   Enthüllen der Hauptüberschriften beim Scrollen.
   ========================================================= */

/* --- 1) Feines Filmkorn über der gesamten Seite ---
   Sehr dezent (3,5% Deckkraft), blockiert keine Klicks,
   liegt unterhalb des Übersetzer-Widgets (z-index 999999). */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-repeat: repeat;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* --- 2) Bild-Zoom: gedämpft statt überladen ---
   Ersetzt (statt ergänzt) jede vorhandene Zoom-Logik des
   Theme-Baukastens durch eine einzige, langsame, dezente
   Variante – daher bewusst mit !important. */
.image-wrapper {
  overflow: hidden;
}

.image-wrapper .image-img {
  transition: transform 1.15s cubic-bezier(0.16, 1, 0.3, 1), filter 1.15s ease !important;
  transform: scale(1) !important;
}

.image-wrapper:hover .image-img {
  transform: scale(1.045) !important;
  filter: saturate(1.06) brightness(1.02);
}

/* --- 3) Warmer Gold-Glanz auf allen Haupt-Buttons ---
   Gilt für die Theme-eigenen Buttons (z. B. "Contact now")
   UND für unsere eigene Kontaktkarte (WhatsApp/E-Mail). */
.button-button,
.agi-contact-btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.button-button::after,
.agi-contact-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 246, 227, 0.55), transparent);
  transform: skewX(-20deg);
  transition: left 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.button-button:hover::after,
.agi-contact-btn:hover::after {
  left: 130%;
}

.button-button:hover,
.agi-contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(87, 69, 51, 0.28);
}

/* --- 4) Hauptüberschriften: sanftes Enthüllen beim Scrollen ---
   Nur aktiv, wenn JavaScript läuft (Klasse wird von
   custom-animations.js gesetzt) – ohne JS bleibt alles normal
   sichtbar, nichts geht verloren. */
html.agi-reveal-ready h1,
html.agi-reveal-ready h2:not(.agi-contact-title) {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

html.agi-reveal-ready h1.agi-heading-visible,
html.agi-reveal-ready h2.agi-heading-visible {
  opacity: 1;
  transform: none;
}
