/* Öffentliche Webseite idoemail.de (Farben und Schriften aus base.css) */

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 16px; }
main { min-height: 60vh; padding-bottom: 48px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.num { text-align: right; }

/* Kopf und Fuß */
.site-head { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.site-head-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.site-head .brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); font-family: var(--font-head); font-size: 1.2rem; font-weight: 500; }
.site-head .brand strong { color: var(--primary); font-weight: 700; }
.site-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.site-nav > a:not(.btn) { padding: 7px 10px; border-radius: 7px; color: var(--muted); text-decoration: none; font-weight: 500; }
.site-nav > a:not(.btn):hover, .site-nav > a.active { background: var(--primary-soft); color: var(--primary); }
.site-foot { border-top: 1px solid var(--border); background: var(--surface); padding: 28px 0 16px; font-size: .9rem; }
.site-foot p { margin: 4px 0; }
.site-foot a { color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr; gap: 24px; margin-bottom: 12px; }
.foot-brand { font-family: var(--font-head); font-size: 1.1rem; }
.foot-brand strong { color: var(--primary); }
.foot-head { font-weight: 650; margin-bottom: 6px !important; }
.foot-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.foot-legal { line-height: 1.9; }

/* Knöpfe */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border: 1px solid var(--border-strong); border-radius: var(--radius-control);
  background: var(--surface); color: var(--text); font: inherit; font-weight: 550; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--surface-2); color: var(--text); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-strong); border-color: var(--primary-strong); color: var(--on-primary); }
