:root {
  --itheld-blue: #3D5FE0;
  --itheld-purple: #8B5CF6;
  --itheld-dark: #1a1a2e;
  --itheld-grey: #f4f4f6;
  --itheld-text: #23232b;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; color: var(--itheld-text); background: #fff; }
.itheld-header { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 2rem; border-bottom: 1px solid #eee; flex-wrap: wrap; gap: 1rem; }
.itheld-header img { height: 40px; display: block; }
.itheld-header nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.itheld-header nav a { color: var(--itheld-text); text-decoration: none; font-weight: 500; }
.itheld-header nav a:hover { color: var(--itheld-blue); }
.itheld-footer { padding: 2rem; background: var(--itheld-dark); color: #ccc; text-align: center; }
.itheld-footer a { color: #fff; }
.itheld-footer nav { display: flex; justify-content: center; gap: 1rem; margin: 0.75rem 0; }
main { max-width: 1100px; margin: 0 auto; padding: 2rem; }

/* ---------- Homepage-Sektionen ---------- */
html, body { overflow-x: hidden; }

/* Full-bleed Technik fuer Hero/Vor-Ort-Sektionen, die aus dem max-width:1100px main ausbrechen */
.hero, .textteaser {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding: 4rem calc(50vw - 50% + 2rem);
  box-sizing: border-box;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--itheld-dark) 0%, #232350 55%, #2d2b6b 100%);
  color: #fff;
  margin-top: -2rem;
}
.hero__content-wrapper { max-width: 720px; }
.hero .headline, .hero .headline--large {
  color: #fff;
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 1rem;
}
.hero .subline, .hero .subline--large {
  color: rgba(255,255,255,0.82);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.5;
  margin: 0 0 1.75rem;
}
.hero .rich-text { color: rgba(255,255,255,0.82); }
.hero .rich-text:empty { display: none; }

/* Buttons (camino Hero/Textteaser CTAs) */
.button-wrapper__p { margin: 0; }
.button-wrapper { display: inline-block; }
a.button, span.button, button.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.9rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.hero a.button {
  background: #fff;
  color: var(--itheld-dark);
}
.hero a.button:hover { background: var(--itheld-blue); color: #fff; }

.textteaser a.button {
  background: var(--itheld-blue);
  color: #fff;
}
.textteaser a.button:hover { background: #2f4bc0; }

a.button:active { transform: scale(0.98); }

/* Vor Ort fuer Sie da (Textteaser) */
.textteaser {
  background: var(--itheld-grey);
  color: var(--itheld-text);
}
.textteaser__content { max-width: 680px; }
.textteaser .headline {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 1rem;
  color: var(--itheld-text);
}
.textteaser .rich-text { margin-bottom: 1.5rem; }

/* Unsere Leistungen (normales Textelement) */
.frame-type-text header h2 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 1rem;
}
.frame-type-text ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.frame-type-text ul li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.9rem;
  font-size: 1.05rem;
  line-height: 1.5;
}
.frame-type-text ul li::before {
  content: "\25C6";
  position: absolute;
  left: 0;
  top: 0.1em;
  color: var(--itheld-blue);
  font-size: 0.8rem;
}
.frame-type-text > p:last-child {
  margin-top: 1.5rem;
  font-weight: 600;
}
.frame-type-text > p:last-child a {
  color: var(--itheld-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Section spacing between the 3 homepage blocks */
main > .frame-type-text { padding: 1rem 0 3rem; }

/* Mobile */
@media (max-width: 700px) {
  .hero, .textteaser { padding: 2.5rem 1.5rem; }
  .hero .headline, .hero .headline--large { font-size: 2rem; }
  .textteaser .headline { font-size: 1.4rem; }
}

/* ---------- Cookie-Consent-Banner ---------- */
.itheld-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--itheld-dark);
  color: #fff;
  padding: 20px 24px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  z-index: 9999;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.25);
}
.itheld-cookie-banner p {
  margin: 0;
  flex: 1 1 320px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.itheld-cookie-banner a {
  color: #fff;
  text-decoration: underline;
}
.itheld-cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.itheld-cookie-actions button {
  padding: 10px 20px;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 4px;
}
.itheld-cookie-actions .btn-cookie-accept {
  background: #fff;
  color: var(--itheld-dark);
}
@media (max-width: 600px) {
  .itheld-cookie-banner { flex-direction: column; align-items: stretch; padding: 16px; gap: 12px; }
  .itheld-cookie-actions { justify-content: stretch; }
  .itheld-cookie-actions button { flex: 1; }
}

/* ---------- Kontaktformular (EXT:form) ---------- */
.frame-type-form_formframework form { max-width: 480px; }
.frame-type-form_formframework .form-element,
.frame-type-form_formframework .mb-3 { margin-bottom: 1.25rem; }
.frame-type-form_formframework .form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--itheld-text);
}
.frame-type-form_formframework .form-control {
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.85rem;
  border: 1px solid #d5d5dd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--itheld-text);
}
.frame-type-form_formframework .form-control:focus {
  outline: none;
  border-color: var(--itheld-blue);
  box-shadow: 0 0 0 3px rgba(61, 95, 224, 0.15);
}
.frame-type-form_formframework textarea.form-control { min-height: 140px; resize: vertical; }
.frame-type-form_formframework .actions,
.frame-type-form_formframework .form-navigation {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.75rem;
}
.frame-type-form_formframework .btn {
  display: inline-block;
  border: none;
  padding: 0.75rem 1.75rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.frame-type-form_formframework .btn-primary {
  background: var(--itheld-blue);
  color: #fff;
}
.frame-type-form_formframework .btn-primary:hover { background: #2f4bc0; }
.frame-type-form_formframework .btn-default,
.frame-type-form_formframework .btn-secondary {
  background: transparent;
  color: var(--itheld-blue);
  border: 1px solid var(--itheld-blue);
}
.frame-type-form_formframework .btn-default:hover,
.frame-type-form_formframework .btn-secondary:hover { background: var(--itheld-grey); }
.frame-type-form_formframework fieldset { border: none; padding: 0; margin: 0; }
.frame-type-form_formframework legend { font-weight: 700; margin-bottom: 1rem; }
.frame-type-form_formframework .summary-list { margin-bottom: 1.5rem; }
.frame-type-form_formframework dl.row { display: flex; gap: 0.5rem; margin: 0 0 0.5rem 0; }
.frame-type-form_formframework dt.col { font-weight: 600; min-width: 140px; }
.frame-type-form_formframework dd.col { margin: 0; }
.frame-type-form_formframework .required::after { content: " *"; color: #c0392b; }

/* ---------- Content-Links (Fliesstext ausserhalb Buttons/Nav) ---------- */
main a {
  color: var(--itheld-blue);
}
main a:visited {
  color: var(--itheld-blue);
}
main a:hover {
  color: #2f4bc0;
}
main .button-wrapper a,
.frame-type-form_formframework a.btn {
  color: inherit;
}

/* Fix: required-Sternchen nicht doppeln (Formular-Label hat bereits ein "*") */
.frame-type-form_formframework .required::after { content: none; }

/* ---------- Ratgeber / News-Blog (EXT:news) ---------- */
.frame-type-news_pi1 { max-width: 720px; }
.news-list-view .article,
.news-single .article {
  padding: 1.75rem 0;
  border-bottom: 1px solid #eee;
}
.news-list-view .article:first-child { padding-top: 0; }
.news-list-view .article:last-child { border-bottom: none; }
.news-list-view .article .header h3,
.news-single .header h1 {
  margin: 0 0 0.5rem;
}
.news-list-view .article .header h3 a {
  color: var(--itheld-text);
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 700;
}
.news-list-view .article .header h3 a:hover { color: var(--itheld-blue); }
.news-single .header h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--itheld-text);
}
.news-list-date,
.news-single .news-list-date {
  display: block;
  color: #888;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  order: -1;
}
.news-list-view .article .teaser-text {
  color: var(--itheld-text);
  margin-bottom: 0.5rem;
}
.news-img-wrap { display: none; }
.news-list-view .article .more a {
  color: var(--itheld-blue);
  font-weight: 600;
  text-decoration: none;
}
.news-list-view .article .more a:hover { text-decoration: underline; }
.news-single .news-text-wrap h3 {
  margin-top: 1.75rem;
  font-size: 1.2rem;
}
.news-single .news-related-wrap { margin-top: 2rem; }

/* ---------- Über uns: Warum ITHeld24? (USP-Karten) ---------- */
#c136 {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1.75rem 2rem;
	background: var(--itheld-grey);
	padding: 3rem 2rem;
	border-radius: 8px;
	margin: 3rem 0;
}
#c136 > header {
	grid-column: 1 / -1;
}
#c136 > header h2 {
	font-size: 2rem;
	font-weight: 800;
	margin: 0 0 0.5rem;
}
#c136 > p {
	margin: 0;
	background: #fff;
	padding: 1.5rem;
	border-radius: 6px;
	border-left: 3px solid var(--itheld-blue);
	line-height: 1.55;
}
#c136 > p > strong {
	display: block;
	color: var(--itheld-blue);
	font-size: 1.05rem;
	margin-bottom: 0.5rem;
}

