/*
  ThermSwiss SEO-Landingpages
  Gemeinsame CSS-Datei für Stadtseiten wie /solothurn/, /bern/, /basel/ ...
  Keine externen Fonts, kein JS, performancefreundlich.
*/

:root {
  --color-dark: #111318;
  --color-dark-2: #1b1f27;
  --color-text: #242832;
  --color-muted: #69707d;
  --color-light: #f6f7f8;
  --color-white: #ffffff;
  --color-border: #e4e7eb;
  --color-red: #b9212e;
  --color-red-dark: #901923;
  --color-accent: #d8a24a;
  --shadow-soft: 0 18px 50px rgba(17, 19, 24, 0.12);
  --shadow-card: 0 8px 28px rgba(17, 19, 24, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--color-red);
}

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  color: var(--color-dark);
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.55rem, 6vw, 5.25rem);
  color: var(--color-white);
  max-width: 980px;
}

h2 {
  font-size: clamp(1.9rem, 3.5vw, 3.1rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.narrow {
  max-width: 860px;
}

.section-light,
.section-white,
.section-muted,
.section-dark,
.section-dark-soft,
.section-red {
  padding: clamp(64px, 8vw, 112px) 0;
}

.section-white {
  background: var(--color-white);
}

.section-light,
.section-muted {
  background: var(--color-light);
}

.section-dark {
  background:
    radial-gradient(circle at 12% 20%, rgba(185, 33, 46, 0.42), transparent 32%),
    linear-gradient(135deg, #111318 0%, #1c212a 48%, #111318 100%);
  color: rgba(255, 255, 255, 0.9);
}

.section-dark-soft {
  background: linear-gradient(135deg, #171b22 0%, #262b34 100%);
  color: rgba(255, 255, 255, 0.86);
}

.section-red {
  background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-dark) 100%);
  color: var(--color-white);
}

.section-dark h2,
.section-dark-soft h2,
.section-red h2 {
  color: var(--color-white);
}

.section-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--color-red);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-dark .section-kicker,
.section-dark .eyebrow,
.section-dark-soft .section-kicker,
.section-red .section-kicker {
  color: #ffd7dc;
}

.section-kicker::before,
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 999;
  padding: 10px 14px;
  background: var(--color-red);
  color: var(--color-white);
  border-radius: 8px;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17, 19, 24, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--color-white);
  flex: 0 0 auto;
}

.brand:hover {
  color: var(--color-white);
}

.brand-logo {
  display: block;
  width: 180px !important;
  max-width: 180px !important;
  height: auto !important;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.91rem;
  font-weight: 700;
}

.main-nav a:hover {
  color: var(--color-white);
}

.nav-cta {
  padding: 10px 16px;
  background: var(--color-red);
  color: var(--color-white);
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--color-white);
  color: var(--color-red);
}

.nav-toggle {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.menu-button {
  display: none;
}

.mobile-phone {
  display: none;
}

.hero {
  min-height: 760px;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 80px solid rgba(255, 255, 255, 0.04);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(34px, 5vw, 70px);
  align-items: center;
}

.lead {
  max-width: 820px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-red);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-white);
  color: var(--color-red);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--color-white);
}

.btn-secondary:hover {
  border-color: var(--color-white);
  color: var(--color-white);
}

.btn-light {
  background: var(--color-white);
  color: var(--color-red);
}

.btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--color-white);
}

.hero-card {
  padding: 30px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.card-label {
  display: inline-flex;
  margin-bottom: 18px;
  color: #ffd7dc;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

.hero-card ul,
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.hero-card li,
.check-list li {
  position: relative;
  padding-left: 28px;
}

.hero-card li::before,
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #ffb6bf;
  font-weight: 900;
}

.intro p,
.content-block p {
  font-size: 1.06rem;
}

.section-heading {
  max-width: 790px;
  margin-bottom: 38px;
}

.section-heading > p:last-child {
  color: var(--color-muted);
  font-size: 1.05rem;
}

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

.service-card {
  position: relative;
  padding: 28px;
  min-height: 280px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.service-card::after {
  content: "";
  position: absolute;
  right: -36px;
  top: -36px;
  width: 110px;
  height: 110px;
  background: rgba(185, 33, 46, 0.07);
  border-radius: 50%;
}

.number {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--color-red);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.service-card p,
.timeline p,
.faq p,
.site-footer p {
  color: var(--color-muted);
}

.split,
.trust-grid,
.cta-inner,
.footer-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  padding: 22px 24px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-red);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.timeline-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--color-dark);
  font-size: 1.08rem;
}

.trust-grid {
  align-items: center;
}

.trust p {
  color: rgba(255, 255, 255, 0.78);
}

.check-list {
  padding: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  color: rgba(255, 255, 255, 0.9);
}

.faq details {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin-bottom: 14px;
  background: var(--color-white);
  box-shadow: var(--shadow-card);
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--color-dark);
}

.faq details[open] summary {
  margin-bottom: 12px;
  color: var(--color-red);
}

.cta-inner {
  align-items: center;
}

.cta p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.06rem;
}

.site-footer {
  padding: 44px 0;
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
  grid-template-columns: 1fr 1fr 1fr;
  gap: 26px;
}

.site-footer strong {
  display: block;
  margin-bottom: 10px;
  color: var(--color-white);
}

.site-footer a:hover {
  color: var(--color-white);
}

@media (max-width: 1020px) {
  .header-inner {
    position: relative;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 50px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    color: var(--color-white);
    cursor: pointer;
  }

  .menu-button span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .menu-button em {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    display: grid;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0 18px;
    background: rgba(17, 19, 24, 0.98);
    border: 0 solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: max-height 0.25s ease, padding 0.25s ease, border-width 0.25s ease;
  }

  .main-nav a {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .main-nav a:last-child {
    border-bottom: 0;
  }

  .mobile-phone {
    display: block;
    color: var(--color-white);
    font-weight: 800;
  }

  .nav-toggle:checked ~ .main-nav {
    max-height: 440px;
    padding: 12px 18px;
    border-width: 1px;
  }

  .nav-toggle:checked + .menu-button span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle:checked + .menu-button span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked + .menu-button span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero-grid,
  .split,
  .trust-grid,
  .cta-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 96px;
    padding-bottom: 84px;
  }

  .hero-card {
    max-width: 520px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .header-inner {
    min-height: 70px;
  }

  .brand-logo {
    width: 180px;
  }

  .nav-cta {
    display: none;
  }

  .section-light,
  .section-white,
  .section-muted,
  .section-dark,
  .section-dark-soft,
  .section-red {
    padding: 58px 0;
  }

  .hero {
    padding-top: 74px;
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .service-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }
}
