/* ==========================================================================
   Prime Sys UG – Build Your System
   Stylesheet
   ========================================================================== */

/* ---- Fonts (self-hosted, no external requests) ------------------------- */
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins/Poppins-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins/Poppins-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ---- Design tokens ------------------------------------------------------ */
:root {
  --navy: #0d2b4e;
  --navy-2: #0a2038;
  --navy-soft: #163f6b;
  --blue: #1487d6;
  --blue-dark: #0d6bb0;
  --blue-tint: #eaf4fc;
  --ink: #16232f;
  --gray-700: #3d4a58;
  --gray-600: #5b6b7c;
  --gray-300: #c7d1db;
  --gray-200: #e4e9ef;
  --gray-100: #eef2f6;
  --gray-50: #f6f9fb;
  --white: #ffffff;
  --success: #1e8e5a;
  --error: #c53030;

  --container: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(13, 43, 78, 0.06);
  --shadow-md: 0 12px 32px rgba(13, 43, 78, 0.12);
  --header-h: 84px;
}

/* ---- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

body {
  font-family: "Poppins", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

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

section[id], div[id] { scroll-margin-top: 100px; }

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(20, 135, 214, 0.35);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }
.btn-outline-navy {
  background: transparent;
  border-color: var(--gray-300);
  color: var(--navy);
}
.btn-outline-navy:hover { border-color: var(--blue); color: var(--blue); }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* ---- Header / Nav ---------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--gray-200);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
}
.brand { display: flex; align-items: center; }
.brand-logo { height: 52px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav a:not(.btn) {
  font-weight: 500;
  color: var(--navy);
  position: relative;
  padding: 6px 0;
}
.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--blue);
  transition: right 0.2s ease;
}
.main-nav a:not(.btn):hover::after,
.main-nav a.active::after { right: 0; }
.main-nav a.active { color: var(--blue); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Hero ------------------------------------------------------------------ */
.hero {
  background: radial-gradient(circle at 15% 20%, var(--navy-soft), transparent 55%), linear-gradient(135deg, var(--navy-2), var(--navy) 60%);
  color: var(--white);
  padding: 100px 0 110px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -60% auto;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 135, 214, 0.35), transparent 70%);
  pointer-events: none;
}
.hero-inner { max-width: 720px; position: relative; z-index: 1; }
.eyebrow {
  display: inline-block;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9fd3f7;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.3rem, 4.5vw, 3.4rem);
  font-weight: 800;
  margin-bottom: 20px;
}
.hero h1 span { color: #5fb8f2; }
.hero .lead {
  font-size: 1.15rem;
  color: #d7e4f2;
  max-width: 60ch;
  margin-bottom: 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 56px; }

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 40px;
  position: relative;
  z-index: 1;
}
.hero-facts div strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
}
.hero-facts div span {
  font-size: 0.88rem;
  color: #a9c3dc;
}

/* ---- Page header (sub-pages) ------------------------------------------------ */
.page-header {
  background: linear-gradient(135deg, var(--navy-2), var(--navy) 65%);
  color: var(--white);
  padding: 72px 0 64px;
  text-align: center;
}
.page-header .eyebrow { margin-bottom: 18px; }
.page-header h1 { color: var(--white); font-size: clamp(2rem, 4vw, 2.7rem); margin-bottom: 14px; }
.page-header p { color: #d7e4f2; max-width: 60ch; margin: 0 auto; font-size: 1.05rem; }

/* ---- Sections generic -------------------------------------------------------- */
.section { padding: 96px 0; }
.section-alt { background: var(--gray-50); }
.section-head { max-width: 660px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-head .eyebrow-line::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--blue);
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 14px; }
.section-head p { color: var(--gray-600); font-size: 1.05rem; }

/* ---- Service cards (overview grid) -------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(20, 135, 214, 0.3);
}
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--blue-tint);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-card p { color: var(--gray-600); flex-grow: 1; margin-bottom: 18px; }
.service-card .card-link { font-weight: 600; color: var(--blue); font-size: 0.92rem; display: inline-flex; align-items: center; gap: 6px; }
.service-card .card-link svg { width: 16px; height: 16px; transition: transform 0.15s ease; }
.service-card .card-link:hover svg { transform: translateX(3px); }

/* ---- Detailed leistungen blocks (leistungen.php) ------------------------------- */
.leistung-block {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 28px;
  padding: 44px 0;
  border-bottom: 1px solid var(--gray-200);
}
.leistung-block:first-child { padding-top: 0; }
.leistung-block:last-child { border-bottom: none; }
.leistung-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: var(--blue-tint);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.leistung-icon svg { width: 32px; height: 32px; }
.leistung-content h3 { font-size: 1.35rem; margin-bottom: 10px; }
.leistung-content > p { color: var(--gray-600); margin-bottom: 18px; max-width: 68ch; }
.leistung-list { display: grid; gap: 10px; }
.leistung-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--gray-700);
}
.leistung-list li svg {
  width: 18px; height: 18px;
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ---- About / why-us ------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-copy p { color: var(--gray-600); margin-bottom: 18px; font-size: 1.05rem; }
.about-copy p:last-of-type { margin-bottom: 0; }
.why-list { display: grid; gap: 18px; }
.why-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.why-item .why-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--blue-tint);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.why-item .why-icon svg { width: 18px; height: 18px; }
.why-item h4 { font-size: 1rem; margin-bottom: 4px; }
.why-item p { color: var(--gray-600); font-size: 0.95rem; }

