/* =========================================================================
   Nexo Hosting - Shop-Front
   Eigenes CSS, kein externes Framework. Modern, hell, vertrauenswuerdig.
   Palette: Navy #0F172A + blauer CTA-Akzent #0369A1 auf hellem Grund.
   ========================================================================= */

:root {
  --primary:        #0F172A;
  --primary-700:    #1E293B;
  --accent:         #0369A1;
  --accent-600:     #0284C7;
  --accent-700:     #075985;
  --on-accent:      #FFFFFF;

  --bg:             #F8FAFC;
  --bg-alt:         #EEF2F7;
  --fg:             #0F172A;
  --card:           #FFFFFF;
  --muted:          #E8ECF1;
  --muted-fg:       #475569;
  --border:         #E2E8F0;
  --border-strong:  #CBD5E1;

  --success:        #047857;
  --success-bg:     #ECFDF5;
  --danger:         #B91C1C;
  --danger-bg:      #FEF2F2;

  --ring:           #0369A1;

  --radius:         14px;
  --radius-sm:      10px;
  --radius-lg:      22px;

  --shadow-sm:      0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .05);
  --shadow-md:      0 8px 24px rgba(15, 23, 42, .08);
  --shadow-lg:      0 20px 48px rgba(15, 23, 42, .14);

  --space:          16px;
  --maxw:           1120px;

  --font-head:      "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body:      "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  color: var(--primary);
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.15rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }

