/* ==========================================================================
   PS IT-Solutions — Prototype Stylesheet
   ========================================================================== */

:root {
  color-scheme: light;
  --color-primary: #0b3d91;
  --color-primary-dark: #072a66;
  --color-accent: #00b4d8;
  --color-accent-dark: #0096c7;
  --color-accent-accessible: #007a94;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f7fa;
  --color-text: #1b2430;
  --color-text-muted: #5b6472;
  --color-border: #e2e6ea;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(11, 61, 145, 0.08);
  --shadow-hover: 0 8px 32px rgba(11, 61, 145, 0.14);
  --max-width: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

h1, h2, h3 { line-height: 1.25; font-weight: 700; }
h2 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); margin-bottom: 12px; }
h3 { font-size: 1.15rem; margin-bottom: 8px; }

.section-label {
  display: inline-block;
  color: var(--color-accent-accessible);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-intro {
  color: var(--color-text-muted);
  max-width: 620px;
  margin-bottom: 40px;
}

section { padding: 80px 0; }
section.alt { background: var(--color-bg-alt); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-primary-dark);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
.brand {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}
.brand span { color: var(--color-accent); }
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--color-primary); }
.nav-cta { display: flex; align-items: center; gap: 20px; }
.nav-cta .btn-primary { color: var(--color-primary-dark); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--color-primary); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 55%, #041b4d 100%);
  color: #fff;
  padding: 40px 0 110px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,180,216,0.35) 0%, rgba(0,180,216,0) 70%);
}
.hero-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  position: relative;
}
.hero-inner { max-width: 600px; }
.hero-photo {
  flex-shrink: 0;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(255,255,255,0.25);
  box-shadow: var(--shadow-hover);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; display: block; }
.hero .section-label { color: #7fd8ee; }
.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  margin-bottom: 20px;
}
.hero p.lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  max-width: 540px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-stats div strong {
  display: block;
  font-size: 1.6rem;
  color: #fff;
}
.hero-stats div span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

/* ---------- Services ---------- */
.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: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card .icon svg { width: 24px; height: 24px; stroke: #fff; }
.card p { color: var(--color-text-muted); font-size: 0.95rem; }

/* ---------- Referenzen ---------- */
.reference-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.reference-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.reference-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.browser-frame {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  padding: 10px 14px;
  display: flex;
  gap: 6px;
}
.browser-frame span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
}
.reference-card img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid var(--color-border);
}
.reference-card .reference-body { padding: 26px; }
.reference-card h3 { margin-bottom: 8px; }
.reference-card p { color: var(--color-text-muted); font-size: 0.95rem; }
.reference-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text-muted);
  font-size: 0.95rem;
  text-align: center;
  padding: 26px;
}

/* ---------- Pricing ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.price-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.price-card h3 {
  background: var(--color-bg-alt);
  padding: 18px 26px;
  border-bottom: 1px solid var(--color-border);
  margin: 0;
}
.price-card h3::after {
  content: "Alle Preise inkl. 19 % USt";
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: var(--color-text-muted);
  margin-top: 4px;
}
.price-list { list-style: none; }
.price-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 26px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.93rem;
}
.price-list li:last-child { border-bottom: none; }
.price-list li span:first-child { color: var(--color-text); }
.price-list li span:last-child { font-weight: 700; color: var(--color-primary); white-space: nowrap; }
.price-note {
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  max-width: 720px;
}

/* ---------- About ---------- */
#ueber-mich p { max-width: 680px; }
.about-list {
  list-style: none;
  margin-top: 22px;
  max-width: 680px;
  display: grid;
  gap: 12px;
}
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}
.about-list li::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* ---------- Checklist (Go-Live) ---------- */
.checklist-group { margin-bottom: 38px; }
.checklist { list-style: none; display: grid; gap: 14px; margin-top: 16px; }
.checklist li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.checklist .num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.checklist strong { display: block; color: var(--color-text); font-size: 0.98rem; margin-bottom: 4px; }
.checklist p { color: var(--color-text-muted); font-size: 0.9rem; margin: 0; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
}
.contact-info-list { list-style: none; display: grid; gap: 18px; margin-top: 24px; }
.contact-info-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-info-list strong { display: block; font-size: 0.85rem; color: var(--color-text-muted); }
.contact-info-list a, .contact-info-list span.value { color: var(--color-text); font-weight: 600; }

form.contact-form {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--color-text); }
.field input,
.field textarea {
  background: #fff;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0,180,216,0.15);
}
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: var(--color-text-muted); }
.consent input { margin-top: 4px; }
.form-note { font-size: 0.82rem; color: var(--color-text-muted); }

.field-error {
  font-size: 0.82rem;
  font-weight: 600;
  color: #c1121f;
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #c1121f;
}

.form-feedback {
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
  border: 1px solid;
}
.form-feedback strong { display: block; margin-bottom: 4px; }
.form-feedback p { margin: 0; font-size: 0.92rem; }
.form-feedback.success {
  background: #e8f7ef;
  border-color: #9ad9b8;
  color: #0a5c36;
}
.form-feedback.error {
  background: #fdecee;
  border-color: #f2b8bf;
  color: #8f1420;
}

/* Honeypot: unsichtbar für Menschen, aber nicht display:none,
   damit Bots das Feld weiterhin finden und ausfüllen. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
.footer-grid h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
.footer-grid p { color: rgba(255,255,255,0.65); font-size: 0.9rem; max-width: 320px; }
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Legal pages ---------- */
.legal-page { padding: 64px 0 90px; }
.legal-page h1 { margin-bottom: 8px; }
.legal-updated { color: var(--color-text-muted); font-size: 0.85rem; margin-bottom: 12px; }
.legal-notice {
  background: #fff7e6;
  border: 1px solid #f0c96b;
  color: #6b4e00;
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.88rem;
  margin-bottom: 36px;
}
.legal-page section { padding: 0; margin-bottom: 34px; max-width: 780px; }
.legal-page h2 { font-size: 1.2rem; margin-top: 0; margin-bottom: 14px; }
.legal-page h3 { font-size: 1rem; margin-top: 24px; margin-bottom: 8px; }
.legal-page h4 { font-size: 0.94rem; font-weight: 600; margin-top: 16px; margin-bottom: 6px; color: var(--color-text); }
.legal-page p, .legal-page li { color: var(--color-text-muted); font-size: 0.95rem; margin-bottom: 10px; }
.legal-page ul { padding-left: 20px; margin-bottom: 10px; }
.legal-page a { color: var(--color-primary); text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .price-grid { grid-template-columns: 1fr; }
  .price-list li { flex-wrap: wrap; }
  .price-list li span:last-child { white-space: normal; }
  .hero-grid { flex-direction: column-reverse; text-align: center; }
  .hero-photo { width: 150px; height: 150px; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .nav-links, .nav-cta .btn-primary { display: none; }
  .nav-toggle { display: flex; }
  .site-header.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--color-border);
  }
  .site-header.open .nav-cta .btn-primary { display: inline-block; }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .hero { padding: 28px 0 80px; }
}
