:root {
  --m-bg: #f3f7fb;
  --m-surface: #ffffff;
  --m-line: #d8e4f3;
  --m-text: #13253b;
  --m-muted: #5f738a;
  --m-primary: #0f766e;
  --m-primary-2: #14b8a6;
  --m-accent: #1d4ed8;
  --m-radius: 16px;
  --m-shadow: 0 14px 34px rgba(15, 23, 42, 0.10);
}

body {
  background: radial-gradient(circle at 10% -10%, rgba(20,184,166,.10), transparent 42%),
              radial-gradient(circle at 100% 0%, rgba(29,78,216,.08), transparent 40%),
              var(--m-bg);
  color: var(--m-text);
}

.main {
  max-width: 1220px;
}

/* Header and nav */
header {
  margin-bottom: 22px;
}

#menu li a {
  border-radius: 999px;
  border: 1px solid #cfe0f2;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  color: #203a56;
  font-weight: 700;
  transition: all .16s ease;
}

#menu li a:hover,
#menu li a.active {
  background: linear-gradient(135deg, #dff3f2 0%, #d9e9ff 100%);
  border-color: #9ec8dc;
  color: #10314f;
}

/* Home modern layout */
.home-shell {
  display: grid;
  gap: 18px;
}

.home-hero {
  background: linear-gradient(145deg, #ffffff 0%, #f4f9ff 100%);
  border: 1px solid var(--m-line);
  border-radius: var(--m-radius);
  box-shadow: var(--m-shadow);
  padding: 22px;
}

.home-hero h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.15;
  color: #102a43;
}

.home-hero p {
  margin: 10px 0 0;
  color: var(--m-muted);
  font-size: 17px;
}

.home-hero .hero-top {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.hero-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.hero-badges span {
  display: inline-block;
  border: 1px solid #cde0f7;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 700;
  color: #1f3d5d;
  background: #f8fbff;
}

.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-block;
  border-radius: 11px;
  text-decoration: none;
  font-weight: 700;
  padding: 10px 15px;
  border: 1px solid transparent;
}

.hero-btn.primary {
  background: linear-gradient(135deg, var(--m-primary), var(--m-primary-2));
  color: #fff;
}

.hero-btn.secondary {
  background: #fff;
  color: #1e3b58;
  border-color: #cfe0f2;
}

.home-search {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #d8e4f3;
  border-radius: 12px;
  background: #fbfdff;
}

/* style legacy domainsuche include */
#form_1 > div {
  font-size: 0 !important;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

#form_1 a {
  font-size: 14px !important;
  background: linear-gradient(135deg, var(--m-primary), var(--m-primary-2)) !important;
  color: #fff !important;
  border-radius: 11px !important;
  padding: 11px 16px !important;
  font-weight: 700;
}

#form_1 input#domainInput {
  font-size: 15px !important;
  border: 1px solid #bfd6f0 !important;
  border-radius: 11px !important;
  padding: 11px 12px !important;
  min-width: 320px;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.offer-card {
  border: 1px solid var(--m-line);
  border-radius: 14px;
  background: var(--m-surface);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  padding: 16px;
}

.offer-card h3 {
  margin: 0;
  color: #13314e;
  font-size: 22px;
}

.offer-card .price {
  margin: 6px 0 8px;
  color: #0f766e;
  font-size: 16px;
  font-weight: 700;
}

.offer-card ul {
  margin: 0;
  padding: 0 0 0 18px;
}

.offer-card li {
  color: #304a64;
  line-height: 1.45;
  margin: 4px 0;
}

.offer-card .card-cta {
  margin-top: 12px;
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  color: #0f4f88;
}

.home-subgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.info-card {
  border: 1px solid var(--m-line);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
}

.info-card h4 {
  margin: 0 0 7px;
  color: #173b5e;
  font-size: 20px;
}

.info-card p {
  margin: 0;
  color: var(--m-muted);
}

/* Footer restyle */
.site-footer {
  margin-top: 18px;
  border: 1px solid #d6e2f1;
  border-radius: 14px 14px 0 0;
  padding: 14px 16px;
  background: linear-gradient(90deg, #1f2937 0%, #243b53 45%, #1f2937 100%);
  color: #dbe7f5;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, .2);
}

.site-footer a {
  color: #f3f7fb;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer .legal-note {
  margin: 0 0 7px;
  font-size: 12px;
  line-height: 1.45;
  color: #d2deec;
}

.site-footer .footer-links {
  margin: 0;
  font-size: 12px;
}

@media (max-width: 980px) {
  .home-grid,
  .home-subgrid {
    grid-template-columns: 1fr;
  }

  .home-hero h2 {
    font-size: 28px;
  }

  #form_1 input#domainInput {
    min-width: 0;
    width: 100%;
  }
}

/* ===== Header V1 Polish ===== */

/* remove legacy top dark stripe/background artifacts */
.body1 {
  background: #ffffff !important;
  border-bottom: 1px solid #dbe5f2 !important;
}

