/* =========================
   Grundsetup + Farbschema
   ========================= */
:root{
  --c-100: rgb(184,199,214);
  --c-200: rgb(108,152,197);
  --c-300: rgb(58,120,184);
  --c-400: rgb(12,87,165);
  --c-500: rgb(8,61,116);

  --accent: var(--c-400);
  --accent-hover: var(--c-500);

  --text: #101318;
  --text-soft: rgba(16,19,24,.72);

  --bg-page: linear-gradient(180deg, #ffffff, rgb(184,199,214));
  --card: #ffffff;
  --card-soft: rgba(255,255,255,.82);

  --border-soft: rgba(108,152,197,.22);
  --shadow-soft: 0 6px 18px rgba(8,61,116,.06);
  --shadow-card: 0 10px 26px rgba(8,61,116,.08);

  --radius-lg: 20px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

/* =========================
   Basis
   ========================= */
*{
  box-sizing: border-box;
}

html,
body{
  height: 100%;
}

body{
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg-page);
}

/* =========================
   Hintergrund
   ========================= */
.bg{
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.88),
      rgba(184,199,214,.65)
    ),
    url("../img/background.jpg") center/cover no-repeat fixed;
}

.bg::after{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 10%, rgba(255,255,255,.16), transparent 42%),
    radial-gradient(circle at 80% 0%, rgba(58,120,184,.08), transparent 36%);
}

/* =========================
   Layout
   ========================= */
.wrap{
  flex: 1;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}

/* =========================
   Header / Topbar
   ========================= */
.topbar{
  position: relative;
  width: 100%;
  max-width: 920px;
  margin: 16px auto 0;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  background: rgba(255,255,255,.92);
  border: 1px solid rgba(108,152,197,.30);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(8,61,116,.10);
}

.topbar::after{
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -1px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(58,120,184,.40), transparent);
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand:hover{
  opacity: .96;
}

.logo{
  width: 100px;
  height: 100px;
  object-fit: contain;
  display: block;
  padding: 6px;
  background: rgba(255,255,255,.96);
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,.10);
}

.brand__text{
  display: flex;
  flex-direction: column;
}

.brand__name{
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .2px;
  color: var(--c-500);
}

.brand__sub{
  font-size: .92rem;
  color: rgba(16,19,24,.68);
}

.topbar__cta{
  display: flex;
  align-items: center;
}

/* =========================
   Buttons
   ========================= */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: none;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;                 /* kräftiger */
  letter-spacing: 0.2px;            /* bessere Lesbarkeit */

  color: #ffffff !important;        /* zwingend weiß */
  background: var(--accent);

  box-shadow: 0 8px 20px rgba(8,61,116,.14);

  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}

.btn:hover{
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(8,61,116,.18);
}

.btn:focus-visible{
  outline: 3px solid rgba(108,152,197,.75);
  outline-offset: 3px;
}

.btn--ghost{
  color: var(--c-500);
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(108,152,197,.35);
}

.btn--ghost:hover{
  background: rgba(255,255,255,.94);
}

/* =========================
   Hero
   ========================= */
.hero{
  margin-top: 6px;
  padding: 18px 4px 14px;
}

.hero h1{
  margin: 0 0 12px;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.08;
  color: var(--c-500);
  max-width: 100%;
}

.hero p{
  margin: 0;
  max-width: 100%;
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(16,19,24,.80);
}

.hero__badges{
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__badge{
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(108,152,197,.35);
  color: var(--c-500);
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(8,61,116,.08);
}

/* =========================
   Kachel-Menü
   ========================= */
.tiles{
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.tile{
  position: relative;
  overflow: hidden;
  grid-column: span 6;
  min-height: 220px;
  padding: 22px 20px;
  text-decoration: none;
  color: var(--text);

  background: rgba(255,255,255,.56);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border: 1px solid rgba(255,255,255,.48);
  border-radius: var(--radius-lg);

  box-shadow: 0 10px 26px rgba(8,61,116,.10);
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease,
    background .18s ease;
}

.tile:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.50);
  box-shadow: 0 16px 34px rgba(8,61,116,.14);
  border-color: rgba(58,120,184,.42);
}

.tile--wide{
  grid-column: span 12;
  min-height: 140px;
}

