/*
Theme Name: Toopex Modern
Theme URI: https://www.toopex.com/
Author: Local Build
Description: Modernes, responsives WordPress-Theme fuer KFZ-Werkstatt und Fahrzeugeinrichtung.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.1
Text Domain: toopex-modern
*/

:root {
  --bg: #f2f5fb;
  --bg-soft: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef3fb;
  --text: #121826;
  --muted: #5f6b7f;
  --accent: #e11d2f;
  --accent-2: #ff4f5f;
  --line: rgba(16, 24, 39, 0.12);
  --header-bg: rgba(255, 255, 255, 0.86);
  --header-link: #334155;
  --header-link-hover-bg: rgba(15, 23, 42, 0.08);
  --header-link-hover-text: #0f172a;
  --hero-overlay: linear-gradient(90deg, rgba(5, 9, 18, 0.82), rgba(10, 18, 34, 0.42));
  --panel-bg: linear-gradient(165deg, #ffffff 0%, #eef3fb 100%);
  --split-bg: linear-gradient(160deg, rgba(255, 255, 255, 0.88), rgba(240, 245, 253, 0.92));
  --info-bg: linear-gradient(130deg, rgba(225, 29, 47, 0.08), rgba(255, 255, 255, 0.95));
  --footer-bg: linear-gradient(180deg, rgba(240, 245, 253, 0.92), rgba(255, 255, 255, 0.95));
  --footer-card-bg: rgba(255, 255, 255, 0.82);
  --footer-card-text: #334155;
  --kpi-card-bg: rgba(255, 255, 255, 0.9);
  --radius: 22px;
  --shadow-xl: 0 24px 58px rgba(20, 29, 45, 0.18);
}

body.dark-mode {
  --bg: #090b0f;
  --bg-soft: #10141d;
  --surface: #131a25;
  --surface-2: #1d2837;
  --text: #f8fafc;
  --muted: #b7c2d2;
  --line: rgba(255, 255, 255, 0.11);
  --header-bg: rgba(8, 10, 14, 0.75);
  --header-link: #d2d9e6;
  --header-link-hover-bg: rgba(255, 255, 255, 0.07);
  --header-link-hover-text: #ffffff;
  --hero-overlay: linear-gradient(90deg, rgba(2, 3, 6, 0.84), rgba(5, 8, 12, 0.48));
  --panel-bg: linear-gradient(165deg, #121a27 0%, #1d2735 100%);
  --split-bg: linear-gradient(160deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  --info-bg: linear-gradient(130deg, rgba(225, 29, 47, 0.17), rgba(255, 255, 255, 0.03));
  --footer-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  --footer-card-bg: rgba(255, 255, 255, 0.03);
  --footer-card-text: #d2d9e6;
  --kpi-card-bg: rgba(9, 12, 18, 0.5);
  --shadow-xl: 0 30px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% -20%, #dce7fb 0%, transparent 40%),
    radial-gradient(circle at 100% 0%, #ffe3e8 0%, transparent 36%),
    linear-gradient(180deg, #f5f8fe 0%, #f2f5fb 58%, #eef3fb 100%);
  line-height: 1.6;
  font-size: 15px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.dark-mode {
  background:
    radial-gradient(circle at 10% -20%, #28364f 0%, transparent 40%),
    radial-gradient(circle at 100% 0%, #361e24 0%, transparent 35%),
    linear-gradient(180deg, #0a0d12 0%, #090b0f 55%, #0d1118 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-inner {
  width: min(1220px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  background: var(--header-bg);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand img {
  width: 72px;
  height: 34px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.main-nav .nav-list,
.site-header nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav {
  flex: 1;
  min-width: 0;
}

.site-header nav li {
  margin: 0;
}

.site-header nav a {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--header-link);
  font-weight: 600;
  font-size: 0.83rem;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.site-header nav a:hover {
  background: var(--header-link-hover-bg);
  border-color: var(--line);
  color: var(--header-link-hover-text);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  color: var(--text);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  padding: 0;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-toggle__icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle__icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.theme-toggle__icon--sun {
  display: none;
}

.theme-toggle.is-dark .theme-toggle__icon--moon {
  display: none;
}

.theme-toggle.is-dark .theme-toggle__icon--sun {
  display: inline-flex;
}

body.dark-mode .theme-toggle {
  background: rgba(255, 255, 255, 0.05);
}

.theme-toggle:hover {
  transform: translateY(-1px);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 700;
  font-size: 0.86rem;
  color: #fff;
  box-shadow: 0 12px 28px rgba(225, 29, 47, 0.36);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(225, 29, 47, 0.4);
}

main.site-main {
  padding-bottom: 48px;
  flex: 1;
}

.section-shell {
  width: min(1220px, 92vw);
  margin: 56px auto;
}

.section-shell + .section-shell {
  margin-top: 24px;
}

.hero-card {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--line);
}

.toopex-slider {
  position: relative;
  min-height: clamp(460px, 62vh, 680px);
  isolation: isolate;
}

.toopex-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.85s ease, transform 0.85s ease;
  pointer-events: none;
}

.toopex-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 2;
}

.toopex-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 18, 0.08) 10%, rgba(5, 8, 14, 0.58) 100%);
}

body.dark-mode .toopex-slide__overlay {
  background: linear-gradient(180deg, rgba(3, 4, 8, 0.12) 10%, rgba(2, 4, 8, 0.62) 100%);
}

.toopex-slide__content {
  position: relative;
  z-index: 3;
  max-width: min(760px, 90%);
  padding: clamp(24px, 4vw, 46px);
  height: 100%;
  display: flex;
  align-items: flex-end;
}

.toopex-slide .toopex-slide__panel {
  opacity: 0;
  transform: translateY(22px);
}

.toopex-slide.is-active .toopex-slide__panel {
  animation: slideTextIn 0.55s ease forwards 0.1s;
}

.toopex-slide__panel {
  position: relative;
  margin: 0;
  max-width: min(700px, 96%);
  min-width: min(420px, 90%);
  background:
    linear-gradient(140deg, rgba(9, 14, 24, 0.84), rgba(6, 10, 18, 0.56)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.17), transparent 44%);
  border: 1px solid rgba(255, 255, 255, 0.36);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 18px 22px 16px;
}

.toopex-slide__panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff5a66 0%, #e11d2f 100%);
}

.toopex-slide__panel::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.13);
}

body.dark-mode .toopex-slide__panel {
  background: rgba(3, 6, 12, 0.76);
}

.toopex-slide__panel h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: clamp(1.08rem, 1.85vw, 1.48rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
  padding-left: 10px;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

.toopex-slide__panel p {
  margin: 0;
  color: #e7eefc;
  font-size: clamp(0.86rem, 1.12vw, 0.97rem);
  font-weight: 500;
  padding-left: 10px;
  line-height: 1.45;
  max-width: 62ch;
}

.toopex-slide__ctas {
  margin-top: 12px;
  padding-left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toopex-slide__ctas a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  transition: all 0.2s ease;
}

.toopex-slide__ctas a:last-child {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: rgba(255, 255, 255, 0.22);
}

.toopex-slide__ctas a:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.17);
}

.toopex-slide__ctas a:last-child:hover {
  filter: brightness(1.08);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.toopex-slider__dots {
  position: absolute;
  z-index: 5;
  right: clamp(22px, 3.5vw, 40px);
  bottom: clamp(18px, 2.8vw, 26px);
  display: inline-flex;
  gap: 10px;
}

.toopex-slider__dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: all 0.2s ease;
}

.toopex-slider__dots button.is-active {
  width: 28px;
  border-radius: 999px;
  background: #fff;
}

@keyframes slideTextIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-card .wp-block-cover__background {
  background: var(--hero-overlay);
}

.hero-title {
  font-size: clamp(1.62rem, 3.6vw, 3rem);
  line-height: 1.08;
  margin-bottom: 16px;
  max-width: 12ch;
  text-shadow: 0 5px 18px rgba(0, 0, 0, 0.44);
}

.hero-sub {
  max-width: 640px;
  color: #edf2fb;
  font-size: clamp(0.9rem, 1.3vw, 1rem);
  line-height: 1.65;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  margin-bottom: 24px;
}

.hero-card .wp-block-cover__inner-container {
  padding: clamp(26px, 4.4vw, 62px) clamp(22px, 4vw, 54px) !important;
}

.leistungen-hero .hero-title {
  max-width: 15ch;
}

.leistungen-kicker {
  display: inline-block;
  margin: 0 0 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cta-row .wp-block-button__link {
  border-radius: 999px;
  padding: 13px 24px;
  font-weight: 700;
  transition: all 0.25s ease;
}

.cta-row .wp-block-button__link:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.split-highlight {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--split-bg);
  border: 1px solid var(--line);
}

.split-highlight p {
  margin: 0;
  color: var(--muted);
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 16px 16px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(225, 29, 47, 0.45);
  box-shadow: 0 15px 26px rgba(10, 18, 34, 0.12);
}

.feature-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: rgba(225, 29, 47, 0.08);
  border: 1px solid rgba(225, 29, 47, 0.2);
  margin-bottom: 12px;
}

.feature-card__icon svg {
  width: 19px;
  height: 19px;
  display: block;
}

.feature-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.28;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.service-grid .wp-block-column {
  background: var(--panel-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 20px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-grid .wp-block-column:hover {
  transform: translateY(-8px);
  border-color: rgba(225, 29, 47, 0.78);
  box-shadow: 0 22px 36px rgba(0, 0, 0, 0.36);
}

.service-grid figure {
  margin: 0 0 16px;
  border-radius: 16px;
  overflow: hidden;
}

.service-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.fitting-card-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.fitting-split {
  align-items: center;
  gap: 22px;
}

.fitting-split figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.fitting-split img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  display: block;
}

.fitting-cargo-layout {
  align-items: stretch;
  gap: 18px;
}

.fitting-cargo-section .split-highlight {
  height: 100%;
}

.fitting-cargo-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  height: 100%;
}

.fitting-cargo-gallery figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.fitting-cargo-gallery__item--wide {
  grid-column: 1 / -1;
}

.fitting-cargo-gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .fitting-cargo-layout {
    flex-direction: column;
  }

  .fitting-cargo-gallery {
    grid-template-columns: 1fr 1fr;
  }
}

