:root{
  /* Brand & Text */
  --brand: #3aa6a0;           /* Haupt-Brand (alias: --gecko) */
  --gecko: var(--brand);      /* Backward-compat, falls irgendwo genutzt */
  --ink: #111111;             /* Primärtext */
  --muted: #6b7280;           /* Sekundärtext */

  /* Oberflächen & Linien */
  --surface: #ffffff; 
  --light: #f7f7f8;
  --line: #e5e7eb; 

  /* Komponenten-Style */
  --radius: 14px;
  --shadow: 0 12px 24px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.05);

  /* Glass-UI */
  --glass-bg: rgba(255,255,255,0.17);
  --glass-blur: 12px;

  /* Layout-Helper */
  --panelW: min(540px, 92vw);
  --tabOffset: 120px; 
}


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

.mini-divider{
  display: flex;
  justify-content: center;
  padding: clamp(20px, 4vw, 36px) 0;
}


.hero-underline{
  display: block;
  width: clamp(160px, 18vw, 280px);
  height: 2px;
  margin: 16px auto 0;
  background: radial-gradient(circle at center, rgba(58,166,160,1) 0%, rgba(58,166,160,0.6) 40%, rgba(58,166,160,0) 100%);
  border-radius: 2px;
  opacity: 0.9;
}

/* Grundlayout */
body{
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: #111;
  background:#ffffff;
}

.page-head{
  margin-top: 2%;
  text-align:left;
  margin-left: 5%;
  padding: 40px 20px;
  background:#fff;
  border-bottom:1px solid #e5e7eb;
}
.page-head h1{ 
  margin:0; 
  font-size:3rem; 
  font-weight: 500; 
  color:#000; 
  font-family: "Kaisei Tokumin", serif !important; 
}

.page-head p{ 
  margin-top:0px; 
  font-size: 14px; 
  color:#555; }

/* =====================================================
   ANGEBOTE – ESTATE-CARDS (IDENTISCH ZU TEASER)
   ===================================================== */

/* Grid */
.estate-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap:24px;
  padding:40px 24px;
  max-width: 1400px;
  margin:0 auto;
}

/* Card */
.estate-card {
  --teaserTitleH: 48px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #c3c3c3;
  background: #fff;
  box-shadow: 0 6px 14px rgba(0,0,0,.06);
  transition: transform .22s ease, box-shadow .22s ease;
  height: auto;
  display: flex;
  flex-direction: column;
}

.estate-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,.14);
}

/* Image */
.estate-img {
  width: 100%;
  height: 240px;
  overflow: hidden;
  margin: 0;
}
.estate-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Body */
.estate-body {
  position: relative;
  padding: 10px 14px 8px;
  background: #fff !important;
  color: #111 !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  flex-grow: 1;
}

/* Title clamps to 3 lines, fixed min-height so meta+loc are anchored */
.estate-body h3,
.estate-title {
  margin: 0 0 2px 0;
  padding: 0;
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.25;
  color: #111;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.6em; /* 3 Zeilen -> Meta/Loc bleiben immer unten */
}

/* Meta grid: 4 columns */
.estate-meta {
  margin-top: auto;            /* schiebt Meta nach unten */
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  text-align: center;
  padding-bottom: 4px;
  border-bottom: 1px solid #e5e5e5;
}

.meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.meta-item svg {
  width: 20px;
  height: 20px;
  opacity: .85;
  display: block;
}

.meta-item strong {
  font-size: 0.8rem;
  font-weight: 400;
  color: #222;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta-item small {
  font-size: 0.65rem;
  opacity: .85;
  font-weight: 300;
  color: #555;
  line-height: 1.1;
}

/* Standort */
.estate-loc {
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 300;
  color: #555;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-start;
  text-align: left;
}

.estate-loc svg {
  width: 14px;
  height: 14px;
  opacity: .7;
  flex: 0 0 auto;
}

/* Link reset */
.estate-card a {
  text-decoration: none !important;
  color: inherit;
  display: block;
}
.estate-card a:hover {
  text-decoration: none !important;
}

/* Mobile */
@media (max-width: 680px){
  .estate-meta{
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 12px;
    text-align: left;
  }
  .meta-item{
    align-items: flex-start;
  }
}




/* =========================
   Kontakt-Teaser (Versicherungen)
   1200px breit (zentriert), 800px hoch
   Bild vollflächig, Panel im rechten Drittel auf dem Bild
   ========================= */
.contact-teaser.contact-teaser--overlay{
  padding: clamp(24px, 4vw, 40px) 0;
}

.contact-teaser.contact-teaser--overlay .ct-wrap{
  position: relative;
  width: min(1280px, 92%);
  height: 670px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
}

/* Bild nimmt die ganze Fläche der Sektion ein */
.contact-teaser.contact-teaser--overlay .ct-media{
  position: absolute;
  inset: 0;
  z-index: 0;
}
.contact-teaser.contact-teaser--overlay .ct-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