.tile::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.74),
      rgba(255,255,255,.08)
    );
  opacity: .72;
}

.tile::after{
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  opacity: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(12,87,165,.12), rgba(12,87,165,.68));
  transition: opacity .18s ease;
}

.tile:hover::after{
  opacity: 1;
}

.tile__icon{
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  border-radius: 14px;
  background: rgba(184,199,214,.20);
  transition: transform .18s ease, background .18s ease;
}

.tile:hover .tile__icon{
  transform: translateY(-1px);
  background: rgba(184,199,214,.30);
}

.tile__title{
  margin-top: 16px;
  font-size: 1.08rem;
  font-weight: 760;
  color: var(--c-500);
}

.tile__text{
  margin-top: 8px;
  line-height: 1.5;
  color: var(--text-soft);
}

/* =========================
   Content / Trust Cards
   ========================= */
.trust{
  margin-top: 18px;
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.trust__card{
  position: relative;
  z-index: 2;
  grid-column: span 6;
  padding: 15px 16px;

  background: rgba(255,255,255,.58);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  color: #222222;
  border: 1px solid rgba(255,255,255,.40);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 20px rgba(8,61,116,.08);

  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background .18s ease,
    border-color .18s ease;
}

.trust__card:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.52);
  border-color: rgba(108,152,197,.34);
  box-shadow: 0 12px 24px rgba(8,61,116,.10);
}

.trust__card h2{
  margin: 0 0 6px;
  font-size: .98rem;
  color: var(--c-500);
}

.trust__card p{
  margin: 0;
  line-height: 1.5;
  font-size: .95rem;
  color: rgba(16,19,24,.78);
}

.trust__card a{
  color: var(--c-400);
  text-decoration: none;
}

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

.trust__card strong{
  color: inherit;
}

/* =========================
   Formular
   ========================= */
.contact-form{
  margin-top: 10px;
}

.form-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-group{
  display: flex;
  flex-direction: column;
}

.form-group--full{
  grid-column: 1 / -1;
}

.form-group label{
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--c-500);
}

.form-group input,
.form-group select,
.form-group textarea{
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: #222222;
  background: #ffffff;
  border: 1px solid rgba(108,152,197,.45);
  border-radius: 14px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.03);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
  outline: none;
  border-color: var(--c-400);
  box-shadow: 0 0 0 3px rgba(12,87,165,.12);
}

.form-group textarea{
  min-height: 140px;
  resize: vertical;
}

.form-options{
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checkbox{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
  color: #222222;
}

.checkbox input{
  margin-top: 4px;
}

.checkbox a{
  color: var(--c-400);
  text-decoration: none;
}

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

.form-actions{
  margin-top: 22px;
}

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

.form-message{
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 600;
}

.form-message--success{
  background: rgba(40,167,69,.12);
  border: 1px solid rgba(40,167,69,.28);
  color: #1f6f35;
}

.form-message--error{
  background: rgba(220,53,69,.10);
  border: 1px solid rgba(220,53,69,.22);
  color: #a12633;
}

/* =========================
   Footer
   ========================= */
.footer{
  margin-top: 40px;
  padding: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: #333333;
  background: transparent;
}

.footer a{
  color: var(--c-400);
  text-decoration: none;
}

.footer a:hover{
  color: var(--c-500);
  text-decoration: underline;
}

.footer span{
  color: rgba(0,0,0,.4);
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 860px){
  .topbar{
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
  }

  .logo{
    width: 72px;
    height: 72px;
  }

  .brand__name{
    font-size: 1rem;
  }

  .brand__sub{
    font-size: .88rem;
  }

  .tile{
    grid-column: span 12;
    min-height: 160px;
  }

  .tile--wide{
    min-height: 120px;
  }

  .trust__card{
    grid-column: span 12;
  }

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

@media (max-width: 560px){
  .wrap{
    padding: 20px 14px 32px;
  }

  .topbar{
    gap: 10px;
  }

  .logo{
    width: 60px;
    height: 60px;
  }

  .btn{
    padding: 10px 14px;
  }

  .hero h1{
    font-size: clamp(1.7rem, 8vw, 2.2rem);
  }

  .hero p{
    font-size: .98rem;
  }

  .tile{
    padding: 18px 16px;
  }
}