/*
Theme Name: Quergedacht Custom V4
Author: ChatGPT
Description: Homepage matching the reference layout closely.
Version: 1.0.5
Requires at least: 6.0
Text Domain: quergedacht
*/

:root {
  --blue: #075d86;
  --blue-dark: #065176;
  --orange: #f99a1c;
  --bg: #fbfaf7;
  --text: #111820;
  --soft: #f4f0e9;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.55;
}

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

.wrap {
  width: min(1120px, calc(100% - 72px));
  margin: 0 auto;
}

h1,
h2,
h3 {
  font-family: Poppins, Inter, sans-serif;
  color: var(--blue);
  font-weight: 80;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.04em;
}

p {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, #075f89, #07577f);
  border-top: 6px solid var(--orange);
}

.nav {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  width: 360px;
  max-width: 360px;
  text-decoration: none;
}

.logo img {
  display: block;
  width: 360px !important;
  max-width: none !important;
  height: auto !important;
}

.logo small {
  display: none;
}

.logo small {
  display: block;
  color: var(--orange);
  font-size: 11px;
  line-height: 1.02;
  letter-spacing: 0;
  margin-left: 92px;
  margin-top: -28px;
}

.menu {
  display: flex;
  gap: 42px;
  align-items: center;
}

.menu a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  position: relative;
}

.menu a:first-child::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%);
  width: 45px;
  height: 3px;
  border-radius: 10px;
  background: var(--orange);
}

.hamb {
  width: 54px;
  height: 46px;
  border: 1.5px solid rgba(255, 255, 255, 0.78);
  border-radius: 9px;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 28px;
  line-height: 1;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 0 0 30px;
  background: var(--bg);
}



.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 44% 56%;
  gap: 34px;
  align-items: start;
}

.hero-copy {
  padding-top: 72px;
}

.hero h1 {
  font-size: clamp(40px, 3.2vw, 50px);
  max-width: 500px;
  margin-bottom: 25px;
}

.hero p {
  font-size: 18px;
  line-height: 1.55;
  max-width: 520px;
  margin-bottom: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  border-radius: 999px;
  padding: 14px 28px;
  box-shadow: 0 14px 28px rgba(249, 154, 28, 0.24);
}

.hero-art {
  position: relative;
  width: 100%;
  height: 520px;
  margin: 0 0 0 auto;
  overflow: hidden;
  border-radius: 0 0 44px 44px;
}

.hero-img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center center;
  display: block;

  clip-path: polygon(
    17% 0,
    100% 0,
    100% 88%,
    99% 94%,
    97% 98%,
    94% 100%,
    7% 100%,
    4% 98%,
    2% 94%,
    1% 88%,
    0 82%,
    4% 62%,
    9% 38%
  );
}

