:root {
  --primary: #0665a9;
  --primary-soft: #eaf1f8;
  --accent: #e1071b;
  --accent-hover: #c90617;
  --bg: #f7f5f1;
  --bg-soft: #f1ede6;
  --text: #132232;
  --muted: #56616d;
  --card: #ffffff;
  --border: #dde4eb;
  --footer: #044f85;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 8px 20px rgb(17 34 53 / 8%);
  --shadow-md: 0 18px 40px rgb(17 34 53 / 14%);
}

html[data-theme="dark"] {
  --primary: #61b5ef;
  --primary-soft: #1f2f42;
  --accent: #ff4f60;
  --accent-hover: #ff6573;
  --bg: #0c1724;
  --bg-soft: #132233;
  --text: #edf2f7;
  --muted: #a3b4c7;
  --card: #152436;
  --border: #2a3d52;
  --footer: #0a121c;
  --shadow-sm: 0 10px 24px rgb(0 0 0 / 28%);
  --shadow-md: 0 20px 42px rgb(0 0 0 / 40%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, #ffffff 0%, transparent 26%),
    radial-gradient(circle at 100% 10%, #f3efe8 0%, transparent 28%),
    var(--bg);
  line-height: 1.62;
  transition: background 0.25s ease, color 0.25s ease;
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-family: "Outfit", system-ui, sans-serif;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

p {
  margin: 0 0 1rem;
}

a {
  color: inherit;
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgb(247 245 241 / 84%);
  border-bottom: 1px solid rgb(39 70 101 / 10%);
}

.nav-wrap {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.theme-toggle {
  min-height: 40px;
  padding: 0.5rem 0.86rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.theme-toggle:hover {
  border-color: var(--primary);
}

.brand {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.18rem;
}

.brand-logo {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

.brand-image {
  width: 72px;
  height: auto;
  display: block;
}

.logo-dark {
  display: none;
}

html[data-theme="dark"] .logo-light {
  display: none;
}

html[data-theme="dark"] .logo-dark {
  display: block;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.15;
}

.nav-links {
  display: flex;
  gap: 1.35rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  color: #1b3046;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero {
  position: relative;
  min-height: min(92vh, 920px);
  display: grid;
  align-items: center;
  background-image:
    linear-gradient(
      180deg,
      rgb(0 0 0 / 44%) 0%,
      rgb(0 0 0 / 50%) 56%,
      rgb(0 0 0 / 60%) 100%
    ),
    url("assets/hero-beratung.png");
  background-size: cover;
  background-position: center 38%;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(6 101 169 / 10%) 0%, rgb(0 0 0 / 35%) 100%);
}

.hero-content {
  position: relative;
  color: #fff;
  padding: 7.2rem 0 5.2rem;
  text-align: center;
  max-width: 850px;
}

.eyebrow {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: rgb(255 255 255 / 82%);
}

.hero h1 {
  font-size: clamp(2.35rem, 7vw, 4.45rem);
  margin: 0.8rem auto 1rem;
  max-width: 16ch;
  border: 2px solid rgb(255 255 255 / 78%);
  padding: 0.35rem 0.8rem;
  display: inline-block;
  background: rgb(0 0 0 / 22%);
}

.hero h1 span {
  color: #ffffff;
}

.hero-text {
  max-width: 62ch;
  margin: 0 auto;
  font-size: clamp(1.04rem, 1.35vw, 1.2rem);
  color: rgb(255 255 255 / 92%);
}

.hero-actions {
  margin-top: 1.9rem;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0.72rem 1.24rem;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 28px rgb(0 0 0 / 18%);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  color: #fff;
  border-color: rgb(255 255 255 / 75%);
  background: rgb(0 0 0 / 18%);
}

.btn-secondary:hover {
  background: rgb(0 0 0 / 35%);
}

.hero-scroll {
  display: inline-block;
  margin-top: 1.8rem;
  color: rgb(255 255 255 / 86%);
  text-decoration: none;
  font-weight: 700;
}

.section {
  padding: clamp(4.6rem, 7vw, 6.6rem) 0;
}

.section-alt {
  background: linear-gradient(180deg, #f2eee8 0%, #f7f4ef 100%);
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 0% 0%, #1a2a3c 0%, transparent 30%),
    radial-gradient(circle at 100% 10%, #18273a 0%, transparent 32%),
    var(--bg);
}

html[data-theme="dark"] .site-header {
  background: rgb(10 18 29 / 82%);
  border-bottom-color: rgb(137 172 208 / 20%);
}

html[data-theme="dark"] .nav-links a {
  color: #d6e3f2;
}

html[data-theme="dark"] .section-alt {
  background: linear-gradient(180deg, #0d1a29 0%, #122033 100%);
}

html[data-theme="dark"] .service-card,
html[data-theme="dark"] .contact-card,
html[data-theme="dark"] .contact-form,
html[data-theme="dark"] .floating-card {
  background: var(--card);
  border-color: var(--border);
}

html[data-theme="dark"] .service-card h3,
html[data-theme="dark"] .contact-card h3,
html[data-theme="dark"] .contact-form label {
  color: #dce9f8;
}

html[data-theme="dark"] .badge-list li,
html[data-theme="dark"] .list li,
html[data-theme="dark"] .section-intro,
html[data-theme="dark"] .contact-card p,
html[data-theme="dark"] .service-card p,
html[data-theme="dark"] .brand-subtitle {
  color: var(--muted);
}

html[data-theme="dark"] .contact-form input,
html[data-theme="dark"] .contact-form textarea {
  background: #0f1d2d;
  color: #e6effa;
  border-color: #334960;
}

html[data-theme="dark"] .contact-form input::placeholder,
html[data-theme="dark"] .contact-form textarea::placeholder {
  color: #8ea2b7;
}

html[data-theme="dark"] .form-note {
  background: #173629;
  border-color: #2f7758;
  color: #afe6cb;
}

html[data-theme="dark"] .form-note.error {
  background: #3b1c22;
  border-color: #8f3e4a;
  color: #f0b6be;
}

.section-label {
  margin: 0 0 0.55rem;
  color: var(--primary);
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.11em;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.section-intro {
  max-width: 70ch;
  color: var(--muted);
}

.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.6rem, 2.8vw, 2.8rem);
  align-items: center;
}

.visual-card {
  position: relative;
}

.visual-card img {
  width: 100%;
  height: 470px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.floating-card {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
}

.floating-card strong {
  display: block;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1.3rem;
  color: var(--primary);
}

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

.badge-list,
.list {
  padding-left: 1.15rem;
}

.badge-list li,
.list li {
  margin-bottom: 0.45rem;
  color: #2c3e50;
}

.service-grid {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.service-card {
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.2rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgb(39 70 101 / 26%);
}

.service-card h3 {
  margin-bottom: 0.48rem;
  color: #1d334a;
}

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

.contact-grid {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 1.1rem;
}

.contact-info {
  display: grid;
  gap: 0.9rem;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.05rem;
  box-shadow: var(--shadow-sm);
}

.contact-card h3 {
  margin-bottom: 0.25rem;
  color: #1d334a;
}

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

.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.contact-form h3 {
  margin-bottom: 0.8rem;
}

.contact-form label {
  display: block;
  font-weight: 700;
  margin: 0.65rem 0 0.3rem;
  color: #2b3d50;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #cad3dd;
  border-radius: 11px;
  padding: 0.72rem 0.8rem;
  font: inherit;
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #5c86ad;
  box-shadow: 0 0 0 3px rgb(92 134 173 / 18%);
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-note {
  color: #1d6f42;
  background: #e8f8ee;
  border: 1px solid #9ddab5;
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  margin-top: 0.85rem;
}

.form-note.error {
  color: #8a1b22;
  background: #fdeff0;
  border-color: #f4b7bc;
}

.site-footer {
  background:
    radial-gradient(circle at 0% 0%, rgb(255 255 255 / 7%) 0%, transparent 26%),
    var(--footer);
  color: #dbe6f2;
  padding: 3.3rem 0 1.1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.site-footer h4 {
  margin-bottom: 0.62rem;
  color: #fff;
}

.site-footer a {
  display: block;
  color: #dbe6f2;
  text-decoration: none;
  margin-bottom: 0.36rem;
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-subtitle {
  margin-top: -0.25rem;
  color: #bfd0e5;
}

.footer-logo {
  width: 128px;
  height: auto;
  display: block;
  margin-bottom: 0.35rem;
  filter: drop-shadow(0 6px 14px rgb(0 0 0 / 18%));
}

.copyright {
  margin-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 15%);
  padding-top: 0.82rem;
  color: #b6c3d0;
  font-size: 0.9rem;
}

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

  .visual-card img {
    height: 390px;
  }

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

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .hero-content {
    padding-top: 5.7rem;
  }

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