/* ==========================================================================
   InsurSaaS GmbH – Website
   Farben, Typografie und Layout nach dem Original insursaas.de
   ========================================================================== */

@font-face {
  font-family: 'pt-sans';
  src: url('../fonts/ptsans-regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'pt-sans';
  src: url('../fonts/ptsans-italic.ttf') format('truetype');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'pt-sans';
  src: url('../fonts/ptsans-bold.ttf') format('truetype');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'pt-sans';
  src: url('../fonts/ptsans-bolditalic.ttf') format('truetype');
  font-style: italic;
  font-weight: 700;
  font-display: swap;
}

:root {
  --blau: #004475;
  --gruen: #ced500;
  --gruen-text: #cdd500;
  --text: #0d1d31;
  --grau: #94a0ba;
  --feld-bg: #eff4f5;
  --header-hoehe: 90px;
  --header-hoehe-klein: 80px;
  --container: 1310px;
  --container-padding: 50px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-hoehe-klein); }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: 'pt-sans', Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  color: var(--blau);
  font-weight: 700;
  margin: 0 0 8px;
}
h1 { font-size: 50px; line-height: 60px; margin-bottom: 14px; }
h2 { font-size: 30px; line-height: 33px; margin-bottom: 10px; }
h3 { font-size: 20px; line-height: 22px; margin-bottom: 8px; }

p { margin: 12.75px 0; }
p:first-child { margin-top: 0; }
p:last-child { margin-bottom: 0; }

a { color: var(--blau); text-decoration: none; }
a:hover { color: var(--gruen-text); }

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

strong { font-weight: 700; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.abschnitt { padding: 50px 0; }

.abstand-30 { height: 30px; }
.abstand-50 { height: 50px; }
.abstand-100 { height: 100px; }

/* ---------- Header ---------------------------------------------------- */

.kopf {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 500;
  background: #fff;
  box-shadow: 0 0 2px 1px rgba(0, 0, 0, .1);
}

.kopf-innen {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  height: var(--header-hoehe);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: height .25s ease;
}

.kopf.ist-klein .kopf-innen { height: var(--header-hoehe-klein); }

.logo { display: block; height: 100%; }
.logo img {
  height: 100%;
  width: auto;
  max-height: var(--header-hoehe);
  object-fit: contain;
}

.hauptnavigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}
.hauptnavigation a {
  display: block;
  padding-left: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: var(--header-hoehe);
}
.hauptnavigation a:hover,
.hauptnavigation a.aktiv { color: var(--gruen-text); }

.menue-schalter {
  display: none;
  width: 34px;
  height: 34px;
  border: 0;
  background: none;
  padding: 0;
  color: var(--grau);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menue-schalter .balken {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  position: relative;
}
.menue-schalter .balken::before,
.menue-schalter .balken::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
}
.menue-schalter .balken::before { top: -7px; }
.menue-schalter .balken::after { top: 7px; }

/* ---------- Buttons ---------------------------------------------------- */