/* ---------- Über uns: So arbeiten wir (Prozess-Schritte) ---------- */
#c137 {
	margin: 2rem 0 4rem;
}
#c137 > header h2 {
	font-size: 2rem;
	font-weight: 800;
	margin: 0 0 2rem;
}
#c137 ol {
	list-style: none;
	counter-reset: step;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}
#c137 ol li {
	counter-increment: step;
	position: relative;
	padding-top: 3.5rem;
	line-height: 1.5;
}
#c137 ol li::before {
	content: counter(step);
	position: absolute;
	top: 0;
	left: 0;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background: var(--itheld-blue);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 1.2rem;
}
#c137 ol li strong {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 1.05rem;
}

@media (max-width: 700px) {
	#c136 { grid-template-columns: 1fr; padding: 2rem 1.25rem; }
	#c137 ol { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Homepage: Kommt Ihnen das bekannt vor? (Problem/Antwort-Karten) ---------- */
#c124 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.75rem 2rem;
}
#c124 > header {
	grid-column: 1 / -1;
}
#c124 > p:first-of-type {
	grid-column: 1 / -1;
	max-width: 720px;
}
#c124 > p:not(:first-of-type):not(:last-of-type) {
	margin: 0;
	background: var(--itheld-grey);
	padding: 1.5rem;
	border-radius: 6px;
	border-left: 3px solid var(--itheld-blue);
	line-height: 1.55;
}
#c124 > p:not(:first-of-type):not(:last-of-type) > strong {
	display: block;
	color: var(--itheld-blue);
	font-size: 1.05rem;
	margin-bottom: 0.5rem;
}
#c124 > p:last-of-type {
	grid-column: 1 / -1;
}

