/* ==========================================================================
   Beispielentwurf „Bagger im Rohr“ (Garten- und Landschaftsbau) – nur der Hero einer Kundenseite als Muster.
   Oben das Aussehen der Kundenseite (Gelb #FDD22B, Inter), darunter wieder betriebsseiten.de (style.css).
   Desktop: Kopf, Hero und Leiste sind wie das freigegebene Bild (1600 × 1000) aufgebaut und werden als Ganzes
   so skaliert, dass sie das Fenster füllen; --s ist ein Pixel der Vorlage, --x0 der linke Rand der Vorlage.
   Das Foto ist die unveränderte Originaldatei. Abgedunkelt wird nur der Betonrand außerhalb des Kreises,
   der Kreisinhalt bleibt unberührt.
   ========================================================================== */

.ew-rahmen {
  flex: 1;
  display: flex;
  flex-direction: column;
  container-type: inline-size;
}
.ew-kopf,
.ew-hero,
.ew-leiste,
.ew-weiter {
  --s: min(100cqw / 1600, max(0.62px, 100svh / 1000));
  --x0: calc((100cqw - 1600 * var(--s)) / 2);
}

/* ---------- Kopf ---------- */
.ew-kopf { background: #181a1d; color: #fff; }
.ew-logo { display: block; }
.ew-logo img { width: auto; max-width: none; }
.ew-nav { display: flex; font-weight: 500; }
.ew-nav a,
.ew-nav button {
  position: relative;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.ew-nav a:hover,
.ew-nav button:hover,
.ew-nav .aktiv { color: #fdd22b; }
.ew-nav .aktiv::after { content: ''; position: absolute; left: 0; right: 0; background: #fdd22b; }
.ew-telefon {
  display: flex;
  align-items: center;
  background: #fdd22b;
  color: #111;
  font-weight: 700;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: filter 0.2s var(--ease);
}
.ew-telefon:hover { filter: brightness(1.06); }
.ew-telefon svg { display: block; flex: none; }

/* Handy und Tablet: runde Symbole für Anrufen und WhatsApp, daneben das Menü-Symbol (wie Entwurf 355) */
.ew-aktionen { display: none; }
.ew-rund {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 1.4px solid rgba(253, 210, 43, 0.55);
  border-radius: 50%;
  color: #fdd22b;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.ew-rund:hover { border-color: #fdd22b; background: rgba(253, 210, 43, 0.08); }
.ew-rund svg,
.ew-rund img { display: block; width: 20px; height: 20px; }
.ew-burger {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.ew-burger:hover { color: #fdd22b; }
.ew-burger svg { display: block; width: 22px; height: 16px; fill: currentColor; }

/* ---------- Hero ---------- */
.ew-hero { position: relative; overflow: hidden; background: #0b0c0e; }
.ew-hero__foto img { display: block; width: 100%; height: 100%; max-width: none; }
.ew-hero__titel { font-weight: 800; letter-spacing: -0.008em; color: #fff; }
.ew-hero__titel span { color: #fdd22b; }
.ew-hero__text { font-weight: 300; color: #e9eaec; }
.ew-hero__knoepfe { display: flex; }
.ew-knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.2s var(--ease), background-color 0.2s var(--ease);
}
.ew-knopf--gelb { border: 0; background: #fdd22b; color: #111; }
.ew-knopf--gelb:hover { filter: brightness(1.06); }
.ew-knopf--rand { border: 2px solid rgba(255, 255, 255, 0.92); background: transparent; color: #fff; }
.ew-knopf--rand:hover { background: rgba(255, 255, 255, 0.08); }

/* ---------- Leiste mit vier Merkmalen ---------- */
.ew-leiste { position: relative; overflow: hidden; background: #f9f8f4; color: #111; } /* wie die Vorlage: rechts nichts überstehen lassen */
.ew-merkmal { display: flex; }
.ew-kreis { flex: none; display: grid; place-items: center; border-radius: 50%; background: #f4edd7; color: #111; }
.ew-kreis svg { display: block; }
.ew-merkmal h2 { font-weight: 700; letter-spacing: -0.01em; color: #111; }
.ew-merkmal p { color: #6b6b6b; }
.ew-trenner { display: block; background: #ede6d8; }

/* ---------- Andeutung: Hier ginge die Seite weiter ---------- */
/* Anfang des Leistungs-Abschnitts der Kundenseite mit echten Inhalten (Fotos 1:1 von der Baggerseite), damit
   nichts nach „lädt noch“ aussieht. Die Beschreibungen verblassen nach unten ins Weiß, danach endet die
   Kundenseite mit einer feinen Cyan-Linie und betriebsseiten.de übernimmt. */
.ew-weiter {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid var(--linie-cyan);
}
.ew-weiter__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 82%, transparent 100%);
}
.ew-weiter__inner > * { flex: none; }
.ew-weiter__linie { display: block; background: #fdd22b; }
.ew-weiter__titel { font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; color: #111; }
.ew-weiter__unterzeile { display: block; color: #6b6b6b; text-align: center; }
.ew-weiter__karten { display: grid; width: 100%; }
.ew-karte { display: grid; align-content: start; }
.ew-karte__bild { display: block; width: 100%; max-width: none; object-fit: cover; background: #ece7dc; }
.ew-karte:nth-child(2) .ew-karte__bild { object-position: 50% 18%; } /* Hund oben im Bild sichtbar lassen */
.ew-karte__titel { display: block; font-weight: 700; color: #111; letter-spacing: -0.01em; }
.ew-karte__text { display: block; color: #6b6b6b; line-height: 1.5; }

/* ---------- Ab hier wieder betriebsseiten.de ---------- */
.ew-anfrage__text { display: flex; align-items: flex-start; gap: 20px; }
.ew-anfrage__titel {
  font-size: clamp(1.375rem, 0.95rem + 2.1vw, 2.625rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.ew-anfrage__text p {
  margin-top: 10px;
  font-size: clamp(0.9375rem, 0.88rem + 0.25vw, 1.0625rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
}
.ew-anfrage__text strong { font-weight: 700; color: var(--text); }

/* Preis-Box: Festpreis, nur für Gewerbetreibende (Hosting-Wortlaut wie in der Vertriebsmappe) */
.ew-preis {
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: center;
  align-items: center;
  gap: 6px 40px;
  padding: 24px 28px 20px;
  border: 1px solid rgba(0, 204, 212, 0.7);
  border-radius: 16px;
  background:
    radial-gradient(ellipse 80% 90% at 0% 0%, rgba(0, 204, 212, 0.13), rgba(0, 204, 212, 0) 60%),
    linear-gradient(160deg, rgba(14, 40, 52, 0.88), rgba(6, 16, 23, 0.92));
  box-shadow: 0 0 0 1px rgba(0, 204, 212, 0.12), 0 0 26px rgba(0, 204, 212, 0.26), inset 0 0 22px rgba(0, 204, 212, 0.08);
}
.ew-preis__label {
  grid-column: 1 / -1;
  margin-bottom: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
}
.ew-preis__preis { display: grid; justify-items: center; text-align: center; } /* Preis, Zusatz und Schild mittig untereinander, als ein Block */
.ew-preis__betrag { display: flex; align-items: flex-start; gap: 6px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.ew-preis__zahl { font-size: 4.5rem; text-shadow: 0 0 24px rgba(0, 204, 212, 0.35); }
.ew-preis__euro { margin-top: 8px; font-size: 2rem; color: var(--cyan); }
.ew-preis__zusatz { margin-top: 8px; font-size: 0.9375rem; color: var(--text-soft); }
/* direkt unter dem Preis, damit es nicht übersehen wird */
.ew-preis__badge {
  margin-top: 12px;
  padding: 5px 12px;
  border: 1px solid rgba(0, 204, 212, 0.55);
  border-radius: 99px;
  background: rgba(0, 204, 212, 0.16);
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
  color: #fff;
}
.ew-preis__liste { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 1rem; line-height: 1.4; }
.ew-preis__liste li { position: relative; padding-left: 26px; } /* Häkchen links, Text fließt normal um (auch mit Hervorhebungen) */
.ew-preis__liste li::before { content: '✓'; content: '✓' / ''; position: absolute; left: 0; top: 0; font-weight: 800; color: var(--cyan); }
.ew-preis__zusammen { white-space: nowrap; } /* „Über uns“-Bereich nicht am Bindestrich trennen */
.ew-preis__hosting { grid-column: 1 / -1; margin-top: 16px; font-size: 0.875rem; line-height: 1.5; color: var(--text-soft); }
.ew-preis__hosting strong { font-weight: 700; color: var(--cyan); }
.ew-preis__hinweis {
  grid-column: 1 / -1;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--text-faint);
}

/* Maus-Symbol (Scrollen), Strichstärke und Leuchten wie beim Handschlag */
.ew-maus {
  flex: none;
  width: 34px;
  margin-top: 2px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2.4;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px rgba(0, 204, 212, 0.75));
}
.ew-maus__rad { animation: ew-rad 2.2s ease-in-out infinite; }
.ew-maus__pfeil { opacity: 0.7; }
@keyframes ew-rad {
  0% { transform: translateY(-1px); opacity: 0; }
  20% { opacity: 1; }
  75% { transform: translateY(8px); opacity: 0; }
  100% { transform: translateY(8px); opacity: 0; }
}

/* ---------- Hinweis (Popover) für Menüpunkte und Buttons des Beispiels ---------- */
.ew-info {
  position: fixed;
  inset: 0;
  width: min(460px, 100% - 32px);
  height: fit-content;
  margin: auto;
  padding: 30px 28px 28px;
  overflow: auto;
  border: 1px solid rgba(0, 204, 212, 0.7);
  border-radius: 16px;
  background:
    radial-gradient(ellipse 80% 60% at 0% 0%, rgba(0, 204, 212, 0.1), rgba(0, 204, 212, 0) 60%),
    linear-gradient(160deg, #0f2a36, #08161f);
  box-shadow: 0 0 0 1px rgba(0, 204, 212, 0.12), 0 0 30px rgba(0, 204, 212, 0.25), 0 30px 80px rgba(0, 0, 0, 0.6);
  color: var(--text);
}
.ew-info::backdrop { background: rgba(2, 5, 8, 0.62); }
.ew-info:popover-open { animation: ew-auf 0.28s var(--ease); }
.ew-info:popover-open::backdrop { animation: ew-blende 0.28s ease; }
@keyframes ew-auf { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
@keyframes ew-blende { from { opacity: 0; } }
.ew-info__titel { padding-right: 40px; font-size: 1.5rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }
.ew-info p { margin-top: 10px; font-size: 1rem; line-height: 1.5; color: rgba(255, 255, 255, 0.86); }
.ew-info strong.accent { font-weight: 600; }
.ew-info .kontakt__wa { margin-top: 20px; }
.ew-info__zu {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s var(--ease);
}
.ew-info__zu:hover { border-color: var(--cyan); }
.ew-info__zu svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ==========================================================================
   Desktop: Aufbau wie die Vorlage (1600 × 1000), alle Maße in Vorlagen-Pixeln
   ========================================================================== */
@media (min-width: 960px) {
  .ew-kopf__inner,
  .ew-hero__inhalt,
  .ew-leiste__inner,
  .ew-weiter__inner { position: absolute; top: 0; bottom: 0; left: var(--x0); width: calc(1600 * var(--s)); }

  .ew-kopf { position: relative; height: calc(90 * var(--s)); }
  .ew-logo { position: absolute; left: calc(64 * var(--s)); top: calc(20 * var(--s)); }
  .ew-logo img { height: calc(50.6 * var(--s)); }
  .ew-nav {
    position: absolute;
    left: calc(587 * var(--s));
    top: calc(33 * var(--s));
    gap: calc(48 * var(--s));
    font-size: calc(20 * var(--s));
    line-height: calc(28 * var(--s));
  }
  .ew-nav .aktiv::after { top: calc(37 * var(--s)); height: calc(4 * var(--s)); border-radius: calc(2 * var(--s)); }
  .ew-telefon {
    position: absolute;
    right: calc(76 * var(--s));
    top: calc(20 * var(--s));
    height: calc(51 * var(--s));
    padding: 0 calc(20 * var(--s)) 0 calc(25 * var(--s));
    border-radius: calc(7 * var(--s));
    gap: calc(16 * var(--s));
    font-size: calc(21 * var(--s));
  }
  .ew-telefon svg { width: calc(25 * var(--s)); height: calc(25 * var(--s)); }

  /* Foto in voller Hero-Höhe am rechten Fensterrand, Kreis vollständig sichtbar */
  .ew-hero { height: calc(717 * var(--s)); }
  .ew-hero__foto {
    position: absolute;
    right: 0;
    top: calc(-12 * var(--s));
    width: calc(1126.5 * var(--s));
    height: calc(751 * var(--s));
  }
  /* Betonrand abdunkeln: links stärker für die Schrift, um den Kreis ein leichter Schatten.
     Innerhalb des Kreises (Radius 355) ist die Fläche durchsichtig. Die Fläche beginnt 2 px links vom Foto,
     damit an der Fotokante keine helle Linie durchscheint (alle Maße deshalb + 2 px). */
  .ew-hero__foto::after {
    content: '';
    position: absolute;
    inset: 0 0 0 -2px;
    background:
      linear-gradient(to right, #0b0c0e 0, #0b0c0e calc(6.5 * var(--s) + 2px), rgba(11, 12, 14, 0.86) calc(116.5 * var(--s) + 2px), rgba(11, 12, 14, 0.55) calc(246.5 * var(--s) + 2px), rgba(11, 12, 14, 0) calc(332.5 * var(--s) + 2px)),
      radial-gradient(circle at calc(691.5 * var(--s) + 2px) calc(369 * var(--s)), rgba(11, 12, 14, 0) calc(355 * var(--s)), rgba(11, 12, 14, 0.28) calc(359 * var(--s)));
  }
  .ew-hero__titel {
    position: absolute;
    left: calc(66 * var(--s));
    top: calc(115 * var(--s));
    font-size: calc(92 * var(--s));
    line-height: calc(96.5 * var(--s));
    white-space: nowrap;
  }
  .ew-hero__text {
    position: absolute;
    left: calc(70 * var(--s));
    top: calc(426 * var(--s));
    font-size: calc(25.7 * var(--s));
    line-height: calc(40 * var(--s));
    white-space: nowrap;
  }
  .ew-hero__knoepfe { position: absolute; left: calc(70 * var(--s)); top: calc(538 * var(--s)); gap: calc(20 * var(--s)); }
  .ew-knopf { height: calc(68 * var(--s)); border-radius: calc(8 * var(--s)); font-size: calc(23 * var(--s)); }
  .ew-knopf--gelb { width: calc(277 * var(--s)); }
  .ew-knopf--rand { width: calc(260 * var(--s)); border-width: max(1px, calc(2 * var(--s))); }

  .ew-leiste { height: calc(193 * var(--s)); }
  .ew-merkmal { position: absolute; top: calc(37 * var(--s)); gap: calc(30 * var(--s)); }
  .ew-kreis { width: calc(64 * var(--s)); height: calc(64 * var(--s)); }
  .ew-kreis svg { width: calc(30 * var(--s)); height: calc(30 * var(--s)); }
  .ew-merkmal h2 { margin-top: calc(6 * var(--s)); font-size: calc(20.5 * var(--s)); line-height: calc(28 * var(--s)); white-space: nowrap; }
  .ew-merkmal p { margin-top: calc(3 * var(--s)); font-size: calc(18.5 * var(--s)); line-height: calc(28 * var(--s)); width: calc(268 * var(--s)); }
  .ew-m3 p { width: calc(250 * var(--s)); }
  .ew-m1 { left: calc(48 * var(--s)); }
  .ew-m2 { left: calc(451 * var(--s)); }
  .ew-m3 { left: calc(852 * var(--s)); }
  .ew-m4 { left: calc(1240 * var(--s)); }
  .ew-trenner { position: absolute; top: calc(35 * var(--s)); width: calc(2 * var(--s)); height: calc(103 * var(--s)); }
  .ew-t1 { left: calc(413 * var(--s)); }
  .ew-t2 { left: calc(813 * var(--s)); }
  .ew-t3 { left: calc(1201 * var(--s)); }

  .ew-weiter { height: calc(540 * var(--s)); }
  .ew-weiter__inner { padding: calc(60 * var(--s)) calc(64 * var(--s)) 0; }
  .ew-weiter__linie { width: calc(56 * var(--s)); height: calc(4 * var(--s)); border-radius: calc(2 * var(--s)); }
  .ew-weiter__titel { margin-top: calc(18 * var(--s)); font-size: calc(46 * var(--s)); }
  .ew-weiter__unterzeile { margin-top: calc(14 * var(--s)); font-size: calc(19 * var(--s)); }
  .ew-weiter__karten { margin-top: calc(40 * var(--s)); grid-template-columns: repeat(3, 1fr); gap: calc(32 * var(--s)); }
  .ew-karte { gap: calc(14 * var(--s)); }
  .ew-karte__bild { height: calc(200 * var(--s)); border-radius: calc(10 * var(--s)); } /* ein Drittel niedriger als zuvor */
  .ew-karte__titel { margin-top: calc(6 * var(--s)); font-size: calc(23 * var(--s)); }
  .ew-karte__text { font-size: calc(17 * var(--s)); }

  /* Oben der Text über die ganze Breite, darunter Preis-Box links und Kontaktbox rechts */
  .ew-anfrage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 680px) minmax(0, 540px) minmax(0, 1fr);
    column-gap: clamp(32px, 4vw, 64px);
    align-items: start;
    padding-block: clamp(36px, 4vw, 60px) clamp(40px, 5vw, 72px);
  }
  .ew-anfrage__text { grid-column: 2 / 4; grid-row: 1; padding-top: 20px; }
  .ew-anfrage__text p { max-width: 860px; }
  .ew-preis { grid-column: 2; grid-row: 2; align-self: stretch; margin-top: 34px; }
  /* Kontaktbox oben bündig mit der Preis-Box, unten so hoch wie ihr Inhalt (Wunsch Bartosch, 10.11.2026) */
  .ew-anfrage__boxen { grid-column: 3; grid-row: 2; align-self: start; margin-top: 34px; }
  .ew-anfrage .kontakt { margin: 0; } /* rechts nur die Kontaktbox (Handschlag-Kasten entfällt hier) */
}

/* ==========================================================================
   Tablet und Handy: einfache Anordnung untereinander
   ========================================================================== */
@media (max-width: 959.98px) {
  /* Kopf bleibt beim Scrollen oben stehen; Menü und gelber Telefon-Button weichen den runden Symbolen */
  .ew-kopf {
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 10px var(--gutter);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 24px rgba(0, 0, 0, 0.35);
  }
  .ew-kopf__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .ew-logo img { height: 38px; }
  .ew-nav,
  .ew-telefon { display: none; }
  .ew-aktionen { display: flex; align-items: center; gap: 10px; }

  .ew-hero__foto img { height: auto; }
  .ew-hero__inhalt { padding: 26px var(--gutter) 34px; }
  .ew-hero__titel { font-size: clamp(2.125rem, 9.6vw, 3.25rem); line-height: 1.05; }
  .ew-hero__text { margin-top: 16px; font-size: 1.0625rem; line-height: 1.55; }
  .ew-hero__text br { display: none; }
  .ew-hero__knoepfe { flex-wrap: wrap; gap: 12px; margin-top: 24px; }
  .ew-knopf { min-height: 52px; padding: 0 22px; border-radius: 8px; font-size: 1.0625rem; }

  .ew-leiste { padding: 28px var(--gutter); }
  .ew-leiste__inner { display: grid; gap: 22px; }
  .ew-merkmal { gap: 16px; }
  .ew-kreis { width: 52px; height: 52px; }
  .ew-kreis svg { width: 26px; height: 26px; }
  .ew-merkmal h2 { font-size: 1.0625rem; line-height: 1.4; }
  .ew-merkmal p { font-size: 0.9375rem; line-height: 1.5; }
  .ew-trenner { display: none; }

  .ew-weiter { height: 330px; }
  .ew-weiter__inner {
    padding: 44px var(--gutter) 0;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
  }
  .ew-weiter__linie { width: 44px; height: 4px; border-radius: 2px; }
  .ew-weiter__titel { margin-top: 14px; font-size: 1.75rem; }
  .ew-weiter__unterzeile { margin-top: 10px; font-size: 0.9375rem; }
  .ew-weiter__karten { margin-top: 24px; grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .ew-karte:nth-child(3) { display: none; }
  .ew-karte { gap: 8px; }
  .ew-karte__bild { height: 96px; border-radius: 8px; }
  .ew-karte__titel { font-size: 1rem; }
  .ew-karte__text { font-size: 0.8125rem; line-height: 1.45; }

  .ew-anfrage {
    width: 100%;
    max-width: calc(680px + 2 * var(--gutter));
    margin-inline: auto;
    padding: 28px var(--gutter) 40px;
  }
  .ew-anfrage__text { margin-bottom: 26px; }
  .ew-maus { width: 24px; }
  .ew-preis { grid-template-columns: 1fr; margin-bottom: 30px; padding: 22px 20px 18px; }
  .ew-preis__liste { margin-top: 16px; }
  .ew-preis__zahl { font-size: 3.75rem; }
}
@media (min-width: 600px) and (max-width: 959.98px) {
  .ew-leiste__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .ew-maus__rad,
  .ew-info:popover-open,
  .ew-info:popover-open::backdrop { animation: none; }
}