.knopf {
  display: inline-block;
  min-width: 90px;
  padding: 12px 16px 11px;
  border-radius: 3px;
  background: var(--gruen);
  color: #fff;
  font-size: 13px;
  line-height: 15.6px;
  text-align: center;
  align-self: flex-start;
  transition: opacity .2s ease;
}
.knopf:hover { color: #fff; opacity: .85; }

/* ---------- Raster (Enfold-Layout-Grid) -------------------------------- */

.raster {
  display: flex;
  width: 100%;
}
.raster-zelle {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ---------- Hero -------------------------------------------------------- */

.hero { margin-top: var(--header-hoehe); }

.hero .zelle-text {
  width: 40%;
  padding: 5%;
  min-height: calc(100vh - var(--header-hoehe-klein));
}

.hero .zelle-bild {
  width: 60%;
  background-image: url('../img/TanzendeTuerme_Titel.jpg');
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.hero h1 { margin-bottom: 14px; }
.hero h3 { font-weight: 400; }
.hero h3 strong { font-weight: 700; }
.hero .frage {
  color: var(--gruen-text);
  font-weight: 700;
}

/* ---------- Kompetenzen ------------------------------------------------- */

.kompetenzen { background: #fff; }
.kompetenzen h2 { text-align: center; }
.kompetenzen .einleitung { text-align: center; }

.projekte {
  position: relative;
  background-color: #fff;
  background-image: url('../img/InsurSaaS_Platine.png');
  background-size: contain;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.projekte::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .6);
  pointer-events: none;
}
.projekte > .container { position: relative; }

.projekt-reihe {
  display: flex;
  align-items: center;
  gap: 6%;
}
.projekt-reihe + .projekt-reihe { margin-top: 50px; }
.projekt-reihe > * { width: 47%; }

/* zweite Reihe: schmalerer Abstand zwischen den Spalten */
.projekt-reihe.eng { gap: 1%; }
.projekt-reihe.eng > * { width: 49.5%; }

.projekt-reihe h3 { color: var(--gruen-text); }

/* ---------- Kontakt ----------------------------------------------------- */

.kontakt .zelle-bild {
  width: 33.3333%;
  background-color: var(--blau);
  background-image: url('../img/TanzendeTuerme_Kontakt.jpg');
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
}
.kontakt .zelle-formular {
  width: 66.6667%;
  padding: 30px 30px 118px;
}

.kontakt h3 { margin-bottom: 8px; }

.formular { margin: 0; }
.formular > h3 { margin-bottom: 16px; }
.formular fieldset { border: 0; margin: 0; padding: 0; }
.formular .feld { margin: 0 0 16px; }
.formular label.versteckt {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.formular input[type='text'],
.formular input[type='email'],
.formular input[type='tel'],
.formular textarea {
  width: 100%;
  padding: 13px;
  border: 1px solid #fff;
  border-radius: 2px;
  background: var(--feld-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  line-height: 18px;
}
.formular input::placeholder,
.formular textarea::placeholder { color: var(--grau); opacity: 1; }
.formular input:focus,
.formular textarea:focus { outline: 2px solid var(--blau); outline-offset: -2px; }
.formular textarea { height: 186px; resize: vertical; }

.einwilligung {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin: 0 0 23px;
  font-weight: 700;
  font-size: 13.8px;
  line-height: 24.75px;
}
.einwilligung label {
  flex: 1 1 auto;
  min-width: 0;
}
.einwilligung input {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  margin: 8px 8px 3px 4px;
}
.einwilligung a { color: var(--blau); }
.einwilligung a:hover { color: var(--gruen-text); }

.pflicht { color: var(--text); }

.absenden {
  min-width: 142px;
  padding: 16px 20px;
  border: 0;
  border-radius: 2px;
  background: var(--blau);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13.8px;
  line-height: normal;
  cursor: pointer;
  transition: opacity .2s ease;
}
.absenden:hover { opacity: .85; }

.formular .honigtopf {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.formular input.fehler,
.formular textarea.fehler { border-color: #c0392b; }
.einwilligung.fehler label { color: #c0392b; }

.formular-meldung { font-weight: 700; }
.formular-meldung.erfolg { color: var(--blau); }
.formular-meldung.fehlgeschlagen { color: #c0392b; }

.absenden[disabled] { opacity: .6; cursor: default; }

.formular-hinweis {
  margin-top: 14px;
  font-size: 13px;
  color: var(--blau);
}

/* ---------- Unterseiten ------------------------------------------------- */

.unterseite {
  margin-top: var(--header-hoehe);
  padding: 80px 0 60px;
}
.unterseite .inhalt { max-width: 75%; }
.unterseite h1 { margin-bottom: 30px; }
.unterseite h3 { margin-top: 30px; }
.unterseite p { margin-bottom: 18px; }

/* ---------- Footer ------------------------------------------------------ */

.sockel {
  background: var(--blau);
  color: #fff;
  font-size: 11px;
}
.sockel .container {
  min-height: 56px;
  display: flex;
  align-items: center;
}
.sockel a { color: #fff; }
.sockel a:hover { color: var(--gruen-text); }

/* ---------- Nach-oben-Pfeil --------------------------------------------- */

.nach-oben {
  position: fixed;
  right: 50px;
  bottom: 50px;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 2px;
  background: var(--blau);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 400;
}
.nach-oben.sichtbar { opacity: 1; visibility: visible; }

/* ---------- Responsive -------------------------------------------------- */

@media only screen and (max-width: 1100px) {
  h1 { font-size: 40px; line-height: 48px; }
}

@media only screen and (max-width: 989px) {
  :root { --header-hoehe: 80px; --container-padding: 30px; }

  .hauptnavigation { display: none; }
  .hauptnavigation.offen {
    display: block;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #fff;
    box-shadow: 0 6px 10px rgba(0, 0, 0, .08);
  }
  .hauptnavigation.offen ul { flex-direction: column; align-items: stretch; }
  .hauptnavigation.offen a {
    line-height: 1;
    padding: 18px 30px;
    border-top: 1px solid #eff4f5;
  }
  .menue-schalter { display: flex; }

  .raster { flex-direction: column; }

  .hero .zelle-text,
  .hero .zelle-bild,
  .kontakt .zelle-bild,
  .kontakt .zelle-formular { width: 100%; }

  .hero .zelle-text { min-height: 0; padding: 50px 30px; }
  .hero .zelle-bild { min-height: 320px; }

  .kontakt .zelle-bild { min-height: 260px; }
  .kontakt .zelle-formular { padding: 40px 30px; }

  .projekt-reihe { flex-direction: column; gap: 24px; }
  .projekt-reihe > * { width: 100%; }
  .projekt-reihe + .projekt-reihe { margin-top: 50px; }

  .projekte { background-attachment: scroll; background-size: cover; }
  .hero .zelle-bild { background-attachment: scroll; }

  .unterseite .inhalt { max-width: 100%; }

  .nach-oben { right: 20px; bottom: 20px; }

  .abstand-100 { height: 50px; }
}

@media only screen and (max-width: 767px) {
  h1 { font-size: 34px; line-height: 40px; }
  h2 { font-size: 26px; line-height: 30px; }
  .sockel .container { padding-top: 14px; padding-bottom: 14px; }
}