@media (max-width: 700px) {
	#c124 { grid-template-columns: 1fr; }
}

/* ---------- Regionen-Landingpages (Thüringen/Weser-Ems): USP-Kacheln + Button ---------- */
#c128, #c129 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem 2rem;
}
#c128 > header, #c129 > header,
#c128 > p, #c129 > p {
	grid-column: 1 / -1;
}
#c128 > p:nth-of-type(n+5):nth-of-type(-n+7),
#c129 > p:nth-of-type(n+5):nth-of-type(-n+7) {
	grid-column: auto;
	margin: 0;
	background: var(--itheld-grey);
	padding: 1.25rem 1.5rem;
	border-radius: 6px;
	border-left: 3px solid var(--itheld-blue);
	line-height: 1.5;
}
#c128 > p:nth-of-type(n+5):nth-of-type(-n+7) strong,
#c129 > p:nth-of-type(n+5):nth-of-type(-n+7) strong {
	display: block;
	color: var(--itheld-blue);
	font-size: 1.02rem;
	margin-bottom: 0.4rem;
}
#c128 a.button, #c129 a.button {
	background: var(--itheld-blue);
	color: #fff;
	margin: 0.5rem 0 1rem;
}
#c128 a.button:hover, #c129 a.button:hover { background: #2f4bc0; }

@media (max-width: 700px) {
	#c128, #c129 { grid-template-columns: 1fr; }
}

/* ---------- Footer: Cookie-Einstellungen-Link ---------- */
.itheld-cookie-settings-link {
	margin-top: 12px;
}
.itheld-cookie-settings-link a {
	font-size: 0.85rem;
	text-decoration: underline;
}
