:root {
  --bg: #003a54;
  --bg-2: #0a2234;
  --ink: #003a54;
  --link: #334155;
  --paper: #ffffff;
  --radius: 16px;
  --radius-lg: 22px;
}

* { box-sizing: border-box; }

.navlink {
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  color: var(--link);
  font-size: 14px;
  padding-bottom: 2px;
  position: relative;
}

.navlink:hover {
  color: var(--ink);
}

.navlink.active {
  text-decoration: none;
  font-weight: 700;
  color: var(--ink);
  border-bottom: none;
}

.navlink::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-6px;
  height:2px;
  background:#0098a7;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.navlink.active::after{
  transform: scaleX(1);
}

#top {
  scroll-margin-top: 90px;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  background: #f7fafc;
  color: var(--ink);
}

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

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* NAV */
header {
  position: sticky;
  top: 0;
  background: var(--paper);
  border-bottom: 1px solid rgba(0,0,0,.08);
  z-index: 10;
}

.nav {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: 78px;
}

nav {
  margin-left: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
}

/* HERO */
.hero {
  background: linear-gradient(135deg,var(--bg),var(--bg-2));
  color: #fff;
  padding: 30px 0 90px;
  text-align: center;
}

.hero h1 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
}

.hero p {
  max-width: 720px;
  margin: 0 auto 30px;
  font-size: 15px;
}

.btn {
  display: inline-block;
  padding: 12px 34px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.6);
  color: #fff;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 3px solid rgba(37,99,235,.25);
  outline-offset: 3px;
}

/* TILES */
.tiles {
  margin-top: 30px;
  display: block;
}

.tile-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tile {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
}

.tile img {
  width: 100%;
  object-fit: cover;
  height: 210px;
  display: block;
}

.tile{ position: relative; }

.tile img{ display:block; }

.cap{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 58px;
  display: grid;
  place-items: center;
  padding: 0 12px;
  z-index: 2;
}

.cap-bg{
  position: absolute;
  inset: 0;
  background: rgba(30,64,175,.65);
  z-index: 1;
}

.cap-text{
  position: relative;
  z-index: 2;
  color: #fff;
  font-size: 18px;
  font-weight: 400;
  text-align: center;
  line-height: 1.15;
}

section {
  padding: 50px 0;
  background: #ffffff;
  scroll-margin-top: 78px;
}

.alt {
  background: #cbe4f5;
}

.kicker {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .14em;
  text-align: center;
}

h2 {
  text-align: center;
  margin: 10px 0;
}

.lead_contact {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 30px;
  color: #ffffff;
}

/* ABOUT */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: stretch;
}

.about p {
  line-height: 2.2;
}

.lead_about {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 30px;
}

.form-status {
  display: none;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
}

.form-wrap {
  display: block;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  color: #22c55e;
}

.form-status.is-error {
  color: #ef4444;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.box {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 16px 30px rgba(0,0,0,.1);
}

.photo,
.box {
  height: 100%;
}

/* SERVICES */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.services-text {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 48px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: stretch;
  text-align: center;
}

.why-grid > div {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(0,58,84,.08);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 140px;
  overflow: hidden;
  gap: 6px;
}

.why-grid > div::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: #f59e19;
  border-radius: var(--radius) var(--radius) 0 0;
}

.why-grid h4 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--ink);
}

.why-grid p {
  margin: 0;
  line-height: 1.6;
  color: #475569;
}

.why h3,
.offer h3 {
  text-align: center;
  margin-bottom: 24px;
  color: #f59e19;
}

.why h3 {
  color: #f59e19;
}

.offer-note strong {
  color: #f59e19;
}

.offer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}

.offer-list li {
  background: #ffffff;
  border: 1px solid rgba(0,58,84,.08);
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  border-radius: 18px;
  position: relative;
  padding: 22px 26px;
  line-height: 1.55;
  text-align: center;
  overflow: hidden;
}

