/* =========================================================
   GinovaTech – gemeinsames Stylesheet für alle Unterseiten
   Farben sind Platzhalter und sollten ans echte Logo angepasst
   werden, sobald es eingebaut ist (siehe :root Variablen).
   ========================================================= */

:root {
  /* Blautöne aus dem echten GinovaTech-Logo übernommen */
  --color-primary: #0090da;
  --color-primary-dark: #071e33;
  --color-navy: #071e33;
  --color-navy-2: #0b2942;
  --color-accent: #00a6ff;
  --color-accent-dark: #0089d6;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f7fa;
  --color-text: #1f2937;
  --color-text-muted: #5b6674;
  --color-border: #e2e8f0;
  --max-width: 1140px;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(7, 30, 51, 0.1);
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

/* Sprachumschaltung: [hidden] muss IMMER greifen, auch bei Elementen wie
   .btn, die selbst einen "display"-Wert setzen (z.B. mehrsprachige Buttons). */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

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

a {
  color: var(--color-primary);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 30, 51, 0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

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

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

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

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

.main-nav a {
  display: inline-block;
  padding: 10px 14px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.main-nav a[aria-current="page"] {
  color: var(--color-accent);
  background: rgba(255, 255, 255, 0.08);
}

/* Language switcher */
.lang-switch {
  position: relative;
}

.lang-switch button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.9);
}

.lang-switch button:hover {
  border-color: var(--color-accent);
  color: #fff;
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 150px;
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 2px;
}

.lang-switch.open .lang-menu {
  display: flex;
}

.lang-menu button {
  border: none;
  background: none;
  text-align: left;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
}

.lang-menu button:hover {
  background: var(--color-bg-alt);
}

.lang-menu button[aria-current="true"] {
  color: var(--color-primary);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #ffffff;
  margin: 4px 0;
}

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

.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: 72px 0;
}

.hero .container {
  display: grid;
  gap: 24px;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: #bfe9ff;
  margin: 0 0 12px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 16px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.1rem;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 28px;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--color-accent);
  color: #062338;
}

.btn-accent:hover {
  background: var(--color-accent-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Kompakter Seitenkopf (z.B. Impressum, Datenschutz) ---------- */

.page-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: 48px 0;
}

.page-header h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.page-header p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
}

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

section {
  padding: 64px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-heading {
  max-width: 680px;
  margin: 0 0 40px;
}

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  margin: 0 0 10px;
}

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

.section-heading p {
  color: var(--color-text-muted);
  margin: 0;
}

.section-heading-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

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

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: var(--color-primary-dark);
}

.card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.3rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.two-col img,
.two-col .placeholder-media {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.placeholder-media {
  background: var(--color-bg-alt);
  border: 1px dashed var(--color-border);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 20px;
}

ul.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

ul.check-list li {
  padding-left: 30px;
  position: relative;
  color: var(--color-text-muted);
}

ul.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent-dark);
  font-weight: 700;
}

.cta-band {
  background: var(--color-primary-dark);
  color: #fff;
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 12px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 26px;
}

/* ---------- Kontaktformular ---------- */

.contact-form {
  max-width: 620px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  gap: 6px;
}

.form-row label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-text);
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="number"],
.form-row textarea {
  font: inherit;
  padding: 11px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  color: var(--color-text);
  width: 100%;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
  border-color: var(--color-accent);
}

.form-row textarea {
  resize: vertical;
  min-height: 120px;
}

.required-note {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin: -6px 0 0;
}

.captcha-row .captcha-question {
  font-weight: 700;
  color: var(--color-primary-dark);
}

.captcha-row input[type="number"] {
  max-width: 140px;
}

.checkbox-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--color-accent-dark);
}