.btn-danger { background: var(--error); border-color: var(--error); color: #fff; }
.btn-danger:hover { filter: brightness(.95); color: #fff; }
.btn-lg { padding: 12px 22px; font-size: 1.02rem; }
.btn-sm { padding: 5px 11px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-ghost { border-color: transparent; background: none; color: var(--muted); }
.btn:disabled { opacity: .6; cursor: default; }

/* Start */
.hero { background: linear-gradient(160deg, var(--primary-soft), var(--bg) 70%); border-bottom: 1px solid var(--border); margin-bottom: 40px; }
.hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 16px; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.cta.center { justify-content: center; }
.hero-art img { width: 100%; max-width: 440px; height: auto; display: block; margin: 0 auto; }
.feature-icon { display: block; width: 44px; height: 44px; margin-bottom: 10px; }
.feature .more { margin-top: 10px; }
.feature .more a { font-weight: 550; }
.home-faq { margin: 48px auto 24px; }
.home-faq .narrow { margin-top: 16px; }
details.faq { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 16px; margin: 0 0 10px; }
details.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; position: relative; padding-right: 24px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; position: absolute; right: 0; top: 12px; font-size: 1.2rem; color: var(--primary); }
details.faq[open] summary::after { content: '–'; }
details.faq p { margin: 0 0 14px; color: var(--muted); line-height: 1.6; }
/* Themenseiten */
.topic-hero { background: linear-gradient(160deg, var(--primary-soft), var(--bg) 70%); border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.topic-hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; padding-top: 40px; padding-bottom: 40px; }
.topic-hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin: 8px 0 14px; }
.topic-art { width: 100%; max-width: 360px; height: auto; justify-self: center; }
.crumbs { font-size: .85rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.topic-body { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; }
.topic-section h2 { font-size: 1.3rem; margin: 28px 0 10px; }
.topic-section:first-child h2 { margin-top: 0; }
.topic-list { padding-left: 20px; }
.topic-list li { margin: 6px 0; line-height: 1.6; }
.topic-side .card { position: sticky; top: 76px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0 48px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.feature h3 { margin: 0 0 8px; font-size: 1.08rem; }
.feature p { margin: 0; color: var(--muted); }
.steps { list-style: none; counter-reset: s; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-weight: 700; }
.steps span { color: var(--muted); }

/* Preise */
.page-intro { padding: 32px 0 16px; }
.page-intro h1 { margin: 0 0 8px; }
.toggles { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.toggles .toggle { margin-top: 0; }
.toggle { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 999px; padding: 3px; background: var(--surface); margin-top: 8px; }
.toggle button { border: 0; background: none; font: inherit; font-weight: 550; padding: 7px 16px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.toggle button.active { background: var(--primary); color: var(--on-primary); }
.price-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 24px 0; }
.price-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; }
.price-card.featured { border-color: var(--primary); box-shadow: 0 0 0 2px var(--ring); }
.price-card h3 { margin: 0; }
.price-card .gb { margin: 4px 0 12px; color: var(--muted); }
.price { display: flex; flex-direction: column; margin: 0 0 12px; }
.price .amount { font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; color: var(--primary); }
.price .per { color: var(--muted); font-size: .9rem; }
.price .gross { font-size: .85rem; }
.tag { position: absolute; top: -11px; right: 16px; background: var(--primary); color: var(--on-primary); font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.checks { columns: 2; padding-left: 20px; margin: 0; }
.checks li { margin: 3px 0; }

/* Kostenlos */
.free-teaser { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-color: var(--primary-border); background: var(--primary-soft); }
.free-teaser h2 { margin: 6px 0; }
.free-teaser p { margin: 0; color: var(--muted); max-width: 70ch; }
.tag-inline { display: inline-block; background: var(--primary); color: var(--on-primary); font-weight: 700; padding: 2px 10px; border-radius: 999px; font-size: .85rem; }
.addr-wish { display: flex; align-items: center; gap: 6px; }
.addr-wish span { color: var(--muted); white-space: nowrap; }
.narrow.wide { max-width: 680px; }

/* Karten, Tabellen, Hinweise */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin: 0 0 16px; box-shadow: var(--shadow); }
.card h2 { margin: 0 0 12px; font-size: 1.15rem; }
.card h3 { margin: 16px 0 8px; font-size: 1rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid2 > .card { margin: 0 0 16px; }
.ptable { width: 100%; border-collapse: collapse; }
.ptable td, .ptable th { padding: 8px 6px; border-bottom: 1px solid var(--border); vertical-align: top; text-align: left; }
.ptable th { font-size: .85rem; color: var(--muted); font-weight: 600; }
.ptable td.num, .ptable th.num { text-align: right; }
.ptable tr.sum td { font-weight: 700; border-top: 2px solid var(--border-strong); }
.table-wrap { overflow-x: auto; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--surface-3); color: var(--muted); }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-bad { background: var(--error-soft); color: var(--error); }
.alert { padding: 12px 14px; border-radius: var(--radius); border: 1px solid; margin: 0 0 16px; }
.alert-ok { background: var(--ok-soft); border-color: var(--ok-border); color: var(--ok); }
.alert-error { background: var(--error-soft); border-color: var(--error-border); color: var(--error); }
.alert-info { background: var(--primary-soft); border-color: var(--primary-border); color: var(--text); }
.plain { list-style: none; padding: 0; margin: 0 0 12px; }
.plain li { padding: 4px 0; overflow-wrap: anywhere; }
code { font-size: .9em; }

/* Formulare */
.narrow { max-width: 520px; margin: 40px auto 0; padding: 0 16px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field .label { font-weight: 550; font-size: .92rem; }
.field .hint { color: var(--muted); font-size: .82rem; }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--input-border); border-radius: var(--radius-control); background: var(--surface); color: var(--text); font: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ring); border-color: var(--primary); }
input[type="file"] { font: inherit; max-width: 100%; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.check input { margin-top: 3px; flex: none; width: 18px; height: 18px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row2.zip { grid-template-columns: 140px 1fr; }
fieldset.card { min-width: 0; }
fieldset.card legend { font-family: var(--font-head); font-weight: 650; font-size: 1.1rem; padding: 0 6px; margin-left: -6px; }
.options { display: grid; gap: 8px; }
.options.inline { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.option { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; }
.option:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.option input { margin-top: 4px; flex: none; }
.order-grid { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.order-side .sticky { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 12px; }
.order-side h2 { margin: 0; }
.mb-row { display: grid; grid-template-columns: 1.1fr 1fr 1.7fr 100px auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.mb-row.gr { grid-template-columns: 1.4fr 2fr auto; }
.mb-row .addr { display: flex; align-items: center; gap: 4px; min-width: 0; }
.mb-row .addr input { min-width: 0; }
.mb-row .at { color: var(--muted); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.mb-row .extra { display: flex; align-items: center; gap: 4px; }
.mb-row .extra input { width: 60px; }
.summary .ptable td { padding: 5px 2px; font-size: .9rem; }
.prose h2 { margin-top: 28px; font-size: 1.2rem; }
.prose h3 { margin-top: 20px; font-size: 1.05rem; }
.prose p, .prose li { line-height: 1.6; }
.prose.narrow { max-width: 760px; }

@media (max-width: 900px) {
  .topic-hero-inner, .topic-body { grid-template-columns: 1fr; }
  .topic-art { max-width: 260px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 32px; }
  .hero-art { display: none; }
  .features, .price-cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .order-grid { grid-template-columns: 1fr; }
  .order-side .sticky { position: static; }
}
@media (max-width: 640px) {
  .foot-grid { grid-template-columns: 1fr; }
  .topic-art { display: none; }
  .free-teaser { flex-direction: column; align-items: flex-start; }
  .features, .price-cards, .steps, .grid2, .row2 { grid-template-columns: 1fr; }
  .row2.zip { grid-template-columns: 110px 1fr; }
  .checks { columns: 1; }
  .mb-row, .mb-row.gr { grid-template-columns: 1fr auto; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius); }
  .mb-row > label:not(.addr) { grid-column: 1 / 2; }
  .mb-row .addr { grid-column: 1 / -1; }
  .mb-row [data-remove] { grid-row: 2; grid-column: 2; }
  .hide-sm { display: none; }
  .site-head-inner { flex-wrap: wrap; }
  .site-nav { gap: 2px; }
}

/* Domain-Umzug im Bestellformular, Anleitungen */
.transfer-box { margin-top: 14px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.transfer-box h3 { margin: 18px 0 6px; font-size: 1rem; }
.transfer-box[hidden] { display: none; }
ol.howto { counter-reset: h; list-style: none; padding: 0; margin: 0; }
ol.howto li { counter-increment: h; position: relative; padding: 0 0 14px 44px; }
ol.howto li::before { content: counter(h); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: var(--on-primary); font-weight: 700; font-size: .9rem; }
.dns-table { min-width: 560px; }
.dns-table code { word-break: break-all; }
.topic-body > * { min-width: 0; }