a { color: var(--accent-700); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

ul { margin: 0; padding: 0; }

/* ---- Layout-Helfer ---- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}
.container-narrow { max-width: 760px; }

.section { padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0; }
.section-alt { background: var(--bg-alt); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-head p { color: var(--muted-fg); font-size: 1.05rem; margin: 0; }

/* ---- Zugaenglichkeit ---- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Buttons ---- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--on-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: .8rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-700); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: #fff; border-color: var(--accent); color: var(--accent-700); }

.btn-nav { padding: .55rem 1rem; font-size: .95rem; }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---- Header / Navigation ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }

.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--primary); font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent-600), var(--accent-700));
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.brand-name { letter-spacing: -.02em; }
.brand-accent { color: var(--accent); }

.site-nav { display: flex; align-items: center; gap: 1.35rem; }
.site-nav a { color: var(--muted-fg); font-weight: 500; }
.site-nav a:not(.btn):hover { color: var(--primary); text-decoration: none; }
.site-nav a[aria-current="page"]:not(.btn) { color: var(--primary); }

/* ---- Hero ---- */
.hero {
  background:
    radial-gradient(1000px 480px at 82% -8%, rgba(3, 105, 161, .12), transparent 60%),
    linear-gradient(180deg, #FFFFFF 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 3rem;
  align-items: center;
  padding: clamp(3rem, 2rem + 5vw, 6rem) 0;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent-700);
  background: #E0F2FE;
  padding: .35rem .75rem;
  border-radius: 999px;
  margin: 0 0 1.1rem;
}
.hero-copy h1 { margin-bottom: .5rem; }
.hero-sub { font-size: 1.15rem; color: var(--muted-fg); max-width: 34rem; margin-bottom: 1.7rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.6rem; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 1.1rem; list-style: none; }
.hero-badges li { display: inline-flex; align-items: center; gap: .45rem; font-weight: 500; color: var(--primary); font-size: .95rem; }
.hero-badges svg { color: var(--success); flex: none; }

/* Hero-Mockup */
.hero-card { display: grid; place-items: center; }
.mock-window {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mock-bar { display: flex; gap: .4rem; padding: .8rem 1rem; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.mock-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.mock-bar span:first-child { background: #FCA5A5; }
.mock-bar span:nth-child(2) { background: #FCD34D; }
.mock-bar span:nth-child(3) { background: #86EFAC; }
.mock-body { padding: 1.4rem 1.5rem 1.7rem; }
.mock-line { height: 12px; border-radius: 6px; background: var(--muted); margin-bottom: 1.1rem; }
.mock-line-lg { width: 62%; height: 16px; background: linear-gradient(90deg, var(--accent-600), var(--accent-700)); opacity: .85; }
.mock-row { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; color: var(--primary); font-size: .95rem; font-weight: 500; border-bottom: 1px dashed var(--border); }
.mock-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.mock-dot.ok { background: var(--success); box-shadow: 0 0 0 3px rgba(4, 120, 87, .15); }
.mock-progress { height: 8px; border-radius: 999px; background: var(--muted); margin: 1.2rem 0 .7rem; overflow: hidden; }
.mock-progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--accent-600), var(--success)); border-radius: 999px; }
.mock-status { font-family: var(--font-head); font-weight: 600; color: var(--success); font-size: .9rem; }

/* ---- Feature-Grid ---- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.feature-icon {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: #E0F2FE;
  color: var(--accent-700);
  margin-bottom: 1rem;
}
.feature h3 { margin-bottom: .35rem; }
.feature p { color: var(--muted-fg); font-size: .95rem; margin: 0; }

/* ---- Preis-Karten ---- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.6rem 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.price-card.is-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
}
.price-flag {
  position: absolute;
  top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .3rem .85rem;
  border-radius: 999px;
  margin: 0;
  white-space: nowrap;
}
.price-name { margin-bottom: .3rem; }
.price-amount { display: flex; align-items: baseline; gap: .4rem; margin: 0 0 1.2rem; }
.price-value { font-family: var(--font-head); font-weight: 800; font-size: 2.3rem; color: var(--primary); letter-spacing: -.02em; }
.price-period { color: var(--muted-fg); font-size: .95rem; }

.spec-list { list-style: none; margin: 0 0 1.1rem; padding: 0 0 1.1rem; border-bottom: 1px solid var(--border); }
.spec-list li { padding: .35rem 0; color: var(--muted-fg); font-size: .95rem; }
.spec-list strong { color: var(--primary); font-weight: 700; }

.feature-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.feature-list li { display: flex; align-items: flex-start; gap: .55rem; padding: .3rem 0; font-size: .95rem; color: var(--primary); }
.feature-list svg { color: var(--success); flex: none; margin-top: .18rem; }

.price-card .btn { margin-top: auto; }
.price-foot { text-align: center; color: var(--muted-fg); font-size: .9rem; margin-top: 1.8rem; }

/* ---- Ablauf / Steps ---- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; padding: 0; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem 1.4rem; box-shadow: var(--shadow-sm); }
.step-num {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  margin-bottom: .9rem;
}
.step h3 { margin-bottom: .3rem; }
.step p { color: var(--muted-fg); font-size: .95rem; margin: 0; }

/* ---- FAQ ---- */
.faq { display: grid; gap: .8rem; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.3rem;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--accent);
  line-height: 1;
  transition: transform .2s ease;
  flex: none;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-answer { padding: 0 1.3rem 1.2rem; }
.faq-answer p { color: var(--muted-fg); margin: 0; }

/* ---- CTA-Band ---- */
.cta-band {
  background: linear-gradient(135deg, var(--primary), var(--accent-700));
  color: #fff;
}
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  padding: clamp(2.5rem, 2rem + 3vw, 4rem) 20px;
}
.cta-band h2 { color: #fff; margin-bottom: .3rem; }
.cta-band p { color: rgba(255, 255, 255, .82); margin: 0; }
.cta-band .btn-primary { background: #fff; color: var(--accent-700); }
.cta-band .btn-primary:hover { background: #E0F2FE; }

/* ---- Footer ---- */
.site-footer { background: var(--primary); color: #CBD5E1; padding-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.brand-footer { color: #fff; margin-bottom: .9rem; }
.brand-footer .brand-accent { color: #7DD3FC; }
.footer-note { color: #94A3B8; max-width: 30rem; font-size: .95rem; }
.footer-head { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .9rem; }
.footer-col ul { list-style: none; display: grid; gap: .55rem; }
.footer-col a { color: #CBD5E1; font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.footer-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 1.3rem 20px;
  font-size: .85rem;
  color: #94A3B8;
}
.footer-bar p { margin: 0; }
.footer-trust { color: #7DD3FC; }

/* ---- Panels (success / cancel / fallback) ---- */
.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2.6rem 2rem;
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}
.panel h1 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.2rem); }
.panel p { color: var(--muted-fg); }
.panel .muted { font-size: .92rem; }
.panel-icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; margin-bottom: 1rem; background: var(--success-bg); color: var(--success); }
.panel-icon-muted { background: var(--muted); color: var(--muted-fg); }
.order-ref { font-size: 1.1rem; color: var(--primary); }
.next-steps { list-style: none; text-align: left; max-width: 420px; margin: 1.4rem auto; display: grid; gap: .6rem; padding: 0; }
.next-steps li { position: relative; padding-left: 1.7rem; color: var(--muted-fg); font-size: .95rem; }
.next-steps li::before { content: "\2713"; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.btn-row { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* ---- Hinweise / Fehler ---- */
.notice { background: var(--muted); border-radius: var(--radius); padding: 1.2rem 1.4rem; color: var(--muted-fg); text-align: center; }
.form-errors {
  background: var(--danger-bg);
  border: 1px solid #FCA5A5;
  border-left: 4px solid var(--danger);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin-bottom: 1.6rem;
  color: #7F1D1D;
}
.form-errors p { margin: 0 0 .4rem; }
.form-errors ul { padding-left: 1.2rem; }
.form-errors li { margin: .2rem 0; }

/* ---- Bestellformular ---- */
.order-section { padding-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.order-head { text-align: center; max-width: 620px; margin: 0 auto 2rem; }
.order-head p { color: var(--muted-fg); }

.order-form { max-width: 640px; margin: 0 auto; display: grid; gap: 1.3rem; }
.form-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.4rem 1.5rem;
  margin: 0;
}
.form-block legend {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--primary);
  padding: 0 .1rem;
  font-size: 1.05rem;
}
.chosen-summary { background: #E0F2FE; color: var(--primary); border-radius: var(--radius-sm); padding: .7rem 1rem; font-size: .95rem; margin: .3rem 0 1rem; }

.field { display: block; }
.field-label { display: block; font-weight: 600; color: var(--primary); margin-bottom: .4rem; font-size: .95rem; }
.req { color: var(--danger); }
.field-hint { display: block; color: var(--muted-fg); font-size: .85rem; margin-top: .4rem; }

input[type="email"],
input[type="text"] {
  width: 100%;
  font: inherit;
  color: var(--fg);
  background: #fff;
  padding: .75rem .9rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
}
input[type="email"]:focus,
input[type="text"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(3, 105, 161, .18);
}
input[aria-invalid="true"] { border-color: var(--danger); }

.input-group { display: flex; align-items: stretch; }
.input-group input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-suffix {
  display: inline-flex; align-items: center;
  padding: 0 .9rem;
  background: var(--muted);
  border: 1px solid var(--border-strong);
  border-left: 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--muted-fg);
  font-size: .95rem;
  white-space: nowrap;
}

/* Radio-Karten (Paketauswahl) */
.radio-cards { display: grid; gap: .7rem; }
.radio-card {
  display: flex; align-items: center; gap: .8rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: .9rem 1rem;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.radio-card:hover { border-color: var(--accent); }
.radio-card input { accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.radio-card:has(input:checked) { border-color: var(--accent); background: #F0F9FF; box-shadow: 0 0 0 1px var(--accent); }
.radio-card-body { display: grid; grid-template-columns: 1fr auto; gap: .1rem .8rem; width: 100%; align-items: baseline; }
.rc-name { font-family: var(--font-head); font-weight: 700; color: var(--primary); }
.rc-price { font-family: var(--font-head); font-weight: 700; color: var(--accent-700); text-align: right; }
.rc-per { color: var(--muted-fg); font-weight: 500; font-size: .82rem; }
.rc-spec { grid-column: 1 / -1; color: var(--muted-fg); font-size: .85rem; }

/* Domain-Wahl */
.choice { display: flex; align-items: flex-start; gap: .7rem; padding: .8rem 0 .2rem; cursor: pointer; }
.choice input { accent-color: var(--accent); width: 18px; height: 18px; margin-top: .15rem; flex: none; }
.choice strong { display: block; color: var(--primary); font-family: var(--font-head); }
.choice-hint { display: block; color: var(--muted-fg); font-size: .88rem; }
.subfield { padding: .3rem 0 .8rem 1.7rem; }

/* Checkbox */
.checkbox { display: flex; align-items: flex-start; gap: .7rem; cursor: pointer; font-size: .95rem; color: var(--primary); }
.checkbox input { accent-color: var(--accent); width: 19px; height: 19px; margin-top: .15rem; flex: none; }

.order-submit { display: grid; gap: .8rem; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: .4rem; color: var(--muted-fg); font-size: .88rem; margin: 0; }
.secure-note svg { color: var(--success); }

/* ---- Rechtstexte / Legal ---- */
.legal { max-width: 800px; }
.legal h1 { margin-bottom: 1.4rem; }
.legal h2 { font-size: 1.3rem; margin-top: 2.2rem; }
.legal h3 { font-size: 1.1rem; margin-top: 1.4rem; }
.legal p, .legal li { color: #334155; }
.legal ul, .legal ol { padding-left: 1.3rem; margin: 0 0 1rem; }
.legal li { margin: .3rem 0; }
.legal address { font-style: normal; }
.legal .placeholder {
  background: #FEF9C3;
  border: 1px dashed #CA8A04;
  border-radius: 6px;
  padding: .12rem .4rem;
  color: #713F12;
  font-family: var(--font-body);
  font-size: .95em;
  font-weight: 600;
}
.legal .updated { color: var(--muted-fg); font-size: .9rem; }
.legal .lead { font-size: 1.05rem; color: var(--muted-fg); }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-card { order: -1; }
  .mock-window { max-width: 360px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .price-card.is-featured { order: -1; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .site-nav { gap: .8rem; }
  .site-nav a:not(.btn) { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { flex: 1 1 auto; }
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .btn-primary:hover, .feature:hover, .price-card:hover { transform: none; }
}
