/*
 * Watly Mietseite – gemeinsame, mobile-first Gestaltungsbrücke.
 * Ausschließlich Darstellung und Bedienbarkeit; keine Fachlogik.
 */
html { scroll-behavior: smooth; }

body:not(.control-body) {
  min-width: 20rem;
  margin: 0;
  padding-bottom: calc(4.5rem + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 88% 0%, rgba(0, 169, 189, .11), transparent 28rem),
    linear-gradient(180deg, var(--wss-farbe-hintergrund) 0%, #fff 54%, var(--wss-farbe-hintergrund) 100%);
  color: var(--wss-farbe-text);
  font-family: var(--wss-schrift);
  font-size: 1.0625rem;
  line-height: var(--wss-zeilenhoehe);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body:not(.control-body) :where(a,button,input,select,textarea,summary) { -webkit-tap-highlight-color: rgba(0,117,130,.14); }
body:not(.control-body) :where(a,button,input,select,textarea,summary):focus-visible {
  outline: 3px solid var(--wss-farbe-fokus); outline-offset: 3px; box-shadow: var(--wss-schatten-fokus);
}
body:not(.control-body) :where(.wrap,.container) {
  width: min(calc(100% - 2rem),46rem); max-width: 46rem; margin-inline: auto;
  padding: max(1rem,env(safe-area-inset-top)) 0 5rem;
}
body:not(.control-body) .container.auth { max-width: 38rem; }
body:not(.control-body) .top-row {
  min-height: 4rem; display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; margin: 0 0 1rem; padding: 0;
}
body:not(.control-body) :where(.brand-title,.brand-link) {
  display: inline-flex; min-height: var(--wss-beruehrung-min); align-items: center;
  color: var(--wss-farbe-tinte); font-size: clamp(1.35rem,6vw,1.75rem); font-weight: 750;
  letter-spacing: -.035em; text-decoration: none;
}
body:not(.control-body) :where(.small-link,.back-link-soft) {
  min-height: var(--wss-beruehrung-min); display: inline-flex; align-items: center; justify-content: center;
  padding: .7rem .85rem; border: 1px solid var(--wss-farbe-linie); border-radius: var(--wss-radius-rund);
  background: #fff; color: var(--wss-farbe-marke-dunkel); font-size: .9375rem; font-weight: 800;
  line-height: 1.2; text-decoration: none; box-shadow: none;
}
body:not(.control-body) :where(.small-link,.back-link-soft):hover { border-color: var(--wss-farbe-marke); background: var(--wss-farbe-akzent-hell); }
body:not(.control-body) .top-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }

body:not(.control-body) .hero {
  position: relative; overflow: hidden; margin: 0 0 1rem; padding: clamp(1.5rem,7vw,2.75rem);
  border: 1px solid var(--wss-farbe-linie); border-radius: var(--wss-radius-gross);
  background: radial-gradient(circle at 92% 2%,rgba(0,169,189,.20),transparent 46%),linear-gradient(145deg,#fff 0%,var(--wss-farbe-flaeche-ruhig) 100%);
  box-shadow: var(--wss-schatten-klein);
}
body:not(.control-body) .hero::after {
  position: absolute; right: -4rem; bottom: -5rem; width: 10rem; height: 10rem;
  border: 1.5rem solid rgba(0,117,130,.06); border-radius: 50%; content: ""; pointer-events: none;
}
body:not(.control-body) .hero :where(h1,h2) {
  position: relative; z-index: 1; max-width: 13ch; margin: 0; color: var(--wss-farbe-tinte);
  font-size: clamp(2.15rem,10vw,3.75rem); font-weight: 750; line-height: 1.04; letter-spacing: -.052em;
}
body:not(.control-body) .hero p {
  position: relative; z-index: 1; max-width: var(--wss-text-max); margin: .9rem 0 0;
  color: var(--wss-farbe-ruhig); font-size: 1.0625rem; line-height: 1.62;
}

body:not(.control-body) :where(.card,.panel,.box,.list-item,.pricing-item,.return-truth-box,.station-detail-compact-card,.live-cost-box) {
  border-color: var(--wss-farbe-linie); background: #fff; box-shadow: none;
}
body:not(.control-body) .card {
  margin: 0 0 1rem; padding: clamp(1.15rem,5vw,1.75rem); border-radius: var(--wss-radius-karte);
  box-shadow: var(--wss-schatten-klein);
}
body:not(.control-body) .card :where(h2,h3) { margin-top: 0; color: var(--wss-farbe-tinte); font-weight: 750; letter-spacing: -.03em; line-height: 1.18; }
body:not(.control-body) .card h2 { font-size: clamp(1.45rem,6vw,2rem); }
body:not(.control-body) .card h3 { font-size: 1.2rem; }
body:not(.control-body) :where(p,.muted) { color: var(--wss-farbe-ruhig); }
body:not(.control-body) p { max-width: var(--wss-text-max); }
body:not(.control-body) .tiny { color: var(--wss-farbe-ruhig); font-size: .875rem; line-height: 1.5; }
body:not(.control-body) :where(b,strong) { color: var(--wss-farbe-tinte); }
body:not(.control-body) :where(.box,.list-item,.pricing-item,.return-truth-box,.station-detail-compact-card,.live-cost-box) { border-radius: var(--wss-radius-bedienung); }
body:not(.control-body) .box { padding: 1rem; background: var(--wss-farbe-flaeche-ruhig); }
body:not(.control-body) :where(.box-label,.pricing-label,.return-truth-label,.live-cost-label) {
  color: var(--wss-farbe-ruhig); font-size: .8125rem; font-weight: 700; letter-spacing: .045em;
}
body:not(.control-body) :where(.box-value,.pricing-value,.return-truth-value,.live-cost-value) { color: var(--wss-farbe-tinte); font-size: clamp(1.18rem,5vw,1.45rem); }

body:not(.control-body) :where(.btn,button,input[type="submit"],input[type="button"]) {
  min-height: var(--wss-bedienhoehe); padding: .8rem 1.05rem; border-width: 2px;
  border-radius: var(--wss-radius-bedienung); font-family: var(--wss-schrift); font-size: 1.0625rem;
  font-weight: 700; line-height: 1.25; box-shadow: none;
}
body:not(.control-body) :where(.btn.btn-primary,.btn.primary,button.btn-primary) { border-color: var(--wss-farbe-marke); background: var(--wss-farbe-marke); color: #fff; }
body:not(.control-body) :where(.btn.btn-primary,.btn.primary,button.btn-primary):hover { border-color: var(--wss-farbe-marke-dunkel); background: var(--wss-farbe-marke-dunkel); }
body:not(.control-body) :where(.btn.btn-secondary,.btn.secondary) { border-color: var(--wss-farbe-marke); background: #fff; color: var(--wss-farbe-marke-dunkel); }
body:not(.control-body) :where(.btn.btn-secondary,.btn.secondary):hover { background: var(--wss-farbe-akzent-hell); }
body:not(.control-body) :where(.btn,button):disabled { opacity: .54; cursor: not-allowed; box-shadow: none; }

body:not(.control-body) label { gap: .45rem; color: var(--wss-farbe-text); font-size: .9375rem; font-weight: 800; }
body:not(.control-body) :where(input,select,textarea) {
  min-height: var(--wss-eingabehoehe); border: 1px solid #aebfc2; border-radius: var(--wss-radius-bedienung);
  background: #fff; color: var(--wss-farbe-text); padding: .8rem .9rem; font-family: var(--wss-schrift);
  font-size: 1rem; line-height: 1.4;
}
body:not(.control-body) textarea { min-height: 8rem; resize: vertical; }
body:not(.control-body) :where(input,select,textarea):focus { border-color: var(--wss-farbe-fokus); outline: 0; box-shadow: var(--wss-schatten-fokus); }
body:not(.control-body) input[type="checkbox"],body:not(.control-body) input[type="radio"] {
  width: 1.5rem; min-height: 1.5rem; height: 1.5rem; padding: 0; accent-color: var(--wss-farbe-marke);
}
body:not(.control-body) :where(.notice,.msg) { padding: .9rem 1rem; border-radius: var(--wss-radius-bedienung); border-color: var(--wss-farbe-linie); color: var(--wss-farbe-text); }
body:not(.control-body) .notice.ok { border-color: #86d5a5; background: var(--wss-farbe-erfolg-hell); color: var(--wss-farbe-erfolg); }
body:not(.control-body) .notice.err { border-color: #f0a8a2; background: var(--wss-farbe-fehler-hell); color: var(--wss-farbe-fehler); }
body:not(.control-body) .notice.warning { border-color: #edc475; background: var(--wss-farbe-warnung-hell); color: var(--wss-farbe-warnung); }
body:not(.control-body) .badge { min-height: 2rem; padding: .42rem .7rem; border-radius: var(--wss-radius-rund); font-size: .8125rem; }
body:not(.control-body) .pill { border-radius: var(--wss-radius-rund); background: var(--wss-farbe-akzent-hell); color: var(--wss-farbe-marke-dunkel); }
body:not(.control-body) :where(.stack,.list,.form) { gap: .75rem; }
body:not(.control-body) :where(.grid2,.status-grid,.form-grid) { gap: .75rem; }
body:not(.control-body) details { border-radius: var(--wss-radius-bedienung); }
body:not(.control-body) details > summary { min-height: var(--wss-beruehrung-min); display: flex; align-items: center; padding-block: .65rem; color: var(--wss-farbe-tinte); font-weight: 700; cursor: pointer; }
body:not(.control-body) .customer-entry-flow { overflow: hidden; border: 1px solid var(--wss-farbe-linie); border-radius: var(--wss-radius-karte); background: var(--wss-farbe-flaeche-ruhig); }
body:not(.control-body) :where(.footer,.footer-links) {
  margin: 1.5rem 0 0; padding: 1.25rem 0 0; border-top: 1px solid var(--wss-farbe-linie);
  color: var(--wss-farbe-ruhig); font-size: .875rem; line-height: 1.8; text-align: center;
}
body:not(.control-body) :where(.footer,.footer-links) a {
  display: inline-flex; min-height: 2.75rem; align-items: center; margin-inline: .2rem;
  color: var(--wss-farbe-marke-dunkel); font-weight: 750; text-decoration-thickness: .08em; text-underline-offset: .2em;
}

/* Vorhandene Gastmiete, gemeinsame Watly-Gestaltung. */
body.checkout-body { background: radial-gradient(circle at 88% -8%,rgba(0,169,189,.18),transparent 30rem),linear-gradient(180deg,var(--wss-farbe-hintergrund) 0%,#fff 48%,var(--wss-farbe-hintergrund) 100%); }
body:not(.control-body) .checkout-shell { width: min(calc(100% - 1.5rem),47.5rem); margin-inline: auto; padding: max(.875rem,env(safe-area-inset-top)) 0 2rem; }
body:not(.control-body) .checkout-topbar { min-height: 3.5rem; margin-bottom: 1rem; }
body:not(.control-body) .checkout-brand { color: var(--wss-farbe-tinte); }
body:not(.control-body) .checkout-brand img { width: min(7rem,32vw); height: auto; }
body:not(.control-body) .checkout-secure { color: var(--wss-farbe-marke-dunkel); font-size: .8125rem; }
body:not(.control-body) .checkout-hero {
  border-color: rgba(0,95,104,.24); border-radius: var(--wss-radius-gross);
  background: linear-gradient(145deg,#07373d 0%,var(--wss-farbe-marke-dunkel) 54%,var(--wss-farbe-marke) 100%);
  padding: clamp(1.45rem,7vw,2.25rem); box-shadow: 0 16px 38px rgba(0,95,104,.18);
}
body:not(.control-body) .checkout-hero h1 { max-width: 14ch; font-size: clamp(2rem,9vw,3.25rem); }
body:not(.control-body) .checkout-eyebrow { color: #bff7fb; }
body:not(.control-body) .checkout-hero > p:not(.checkout-eyebrow) { color: rgba(255,255,255,.92); }
body:not(.control-body) .checkout-progress li { font-size: .75rem; }
body:not(.control-body) .checkout-progress li.is-active::before,body:not(.control-body) .checkout-progress li.is-complete::before { background: #bff7fb; }
body:not(.control-body) .checkout-card {
  margin-top: 1rem; padding: clamp(1.1rem,5vw,1.55rem); border-color: var(--wss-farbe-linie);
  border-radius: var(--wss-radius-karte); box-shadow: var(--wss-schatten-klein);
}
body:not(.control-body) .checkout-step { color: var(--wss-farbe-marke-dunkel); }
body:not(.control-body) .checkout-status-pill { background: var(--wss-farbe-akzent-hell); color: var(--wss-farbe-marke-dunkel); }
body:not(.control-body) .checkout-full-width { width: 100%; }

@media (max-width: 47.99rem) {
  body:not(.control-body) :where(.grid2,.status-grid,.form-grid,.pricing-grid,.live-cost-strip,.return-truth-row,.runtime-box) { grid-template-columns: 1fr; }
  body:not(.control-body) .top-row { align-items: flex-start; }
  body:not(.control-body) :where(.btn,button):not(.small-link):not(.back-link-soft) { width: 100%; }
  body:not(.control-body) .checkout-progress { grid-template-columns: repeat(2,1fr); row-gap: .75rem; }
}
@media (min-width: 48rem) {
  body:not(.control-body) :where(.wrap,.container) { padding-top: 1.5rem; }
  body:not(.control-body) .card { padding: 1.75rem; }
  body:not(.control-body) .checkout-shell { padding-top: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body:not(.control-body) *,body:not(.control-body) *::before,body:not(.control-body) *::after {
    scroll-behavior: auto !important; animation-duration: .01ms !important;
    animation-iteration-count: 1 !important; transition-duration: .01ms !important;
  }
}

/* Public entry and account pages share the website's type and cyan. */
body:not(.control-body) { font-optical-sizing: auto; }
body.watly-entry .wrap { max-width: 72rem; }
.watly-entry .top-row { margin-bottom: 1rem; }
body.watly-entry .hero h1 { max-width: 24ch; font-size: clamp(2rem,3.6vw,2.875rem); font-weight: 750; letter-spacing: -.05em; }
body.watly-entry #authCard { padding: 0; overflow: hidden; border: 1px solid var(--wss-farbe-linie); box-shadow: var(--wss-schatten-klein); }
.watly-entry-copy { padding: clamp(1.25rem,2.2vw,1.75rem); }
body.watly-entry #authCard .watly-entry-copy h2 { font-size: clamp(1.625rem,2.3vw,1.875rem); }
.watly-entry-copy p { max-width: 49ch; }
.watly-entry-copy .stack { margin-top: 1.5rem; }
.watly-entry-visual { display: flex; flex-direction: column; justify-content: space-between; min-height: 19rem; padding: clamp(1.25rem,2.2vw,1.75rem); background: var(--wss-farbe-produkt); color: var(--wss-farbe-tinte); }
.watly-entry-visual > span { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.watly-entry-visual > strong { display: block; padding-block: 1.25rem; font-size: clamp(2.25rem,3.4vw,2.75rem); line-height: 1.04; letter-spacing: -.05em; font-weight: 750; }
.watly-entry-visual p { margin: 0; font-size: .95rem; }
body.watly-entry #authCard .btn { justify-content: center; }
body:not(.control-body) :where(.btn,.small-link):focus-visible { outline: 3px solid var(--wss-farbe-fokus); outline-offset: 3px; }
body:not(.control-body) .btn { transition: background-color 160ms ease, border-color 160ms ease; }
body:not(.control-body) .footer { overflow-wrap: anywhere; }
@media (min-width: 48rem) {
  .watly-entry #authCard:not(.hidden) { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); }
  .watly-entry-visual { min-height: 20rem; }
}
@media (max-width: 47.99rem) { .watly-entry-visual { min-height: auto; } .watly-entry-visual > strong { padding-block: 1.1rem; } }
@media (prefers-reduced-motion: no-preference) {
  .watly-entry-visual { animation: watly-entry-arrive 400ms cubic-bezier(.23,1,.32,1) both; }
}
@keyframes watly-entry-arrive { from { opacity: .4; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { body:not(.control-body) .btn { transition: none; } }

body.watly-entry .top-row .brand-link { font-size: .9375rem; font-weight: 650; letter-spacing: 0; }
body.watly-entry .hero.hero-compact { padding: 1.5rem 1.75rem; margin-bottom: 1.25rem; }
body.watly-entry .hero.hero-compact h1 { margin: 0; }
body.watly-entry .watly-entry-copy .stack { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: .65rem; margin-top: 1.2rem; }
body.watly-entry .watly-entry-copy .stack > :first-child { grid-column: 1 / -1; }
@media (max-width: 47.99rem) {
  body.watly-entry .hero.hero-compact { padding: 1.35rem; }
  .watly-entry-visual { min-height: 0; padding: 1.25rem; }
  .watly-entry-visual > strong { font-size: 2.25rem; padding-block: .8rem; }
  .watly-entry-visual > strong br { display: none; }
}

body.watly-entry .watly-entry-visual :is(p,span) { color: var(--wss-farbe-tinte); opacity: 1; }
