/* ==========================================================================
   Hansa Ventures GmbH — Website styles
   Farbpalette abgeleitet aus dem Firmenlogo (Hauptfarbe #000066)
   ========================================================================== */

:root {
  --hv-navy: #000066;
  --hv-navy-dark: #00003d;
  --hv-navy-mid: #2b2b80;
  --hv-navy-tint: #eef0fa;
  --hv-navy-tint-2: #dfe3f5;
  --hv-white: #ffffff;
  --hv-text: #1c1c26;
  --hv-text-muted: #55566b;
  --hv-border: #d8dbee;
  --hv-shadow: 0 10px 30px rgba(0, 0, 102, 0.10);
  --hv-radius: 14px;
  --hv-max-width: 1120px;
  --hv-header-height: 68px;
  --hv-font: "Segoe UI", "Helvetica Neue", Helvetica, Arial, "Noto Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--hv-font);
  color: var(--hv-text);
  background: var(--hv-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

/* Visible, on-brand focus ring for keyboard users — applies to every
   focusable element instead of relying on inconsistent browser defaults. */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--hv-navy-mid);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--hv-navy);
  color: var(--hv-white);
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  z-index: 100;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--hv-white);
  border-bottom: 1px solid var(--hv-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
  min-height: var(--hv-header-height);
}

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

.brand img {
  height: 38px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.main-nav a {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--hv-navy);
  letter-spacing: 0.01em;
  padding: 10px 12px;
  min-height: 44px;
  border-radius: 8px;
}

.main-nav a:hover {
  background: var(--hv-navy-tint);
  text-decoration: underline;
}

.lang-switch {
  display: flex;
  gap: 4px;
  border: 1px solid var(--hv-border);
  border-radius: 999px;
  padding: 3px;
  background: var(--hv-navy-tint);
}

.lang-switch a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  background: transparent;
  padding: 10px 14px 10px 10px;
  min-height: 44px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--hv-navy);
  text-decoration: none;
  cursor: pointer;
}

.lang-switch .flag {
  width: 18px;
  height: 13px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.lang-switch a[aria-current="true"] {
  background: var(--hv-navy);
  color: var(--hv-white);
}

.lang-switch a:hover:not([aria-current="true"]) {
  background: var(--hv-navy-tint-2);
}

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

.hero {
  background: linear-gradient(180deg, var(--hv-navy-tint) 0%, var(--hv-white) 100%);
  padding: 72px 0 64px;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}

.hero-logo {
  width: min(340px, 80%);
  height: auto;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--hv-navy);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero p.lead {
  max-width: 620px;
  margin: 0;
  font-size: 1.1rem;
  color: var(--hv-text-muted);
}

/* ---------- Sections ---------- */

section {
  padding: 64px 0;
  scroll-margin-top: var(--hv-header-height);
}

section.alt {
  background: var(--hv-navy-tint);
}

.section-heading {
  text-align: center;
  margin-bottom: 40px;
}

.section-heading h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--hv-navy);
  margin: 0 0 12px;
  font-weight: 800;
}

.section-heading p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--hv-text-muted);
}

.about-text {
  max-width: 780px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--hv-text);
}

.about-text p {
  margin: 0 0 16px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* ---------- Subsidiary cards ---------- */

.subsidiaries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.sub-card {
  background: var(--hv-white);
  border: 1px solid var(--hv-border);
  border-radius: var(--hv-radius);
  padding: 28px;
  box-shadow: var(--hv-shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sub-card.is-brand {
  border-style: dashed;
}

/* Unified logo "button": identical size, background and shape for every
   subsidiary, regardless of the source logo's own colors — so the three
   cards read as one consistent system instead of three different styles. */
.sub-logo-tile {
  width: 100%;
  height: 76px;
  background: var(--hv-navy-tint);
  border: 1px solid var(--hv-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
}

.sub-logo-tile img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.sub-card .sub-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hv-navy);
  background: var(--hv-navy-tint-2);
  padding: 4px 10px;
  border-radius: 999px;
}

.sub-card h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--hv-navy-dark);
}

.sub-card p {
  margin: 0;
  color: var(--hv-text-muted);
  flex-grow: 1;
}

.sub-card .btn {
  align-self: flex-start;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 22px;
  min-height: 44px;
  border-radius: 999px;
  border: 1.5px solid var(--hv-navy);
  color: var(--hv-navy);
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn:hover {
  background: var(--hv-navy);
  color: var(--hv-white);
}

.btn.btn-solid {
  background: var(--hv-navy);
  color: var(--hv-white);
}

.btn.btn-solid:hover {
  background: var(--hv-navy-dark);
}

/* ---------- Contact ---------- */
/* One consolidated, unframed block — no per-item cards/borders. */

.contact-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 64px;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.contact-field .label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hv-navy);
  margin-bottom: 8px;
}

.contact-field a {
  text-decoration: none;
  font-weight: 600;
}

.contact-field a:hover {
  text-decoration: underline;
}

/* Phone + email combined on a single line */
.contact-field-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 6px 10px;
}

.contact-field-line .label {
  display: inline;
  margin-bottom: 0;
  font-size: 0.75rem;
}

.contact-line-item {
  white-space: nowrap;
}

.contact-line-sep {
  color: var(--hv-border);
}

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

.site-footer {
  background: var(--hv-navy-dark);
  color: var(--hv-navy-tint);
  padding: 32px 0;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--hv-navy-tint);
  text-decoration: none;
  font-size: 0.85rem;
  opacity: 0.85;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.site-footer .lang-switch {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.site-footer .lang-switch a {
  color: var(--hv-navy-tint);
}

.site-footer .lang-switch a[aria-current="true"] {
  background: var(--hv-navy-tint);
  color: var(--hv-navy-dark);
}

.footer-copy {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ---------- Legal pages (Impressum / Datenschutz) ---------- */

.legal-main {
  padding: 56px 0 72px;
  scroll-margin-top: var(--hv-header-height);
}

.legal-main h1 {
  color: var(--hv-navy);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-top: 0;
}

.legal-main h2 {
  color: var(--hv-navy-dark);
  font-size: 1.2rem;
  margin-top: 36px;
}

.legal-box {
  background: var(--hv-navy-tint);
  border: 1px solid var(--hv-border);
  border-radius: var(--hv-radius);
  padding: 28px 32px;
  max-width: 780px;
}

.legal-box p {
  margin: 0 0 10px;
}

.legal-note {
  font-size: 0.85rem;
  color: var(--hv-text-muted);
  margin-top: 28px;
  max-width: 780px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 24px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--hv-navy);
}

.back-link:hover {
  text-decoration: underline;
}

/* ---------- Language redirector (root index.html) ---------- */

.redirect-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--hv-navy-tint) 0%, var(--hv-white) 100%);
  padding: 24px;
}

.redirect-card {
  text-align: center;
  max-width: 420px;
}

.redirect-card img {
  width: 200px;
  margin: 0 auto 24px;
}

.redirect-card p {
  color: var(--hv-text-muted);
  margin: 0 0 20px;
}

.redirect-links {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.redirect-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--hv-navy);
  color: var(--hv-navy);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}

.redirect-links a:hover {
  background: var(--hv-navy);
  color: var(--hv-white);
}

.redirect-links .flag {
  width: 18px;
  height: 13px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

@media (max-width: 640px) {
  .site-header .container {
    justify-content: center;
    text-align: center;
  }
  .main-nav {
    justify-content: center;
    order: 3;
    width: 100%;
  }
  section {
    padding: 48px 0;
  }
}