.offer-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 4px;
  width: 100%;
  background: #f59e19;
  opacity: .9;
}

.offer-list strong {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
  color: var(--ink);
  text-align: center;
}

.offer-note {
  margin-top: 24px;
  text-align: center;
  font-size: 15px;
}

.service {
  display: grid;
  grid-template-columns: 220px 1fr;
  background: #eaf2f8;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 220px;
}

.service .txt {
  padding: 18px;
}

#services {
  padding-bottom: 50px;
  min-height: 60vh;
}

#services.alt {
  background: #e7eef5;
}

.services {
  align-items: stretch;
}

.service .media {
  min-height: 120px;
  overflow: hidden;
}

.service .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* DARK */
.dark {
  background: #003a54;
  color: #fff;
}

.dark a {
  color: #fff;
  text-decoration: none;
}

.dark a:hover {
  text-decoration: underline;
}

.contact {
  display: grid;
  padding-top: 10px;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.input, .textarea {
  margin: 10px 0 0;
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.1);
  color: #fff;
}

.textarea {
  min-height: 110px;
  resize: vertical;
}

.btn-small {
  margin: 10px 0 10px;
  padding: 10px 20px;
  border-radius: 5px;
  border: none;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.col {
  padding-top: 10px;
}

.col p {
  margin: 0 0 6px;
  line-height: 1.3;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand,
.brand:visited,
.brand:hover,
.brand:active {
  text-decoration: none;
}

.brand img {
  height: 64px;
  width: auto;
  display: block;
}

.brand-text {
  font-family: "Days One", sans-serif;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1;
  font-weight: 400;
  position: relative;
}

.brand-text .ed {
  color: #003a54;
}

.brand-text .ka {
  color: #0098a7;
}

footer {
  margin-top: 18px;
}

.legal-footer{
  font-size: 14px;
  opacity: 0.9;
}

.legal-link{
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.legal-link{
  text-decoration: none;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.legal-link:hover{
  opacity: 0.75;
  text-decoration: underline;
}

.legal-link:focus-visible{
  outline: none;
  text-decoration-thickness: 2px;
}

.legal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 58, 84, 0.92);
  z-index: 9999;
  display: none;
}

.legal-overlay.is-open {
  display: block;
}

.legal-panel {
  max-width: 900px;
  margin: 40px auto;
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-lg);
  max-height: calc(100vh - 80px);
  overflow: hidden;
  position: relative;
}

.legal-head{
  height: 52px;
  background: #fff;
  border-bottom: 1px solid rgba(0,58,84,.08);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 8px 10px;
}

.legal-panel h2 {
  margin-top: 0;
}

.legal-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: rgba(0,58,84,.06);
  color: var(--ink);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.legal-close:hover{
  background: rgba(0,58,84,.10);
}

.legal-close:focus-visible{
  outline: 3px solid rgba(245,158,25,.45);
  outline-offset: 2px;
}

.legal-scroll{
  padding: 24px 32px 32px;
  max-height: calc(100vh - 80px - 52px);
  overflow: auto;
  background: #fff;
  scrollbar-gutter: stable both-edges;
}

.legal-scroll::-webkit-scrollbar{ 
  width: 10px; 
}

.legal-scroll::-webkit-scrollbar-thumb{
  background: rgba(0,58,84,.18);
  border-radius: 999px;
  border: 3px solid #fff;
}

.legal-content {
  display: none;
}

.legal-content.is-active {
  display: block;
}

.legal-text {
  white-space: pre-line;
  line-height: 1.7;
}

@media (max-width: 900px) {
  /* Layout-Spalten */
  .tile-grid,
  .services,
  .about,
  .contact {
    grid-template-columns: 1fr;
  }

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

  /* Header / Navigation */
  .nav {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 0;
  }

  nav {
    margin-left: 0;
    width: 100%;
  }

  nav ul {
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
  }
}

/* montserrat-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/montserrat-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/montserrat-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/montserrat-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* days-one-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Days One';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/days-one-v19-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
