/* ==========================================================================
   Praxis Website – Stylesheet (mobile first)
   Farben: Blau & Weiß
   ========================================================================== */

:root {
  --blue-900: #0b2a4a;
  --blue-700: #0f4c81;
  --blue-600: #1565c0;
  --blue-500: #1e88e5;
  --blue-100: #e3f2fd;
  --blue-50: #f3f8fd;
  --white: #ffffff;
  --text: #1f2d3d;
  --text-muted: #5b6b7c;
  --border: #dbe6f2;
  --shadow-sm: 0 2px 8px rgba(11, 42, 74, 0.08);
  --shadow-md: 0 10px 30px rgba(11, 42, 74, 0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --container: 1140px;
  --header-h: 72px;
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

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

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

a:hover {
  color: var(--blue-700);
}

h1,
h2,
h3,
h4 {
  line-height: 1.25;
  color: var(--blue-900);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h3 { font-size: 1.2rem; }

p {
  margin: 0 0 1em;
}

:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--blue-700);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  z-index: 200;
}

.skip-link:focus {
  left: 8px;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: 3.5rem 0;
}

.section--alt {
  background: var(--blue-50);
}

.section__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.section__header p {
  color: var(--text-muted);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 0.5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
    transform var(--transition), box-shadow var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn--primary {
  background: var(--blue-600);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--blue-700);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn--outline:hover {
  background: var(--white);
  color: var(--blue-700);
}

.btn--ghost {
  background: var(--white);
  color: var(--blue-700);
  border-color: var(--border);
}

.btn--ghost:hover {
  border-color: var(--blue-500);
  color: var(--blue-600);
}

.btn--block {
  width: 100%;
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  height: var(--header-h);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--blue-900);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.1;
}

.logo:hover {
  color: var(--blue-900);
}

.logo__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-900));
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.logo small {
  display: block;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  background: var(--white);
  box-shadow: var(--shadow-md);
  padding: 1rem;
  transform: translateY(-120%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
}

.nav.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav__link {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 500;
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  background: var(--blue-100);
  color: var(--blue-700);
}

.nav__cta {
  margin-top: 0.75rem;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--blue-50);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--blue-700);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.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 {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 4.5rem;
  color: var(--white);
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.15), transparent 40%),
    linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 55%, var(--blue-500) 100%);
}

.hero h1,
.hero h2 {
  color: var(--white);
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  max-width: 560px;
}

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

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero__badges {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.95rem;
}

.hero__badges li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero__card {
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
}

.hero__card h3 {
  margin-bottom: 1rem;
}

.hours {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

.hours li:last-child {
  border-bottom: 0;
}

.hours .is-closed {
  color: var(--text-muted);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: #e8f5e9;
  color: #2e7d32;
  margin-bottom: 0.75rem;
}

.status-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.status-badge.is-closed {
  background: #fdecea;
  color: #c62828;
}

/* ---------- Page hero (Unterseiten) ---------- */
.page-hero {
  padding: 3rem 0;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-600));
  color: var(--white);
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0 auto;
  max-width: 620px;
}

.breadcrumb {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.75rem;
}

.breadcrumb a {
  color: var(--white);
  text-decoration: underline;
}

/* ---------- Cards / Grids ---------- */
.grid {
  display: grid;
  gap: 1.25rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--blue-100);
  color: var(--blue-600);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.card p {
  color: var(--text-muted);
  margin-bottom: 0;
}

.card__list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.card__list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--blue-500);
  border-bottom: 2px solid var(--blue-500);
  transform: rotate(-45deg);
}

/* ---------- Feature strip (Vertrauen) ---------- */
.trust {
  margin-top: -2.5rem;
  position: relative;
  z-index: 2;
}

.trust__grid {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.trust__item {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.trust__item strong {
  display: block;
  color: var(--blue-900);
}

.trust__item span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.trust__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue-100);
  color: var(--blue-600);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* ---------- Leistungen ---------- */
.service-detail {
  display: grid;
  gap: 2rem;
  align-items: start;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.service-detail:last-child {
  border-bottom: 0;
}

.service-detail__media {
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue-100), var(--white));
  border: 1px solid var(--border);
  padding: 2rem;
  display: grid;
  place-items: center;
  min-height: 200px;
  color: var(--blue-600);
}

.price-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ---------- Über uns ---------- */
.team-card {
  text-align: center;
}

.avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-900));
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.team-card__role {
  color: var(--blue-600);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.values {
  display: grid;
  gap: 1.25rem;
}

.quote {
  border-left: 4px solid var(--blue-500);
  padding: 1rem 1.25rem;
  background: var(--blue-50);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--blue-900);
  margin: 0;
}

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  gap: 2rem;
}

.contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
}

.contact-info li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-info__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue-100);
  color: var(--blue-600);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-info strong {
  display: block;
  color: var(--blue-900);
}

.contact-info span,
.contact-info a {
  color: var(--text-muted);
}

.map {
  margin-top: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 10;
  background: var(--blue-50);
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.form__row {
  display: grid;
  gap: 1rem;
}

.field {
  margin-bottom: 1.1rem;
}

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

.field .required {
  color: #c62828;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px; /* verhindert Zoom auf iOS */
  padding: 0.75rem 0.9rem;
  min-height: 48px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.15);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #c62828;
}

.field__error {
  display: none;
  color: #c62828;
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

.field.has-error .field__error {
  display: block;
}

.checkbox {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.checkbox input {
  margin-top: 0.3rem;
  width: 18px;
  height: 18px;
  accent-color: var(--blue-600);
}

.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.form-status.is-visible {
  display: block;
}

.form-status--success {
  background: #e8f5e9;
  color: #1b5e20;
}

.form-status--error {
  background: #fdecea;
  color: #b71c1c;
}

.form-card h2 {
  margin-bottom: 0.5rem;
}

.form-card > p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

.field--checkbox {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.field--checkbox input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin-top: 0.25rem;
  padding: 0;
  flex: 0 0 auto;
  accent-color: var(--blue-600);
}

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

.field--checkbox .field__error {
  flex-basis: 100%;
  margin-top: 0;
}

.legal {
  max-width: 780px;
}

.legal h2 {
  margin-bottom: 0.75rem;
}

body.no-scroll {
  overflow: hidden;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  color: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.cta h2 {
  color: var(--white);
}

.cta p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  margin: 0 auto 1.5rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue-900);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 1.5rem;
  font-size: 0.95rem;
}

.site-footer h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.9rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer__grid {
  display: grid;
  gap: 2rem;
}

.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

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

/* ---------- Reveal-Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Tablet & Desktop
   ========================================================================== */
@media (min-width: 600px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .form__row { grid-template-columns: 1fr 1fr; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .section {
    padding: 5rem 0;
  }

  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .trust__grid { grid-template-columns: repeat(4, 1fr); }
  .service-detail { grid-template-columns: 1fr 1fr; }
  .service-detail--reverse .service-detail__media { order: 2; }
  .hero__grid { grid-template-columns: 1.2fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1.3fr; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}

@media (min-width: 1024px) {
  :root {
    --header-h: 80px;
  }

  .nav {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    padding: 0;
    background: transparent;
    inset: auto;
  }

  .nav__list {
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
  }

  .nav__link {
    padding: 0.5rem 0.9rem;
  }

  .nav__cta {
    margin: 0 0 0 0.5rem;
  }

  .nav-toggle {
    display: none;
  }

  .site-header__inner {
    justify-content: space-between;
  }
}