.checkbox-row label {
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.checkbox-row label a {
  font-weight: 600;
}

/* Honeypot: für Menschen unsichtbar, aber im DOM vorhanden (Bot-Falle) */
.hp-field {
  position: absolute;
  left: -5000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form .btn {
  justify-self: start;
  border: none;
  cursor: pointer;
}

.contact-alt-contact {
  text-align: center;
  margin: 22px 0 0;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.form-status {
  max-width: 620px;
  margin: 0 auto 24px;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
}

.form-status[hidden] {
  display: none;
}

.form-status.status-success {
  background: #e6f7f1;
  color: #096a4d;
  border: 1px solid #b5e6d5;
}

.form-status.status-error {
  background: #fdecec;
  color: #9a2323;
  border: 1px solid #f6c6c6;
}

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

.site-footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.82);
  padding: 48px 0 24px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-grid h4 {
  color: #fff;
  margin: 0 0 14px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.footer-grid a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-copy {
  color: rgba(255, 255, 255, 0.6);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.social-icon:hover,
.social-icon:focus-visible {
  color: #ffffff;
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.08);
}

.social-icon svg {
  width: 18px;
  height: 18px;
}

.placeholder-note {
  color: #ffd166;
}

/* ---------- Cookie banner ---------- */

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.22);
  padding: 22px;
  z-index: 1000;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner h2 {
  font-size: 1.05rem;
  margin: 0 0 8px;
}

.cookie-banner p {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-actions .btn {
  padding: 10px 18px;
  font-size: 0.88rem;
}

.cookie-actions .btn-text {
  background: none;
  color: var(--color-primary);
  border: none;
  font-weight: 700;
  cursor: pointer;
  padding: 10px 6px;
}

.cookie-settings {
  margin-top: 16px;
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
  display: grid;
  gap: 12px;
}

.cookie-settings[hidden] {
  display: none;
}

.cookie-toggle-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cookie-toggle-row .toggle-label {
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0 0 4px;
}

.cookie-toggle-row .toggle-desc {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin: 0;
}

.switch {
  position: relative;
  width: 42px;
  height: 24px;
  flex: none;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch .slider {
  position: absolute;
  inset: 0;
  background: #cbd5e1;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.switch .slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.15s ease;
}

.switch input:checked + .slider {
  background: var(--color-accent-dark);
}

.switch input:checked + .slider::before {
  transform: translateX(18px);
}

.switch input:disabled + .slider {
  background: #94a3b8;
  cursor: not-allowed;
}

.cookie-footer-link {
  background: none;
  border: none;
  color: var(--color-text-muted);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.82rem;
  padding: 0;
}

/* ---------- Rechtstexte (Impressum / Datenschutz) ---------- */

.legal-content {
  max-width: 760px;
}

.legal-content h2 {
  margin: 44px 0 14px;
  font-size: 1.3rem;
  color: var(--color-primary-dark);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  margin: 26px 0 10px;
  font-size: 1.05rem;
  color: var(--color-text);
}

.legal-content p {
  margin: 0 0 14px;
  color: var(--color-text);
}

.legal-content ul,
.legal-content ol {
  padding-left: 22px;
  margin: 0 0 14px;
  display: block;
}

.legal-content li {
  margin: 0 0 8px;
  color: var(--color-text);
  padding-left: 0;
}

.legal-content li::before {
  content: none;
}

.legal-content a {
  color: var(--color-primary);
}

.legal-facts {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: 10px 20px;
  margin: 18px 0 32px;
  padding: 22px 24px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.legal-facts dt {
  font-weight: 700;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.legal-facts dd {
  margin: 0;
  font-size: 0.95rem;
}

.legal-note {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin: 0 0 14px;
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0 0 8px;
}

@media (max-width: 560px) {
  .legal-facts {
    grid-template-columns: 1fr;
  }
}

/* ---------- Utility ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

@media (max-width: 860px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--color-navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 18px;
    display: none;
    gap: 8px;
  }

  .site-header.nav-open .main-nav {
    display: flex;
  }

  .main-nav ul {
    flex-direction: column;
    width: 100%;
  }

  .main-nav a {
    width: 100%;
  }

  .lang-switch {
    width: 100%;
  }

  .lang-switch button {
    width: 100%;
    justify-content: space-between;
  }

  .lang-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding: 0;
    margin-top: 4px;
  }
}
