/* VSLZT — colors/sizes taken from the current IONOS site */
:root {
  --bg: #f3f6fb;          /* page background / light text */
  --ink: #0b101b;         /* dark text, hero background, input borders */
  --brand: #4b6bae;       /* footer, buttons */
  --brand-logo: #5e82ce;  /* logo on dark hero */
  --brand-dark: #4f6eaf;  /* logo + headings on light pages */
  --nav-active: #4f7198;  /* active link on light pages */
  --container: 960px;
  --header-h: 90px;
}

/* Smooth cross-page fade (Chrome/Edge; other browsers just load normally) */
@view-transition { navigation: auto; }

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

html, body { margin: 0; }

body {
  font-family: Roboto, Arial, sans-serif;
  font-size: 18px;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

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

/* ---------- Blur-in (matches IONOS "animation-blur-in") ---------- */
@keyframes blur-in {
  from { opacity: 0; filter: blur(10px); }
  to   { opacity: 1; filter: blur(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero-content,
.contact-layout {
  animation:
    fade-in 0.7s ease 0.2s both,
    blur-in 1s ease 0.2s both;
}

.site-header .header-inner {
  animation: fade-in 0.7s ease both;
}

@media (prefers-reduced-motion: reduce) {
  .hero-content,
  .contact-layout,
  .site-header .header-inner { animation: none; }
}

/* ---------- Header ---------- */
.site-header { height: var(--header-h); }

.site-header--overlay {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
}

.page-home .site-header .container { max-width: none; padding: 0 60px; }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 22px;
  text-decoration: none;
  color: var(--brand-dark);
}
.page-home .logo { color: var(--brand-logo); }

.nav { display: flex; gap: 32px; }

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 18px;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}
.nav a:hover,
.nav a.active { border-bottom-color: currentColor; }
.nav a.active { color: var(--nav-active); }

.page-home .nav a,
.page-home .nav a.active { color: var(--bg); }

/* ---------- Home: hero + footer fit exactly in the viewport ---------- */
.page-home {
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.page-home main {
  display: flex;
  min-height: 0;
}

.hero {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 20px) 24px 40px;
  background: var(--ink) url("../img/hero.png") center / cover no-repeat;
  text-align: center;
}

.hero-content { max-width: 560px; }

.hero h1 {
  margin: 0 0 40px;
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 45px;
  line-height: 1.15;
  color: #fff;
}

.hero p {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  color: var(--bg);
}

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 384px 1fr;
  column-gap: 72px;
  align-items: start;
  padding-top: 40px;
  padding-bottom: 80px;
}

.contact-title {
  grid-column: 2;
  grid-row: 1;
  margin: 30px 0 0;
  font-family: Arial, sans-serif;
  font-weight: 400;
  font-size: 37px;
  color: var(--brand-dark);
}

.contact-form { grid-column: 1; grid-row: 1; }

.field { margin-bottom: 20px; }

.field label { display: block; margin-bottom: 8px; }

.field input,
.field textarea {
  display: block;
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 10px 12px;
}
.field input { height: 50px; }
.field textarea { height: 248px; resize: vertical; }

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Honeypot: hidden from people, visible to naive bots */
.hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note { margin: 0 0 16px; }

.contact-form button {
  width: 100%;
  height: 42px;
  font: inherit;
  color: var(--bg);
  background: var(--brand);
  border: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: filter 0.2s ease;
}
.contact-form button:hover { filter: brightness(0.9); }
.contact-form button:disabled { cursor: wait; opacity: 0.7; }

.form-status { margin: 16px 0 0; }
.form-status--err { color: #b3261e; }
.form-status--ok {color:rgb(12, 130, 12); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand);
  color: var(--bg);
  text-align: center;
  padding: 50px 24px;
}
.site-footer p { margin: 0; font-size: 18px; }

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  .page-home .site-header .container { padding: 0 24px; }
  .nav { gap: 20px; }
  .nav a { font-size: 16px; }

  .hero h1 { font-size: 34px; margin-bottom: 24px; }
  .hero p  { font-size: 18px; }

  .site-footer { padding: 32px 24px; }

  .contact-layout { grid-template-columns: 1fr; padding-top: 20px; }
  .contact-title  { grid-column: 1; grid-row: 1; margin: 0 0 24px; }
  .contact-form   { grid-column: 1; grid-row: 2; }
}

/* Very short screens (landscape phones): let the home page scroll instead of clipping */
@media (max-height: 560px) {
  .page-home { height: auto; overflow: visible; }
  .hero { min-height: 100svh; }
}