.dots {
  position: absolute;
  left: -49%;
  bottom: 90px;
  width: 240px;
  height: 125px;
  z-index: 20;
  opacity: 0.42;

  background-image: radial-gradient(#f99a1c 2.5px, transparent 2.5px);
  background-size: 18px 18px;

  clip-path: ellipse(60% 100% at 50% 100%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 4;
}

.hero-dots {
  position: absolute;
  right: -40px;
  bottom: -25px;
  width: 120px;
  height: 70px;
  z-index: 1;
  opacity: 0.42;
  pointer-events: none;

  background-image: radial-gradient(#f99a1c 2.5px, transparent 2.5px);
  background-size: 16px 16px;

  clip-path: ellipse(60% 100% at 50% 100%);
}

.hero-art .dots {
  display: none;
}


/* Keep extra decoration hidden because the uploaded hero image already includes it */
.hero-art::before,
.hero-art::after
 {
  display: none;
}

.services {
  padding: 0 0 48px;
}

.section-title {
  text-align: center;
  font-size: 34px;
  margin-bottom: 48px;
}

.section-title::after {
  content: "";
  display: block;
  width: 58px;
  height: 3px;
  background: var(--orange);
  border-radius: 10px;
  margin: 14px auto 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: #fff;
  border-radius: 15px;
  padding: 30px 26px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 18px;
  min-height: 176px;
}

.card h3 {
  font-size: 18px;
  margin: 8px 0;
  letter-spacing: 0;
}

.card p {
  font-size: 14px;
  color: #394854;
  margin-bottom: 14px;
}

.more {
  color: var(--blue);
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
}

.icon {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 30px;
}

.icon.blue {
  background: #e7f2f8;
  color: var(--blue);
}

.icon.orange {
  background: #fff0df;
  color: var(--orange);
}

.icon.green {
  background: #e9f5e8;
  color: #2d863f;
}

.about {
  padding: 10px 0 64px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.about-img {
  position: relative;
  border-radius: 0 18px 18px 18px;
  overflow: hidden;
  min-height: 390px;
}

.about-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.eyebrow {
  color: var(--orange);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.about h2 {
  font-size: 34px;
  margin-bottom: 18px;
}

.about p {
  font-size: 16px;
  max-width: 560px;
  margin-bottom: 16px;
}

.checks {
  list-style: none;
  margin: 18px 0 28px;
  padding: 0;
}

.checks li {
  font-size: 15px;
  margin: 12px 0;
  font-weight: 650;
}

.checks li::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  margin-right: 12px;
  border: 2px solid var(--orange);
  border-radius: 50%;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
}

.btn.outline {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
  box-shadow: none;
}

.contact {
  padding: 0 0 48px;
}

.contact-box {
  background: linear-gradient(135deg, #075d86, #006b9a);
  border-radius: 20px;
  color: #fff;
  padding: 32px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  align-items: center;
  min-height: 220px;
}

.contact-box h2 {
  color: #fff;
  font-size: 28px;
  margin-bottom: 10px;
}

.contact-box p {
  font-size: 15px;
  line-height: 1.45;
}

.phone {
  justify-self: center;
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  padding: 17px 38px;
  font-size: 18px;
  font-weight: 900;
}

.doodle {
  justify-self: center;
  width: 250px;
  font-size: 0;
}

.doodle img {
  width: 120%;
  height: auto;
}

.contact-box {
  height: 190px;
  min-height: 0;
  padding: 26px 48px;
  overflow: hidden;
  grid-template-columns: 1fr 1fr 1fr;
}

.doodle {
  height: 150px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.doodle img {
  height: 145px;
  width: auto;
  max-width: none;
  transform: scaleX(1.25);
  transform-origin: center;
}

.site-footer {
  padding: 24px 0;
  background: #064966;
  color: #fff;
  text-align: center;
}

/* Page title */
h1.entry-title {
  display: none !important;
}

.job-page::before {
  content: "Stellenanzeigen";
  display: block;
  color: #00698a;
  font-family: "Poppins", sans-serif;
  font-size: 48px;
  line-height: 1.05;
  margin: 0 0 34px;
  font-weight: 800;
}

.job-page h2::before {
  content: "•••";
  display: block;
  color: #ff9816;
  letter-spacing: 10px;
  font-size: 20px;
  margin-bottom: 34px;
}

/* Main page area */
.job-page {
  max-width: 1120px !important;
  margin: 0 auto;
  padding: 40px 24px 90px !important;
  background: var(--qg-bg);
  position: relative;
}

/* Paper plane decoration */
.job-page::after {
  content: "";
  position: absolute;
  top: 40px;
  right: 0px;
  width: 230px;
  height: 180px;
  background-image: url("assets/plane.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  pointer-events: none;
  z-index: 0;
}

.job-page > * {
  position: relative;
  z-index: 1;
}

/* Page title */
.job-page h1 {
  color: var(--qg-blue);
  font-family: "Poppins", sans-serif;
  font-size: clamp(42px, 5vw, 60px);
  line-height: 1.05;
  margin: 0 0 34px;
  font-weight: 800;
}

/* Orange dots */
.job-page h1::after {
  content: "•••••";
  display: block;
  color: var(--qg-orange);
  letter-spacing: 10px;
  font-size: 24px;
  margin-top: 30px;
}

/* Job heading */
.job-page h2 {
  color: var(--qg-blue);
  font-family: "Poppins", sans-serif;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.15;
  max-width: 900px;
  margin: 0 0 64px;
  margin-top: 0 !important;
  font-weight: 800;
}

.job-page h2::after {
  content: "";
  display: block;
  width: 76px;
  height: 4px;
  background: var(--qg-orange);
  margin-top: 36px;
  border-radius: 999px;
}

/* Two cards */
.job-page .wp-block-columns {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
  align-items: stretch;
}

.job-page .wp-block-column {
  background: #fff;
  border-radius: 22px;
  padding: 70px 38px 42px;
  box-shadow: 0 18px 45px rgba(0, 80, 110, 0.12);
  position: relative;
  min-height: 480px;
}

/* Icons above card headings */
.job-page .wp-block-column:first-child::before,
.job-page .wp-block-column:nth-child(2)::before {
  position: absolute;
  left: 38px;
  top: 34px;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 38px;
}

.job-page .wp-block-column:first-child::before {
  content: "⌕";
  color: var(--qg-blue);
  background: #e9f5fb;
}

.job-page .wp-block-column:nth-child(2)::before {
  content: "♡";
  color: #4f9b45;
  background: #eaf7e7;
}

/* Card headings */
.job-page h3 {
  color: var(--qg-blue);
  font-family: "Poppins", sans-serif;
  font-size: 24px;
  line-height: 1.2;
  margin: 0 0 34px 112px;
  font-weight: 800;
}

.job-page h3::after {
  content: "";
  display: block;
  width: 58px;
  height: 3px;
  background: var(--qg-orange);
  margin-top: 14px;
  border-radius: 999px;
}

.job-page .wp-block-column h3::after,
.job-contact-box h3::after {
  content: "";
  display: block !important;
  width: 58px !important;
  height: 3px !important;
  background: #ff9816 !important;
  border-radius: 999px !important;
  margin-top: 14px !important;
}

/* Lists */
.job-page ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.job-page li {
  position: relative;
  padding-left: 38px;
  margin-bottom: 18px;
  line-height: 1.55;
  color: #243447;
  font-size: 16px;
}

.job-page li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--qg-orange);
  font-weight: 800;
  border: 1.5px solid var(--qg-orange);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 12px;
  line-height: 17px;
  text-align: center;
}

.job-contact-box {
  background: #eef8fc !important;
  border: 1px solid rgba(0,105,138,.22) !important;
  border-radius: 22px !important;
  padding: 34px 42px !important;
  margin-top: 36px !important;
  box-shadow: 0 18px 45px rgba(0,80,110,.10) !important;
}

.job-contact-box > .wp-block-group__inner-container {
  display: grid !important;
  grid-template-columns: 90px 1fr 1fr !important;
  gap: 34px !important;
  align-items: center !important;
}

.job-contact-icon::before {
  content: "✉";
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #00698a;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 34px;
}

.job-contact-question {
  border-left: 1px solid rgba(0,105,138,.25);
  padding-left: 34px !important;
}

.job-contact-box h3,
.job-contact-box p {
  margin: 0 0 8px !important;
}

.job-contact-box a {
  display: inline-block !important;
  color: #00698a !important;
  background: #fff !important;
  border: 1.5px solid #00698a !important;
  border-radius: 999px !important;
  padding: 8px 18px !important;
  text-decoration: none !important;
  font-weight: 800 !important;
}

/* stronger override for Stellenanzeigen */
body .job-page {
  max-width: 1120px !important;
  padding: 80px 24px 70px !important;
}

body .job-page h1,
body .job-page h2,
body .job-page h3 {
  color: #00698a !important;
  font-family: "Poppins", sans-serif !important;
  font-weight: 800 !important;
}

body .job-page h1 {
  font-size: 56px !important;
  margin-bottom: 34px !important;
}

body .job-page h2 {
  font-size: 44px !important;
  line-height: 1.15 !important;
  max-width: 880px !important;
  margin-bottom: 70px !important;
}

body .job-page h1::after {
  color: #ff9816 !important;
}

body .job-page h2::after {
  background: #ff9816 !important;
}

/* make cards look more like mockup */
body .job-page .wp-block-column {
  padding: 110px 42px 48px !important;
  min-height: 430px !important;
  border-radius: 22px !important;
  background: #fff !important;
  box-shadow: 0 20px 55px rgba(0, 80, 110, 0.14) !important;
}

body .job-page .wp-block-column::before {
  top: 34px !important;
  left: 42px !important;
  width: 76px !important;
  height: 76px !important;
  font-size: 38px !important;
}

body .job-page .wp-block-column h3 {
  margin-left: 110px !important;
  margin-top: -78px !important;
  margin-bottom: 58px !important;
  font-size: 24px !important;
}

/* orange check circles */
body .job-page li::before {
  color: #ff9816 !important;
  border: 1.5px solid #ff9816 !important;
}

body .job-page li {
  color: #243447 !important;
  font-size: 16px !important;
  margin-bottom: 20px !important;
}



/* hide ugly plain footer if needed */
.site-footer {
  margin-top: 0 !important;
}


/* =========================
   ANGEBOTE PAGE
========================= */

.offers-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 90px 24px;
  position: relative;
}

.offers-page::before {
  content: "";
  position: absolute;
  top: 30px;
  left: -70px;
  width: 100px;
  height: 50px;
  background-image: radial-gradient(#ff9816 2px, transparent 2px);
  background-size: 16px 16px;
  opacity: 0.9;
}

.offers-page::after {
  content: "";
  position: absolute;
  top: 0px;
  right: 0px;
  width: 360px;
  height: 280px;
  background-image: url("assets/plane.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  pointer-events: none;
}

.offers-page h1 {
  color: #00698a;
  font-family: "Poppins", sans-serif;
  font-size: clamp(48px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 800;
  margin: 0 0 28px;
}

.offers-intro {
  max-width: 600px;
  font-size: 20px;
  line-height: 1.7;
  color: #263747;
  margin: 0 0 56px;
}

.offers-grid > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
}

.offer-card {
  background: #fff;
  border-radius: 22px;
  padding: 48px 42px 36px 170px;
  min-height: 190px;
  position: relative;
  box-shadow: 0 18px 45px rgba(0, 80, 110, 0.10);
  border-top: 5px solid #ff9816;
}

.offer-card::before {
  position: absolute;
  left: 42px;
  top: 42px;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 38px;
  line-height: 1;
}

.offer-card h3 {
  color: #00698a;
  font-family: "Poppins", sans-serif;
  font-size: 25px;
  line-height: 1.15;
  font-weight: 800;
  margin: 0 0 16px;
}

.offer-card p {
  color: #263747;
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 22px;
}

.offer-card p:last-child {
  margin: 0;
}

.offer-card a {
  display: inline-block;
  color: #00698a;
  border: 1.5px solid #00698a;
  border-radius: 999px;
  padding: 10px 24px;
  font-weight: 800;
  text-decoration: none;
  background: #fff;
}

.offer-card a:hover {
  background: #00698a;
  color: #fff;
}

/* Icons - original */
.offer-icon-clipboard::before { content: "☷"; background: #e9f5fb; color: #00698a; }
.offer-icon-search::before { content: "⌕"; background: #fff2e4; color: #ff9816; }
.offer-icon-people::before { content: "👥"; background: #edf8ea; color: #4f9b45; }
.offer-icon-bag::before { content: "▣"; background: #e9f5fb; color: #00698a; }
.offer-icon-heart::before { content: "♡"; background: #fff2e4; color: #ff9816; }
.offer-icon-home::before { content: "⌂"; background: #edf8ea; color: #4f9b45; }
.offer-icon-hand::before { content: "♡"; background: #e9f5fb; color: #00698a; }
.offer-icon-family::before { content: "⚭"; background: #fff2e4; color: #ff9816; }
.offer-icon-target::before { content: "◎"; background: #e9f5fb; color: #00698a; }
.offer-icon-wind::before { content: "↝"; background: #edf8ea; color: #4f9b45; }
.offer-icon-eye::before { content: "◉"; background: #fff2e4; color: #ff9816; }
.offer-icon-house::before { content: "⌂"; background: #edf8ea; color: #4f9b45; }
.offer-icon-link::before { content: "∞"; background: #e9f5fb; color: #00698a; }
.offer-icon-anchor::before { content: "⚓"; background: #fff2e4; color: #ff9816; }
.offer-icon-user::before { content: "☺"; background: #e9f5fb; color: #00698a; }
.offer-icon-plus::before { content: "+"; background: #edf8ea; color: #4f9b45; }

/* Icons - extra */
.offer-icon-child::before { content: "☻"; background: #edf8ea; color: #4f9b45; }
.offer-icon-team::before { content: "♟"; background: #e9f5fb; color: #00698a; }
.offer-icon-group::before { content: "⚭"; background: #edf8ea; color: #4f9b45; }
.offer-icon-care::before { content: "♡"; background: #fff2e4; color: #ff9816; }
.offer-icon-shield::before { content: "♢"; background: #e9f5fb; color: #00698a; }
.offer-icon-safe::before { content: "⌂"; background: #edf8ea; color: #4f9b45; }
.offer-icon-balance::before { content: "⚖"; background: #fff2e4; color: #ff9816; }
.offer-icon-compass::before { content: "⌖"; background: #e9f5fb; color: #00698a; }
.offer-icon-route::before { content: "↬"; background: #edf8ea; color: #4f9b45; }
.offer-icon-direction::before { content: "➜"; background: #fff2e4; color: #ff9816; }

.offer-icon-book::before { content: "▭"; background: #edf8ea; color: #4f9b45; }
.offer-icon-openbook::before { content: "☰"; background: #e9f5fb; color: #00698a; }
.offer-icon-medal::before { content: "♕"; background: #fff2e4; color: #ff9816; }
.offer-icon-star::before { content: "☆"; background: #e9f5fb; color: #00698a; }
.offer-icon-idea::before { content: "✦"; background: #fff2e4; color: #ff9816; }
.offer-icon-plan::before { content: "☷"; background: #e9f5fb; color: #00698a; }
.offer-icon-check::before { content: "✓"; background: #edf8ea; color: #4f9b45; }
.offer-icon-list::before { content: "≡"; background: #e9f5fb; color: #00698a; }
.offer-icon-note::before { content: "✎"; background: #fff2e4; color: #ff9816; }
.offer-icon-flag::before { content: "⚑"; background: #edf8ea; color: #4f9b45; }

.offer-icon-chat::before { content: "◌"; background: #e9f5fb; color: #00698a; }
.offer-icon-message::before { content: "✉"; background: #fff2e4; color: #ff9816; }
.offer-icon-phone::before { content: "☎"; background: #edf8ea; color: #4f9b45; }
.offer-icon-location::before { content: "⌖"; background: #e9f5fb; color: #00698a; }
.offer-icon-clock::before { content: "◷"; background: #fff2e4; color: #ff9816; }
.offer-icon-calendar::before { content: "▦"; background: #edf8ea; color: #4f9b45; }
.offer-icon-lock::before { content: "⌑"; background: #e9f5fb; color: #00698a; }
.offer-icon-key::before { content: "⚿"; background: #fff2e4; color: #ff9816; }
.offer-icon-puzzle::before { content: "◇"; background: #edf8ea; color: #4f9b45; }
.offer-icon-spark::before { content: "✧"; background: #e9f5fb; color: #00698a; }

.team-page {
  --team-blue: #005b83;
  --team-orange: #ff8a00;
  --team-green: #4b9b45;
  --team-text: #141414;

  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 24px 70px;
  color: var(--team-text);
  font-family: inherit;
}

.team-page * {
  box-sizing: border-box;
}

/* HERO */

.team-page {
  --team-blue: #005b83;
  --team-orange: #ff8a00;
  --team-green: #4b9b45;
  --team-text: #111111;

  width: min(1180px, calc(100vw - 48px)) !important;
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: 64px 0 70px !important;
  color: var(--team-text);
}

/* kill WordPress block width restrictions only inside this section */
.team-page,
.team-page > *,
.team-page .wp-block-group,
.team-page .wp-block-html,
.team-page .wp-block-image,
.team-page figure,
.team-page p,
.team-page h1,
.team-page h3 {
  max-width: none !important;
}

.team-page * {
  box-sizing: border-box;
}

/* HERO */

.team-hero {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: 470px 1fr !important;
  gap: 70px !important;
  align-items: center !important;
  position: relative;
  margin: 0 0 78px !important;
  padding: 0 !important;
}

.team-hero-text {
  width: 470px !important;
  position: relative;
  z-index: 2;
  margin: 0 !important;
  padding: 0 !important;
}

.team-dots {
  width: 92px !important;
  height: 48px !important;
  background-image: radial-gradient(var(--team-orange) 2px, transparent 2.5px);
  background-size: 16px 16px;
}

.team-dots-top {
  margin: 0 0 64px !important;
}

.team-dots-bottom {
  position: absolute !important;
  left: 390px !important;
  bottom: -18px !important;
  opacity: 0.45;
}

.team-label {
  margin: 0 0 18px !important;
  color: var(--team-orange);
  font-size: 15px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  text-transform: uppercase;
}

.team-hero h1 {
  margin: 0 !important;
  color: var(--team-blue);
  font-size: 56px !important;
  line-height: 1.08 !important;
  font-weight: 900 !important;
  letter-spacing: -0.045em;
}

.team-intro,
.team-hero-text > p:not(.team-label):not(.team-button-line) {
  width: 500px !important;
  max-width: 500px !important;
  margin: 34px 0 0 !important;
  color: #111111;
  font-size: 17px !important;
  line-height: 1.75 !important;
  font-weight: 400 !important;
}

.team-button-line {
  margin: 50px 0 0 !important;
}

.team-button {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  padding: 13px 23px;
  border: 1.5px solid var(--team-blue);
  border-radius: 999px;
  color: var(--team-blue) !important;
  background: #ffffff;
  font-size: 16px !important;
  line-height: 1 !important;
  font-weight: 800;
  text-decoration: none !important;
}

.team-button span {
  color: var(--team-orange);
  font-size: 20px;
}

/* IMAGE */

.team-hero-image {
  width: 100% !important;
  height: 660px !important;
  margin: 0 !important;
  overflow: hidden;
  border-radius: 34px 0 0 34px;
  -webkit-clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}

.team-hero-image img {
  width: 100% !important;
  height: 100% !important;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* CARDS */

.team-cards {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 34px 42px !important;
  margin: 0 !important;
  padding: 0 16px !important;
}

.team-card {
  min-height: 238px;
  display: grid !important;
  grid-template-columns: 94px 1fr !important;
  gap: 28px;
  align-items: center;
  padding: 34px 36px;
  background: #ffffff;
  border-radius: 10px;
  border-top: 5px solid var(--team-orange);
  color: inherit !important;
  text-decoration: none !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.09);
}

.team-card-icon {
  width: 72px !important;
  height: 72px !important;
  display: grid !important;
  place-items: center;
  border-radius: 50%;
  font-size: 31px !important;
}

.team-icon-blue {
  background: #e8f5fb;
  color: var(--team-blue);
}

.team-icon-orange {
  background: #fff1e4;
  color: var(--team-orange);
}

.team-icon-green {
  background: #eaf6e8;
  color: var(--team-green);
}

.team-card-content {
  margin: 0 !important;
  padding: 0 !important;
}

.team-card h3 {
  margin: 0 0 12px !important;
  color: var(--team-blue);
  font-size: 27px !important;
  line-height: 1.15 !important;
  font-weight: 900 !important;
}

.team-card p {
  margin: 0 0 32px !important;
  color: #333333;
  font-size: 18px !important;
  line-height: 1.35 !important;
}

.team-card-button {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1.5px solid var(--team-blue);
  border-radius: 999px;
  color: var(--team-blue) !important;
  font-size: 16px !important;
  line-height: 1 !important;
  font-weight: 800;
  text-decoration: none !important;
}

.team-card-button b {
  color: var(--team-orange);
  font-size: 20px;
  line-height: 1;
}

/* TABLET */

@media (max-width: 980px) {
  .team-page {
    width: min(100%, calc(100vw - 36px)) !important;
  }

  .team-hero {
    grid-template-columns: 1fr !important;
    gap: 44px !important;
  }

  .team-hero-text {
    width: 100% !important;
  }

  .team-hero-image {
    height: 480px !important;
  }

  .team-dots-bottom {
    display: none !important;
  }
}

/* MOBILE */

@media (max-width: 760px) {
  .team-page {
    padding: 42px 18px 56px !important;
  }

  .team-dots-top {
    margin-bottom: 38px !important;
  }

  .team-hero h1 {
    font-size: 42px !important;
  }

  .team-intro,
  .team-hero-text > p:not(.team-label):not(.team-button-line) {
    width: 100% !important;
    max-width: 100% !important;
  }

  .team-cards {
    grid-template-columns: 1fr !important;
    padding: 0 !important;
  }

  .team-card {
    grid-template-columns: 1fr !important;
    gap: 20px;
    min-height: auto;
  }

  .team-hero-image {
    height: 360px !important;
    border-radius: 24px;
    -webkit-clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
  }
}

.qg-footer {
  --qg-footer-bg: #fbfaf7;
  --qg-footer-blue: #075d86;
  --qg-footer-orange: #f99a1c;

  position: relative;
  margin: 0;
  padding: 0;
  max-width: none;
  background: var(--qg-footer-blue) !important;
  color: #ffffff;
  overflow: hidden;
}

.qg-footer,
.qg-footer * {
  box-sizing: border-box;
}

.qg-footer-wave {
  position: relative;
  width: 100%;
  height: 80px;
  background: var(--qg-footer-bg);
  margin-bottom: -1px;
  overflow: hidden;
}

.qg-footer-wave svg {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 100%;
  display: block;
}

.qg-wave-soft path {
  fill: rgba(7, 93, 134, 0.18);
}

.qg-wave-main path {
  fill: var(--qg-footer-blue);
}

.qg-footer-inner {
  width: min(1180px, calc(100vw - 48px));
  min-height: 105px;
  margin: 0 auto;
  padding: 8px 0 26px;
  display: grid;
  grid-template-columns: 240px 1fr auto 54px;
  gap: 54px;
  align-items: center;
}

.qg-footer-logo img {
  width: 220px;
  height: auto;
  display: block;
}

.qg-footer-illustration {
  display: flex;
  justify-content: center;
}

.qg-footer-illustration img {
  width: 190px;
  max-width: 100%;
  height: auto;
  display: block;
}

.qg-footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
}

.qg-footer-links a {
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.qg-footer-links a:hover {
  color: var(--qg-footer-orange);
}

.qg-footer-links span {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.35);
}

/* =========================
   IMPRESSUM PAGE
========================= */

.impressum-page {
  --imp-blue: #075d86;
  --imp-blue-dark: #065176;
  --imp-orange: #f99a1c;
  --imp-bg: #fbfaf7;
  --imp-text: #111820;

  background: var(--imp-bg);
  color: var(--imp-text);
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
}

.impressum-page,
.impressum-page * {
  box-sizing: border-box;
}

.impressum-wrap {
  width: min(1120px, calc(100vw - 72px));
  margin: 0 auto;
  padding: 90px 0 120px;
}

.impressum-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 56px;
  padding: 13px 24px;
  border: 1.5px solid var(--imp-blue);
  border-radius: 999px;
  color: var(--imp-blue) !important;
  background: #fff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
}

.impressum-back span {
  color: var(--imp-orange);
  font-size: 20px;
}

.impressum-wrap h1 {
  margin: 0;
  color: var(--imp-blue);
  font-family: "Poppins", Inter, sans-serif;
  font-size: clamp(58px, 6vw, 82px);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.impressum-line,
.impressum-small-line {
  width: 78px;
  height: 4px;
  background: var(--imp-orange);
  border-radius: 999px;
}

.impressum-line {
  margin: 26px 0 54px;
}

.impressum-hero {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 82px;
}

.impressum-info h2,
.impressum-text h2 {
  margin: 0 0 38px;
  color: var(--imp-blue);
  font-family: "Poppins", Inter, sans-serif;
  font-size: clamp(32px, 3vw, 40px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.impressum-contact {
  display: grid;
  gap: 32px;
}

.impressum-row {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 30px;
  align-items: center;
  width: 100%;
}

.impressum-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
}

.impressum-icon-blue {
  background: #e7f2f8;
  color: var(--imp-blue);
}

.impressum-icon-green {
  background: #e9f5e8;
  color: #2d863f;
}

.impressum-icon-orange {
  background: #fff0df;
  color: var(--imp-orange);
}

.impressum-row strong {
  display: block;
  margin-bottom: 4px;
  font-size: 21px;
  line-height: 1.35;
  font-weight: 900;
}

.impressum-row p {
  margin: 0;
  font-size: 20px;
  line-height: 1.55;
}

.impressum-wrap a {
  color: var(--imp-blue);
  font-weight: 800;
}

.impressum-art {
  position: relative;
  min-height: 330px;
  display: grid;
  place-items: center;
}

.impressum-dots {
  position: absolute;
  left: 0;
  top: 30px;
  width: 450px;
  height: 450px;
  background-image: radial-gradient(rgba(7, 93, 134, 0.42) 2px, transparent 2.5px);
  background-size: 18px 18px;
}

.impressum-text {
  max-width: 980px;
  margin-bottom: 54px;
}

.impressum-text h2 {
  margin-bottom: 0;
}

.impressum-small-line {
  width: 72px;
  margin: 18px 0 38px;
}

.impressum-text p {
  margin: 0 0 26px;
  font-size: 19px;
  line-height: 1.75;
}

.impressum-copy {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 28px;
  align-items: center;
  max-width: 1060px;
  padding: 28px 36px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e7f2f8, #f3fbff);
  box-shadow: 0 14px 35px rgba(0, 80, 110, 0.08);
}

.impressum-shield {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--imp-blue);
  color: #fff;
  font-size: 25px;
}

.impressum-copy p {
  margin: 0;
  font-size: 18px;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .impressum-wrap {
    width: min(100%, calc(100vw - 40px));
    padding: 64px 0 90px;
  }

  .impressum-hero {
    grid-template-columns: 1fr;
    gap: 44px;
  }


  .impressum-dots {
    display: none;
  }

  .impressum-art  {
    display: none;
  }
}

@media (max-width: 640px) {
  .impressum-wrap h1 {
    font-size: 48px;
  }

  .impressum-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .impressum-row p,
  .impressum-text p,
  .impressum-copy p {
    font-size: 16px;
  }

  .impressum-copy {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .impressum-art {
    display: none;
  }
}


/* =========================
   SIMPLE CONTENT PAGE
   For Datenschutz / Impressum text pages
========================= */

.content-page {
  --content-blue: #075d86;
  --content-orange: #f99a1c;
  --content-bg: #fbfaf7;
  --content-text: #111820;
  --content-soft-blue: #e7f2f8;

  max-width: 980px !important;
  margin: 0 auto !important;
  padding: 86px 24px 120px !important;
  color: var(--content-text);
  background: var(--content-bg);
}

.content-page,
.content-page * {
  box-sizing: border-box;
}

.content-page .back-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 54px;
  padding: 12px 22px;
  border: 1.5px solid var(--content-blue);
  border-radius: 999px;
  color: var(--content-blue) !important;
  background: #fff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
}

.content-page .back-button::before {
  content: "←";
  color: var(--content-orange);
  font-size: 20px;
}

.content-page h1 {
  margin: 0 0 26px !important;
  color: var(--content-blue);
  font-family: "Poppins", Inter, sans-serif;
  font-size: clamp(52px, 6vw, 76px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.content-page h1::after {
  content: "";
  display: block;
  width: 78px;
  height: 4px;
  margin-top: 28px;
  background: var(--content-orange);
  border-radius: 999px;
}

.content-page h2 {
  margin: 64px 0 24px !important;
  color: var(--content-blue);
  font-family: "Poppins", Inter, sans-serif;
  font-size: clamp(32px, 3.6vw, 44px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.content-page h3,
.content-page h4 {
  margin: 36px 0 14px !important;
  color: var(--content-text);
  font-family: "Poppins", Inter, sans-serif;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 900;
}

.content-page p,
.content-page li {
  font-size: 19px;
  line-height: 1.75;
}

.content-page p {
  margin: 0 0 24px !important;
}

.content-page a {
  color: var(--content-blue);
  font-weight: 800;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.content-page ul,
.content-page ol {
  margin: 0 0 28px 0;
  padding-left: 28px;
}

.content-page li {
  margin-bottom: 12px;
}

.content-page strong {
  font-weight: 900;
}

.content-page .content-box {
  margin: 46px 0;
  padding: 30px 34px;
  border-radius: 18px;
  background: linear-gradient(135deg, #e7f2f8, #f3fbff);
  box-shadow: 0 14px 35px rgba(0, 80, 110, 0.08);
}

.content-page .content-box p:last-child {
  margin-bottom: 0 !important;
}

@media (max-width: 720px) {
  .content-page {
    padding: 58px 20px 90px !important;
  }

  .content-page h1 {
    font-size: 46px;
  }

  .content-page h2 {
    font-size: 32px;
  }

  .content-page p,
  .content-page li {
    font-size: 16px;
  }
}


@media (max-width: 1100px) {
  .wrap {
    width: min(100%, calc(100% - 42px));
  }

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

  .hero-copy {
    padding-top: 45px;
  }

  .hero-art {
    height: 440px;
    max-width: 650px;
    margin: 20px auto 0;
  }

  .hero-img {
    height: 440px;
  }

  .hero h1 {
    max-width: 700px;
  }

  .menu {
    display: none;
  }

  .nav {
    height: 94px;
  }

  .cards,
  .about-grid,
  .contact-box {
    grid-template-columns: 1fr;
  }
  

  .doodle {
    display: none;
  }
    .team-hero {
    grid-template-columns: 1fr;
  }

  .team-hero-image {
    height: 480px;
  }
}

.logo img {
  display: block;
  max-width: 220px;
  height: auto;
}

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

  .hero {
    padding-top: 0;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-art,
  .hero-img {
    height: 350px;
  }

.hero-img {
    clip-path: polygon(
      10% 0,
      100% 0,
      100% 100%,
      4% 100%,
      0 76%,
      4% 50%
    );
  }

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

  .card {
    grid-template-columns: 70px 1fr;
  }

  .logo {
    font-size: 38px;
    width: 170px;
  }

  .logo small {
    font-size: 9px;
    margin-left: 62px;
    margin-top: -21px;
  }

  .hamb {
    width: 46px;
    height: 42px;
  }

  .job-page .wp-block-columns {
    flex-direction: column;
  }

  .job-page::after {
    display: none;
  }

.job-contact-box {
    padding: 28px !important;
    margin-top: 28px !important;
    overflow: hidden !important;
  }

  .job-contact-box > .wp-block-group__inner-container {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .job-contact-icon::before {
    width: 64px;
    height: 64px;
    font-size: 30px;
  }

  .job-contact-apply,
  .job-contact-question {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    border-left: 0 !important;
  }

  .job-contact-box h3 {
    font-size: 24px !important;
    line-height: 1.15 !important;
  }

  .job-contact-box p {
    font-size: 16px !important;
    line-height: 1.45 !important;
  }

  .job-contact-box a {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    font-size: 15px !important;
  }

    .offers-page {
    padding: 60px 20px;
  }

  .offers-page::after {
    display: none;
  }

  .offers-grid > .wp-block-group__inner-container {
    grid-template-columns: 1fr;
  }

  .offer-card {
    padding: 120px 28px 32px;
  }

  .offer-card::before {
    display: none;
  }

  .team-cards {
    grid-template-columns: 1fr;
  }

  .team-card {
    grid-template-columns: 1fr;
  }

  .team-hero-image {
    height: 360px;
  }

    .qg-footer-inner {
    grid-template-columns: 1fr;
    gap: 26px;
    text-align: center;
    justify-items: center;
    padding-bottom: 38px;
  }

  .qg-footer-logo img {
    width: 190px;
  }

  .qg-footer-illustration img {
    width: 160px;
  }

}