/* ---- CTA banner ------------------------------------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-2), var(--navy-soft));
  color: var(--white);
  border-radius: 24px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); font-size: 1.7rem; margin-bottom: 8px; }
.cta-banner p { color: #cfe0f0; }

/* ---- Contact --------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact-info-list { display: grid; gap: 22px; margin: 28px 0 32px; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info-item .why-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--blue-tint);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info-item .why-icon svg { width: 20px; height: 20px; }
.contact-info-item h4 { font-size: 0.95rem; color: var(--gray-600); font-weight: 500; margin-bottom: 2px; }
.contact-info-item p, .contact-info-item a { font-weight: 600; color: var(--navy); }
.placeholder-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #a15c00;
  background: #fff3d6;
  border: 1px solid #f2d38a;
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 6px;
  vertical-align: middle;
}

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 7px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  color: var(--ink);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--gray-600); margin-top: 14px; }
.form-note a { color: var(--blue); font-weight: 600; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }

.form-alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 22px;
}
.form-alert-success { background: #e6f6ee; color: var(--success); border: 1px solid #b7e4cc; }
.form-alert-error { background: #fdecec; color: var(--error); border: 1px solid #f3b8b8; }

/* ---- Legal pages (Impressum / Datenschutz) ---------------------------------------- */
.legal-content { max-width: 780px; margin: 0 auto; }
.legal-content h2 { font-size: 1.3rem; margin: 40px 0 14px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 1.05rem; margin: 24px 0 10px; }
.legal-content p { color: var(--gray-700); margin-bottom: 14px; }
.legal-content ul { display: grid; gap: 8px; margin: 14px 0; }
.legal-content li { color: var(--gray-700); padding-left: 20px; position: relative; }
.legal-content li::before {
  content: "";
  position: absolute; left: 0; top: 10px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue);
}
.legal-content a { color: var(--blue); font-weight: 600; }
.legal-content address { font-style: normal; }

.notice-box {
  display: flex;
  gap: 14px;
  background: #fff8e8;
  border: 1px solid #f2d38a;
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  margin-bottom: 40px;
  color: #6b4a04;
}
.notice-box svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; }
.notice-box strong { display: block; margin-bottom: 4px; color: #4a3300; }
.notice-box p { color: #6b4a04; margin: 0; font-size: 0.94rem; }

.fill-in {
  background: #fff3d6;
  border-bottom: 2px dashed #d9a441;
  padding: 0 3px;
  font-style: normal;
  font-weight: 600;
  color: #7a5300;
}

/* ---- Footer -------------------------------------------------------------------------- */
.site-footer { background: var(--gray-50); border-top: 1px solid var(--gray-200); padding-top: 64px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-logo { height: 46px; width: auto; margin-bottom: 16px; }
.footer-brand p { color: var(--gray-600); font-size: 0.94rem; max-width: 32ch; }
.footer-col h4 { font-size: 0.95rem; margin-bottom: 18px; color: var(--navy); }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { color: var(--gray-600); font-size: 0.94rem; }
.footer-col a:hover { color: var(--blue); }
.footer-contact li { color: var(--gray-600); font-size: 0.94rem; }
.footer-bottom { border-top: 1px solid var(--gray-200); padding: 22px 0; }
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { color: var(--gray-600); font-size: 0.88rem; }
.footer-legal { display: flex; gap: 22px; }
.footer-legal a { color: var(--gray-600); font-size: 0.88rem; font-weight: 500; }
.footer-legal a:hover { color: var(--blue); }

/* ---- Responsive ------------------------------------------------------------------------ */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-facts { grid-template-columns: repeat(3, auto); gap: 26px; }
}

@media (max-width: 760px) {
  :root { --header-h: 72px; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .main-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav ul li a { display: block; padding: 12px 4px; }
  .main-nav a.active::after,
  .main-nav a:hover::after { display: none; }
  .main-nav .btn { margin-top: 12px; width: 100%; }
  .brand-logo { height: 40px; }

  .hero { padding: 56px 0 64px; text-align: center; }
  .hero-inner { margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .hero-facts { justify-items: center; text-align: center; grid-template-columns: repeat(3, 1fr); gap: 16px; }

  .section { padding: 64px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .leistung-block { grid-template-columns: 1fr; }
  .leistung-icon { margin-bottom: 4px; }
  .footer-grid { grid-template-columns: 1fr; padding-bottom: 32px; }
  .cta-banner { padding: 36px 28px; text-align: center; justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}