.home-service-grid .cta-row {
  margin-top: 12px;
}

.home-service-grid .cta-row .wp-block-button {
  margin: 0;
}

.home-service-grid .cta-row .wp-block-button__link {
  padding: 7px 13px;
  border-radius: 10px;
  border-width: 1.2px;
  border-color: rgba(9, 27, 54, 0.5);
  font-size: 0.9rem;
  line-height: 1.15;
  font-weight: 650;
}

.leistungen-steps .wp-block-column {
  background: var(--panel-bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}

.leistungen-steps .step-number {
  margin: 0 0 8px;
  font-weight: 800;
  font-size: 1.65rem;
  color: var(--accent);
}

.leistungen-list li {
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  margin-bottom: 18px;
}

.info-strip {
  border-radius: var(--radius);
  padding: 28px;
  background: var(--info-bg);
  border: 1px solid rgba(225, 29, 47, 0.43);
}

.kpi-row .wp-block-column {
  background: var(--kpi-card-bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}

.usp-row .wp-block-column {
  background: var(--kpi-card-bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 18px 14px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.usp-row .wp-block-column:hover {
  transform: translateY(-4px);
  border-color: rgba(225, 29, 47, 0.44);
  box-shadow: 0 14px 26px rgba(10, 18, 34, 0.12);
}

.usp-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: rgba(225, 29, 47, 0.08);
  border: 1px solid rgba(225, 29, 47, 0.2);
  margin-bottom: 10px;
}

.usp-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.usp-row h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}

.usp-row p {
  margin: 0;
  color: var(--muted);
}

.home-testimonial {
  margin: 20px 0 10px;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 0 14px 14px 0;
}

body.dark-mode .home-testimonial {
  background: rgba(255, 255, 255, 0.06);
}

.home-testimonial p {
  margin: 0 0 8px;
  font-weight: 600;
}

.home-testimonial cite {
  color: var(--muted);
  font-style: normal;
}

.kpi-value {
  margin: 0 0 4px;
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.editor-styles-wrapper .reveal {
  opacity: 1;
  transform: none;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding: 50px 0 24px;
  background: var(--footer-bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 18px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.footer-brand img {
  width: 84px;
  height: 38px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.footer-brand-sub {
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-card {
  background: var(--footer-card-bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--footer-card-text);
}

.footer-card strong {
  color: var(--text);
}

.footer-card a {
  color: var(--footer-card-text);
}

.footer-card a:hover {
  color: var(--text);
}

.info-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.info-icon {
  width: 17px;
  height: 17px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon svg {
  width: 17px;
  height: 17px;
  display: block;
}

.footer-bottom {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #9eabbe;
  font-size: 0.92rem;
}

.footer-bottom__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-bottom__meta a {
  color: inherit;
}

.footer-bottom__meta a:hover {
  color: var(--text);
}

.blog-archive__head h1 {
  font-size: clamp(1.65rem, 3.4vw, 2.5rem);
  line-height: 1.15;
  margin: 8px 0 10px;
}

.blog-archive__head p {
  color: var(--muted);
  max-width: 70ch;
}

.blog-kicker {
  font-weight: 700;
  color: var(--accent);
  margin: 0;
}

.blog-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.blog-card {
  border: 1px solid var(--line);
  background: var(--panel-bg);
  border-radius: 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.12);
  border-color: rgba(225, 29, 47, 0.5);
}

.blog-card__link {
  display: block;
  padding: 20px;
}

.blog-card__meta {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

.blog-card h2 {
  margin: 10px 0 10px;
  line-height: 1.25;
  font-size: 1.28rem;
}

.blog-card p {
  color: var(--muted);
}

.blog-card__cta {
  display: inline-block;
  margin-top: 8px;
  color: var(--accent);
  font-weight: 700;
}

.blog-single {
  width: min(1220px, 92vw);
}

.blog-single__article {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(22px, 3vw, 38px);
  box-shadow: var(--shadow-xl);
}

.blog-single__meta {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.blog-single__article h1 {
  margin: 8px 0 18px;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  line-height: 1.18;
}

.blog-single__content figure.blog-hero-image {
  margin: 0 0 20px;
  border-radius: 16px;
  overflow: hidden;
}

.blog-single__content img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-single__content p,
.blog-single__content li {
  color: var(--muted);
}

.blog-single__content h3 {
  margin-top: 24px;
}

.blog-back-link {
  display: inline-block;
  margin-top: 24px;
  color: var(--accent);
  font-weight: 700;
}

.kontakt-section-grid {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  width: 100%;
}

.kontakt-form-wrap {
  min-width: 0;
}

.kontakt-side-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-xl);
  padding: clamp(16px, 2.2vw, 28px);
  height: 100%;
}

.kontakt-side-card h1 {
  margin-top: 0;
  margin-bottom: 12px;
}

.kontakt-side-card > p {
  margin: 0 0 16px;
  color: var(--muted);
}

.kontakt-info-card {
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: var(--panel-bg);
}

.kontakt-info-card p {
  margin: 0 0 14px;
}

.kontakt-info-card p:last-child {
  margin-bottom: 0;
}

.kontakt-info-card a {
  color: var(--text);
  text-decoration: none;
}

.kontakt-info-card a:hover {
  color: var(--accent);
}

.contact-form-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-xl);
  padding: clamp(16px, 2.2vw, 28px);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.contact-form-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-form-grid label {
  display: block;
}

.contact-form-grid span {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.contact-form-grid input,
.contact-form-grid textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  padding: 11px 12px;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.dark-mode .contact-form-grid input,
body.dark-mode .contact-form-grid textarea {
  background: rgba(255, 255, 255, 0.06);
}

.contact-form-grid input:focus,
.contact-form-grid textarea:focus {
  outline: none;
  border-color: rgba(225, 29, 47, 0.72);
  box-shadow: 0 0 0 3px rgba(225, 29, 47, 0.14);
}

.contact-form-grid__full {
  grid-column: 1 / -1;
}

.contact-form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.45;
}

.contact-form-consent input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.contact-form-consent span {
  display: block;
}

.contact-form-consent a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-form-consent a:hover {
  color: var(--accent-2);
}

.contact-form-submit {
  margin-top: auto;
  align-self: flex-start;
  margin-bottom: 2px;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.contact-form-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.contact-form__notice {
  margin: 0 0 12px;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 600;
}

.contact-form__notice.is-success {
  background: rgba(22, 163, 74, 0.14);
  border: 1px solid rgba(22, 163, 74, 0.4);
}

.contact-form__notice.is-error {
  background: rgba(225, 29, 47, 0.12);
  border: 1px solid rgba(225, 29, 47, 0.42);
}

@media (max-width: 1100px) {
  .header-row {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 14px;
  }

  .main-nav .nav-list,
  .site-header nav ul {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    flex: 0 0 100%;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .header-cta {
    width: 100%;
  }

  .header-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .theme-toggle {
    justify-content: center;
    width: 100%;
    border-radius: 999px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .footer-bottom__meta {
    flex-wrap: wrap;
    gap: 6px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .kontakt-side-card {
    padding: 16px;
  }

  .feature-cards {
    grid-template-columns: 1fr;
  }

  .section-shell {
    margin: 38px auto;
  }

  .hero-card .wp-block-cover__inner-container {
    padding: 22px 18px 24px !important;
  }

  .hero-sub {
    margin-bottom: 18px;
  }

  .toopex-slider {
    min-height: 500px;
  }

  .toopex-slide__content {
    max-width: 100%;
    padding: 14px 14px 60px;
  }

  .toopex-slide__panel {
    max-width: 100%;
    min-width: 0;
    border-radius: 14px;
    padding: 14px 14px 12px;
  }

  .toopex-slide__ctas a {
    padding: 10px 14px;
  }

  .toopex-slider__dots {
    right: 16px;
    bottom: 18px;
  }
}

@media (max-width: 980px) {
  .kontakt-section-grid {
    grid-template-columns: 1fr;
  }
}
