:root {
  --bg: #ffffff;
  --body-bg: #f5f7fb;
  --body-font-family: 'SF Pro', sans-serif;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --text: #1d1d1d;
  --muted: #6b7280;
  --border: rgba(15, 23, 42, 0.08);
  --accent: #efa92f;
  --accent-hover: #f9c816;
  --button-text: #1d1d1d;
  --nav-link: #ffffff91;
  --nav-link-bg: transparent;
  --nav-link-hover: #ffffffbd;
  --nav-link-bg-hover: transparent;
  --nav-submenu-bg: #ffffff;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 18px;

  --topbar-height: 42px;
  --mainbar-height: 84px;
  --header-gap: 10px;
  --container: 1300px;
  --logo-width: 58px;

  --h1-font-size: 42px;
  --h1-line-height: 1.1em;
  --h1-font-weight: 700;
  --h1-font-family: 'SF Pro', sans-serif;
  --h1-color: #1f2937;
  --h2-font-size: 36px;
  --h2-line-height: 1.15em;
  --h2-font-weight: 700;
  --h2-font-family: 'SF Pro', sans-serif;
  --h2-color: #1f2937;
  --h3-font-size: 30px;
  --h3-line-height: 1.2em;
  --h3-font-weight: 700;
  --h3-font-family: 'SF Pro', sans-serif;
  --h3-color: #1f2937;
  --h4-font-size: 24px;
  --h4-line-height: 1.25em;
  --h4-font-weight: 600;
  --h4-font-family: 'SF Pro', sans-serif;
  --h4-color: #1f2937;
  --h5-font-size: 20px;
  --h5-line-height: 1.3em;
  --h5-font-weight: 600;
  --h5-font-family: 'SF Pro', sans-serif;
  --h5-color: #1f2937;
  --h6-font-size: 18px;
  --h6-line-height: 1.35em;
  --h6-font-weight: 600;
  --h6-font-family: 'SF Pro', sans-serif;
  --h6-color: #1f2937;

  --accent-font-family: 'SF Pro', sans-serif;
  /*--accent-font-family: 'Bildungswirkung', sans-serif;*/

  --p-font-size: 18px;
  --p-line-height: 1.35em;
  --p-font-weight: 400;
  --p-font-family: 'SF Pro', sans-serif;
  --p-color: #1f2937;
  --input-font-size: 16px;
  --input-line-height: 1.35em;
  --input-font-weight: 400;
  --input-font-family: 'SF Pro', sans-serif;
  --input-color: #1f2937;
  --textarea-font-size: 16px;
  --textarea-line-height: 1.35em;
  --textarea-font-weight: 400;
  --textarea-font-family: 'SF Pro', sans-serif;
  --textarea-color: #1f2937;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--body-bg);
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.35em;
  font-family: var(--body-font-family);
  overflow-x: hidden;
}

h1 {
  font-size: var(--h1-font-size);
  line-height: var(--h1-line-height);
  font-weight: var(--h1-font-weight);
  font-family: var(--h1-font-family);
  color: var(--h1-color);
}

h2 {
  font-size: var(--h2-font-size);
  line-height: var(--h2-line-height);
  font-weight: var(--h2-font-weight);
  font-family: var(--h2-font-family);
  color: var(--h2-color);
}

