/* Opportunitas GmbH — Website Stylesheet */

:root {
  /* Markenfarben, per Farbpipette aus dem Original-Logo entnommen */
  --color-blue: #0056af;
  --color-blue-dark: #00408a;
  --color-green: #02914d;
  --color-green-dark: #017339;

  /* Neutrale Basispalette (Hintergründe, Text) */
  --color-ink: #1f2933;
  --color-slate: #52606d;
  --color-slate-light: #7b8794;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f6f7;
  --color-bg-dark: #1f2933;
  --color-border: #e2e8ed;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --max-width: 1140px;
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(31, 41, 51, 0.08);
  --shadow-md: 0 8px 24px rgba(31, 41, 51, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-blue);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

h1, h2, h3 {
  line-height: 1.25;
  color: var(--color-ink);
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.25rem;
  margin: 0 0 0.6rem;
}

p {
  margin: 0 0 1rem;
  color: var(--color-slate);
}

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--color-blue);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  z-index: 1000;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 1rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.main-nav a {
  display: inline-block;
  color: var(--color-ink);
  font-weight: 600;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: var(--color-bg-alt);
  color: var(--color-blue);
  text-decoration: none;
}

.main-nav a[aria-current="page"] {
  color: var(--color-blue);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 780px) {
  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: #fff;
    display: none;
    padding: 88px 1.5rem 2rem;
    overflow-y: auto;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.25rem;
  }

  .main-nav a {
    display: block;
    padding: 0.85rem 1rem;
    font-size: 1.05rem;
  }
}

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

.btn {
  display: inline-block;
  font-weight: 600;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--color-blue);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-blue-dark);
  color: #fff;
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--color-blue);
  border-color: var(--color-blue);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--color-blue);
  color: #fff;
  text-decoration: none;
}

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

.hero {
  padding: 3.5rem 0 2rem;
}

.hero .container {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  color: var(--color-green-dark);
  background: rgba(2, 145, 77, 0.1);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 860px) {
  .hero .container {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

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

section {
  padding: 3.5rem 0;
}

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

.section-intro {
  max-width: 42rem;
  margin: 0 0 2.5rem;
}

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

/* ---------- Service cards ---------- */

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

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

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: rgba(0, 86, 175, 0.1);
  color: var(--color-blue);
}

.card:nth-child(2) .card-icon {
  background: rgba(2, 145, 77, 0.1);
  color: var(--color-green-dark);
}

.card:nth-child(3) .card-icon {
  background: rgba(0, 86, 175, 0.1);
  color: var(--color-blue);
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card ul {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  color: var(--color-slate);
}

.card li {
  margin-bottom: 0.35rem;
}

/* ---------- Leistungen detail blocks ---------- */

.service-block {
  display: grid;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.service-block:last-child {
  border-bottom: none;
}

.service-number {
  font-weight: 700;
  color: var(--color-blue);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
  display: block;
}

.service-block:nth-of-type(2) .service-number {
  color: var(--color-green-dark);
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--color-blue);
  color: #fff;
  text-align: center;
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Contact ---------- */

.contact-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 1.5rem 0 0;
  list-style: none;
  padding: 0;
}

.contact-methods li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: var(--color-ink);
}

.contact-methods svg {
  width: 20px;
  height: 20px;
  color: var(--color-blue);
  flex-shrink: 0;
}

.form-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

.form-card h2 {
  font-size: 1.35rem;
}

.form-card .form-desc {
  margin-bottom: 1.5rem;
}

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
  color: var(--color-ink);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-ink);
  background: #fff;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(0, 86, 175, 0.15);
}

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

/* honeypot field used against spam bots, hidden from real visitors */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Legal pages ---------- */

.legal-content h2 {
  margin-top: 2rem;
}

.legal-content h1 {
  margin-bottom: 1.5rem;
}

.legal-content p,
.legal-content li {
  color: var(--color-ink);
}

.legal-content a {
  word-break: break-word;
}

.legal-meta {
  color: var(--color-slate-light);
  font-size: 0.9rem;
  margin-top: 2.5rem;
}

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

.site-footer {
  background: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 2.75rem 0 2rem;
  margin-top: 3.5rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 1.5rem;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.footer-brand img {
  height: 34px;
  width: auto;
}

.footer-col h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.88rem;
}

.footer-bottom ul {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.footer-bottom a:hover,
.footer-bottom a:focus-visible {
  color: #fff;
}