.body2 {
  background: none !important;
}

header .wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

h1 {
  float: none !important;
  padding: 18px 0 0 0 !important;
  margin: 0;
  flex: 0 0 auto;
}

/* hide legacy text-link "Start" under logo */
h1 > a:not(#logo) {
  display: none !important;
}

#menu {
  float: none !important;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding-top: 10px;
}

#menu li {
  float: none !important;
}

/* neutralize legacy color blocks per nav item */
.nav1 a,
.nav2 a,
.nav3 a,
.nav4 a,
.nav5 a {
  border-top: 0 !important;
  background: transparent !important;
}

#menu li a {
  width: auto !important;
  min-width: 148px;
  line-height: 1.2 !important;
  padding: 12px 18px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}

#menu li a:hover,
#menu li .active {
  padding: 12px 18px !important;
}

@media (max-width: 980px) {
  header .wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  #menu {
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 2px;
  }

  #menu li a {
    min-width: 132px;
    padding: 10px 14px !important;
    font-size: 14px !important;
  }
}

/* ===== Header Overflow Fix ===== */

/* override legacy fixed width 967px */
.main {
  width: min(1240px, 94vw) !important;
  max-width: 1240px !important;
}

/* prevent clipping from legacy wrapper overflow:hidden */
header .wrapper {
  overflow: visible !important;
}

header nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
}

#menu {
  width: auto !important;
  justify-content: flex-end;
}

#menu li a {
  min-width: 124px !important;
  padding: 11px 14px !important;
}

#menu li a:hover,
#menu li .active {
  padding: 11px 14px !important;
}

@media (max-width: 1180px) {
  #menu {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  #menu li a {
    min-width: 112px !important;
  }
}

/* ===== V1 Final Micro-Polish ===== */
header {
  margin-bottom: 14px !important;
}

#content {
  padding-top: 8px !important;
}

.home-search #form_1 {
  padding-bottom: 0 !important;
}

.home-search #form_1 > div {
  width: 100%;
}

.home-search #form_1 a {
  flex: 0 0 auto;
  white-space: nowrap;
}

.home-search #form_1 input#domainInput {
  flex: 1 1 auto;
  min-width: 260px;
  width: auto !important;
}

@media (max-width: 980px) {
  .home-search #form_1 a,
  .home-search #form_1 input#domainInput {
    width: 100% !important;
    min-width: 0;
  }
}


/* ===== Header Menu Top Accent ===== */
#menu li a {
  box-sizing: border-box;
  border-top: 3px solid #bcd3ef !important;
}

#menu li.nav1 a { border-top-color: #8fb7e5 !important; }
#menu li.nav2 a { border-top-color: #9ac2ea !important; }
#menu li.nav3 a { border-top-color: #a8cdf0 !important; }
#menu li.nav4 a { border-top-color: #b4d6f3 !important; }
#menu li.nav5 a { border-top-color: #9ec8ff !important; }

#menu li a:hover,
#menu li .active {
  border-top-width: 4px !important;
}

/* ===== Homepage Focus Mode (Instant Search) ===== */
.home-more-wrap {
  margin-top: 14px;
}

.home-more-btn {
  border: 1px solid #c7dbf2;
  background: #f8fbff;
  color: #1d3b5c;
  font-weight: 700;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
}

.home-more-btn:hover {
  background: #eef6ff;
}

.home-modern .home-extra {
  display: none;
}

.home-modern.show-more .home-grid {
  display: grid;
}

.home-modern.show-more .home-subgrid {
  display: grid;
}

/* ===== Homepage Spacing + Footer Blend ===== */
.home-shell {
  gap: 28px;
}

.home-hero {
  margin-bottom: 8px;
}

.home-grid {
  margin-top: 2px;
}

.home-subgrid {
  margin-top: 4px;
}

#page1 #content {
  padding-bottom: 36px;
}

.site-footer {
  margin-top: 28px;
  border: 1px solid #d7e4f3;
  border-radius: 14px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5fd 100%);
  color: #3e566f;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.site-footer a {
  color: #21486f;
}

.site-footer .legal-note,
.site-footer .footer-links {
  color: #4c647d;
}

/* legacy toggle remnants disabled */
.home-more-wrap,
.home-modern .home-extra {
  display: block;
}

/* ===== Homepage Conversion Focus (Single Goal) ===== */
.home-conversion-focus .home-shell {
  max-width: 1120px;
  margin: 0 auto;
  gap: 0;
}

.home-conversion-focus .home-hero {
  padding: 28px;
  margin-top: 10px;
}

.home-focus-note {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-focus-note span {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid #cfe0f2;
  border-radius: 999px;
  background: #f8fbff;
  color: #2c4966;
  font-size: 12px;
  font-weight: 700;
}

.home-conversion-focus .home-grid,
.home-conversion-focus .home-subgrid,
.home-conversion-focus .home-more-wrap,
.home-conversion-focus .home-extra {
  display: none !important;
}