html.h2-reveal-ready main h2[data-h2-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

html.h2-reveal-ready main h2[data-h2-reveal].is-h2-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  html.h2-reveal-ready main h2[data-h2-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

html.grid-card-reveal-ready main [data-grid-card-reveal] {
  opacity: 0;
  translate: 0 18px;
}

@media (max-width: 767px) {
  html.grid-card-reveal-ready main [data-grid-card-reveal] {
    opacity: 1;
    translate: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.grid-card-reveal-ready main [data-grid-card-reveal] {
    opacity: 1;
    translate: none;
  }
}

h3 {
  font-size: var(--h3-font-size);
  line-height: var(--h3-line-height);
  font-weight: var(--h3-font-weight);
  font-family: var(--h3-font-family);
  color: var(--h3-color);
}

h4 {
  font-size: var(--h4-font-size);
  line-height: var(--h4-line-height);
  font-weight: var(--h4-font-weight);
  font-family: var(--h4-font-family);
  color: var(--h4-color);
}

h5 {
  font-size: var(--h5-font-size);
  line-height: var(--h5-line-height);
  font-weight: var(--h5-font-weight);
  font-family: var(--h5-font-family);
  color: var(--h5-color);
}

h6 {
  font-size: var(--h6-font-size);
  line-height: var(--h6-line-height);
  font-weight: var(--h6-font-weight);
  font-family: var(--h6-font-family);
  color: var(--h6-color);
}

p {
  font-size: var(--p-font-size);
  line-height: var(--p-line-height);
  font-weight: var(--p-font-weight);
  font-family: var(--p-font-family);
  color: var(--p-color);
}

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

.colored {
    font-family: var(--accent-font-family) !important;
    font-size: 1.3em !important;
    text-transform: uppercase !important;
    color: var(--accent) !important;
    line-height: 1.4em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

input {
  font-size: var(--input-font-size);
  line-height: var(--input-line-height);
  font-weight: var(--input-font-weight);
  font-family: var(--input-font-family) !important;
  color: var(--input-color);
}

textarea {
  font-size: var(--textarea-font-size);
  line-height: var(--textarea-line-height);
  font-weight: var(--textarea-font-weight);
  font-family: var(--textarea-font-family) !important;
  color: var(--textarea-color);
}

.container {
  width: min(var(--container), calc(100% - 32px));
  padding: 0;
  margin: 0 auto;
}

main .container {
    padding: 40px 12px;
}

main.page .container.first,
main.archive .container.first,
main.single .container.first {
  padding: 200px 12px 60px;
}

main.page .container.first {
  padding: 200px 12px 0px;
}

.noselect {
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Buttons */

.btn {
  background: var(--accent);
  color: var(--button-text);
  padding: 18px 24px;
  border-radius: 10px;
  font-weight: 500;
  line-height: 1.35em;
  border: 0;
  outline: none;
  transform: translateY(0);
  transition: all 0.25s ease-in-out;
  gap: 14px;
}

.btn img {
  width: 14px;
  height: 14px;
}

.btn:hover {
  transform: translateY(-3px);
  background: var(--accent-hover);
  color: var(--button-text);
  box-shadow: 0 10px 20px -10px rgba(0,0,0,0.4);
}

.primary {
  box-shadow: 0 0 20px -10px rgba(0, 0, 0, 0.15);
}

/* Auth pages */

.auth-page {
  padding: 222px 40px 60px;
}

.auth-card {
  max-width: 480px;
  margin: 0 auto;
  padding: 32px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.auth-card h1 {
  margin-top: 0;
  margin-bottom: 24px;
  color: var(--accent);
}

.auth-card form p {
  margin-bottom: 16px;
}

.auth-card label {
  display: block;
  margin-bottom: 8px;
  font-weight: 400;
  font-size: 16px;
}

.auth-card .input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
}

.auth-card .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  transform: translateY(0);
  filter: brightness(1);
  box-shadow: 0 0 20px -10px rgba(0,0,0,0);
}

.auth-card .button-primary {
  background: var(--accent);
  color: var(--button-text);
}

.auth-card .button-primary:hover {
  transform: translateY(-3px);
  background: var(--accent-hover);
  color: var(--button-text);
  box-shadow: 0 10px 20px -10px rgba(0,0,0,0.4);
}

.auth-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  font-size: 14px;
}

.auth-links a {
  color: var(--muted);
  transition: color 0.25s ease-in-out;
}

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

.auth-message {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
}

.auth-message--success {
  background: #ecfdf3;
  color: #067647;
}

.auth-message--error {
  background: #fef3f2;
  color: #b42318;
}

/* Breadcrumbs */

.section-breadcrumbs {
  margin: 0;
}

.placeholder-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.4;
}

.placeholder-breadcrumbs li {
  display: inline-flex;
  align-items: center;
}

.placeholder-breadcrumbs a {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: var(--muted);
  transition: all 0.25s ease-in-out;
}

.hero .placeholder-breadctumbs a {
  color: var(--accent);
}

.hero.dark .placeholder-breadcrumbs a {
  color: var(--accent);
}

.hero.dark .placeholder-breadcrumbs a:hover {
  color: var(--accent-hover);
}

.hero .placeholder-breadcrumbs a:hover {
  color: var(--text);
}

.placeholder-breadcrumbs a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  transition: width 0.25s ease-in-out;
}

.hero .placeholder-breadcrumbs a::after {
  background: var(--text);
}

.hero.dark .placeholder-breadcrumbs a::after {
  background: var(--accent-hover);
}

.placeholder-breadcrumbs a:hover::after {
  width: 100%;
}

.placeholder-breadcrumbs li:last-child span {
  color: var(--muted);
}

.breadcrumb-separator {
    margin: 0 4px;
    color: var(--muted);
    user-select: none;
}

/* Sections */

/* Hero */

.hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: center;
}

.hero.dark {
  background: #31387a;
}

.hero #wrap {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero .container {
  padding: 100px 12px 60px;
  z-index: 2;
}

.hero .hero-split {
  display: grid;
  gap: 40px;
  grid-template-columns: 800px 1fr;
}

.hero h1 {
  color: var(--text);
  padding: 0;
  margin: 10px 0 30px;
}

.hero.dark h1 {
  color: rgba(255, 255, 255, 0.96);
}

.page-head-simple {
  position: relative;
}

.page-head-simple .container {
  padding: 100px 12px 20px;
}

.page-head-simple__header .section-title {
  margin: 10px 0 0;
}

.hero.dark p {
  color: rgba(255, 255, 255, 0.8);
}

/* General */

