/* =========================================================
   VENDBAR BASE CSS
   ---------------------------------------------------------
   Global Base Reset, Typografie, Links, Listen,
   Formulare, Tabellen und Focus States.
   ========================================================= */


/* =========================================================
   GLOBAL BASE
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--vb-font-base);
  font-size: var(--vb-text-base);
  font-weight: var(--vb-weight-regular);
  line-height: var(--vb-line-normal);
  color: var(--vb-text);
  background: var(--vb-bg);
}

img,
picture,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}


/* =========================================================
   HEADINGS
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6,
.elementor-widget-heading .elementor-heading-title {
  font-family: var(--vb-font-base);
  color: var(--vb-text);
  font-weight: var(--vb-weight-bold);
  line-height: var(--vb-line-heading);
  margin-top: 0;
  margin-bottom: var(--vb-space-md);
}

h1,
.vb-h1 {
  font-size: clamp(30px, 4vw, var(--vb-text-3xl));
  line-height: var(--vb-line-tight);
  letter-spacing: -0.025em;
}

h2,
.vb-h2 {
  font-size: clamp(24px, 3vw, var(--vb-text-2xl));
  letter-spacing: -0.018em;
}

h3,
.vb-h3 {
  font-size: clamp(20px, 2vw, var(--vb-text-xl));
}

h4,
.vb-h4 {
  font-size: var(--vb-text-lg);
}

h5,
.vb-h5,
h6,
.vb-h6 {
  font-size: var(--vb-text-sm);
  line-height: var(--vb-line-normal);
  font-weight: var(--vb-weight-semibold);
}

.vb-subheading {
  max-width: var(--vb-text-width);
  margin-top: calc(var(--vb-space-sm) * -1);
  margin-bottom: var(--vb-space-lg);
  color: var(--vb-text-soft);
  font-size: var(--vb-text-md);
  line-height: var(--vb-line-normal);
}


/* =========================================================
   TEXT / LINKS / LISTEN
   ========================================================= */

p {
  margin-top: 0;
  margin-bottom: var(--vb-space-md);
  line-height: var(--vb-line-relaxed);
}

small,
.vb-small,
.vb-caption {
  font-size: var(--vb-text-sm);
  line-height: var(--vb-line-normal);
  color: var(--vb-text-soft);
}

a {
  color: inherit;
  text-decoration: none;
  transition:
    color var(--vb-transition),
    border-color var(--vb-transition),
    background-color var(--vb-transition),
    box-shadow var(--vb-transition);
}

a:hover {
  color: var(--vb-action);
}

.vb-richtext,
.vb-text-block,
.elementor-widget-text-editor {
  color: var(--vb-text);
  line-height: var(--vb-line-relaxed);
}

.vb-richtext,
.vb-text-block {
  max-width: var(--vb-text-width);
}

.vb-richtext a,
.vb-text-block a,
.elementor-widget-text-editor a {
  color: var(--vb-action-active);
  text-decoration: underline;
  text-underline-offset: 3px;
}

ul,
ol {
  margin-top: 0;
  margin-bottom: var(--vb-space-md);
  padding-left: 1.25rem;
}

li {
  margin-bottom: var(--vb-space-xs);
  line-height: var(--vb-line-relaxed);
}

li::marker {
  color: var(--vb-action);
}

.vb-list-clean,
.vb-list-check {
  list-style: none;
  padding-left: 0;
}

.vb-list-check li {
  position: relative;
  padding-left: 26px;
}

.vb-list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 14px;
  height: 14px;
  border-radius: var(--vb-radius-pill);
  background: var(--vb-success-soft);
  border: 1px solid var(--vb-success-border);
}

.vb-list-check li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: calc(.55em + 3px);
  width: 6px;
  height: 3px;
  border-left: 2px solid var(--vb-success);
  border-bottom: 2px solid var(--vb-success);
  transform: rotate(-45deg);
}


/* =========================================================
   FORMULARE / BUTTONS
   ========================================================= */

button,
.button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.elementor-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  border-radius: var(--vb-radius-md);
  font-family: var(--vb-font-base);
  font-weight: var(--vb-weight-semibold);
  line-height: var(--vb-line-normal);

  transition:
    background-color var(--vb-transition),
    color var(--vb-transition),
    border-color var(--vb-transition),
    box-shadow var(--vb-transition),
    transform var(--vb-transition);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="number"],
input[type="password"],
textarea,
select {
  width: 100%;
  color: var(--vb-text);
  background: var(--vb-surface);
  border: 1px solid var(--vb-border);
  border-radius: var(--vb-radius-md);
  padding: 10px 12px;
  outline: none;

  transition:
    border-color var(--vb-transition),
    box-shadow var(--vb-transition);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--vb-action);

  box-shadow:
    0 0 0 3px rgba(64, 148, 221, .18);
}


/* =========================================================
   TABELLEN
   ========================================================= */

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--vb-border);
  text-align: left;
}

th {
  font-weight: var(--vb-weight-semibold);
  color: var(--vb-text);
  background: var(--vb-surface-soft);
}


/* =========================================================
   FOCUS STATES
   ========================================================= */

:focus-visible {
  outline: 3px solid rgba(64, 148, 221, .35);
  outline-offset: 2px;
}