/* Farbpanel obenauf, im rechten Drittel, mit Abstand zum Rand */
.contact-teaser.contact-teaser--overlay .ct-panel{
  position: absolute;
  top: clamp(20px, 1.5vw, 28px);
  right: clamp(24px, 2vw, 32px);
  bottom: clamp(20px, 1.5vw, 28px);

  width: 50%; 
  min-width: 420px;
  max-width: 600px;

  background: var(--ct-bg, #b1d7d6);
  color: var(--ct-ink, #1f6e6a);
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(12px, 2vw, 18px);
  padding: clamp(24px, 4vw, 48px);
  z-index: 2;
  box-shadow: none;
   

  /* Hinzugefügt: Grid-Layout für Panel */
  display: grid;
  grid-template-rows: 1fr auto auto;
  align-items: start;
  justify-items: start;
}

/* Typo im Panel */
.contact-teaser.contact-teaser--overlay .ct-title{
  margin: 0 0 8px 0;
  font-family: "Kaisei Tokumin", serif;
  font-weight: 300;
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  line-height: 1.15;
  /* Hinzugefügt: Grid-Alignment */
  align-self: start;
  margin-bottom: 0;
  color: #1f6e6a;
}
.contact-teaser.contact-teaser--overlay .ct-lead{
  margin: 0 0 clamp(16px, 2.4vw, 22px) 0;
  font-weight: 300;
  line-height: 1.65;
  color: #1f6e6a;
  max-width: 46ch;
  /* Hinzugefügt: Grid-Alignment */
  align-self: end;
  margin: 0 0 10px 0;
}
/* Button-Styles für Kontakt-Teaser */
/* Updated Contact Teaser Button with Arrow and Animation */
.contact-teaser.contact-teaser--overlay .ct-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: #1f6e6a;
  color: #b1d7d6;
  text-decoration: none;
  font-weight: 300;
  font-size: 1.1rem;
  padding: 14px 56px 14px 28px; /* extra right space for arrow */
  border-radius: 999px;
  border: none;
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
  transition: background .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.contact-teaser.contact-teaser--overlay .ct-btn .cta-arrow {
  position: absolute;
  right: 22px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translate(0,-50%);
  opacity: 1;
  transition: opacity .2s ease;
  pointer-events: none;
}

/* Hover state + arrow animation */
.contact-teaser.contact-teaser--overlay .ct-btn:hover {
  background: #2f918b;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,.25);
}

.contact-teaser.contact-teaser--overlay .ct-btn:hover .cta-arrow {
  animation: cta-arrow-loop .45s cubic-bezier(.22,.8,.25,1) both;
}

/* Arrow animation keyframes */
@keyframes cta-arrow-loop {
  0%   { transform: translate(0,-50%);   opacity: 1; }
  40%  { transform: translate(10px,-70%); opacity: 0; }
  50%  { transform: translate(-12px,-30%); opacity: 0; }
  100% { transform: translate(0,-50%);    opacity: 1; }
}



/* =====================================================
   MOBILE – bis 900px
   Bild oben, Card unten, beide 94% breit, zentriert
   ===================================================== */
@media (max-width: 900px) {

  /* Wrapper komplett neutralisieren */
  .contact-teaser.contact-teaser--overlay .ct-wrap {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;

    gap: 20px !important;
    height: auto !important;
    overflow: visible !important;
    border-radius: 0 !important;
  }

  /* Bild */
  .contact-teaser.contact-teaser--overlay .ct-media {
    width: 94% !important;
    margin: 0 auto !important;
    height: auto !important;
    position: relative !important;
    border-radius: 12px !important;
    overflow: hidden !important;
  }

  .contact-teaser.contact-teaser--overlay .ct-media img {
    width: 100% !important;
    height: 220px !important; /* Höhe wie gewünscht kleiner */
    object-fit: cover !important;
    border-radius: 12px !important;
  }

  /* Card */
  .contact-teaser.contact-teaser--overlay .ct-panel {
    width: 94% !important;
    max-width: 94% !important;
    min-width: unset !important;

    position: relative !important;
    inset: auto !important;

    background: var(--ct-bg, #b1d7d6) !important;
    border-radius: 12px !important;

    margin: 0 auto !important;
    padding: 24px 28px !important;
    box-sizing: border-box !important;

    display: grid !important;
    grid-template-rows: auto auto auto !important;
    gap: 16px !important;
  }
}


/* =====================================================
   TABLET – 900px bis 1200px
   Bild oben 94%, Card unten 94%, gleichbreit
   ===================================================== */
@media (min-width: 901px) and (max-width: 1200px) {

  .contact-teaser.contact-teaser--overlay .ct-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;

    gap: 28px !important;
    height: auto !important;
  }

  /* Bild */
  .contact-teaser.contact-teaser--overlay .ct-media {
    width: 94% !important;
    margin: 0 auto !important;
    height: auto !important;
    border-radius: 16px !important;
    overflow: hidden !important;
  }

  .contact-teaser.contact-teaser--overlay .ct-media img {
    width: 100% !important;
    height: 260px !important; /* Tablet etwas höher */
    object-fit: cover !important;
    border-radius: 16px !important;
  }

  /* Card */
  .contact-teaser.contact-teaser--overlay .ct-panel {
    width: 94% !important;
    max-width: 94% !important;
    min-width: unset !important;

    position: relative !important;
    inset: auto !important;

    border-radius: 16px !important;
    padding: 32px !important;
    margin: 0 auto !important;
  }
}