.section-header {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.85fr);
    margin-bottom: 28px;
    flex-direction: column;
    align-items: flex-start;
}

main.page.page-template .hero .section-header.section-header--vertical {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  grid-template-columns: none;
}

.section-header.centered {
  align-items: center;
  margin: 0 auto 40px;
}

.section-header h2 {
  margin: 8px 0 20px;
}

.section-header.centered .eyebrow,
.section-header.centered h2,
.section-header.centered p {
  text-align: center;
}

.eyebrow {
  font-size: 14px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-header.light .section-eyebrow {
  color: #fff;
}

.section-header p {
    color: var(--text);
    margin: 0 auto 30px;
}

.section-header-col {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.section-header-col:nth-child(2) {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    padding-bottom: 30px;
}

/* Posts */

main.single {
  line-height: 1.65;
  color: var(--text);
}

main.single .entry-content {
  max-width: 820px;
}

main.single .entry-content > * + * {
  margin-top: 1.2em;
}

/* Popups and modals */

.open-contact-form {
  cursor: pointer;
}

/* Placeholder Contact Modal */

.placeholder-contact-modal[hidden] {
  display: none !important;
}

.placeholder-contact-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 88px 20px 20px;
}

body.admin-bar .placeholder-contact-modal {
    padding: 120px 20px 20px;
}

.placeholder-contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.placeholder-contact-modal__dialog {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 530px;
    max-height: calc(100vh - 40px);
    width: 100%;
    background: var(--body-bg);
    border-radius: 24px;
    opacity: 0;
    transform: translate3d(0, 36px, 0);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.placeholder-contact-modal__content {
  padding: 30px;
}

.placeholder-contact-modal__title {
    position: relative;
    display: block;
    margin: 0 0 16px;
    font-size: 20px;
    line-height: 1.35em;
    font-weight: 500;
    color: #212122;
}

.placeholder-contact-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.placeholder-contact-modal__close:hover {
  background: rgba(0, 0, 0, 0.06);
}

.placeholder-contact-modal__close:active {
  transform: scale(0.96);
}

.placeholder-contact-modal__close img {
  display: block;
  width: 18px;
  height: 18px;
}

.placeholder-contact-modal.is-visible .placeholder-contact-modal__backdrop {
  opacity: 1;
}

.placeholder-contact-modal.is-visible .placeholder-contact-modal__dialog {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.placeholder-contact-modal.is-closing .placeholder-contact-modal__backdrop {
  opacity: 0;
}

.placeholder-contact-modal.is-closing .placeholder-contact-modal__dialog {
  opacity: 0;
  transform: translate3d(0, 36px, 0);
}

body.contact-form-popup-open {
  overflow: hidden;
}

/* Forms */

.iti {
    display: block !important;
}

/* Running line */

.placeholder-running-line {
    --rl-gap: 0.5rem;
    position: absolute;
    bottom: 0;
    width: 100%;
    overflow: hidden;
    padding: 14px 0;
    color: rgba(255, 255, 255, 0.45);
    background: rgba(0, 0, 0, 0.35);
    font-weight: 300;
    letter-spacing: 0.04em;
    line-height: 1em;
    font-size: 1.3em;
    font-family: var(--h1-font-family);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 1) 250px, rgba(255, 255, 255, 1) calc(100% - 250px), transparent 100%);
}

.placeholder-running-line__track {
  display: flex;
  width: max-content;
  min-width: 100%;
  will-change: transform;
  animation: barebones-running-line-scroll var(--rl-speed, 40s) linear infinite;
}

.placeholder-running-line__inner {
    flex: 0 0 auto;
    white-space: nowrap;
    padding-right: var(--rl-gap);
}

.placeholder-running-line[data-pause="1"]:hover .placeholder-running-line__track {
  animation-play-state: paused;
}

@keyframes barebones-running-line-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Responsive */

@media (max-width: 1024px) {
  .hero .hero-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}

@media (max-width: 767px) {
  .placeholder-breadcrumbs {
    font-size: 13px;
  }

  .placeholder-running-line {
    padding: 12px 0;
  }

  .placeholder-running-line__inner {
    font-size: 14px;
  }

  .hero p.section-description {
    font-size: 20px;
    margin-bottom: 40px;
  }

  .section-header {
    grid-template-columns: 1fr;
  }

  .section-header-col:nth-child(2) {
    align-items: flex-start;
  }

  .placeholder-contact-modal {
    padding: 12px;
  }

  .placeholder-contact-modal__dialog {
    max-height: calc(100vh - 24px);
    border-radius: 20px;
  }

  .placeholder-contact-modal__content {
    padding: 24px 18px 20px;
  }

  .placeholder-contact-modal__title {
    font-size: 22px;
    padding-right: 32px;
    padding-left: 32px;
  }

  .placeholder-contact-modal__close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }

  .page-template .container,
  main.archive .container,
  main.single .container {
      padding: 120px 16px 60px;
  }
}
