/* 1.wien Webhosting — storefront, checkout and client area ("hell & klar").
   Hand-written, no build step; scripts/build-portal.sh ships a content-hashed copy.
   Contrast checked against white and --surface: text >= 4.5:1, UI parts >= 3:1. */
:root {
  --bg: #ffffff;
  --surface: #f7f5f0;
  --surface-2: #efece4;
  --ink: #0b1a3a;
  --ink-2: #33415c;
  --muted: #5b6680;
  --line: #e3dfd5;
  --line-strong: #7a8295;
  --accent: #c8102e;
  --accent-ink: #ffffff;
  --accent-hover: #a50d26;
  --accent-subtle: #fbeef0;
  --navy: #012169;
  --ok: #16794a;
  --ok-subtle: #e9f5ee;
  --warn: #9a5800;
  --warn-subtle: #fdf4e3;
  --danger: #b42318;
  --danger-subtle: #fdeceb;
  --info-subtle: #edf1f9;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(11 26 58 / 6%), 0 8px 24px rgb(11 26 58 / 6%);
  --shadow-lg: 0 2px 4px rgb(11 26 58 / 6%), 0 20px 48px rgb(11 26 58 / 10%);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (min-width: 900px) { html { scroll-padding-top: 88px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }
main:focus { outline: none; }
img, svg { display: block; max-width: 100%; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 750; overflow-wrap: break-word; hyphens: auto; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 720; }
h3 { font-size: 1.15rem; font-weight: 680; }
h4 { font-size: 1rem; font-weight: 680; }
p { margin: 0; }
code, kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 24px; } }
@media (min-width: 1024px) { .wrap { padding: 0 32px; } }
.narrow { max-width: 760px; }
.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 { position: absolute; left: 12px; top: -64px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { top: 12px; color: #fff; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.nowrap { white-space: nowrap; }
.stack > * + * { margin-top: 16px; }
.stack-sm > * + * { margin-top: 8px; }
.stack-lg > * + * { margin-top: 32px; }
.mt-0 { margin-top: 0 !important; }
.center { text-align: center; }
.hidden { display: none !important; }

/* Banners (test mode, closed shop) */
.site-banner { background: var(--warn-subtle); border-bottom: 1px solid #ecd8b4; color: #5c3600; font-size: .93rem; }
.site-banner .wrap { display: flex; gap: 10px; align-items: flex-start; padding-top: 10px; padding-bottom: 10px; }
.site-banner strong { color: #4a2c00; }
.site-banner-closed { background: var(--info-subtle); border-bottom-color: #d3dbea; color: var(--ink-2); }
.site-banner-closed strong { color: var(--ink); }

/* Header */
.site-header { position: relative; z-index: 10; background: rgb(255 255 255 / 92%); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-height: 44px; }
.logo-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 1.05rem; }
.logo-text { font-size: 1.02rem; color: var(--ink-2); white-space: nowrap; }
.logo-text strong { color: var(--ink); font-weight: 750; }
.main-nav { display: flex; order: 3; width: 100%; gap: 20px; margin: -8px 0 4px; overflow-x: auto; }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: 0.97rem; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.header-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; }
.header-link:hover { background: var(--surface); color: var(--ink); }
.header-link .count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .78rem; font-weight: 700; }
.lang { display: flex; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang a, .lang button { display: inline-flex; align-items: center; min-height: 32px; padding: 0 10px; border-radius: 999px; font: inherit; font-size: 0.82rem; font-weight: 650; text-decoration: none; color: var(--muted); background: none; border: 0; cursor: pointer; }
.lang [aria-current="page"], .lang [aria-current="true"] { background: var(--bg); color: var(--ink); box-shadow: var(--shadow); }
.lang form { display: contents; }
@media (min-width: 900px) {
  /* Sticky only where it fits in one row; on phones it would cover the page (2.4.11). */
  .site-header { position: sticky; top: 0; }
  .main-nav { order: 0; width: auto; gap: 24px; margin: 0 0 0 auto; overflow: visible; }
  .header-actions { margin-left: 16px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background-color .15s ease-out, color .15s ease-out, border-color .15s ease-out; text-align: center; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-secondary, .btn-ghost { color: var(--ink); border-color: var(--line-strong); background: var(--bg); }
.btn-secondary:hover, .btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: var(--surface); }
.btn-outline { color: var(--ink); border-color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #8f1b13; color: #fff; }
.btn-link { background: none; border: 0; padding: 0 4px; min-height: 44px; color: var(--navy); text-decoration: underline; font-weight: 600; }
.btn-link:hover { color: var(--accent); }
.btn-small { min-height: 44px; padding: 0 16px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn-disabled { cursor: not-allowed; opacity: .55; }
.btn-primary[disabled]:hover, .btn-primary.btn-disabled:hover { background: var(--accent); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); padding: 56px 0 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.hero-grid > * { min-width: 0; }
@media (min-width: 900px) { .hero { padding: 96px 0 72px; } .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; } }
.eyebrow { display: inline-block; font-size: 0.85rem; font-weight: 650; color: var(--accent); background: rgb(200 16 46 / 8%); padding: 6px 12px; border-radius: 999px; margin-bottom: 20px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-2); margin-top: 18px; max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 28px 0 0; color: var(--muted); font-size: 0.93rem; }
.badges li { display: inline-flex; align-items: center; gap: 8px; }
.badges li::before, .check-list li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat; flex: none; }

.panel { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; max-width: 460px; margin: 0 auto; }
.panel-bar { display: flex; gap: 6px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.panel-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-2); }
.panel-body { padding: 10px 18px 18px; }
.panel-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.panel-row:last-child { border-bottom: 0; }
.panel-label { min-width: 0; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-key { color: var(--muted); width: 88px; flex: none; }
.panel-val { font-weight: 650; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 4px rgb(22 121 74 / 15%); }
.chip { margin-left: auto; font-size: 0.75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); }
.chip-ok { color: var(--ok); }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.seg span { padding: 3px 10px; border-radius: 7px; font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.seg .on { background: var(--navy); color: #fff; }
.bar { flex: 1; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar span { display: block; height: 100%; width: 100%; background: var(--ok); border-radius: 999px; }

/* Sections */
.section { padding: 56px 0; }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.section-tight { padding: 40px 0 56px; }
@media (min-width: 900px) { .section-tight { padding: 56px 0 80px; } }
.section h2.center, .section > .wrap > h2 { text-align: center; }
.section-lead { text-align: center; color: var(--ink-2); max-width: 40em; margin: 14px auto 0; font-size: 1.08rem; }
.section-alt { background: var(--surface); }
.page-head { padding: 40px 0 8px; }
@media (min-width: 900px) { .page-head { padding: 64px 0 16px; } }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-head .lead { margin-top: 12px; }
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--muted); }

.feature-grid { list-style: none; padding: 0; margin: 48px 0 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.feature { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.feature h3 { margin-top: 16px; }
.feature p { margin-top: 8px; color: var(--ink-2); font-size: 0.98rem; }
.icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgb(1 33 105 / 7%); color: var(--navy); }

/* Pricing toggles (radio groups; work without JavaScript) */
.pricing { margin-top: 40px; }
.toggles { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 16px; margin: 0 auto 36px; }
.segmented { display: inline-flex; gap: 4px; border: 1px solid var(--line-strong); background: var(--bg); border-radius: 999px; padding: 4px; margin: 0; min-width: 0; max-width: 100%; }
.segmented legend { padding: 0; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label { min-height: 40px; padding: 0 16px; border-radius: 999px; font-weight: 650; font-size: 0.95rem; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.segmented input:checked + label { background: var(--ink); color: #fff; }
.segmented input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.save { font-size: 0.75rem; font-weight: 700; color: var(--ok); background: rgb(22 121 74 / 12%); padding: 2px 8px; border-radius: 999px; }
.segmented input:checked + label .save { color: #fff; background: rgb(255 255 255 / 18%); }

.plan-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 1024px) { .plan-grid { grid-template-columns: repeat(3, 1fr); } }
.plan { position: relative; display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 30px 26px 26px; box-shadow: var(--shadow); }
.plan-featured { border: 2px solid var(--accent); box-shadow: var(--shadow-lg); }
.plan-badge { position: absolute; top: -13px; left: 26px; background: var(--accent); color: #fff; font-size: 0.78rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.plan h3 { font-size: 1.35rem; }
.plan-tagline { color: var(--muted); margin-top: 4px; font-size: 0.96rem; }
.price { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.amount { font-size: 2.4rem; font-weight: 760; letter-spacing: -0.03em; }
.amount-sm { font-size: 1.6rem; }
.unit { color: var(--muted); font-size: 0.95rem; }
.equals { width: 100%; color: var(--ok); font-size: 0.9rem; font-weight: 600; }
.price-note { width: 100%; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.price-sub { width: 100%; color: var(--ink-2); font-size: .9rem; }
/* Which price variant (monthly/annual x consumer/business) is shown follows the
   two radio groups; without :has() support the monthly consumer price stays. */
.pv { display: none; }
.pricing .pv-m-g { display: flex; }
.pricing:has(#cycle-annual:checked) .pv-m-g, .pricing:has(#view-business:checked) .pv-m-g { display: none; }
.pricing:has(#cycle-annual:checked):not(:has(#view-business:checked)) .pv-a-g { display: flex; }
.pricing:has(#view-business:checked):not(:has(#cycle-annual:checked)) .pv-m-n { display: flex; }
.pricing:has(#cycle-annual:checked):has(#view-business:checked) .pv-a-n { display: flex; }
.limits { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 10px; color: var(--ink-2); font-size: 0.97rem; flex: 1; }
.limits li { display: flex; gap: 10px; align-items: flex-start; }
.limits li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8102e' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/18px no-repeat; }
.plan-term { margin-top: 12px; font-size: .86rem; color: var(--muted); text-align: center; }
.plans-note { text-align: center; margin-top: 36px; color: var(--ink-2); }
.plans-vat { text-align: center; margin-top: 8px; color: var(--muted); font-size: 0.9rem; }
.pay-methods { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 16px 0 0; }
.pay-methods li { font-size: .82rem; font-weight: 650; color: var(--ink-2); border: 1px solid var(--line); background: var(--bg); padding: 4px 10px; border-radius: 8px; }
.pay-methods.left { justify-content: flex-start; }

/* Display country selector (§3.2) */
.price-country { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 8px 12px; margin: 0 auto 28px; font-size: .93rem; color: var(--ink-2); max-width: 720px; text-align: center; }
.price-country p { width: 100%; }
.price-country label { font-weight: 600; }
.price-country select { min-height: 44px; }
.price-country .btn { min-height: 44px; }
.price-hint { margin: 0 auto 20px; max-width: 720px; }

/* Comparison table */
.compare-title { margin-top: 72px; }
.table-scroll { overflow-x: auto; margin-top: 40px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.table-scroll:focus-visible { outline-offset: 2px; }
.compare { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 560px; font-size: .95rem; }
.compare th, .compare td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { background: var(--surface); font-weight: 700; }
.compare tbody th { font-weight: 600; color: var(--ink-2); }
.compare th[scope="row"], .compare thead th:first-child { position: sticky; left: 0; background: var(--bg); z-index: 1; }
.compare thead th:first-child { background: var(--surface); }
.compare tr:last-child > * { border-bottom: 0; }

/* FAQ */
.faq { margin-top: 40px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-weight: 650; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); transition: transform .15s ease-out; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 46em; }
.faq-group { font-size: 1.3rem; margin-top: 48px; }
.faq-group + .faq { margin-top: 16px; }
.faq-contact { margin-top: 48px; }

/* Cards and surfaces */
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card-flat { box-shadow: none; }
.card-muted { background: var(--surface); box-shadow: none; }
.card h2 { font-size: 1.3rem; }
.card > h2 + *, .card-head + * { margin-top: 12px; }
.card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
.grid-2 { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.layout-aside { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1024px) { .layout-aside { grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; } }
.summary { position: static; }
@media (min-width: 1024px) { .summary { position: sticky; top: 88px; } }
.dl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 16px; margin: 0; }
.dl dt { color: var(--muted); font-size: .9rem; }
.dl dd { margin: 0 0 10px; font-weight: 600; overflow-wrap: anywhere; }
@media (min-width: 640px) { .dl { grid-template-columns: max-content minmax(0, 1fr); } .dl dd { margin: 0; } }
.totals { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; margin: 16px 0 0; }
.totals dt { color: var(--ink-2); }
.totals dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.totals .grand { font-weight: 750; font-size: 1.15rem; color: var(--ink); border-top: 1px solid var(--line); padding-top: 8px; }
.empty-state { text-align: center; padding: 40px 16px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--ink-2); }
.empty-state h2 { font-size: 1.25rem; margin-bottom: 8px; }
.empty-state .btn { margin-top: 20px; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); white-space: nowrap; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.badge-ok { color: var(--ok); background: var(--ok-subtle); border-color: #bfe0cc; }
.badge-warn { color: var(--warn); background: var(--warn-subtle); border-color: #ecd8b4; }
.badge-danger { color: var(--danger); background: var(--danger-subtle); border-color: #f2c5c1; }
.badge-info { color: var(--navy); background: var(--info-subtle); border-color: #d3dbea; }
.badge-draft { color: #5c3600; background: var(--warn-subtle); border-color: #ecd8b4; }

/* Alerts */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: .97rem; }
.alert::before { content: "i"; flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-weight: 800; font-size: .8rem; background: var(--navy); color: #fff; margin-top: 1px; font-family: Georgia, serif; }
.alert > div { min-width: 0; }
.alert strong { color: var(--ink); }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.alert-success { background: var(--ok-subtle); border-color: #bfe0cc; }
.alert-success::before { content: "✓"; background: var(--ok); font-family: inherit; }
.alert-warning { background: var(--warn-subtle); border-color: #ecd8b4; }
.alert-warning::before { content: "!"; background: var(--warn); font-family: inherit; }
.alert-danger { background: var(--danger-subtle); border-color: #f2c5c1; }
.alert-danger::before { content: "!"; background: var(--danger); font-family: inherit; }
.alert:focus { outline: 3px solid var(--accent); outline-offset: 2px; }
.alert .btn { margin-top: 10px; }

/* Forms */
.form { display: grid; gap: 20px; }
.form-row { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .form-row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-row-postal { grid-template-columns: 160px minmax(0, 1fr); } }
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .field-label { font-weight: 650; font-size: .97rem; }
.field .optional { font-weight: 500; color: var(--muted); font-size: .88rem; }
.hint { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.error { color: var(--danger); font-size: .92rem; font-weight: 600; display: flex; gap: 6px; }
.error::before { content: "!"; flex: none; display: grid; place-items: center; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--danger); color: #fff; font-size: .72rem; font-weight: 800; }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line-strong); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; font-size: 1rem; }
.textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 40px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2333415c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center/18px no-repeat; }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--ink); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); background-color: #fffafa; }
.input[readonly] { background: var(--surface); }
.input-group { display: flex; align-items: stretch; min-width: 0; }
.input-group .input { border-top-right-radius: 0; border-bottom-right-radius: 0; min-width: 0; }
.input-addon { display: inline-flex; align-items: center; padding: 0 12px; border: 1.5px solid var(--line-strong); border-left: 0; border-radius: 0 10px 10px 0; background: var(--surface); color: var(--ink-2); font-size: .95rem; white-space: nowrap; }
.input-group button.input-addon { cursor: pointer; font: inherit; font-weight: 650; min-width: 44px; }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); }
.check label { font-size: .97rem; }
.check-box { padding: 16px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--bg); }
.check-box:has(input:checked) { border-color: var(--accent); background: var(--accent-subtle); }
.fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 10px; }
.fieldset legend { font-weight: 650; font-size: .97rem; padding: 0; margin-bottom: 8px; }
.radio-cards { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .radio-cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.radio-card { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--bg); cursor: pointer; min-height: 44px; }
.radio-card input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.radio-card strong { display: block; }
.radio-card .hint { display: block; margin-top: 2px; }
.radio-card:has(input:checked) { border-color: var(--accent); background: var(--accent-subtle); box-shadow: 0 0 0 1px var(--accent); }
.radio-card:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.radio-card .price-tag { margin-left: auto; text-align: right; font-weight: 700; white-space: nowrap; }
.status-line { display: flex; gap: 8px; align-items: center; min-height: 24px; font-size: .93rem; font-weight: 600; }
.status-line.ok { color: var(--ok); }
.status-line.bad { color: var(--danger); }
.status-line.wait { color: var(--muted); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 8px; }
.error-summary h2 { font-size: 1.05rem; }
.dbip-note { margin-top: 32px; }
.error-summary a { color: var(--danger); font-weight: 600; }

/* Stepper */
.stepper { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 28px; counter-reset: step; }
.stepper li { display: flex; align-items: center; gap: 8px; font-size: .93rem; color: var(--muted); font-weight: 600; }
.stepper li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line-strong); font-size: .85rem; }
.stepper li + li { margin-left: 4px; }
.stepper li + li::after { order: -1; content: ""; width: 20px; height: 1.5px; background: var(--line-strong); }
.stepper li[aria-current="step"] { color: var(--ink); }
.stepper li[aria-current="step"]::before { background: var(--accent); border-color: var(--accent); color: #fff; }
.stepper li.done::before { background: var(--ok); border-color: var(--ok); color: #fff; content: "✓"; }

/* Line items (cart, review) */
.items { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.item { display: grid; gap: 4px 16px; grid-template-columns: minmax(0, 1fr) auto; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.item h3 { font-size: 1.05rem; }
.item .meta { color: var(--ink-2); font-size: .93rem; overflow-wrap: anywhere; }
.item .item-price { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.item .item-actions { grid-column: 1 / -1; }

/* Tables (client area) — stacked on mobile */
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table thead th { font-size: .85rem; color: var(--muted); font-weight: 650; background: var(--surface); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 760px) {
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; padding: 8px 4px; }
  .table td { border: 0; padding: 6px 12px; display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 8px; text-align: left; }
  .table td::before { content: attr(data-label); color: var(--muted); font-size: .85rem; font-weight: 600; }
  .table .num { text-align: left; }
}

/* Dialog */
.dialog { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); border: 0; border-radius: var(--radius); padding: 0; box-shadow: var(--shadow-lg); color: var(--ink); }
.dialog::backdrop { background: rgb(11 26 58 / 45%); }
.dialog-wide { width: min(880px, calc(100vw - 32px)); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); }
.dialog-head h2 { font-size: 1.2rem; }
.dialog-head h2:focus { outline: none; }
[data-dialog-return]:focus { outline: none; }
.dialog-body { padding: 20px 24px 24px; }
.dialog-close { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; font-size: 1.4rem; line-height: 1; color: var(--ink-2); }
.dialog-close:hover { background: var(--surface); }

/* Legal and long text */
.prose { max-width: 46em; color: var(--ink-2); }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--ink); margin: 1.6em 0 .5em; }
.prose h1 { font-size: 1.7rem; }
.prose h2 { font-size: 1.35rem; }
.prose h3 { font-size: 1.1rem; }
.prose p, .prose ul, .prose ol, .prose table, .prose blockquote { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .3em; }
.prose table { border-collapse: collapse; display: block; overflow-x: auto; font-size: .93rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--surface); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose blockquote { border-left: 4px solid var(--line); padding-left: 16px; color: var(--muted); }
.prose a { overflow-wrap: anywhere; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; color: var(--muted); font-size: .9rem; margin-top: 12px; }

/* Client area */
.account { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); padding: 32px 0 64px; }
@media (min-width: 1024px) { .account { grid-template-columns: 240px minmax(0, 1fr); gap: 40px; padding-top: 48px; } }
.account-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; }
@media (min-width: 1024px) { .account-nav ul { flex-direction: column; position: sticky; top: 96px; } }
.account-nav a, .account-nav button { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 600; white-space: nowrap; font: inherit; font-weight: 600; background: none; border: 0; cursor: pointer; width: 100%; }
.account-nav a:hover, .account-nav button:hover { background: var(--surface); color: var(--ink); }
.account-nav a[aria-current="page"] { background: var(--accent-subtle); color: var(--accent); }
.account-main { min-width: 0; }
.account-main > h1 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin-bottom: 24px; }
.stat-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stat { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.stat .label { color: var(--muted); font-size: .9rem; }
.stat .value { font-size: 1.6rem; font-weight: 750; margin-top: 4px; }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-rows > li { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }
.list-rows > li:last-child { border-bottom: 0; }
.qr { background: #fff; padding: 12px; border: 1px solid var(--line); border-radius: 12px; display: inline-block; }
.qr svg { width: 192px; height: 192px; }
.codes { columns: 2; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface); padding: 16px 24px; border-radius: 12px; list-style: none; margin: 0; }

/* Auth pages */
.auth { padding: 48px 0 80px; }
.auth .card { max-width: 480px; margin: 0 auto; padding: 32px; }
.auth h1 { font-size: 1.8rem; margin-bottom: 8px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 32px; color: var(--muted); font-size: 0.93rem; background: var(--bg); }
.footer-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr 1fr; } }
.footer-grid h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); margin-bottom: 10px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer-grid a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink-2); text-decoration: none; }
.footer-grid a:hover { color: var(--accent); text-decoration: underline; }
.footer-contract a { font-weight: 650; color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }

/* Livewire loading feedback (Livewire's own styles hide wire:loading elements) */
.is-busy { opacity: .6; }

/* Round 2 review fixes (Lane D) */
/* UX-M5: header at 320 px with cart and account in German: the actions wrap, no horizontal scroll. */
@media (max-width: 479px) {
  .header-row { gap: 4px 12px; }
  .header-actions { flex-wrap: wrap; justify-content: flex-end; gap: 2px; width: 100%; margin-left: 0; }
  .header-link { padding: 0 8px; font-size: .9rem; }
}
/* UX-M6: the client-area menu wraps on phones instead of scrolling sideways. */
@media (max-width: 1023px) {
  .account-nav ul { flex-wrap: wrap; overflow-x: visible; }
  .account-nav li { flex: 0 0 auto; }
  .account-nav a, .account-nav button { width: auto; padding: 0 12px; }
}
/* Subdomain field at 320 px: the ".webhosting.1.wien" suffix goes below the input. */
@media (max-width: 419px) {
  .input-group-suffix { flex-wrap: wrap; }
  .input-group-suffix .input { flex: 1 1 100%; border-radius: 10px 10px 0 0; }
  .input-group-suffix .input-addon { flex: 1 1 100%; min-height: 40px; border-left: 1.5px solid var(--line-strong); border-top: 0; border-radius: 0 0 10px 10px; white-space: normal; overflow-wrap: anywhere; }
}
/* UX-H2: one order button per billing cycle; the cycle toggle picks the visible one. */
.plan-cta-a { display: none; }
.pricing:has(#cycle-annual:checked) .plan-cta-m { display: none; }
.pricing:has(#cycle-annual:checked) .plan-cta-a { display: inline-flex; }
/* UX-H5: Phase-2 features are marked "In Kürze". */
.feature-soon { margin-left: 6px; vertical-align: middle; }
.form-expired { padding-top: 16px; }
.next-steps .steps-list { margin: 8px 0 0; padding-left: 1.4em; display: grid; gap: 8px; }
.inline-form { display: inline; }
.inline-form .btn-link { min-height: 32px; padding: 0 2px; }
/* UX-H4: branded error pages. */
.error-page { padding: 56px 0 72px; }
.footer-inline { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-inline a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink-2); }
