/* JULING-med – statische Seite
   Farben aus dem Logo: Indigo #362664, Lavendelblau #8392bd.
   Keine externen Schriften, keine externen Ressourcen. */

:root {
  --indigo: #362664;
  --indigo-deep: #271b4c;
  --lavender: #8392bd;
  --lavender-ink: #55649a;   /* dunkler, damit Text auf Weiß 4.5:1 erreicht */
  --mist: #eef0fa;
  --paper: #f7f8fc;
  --ink: #2a2540;
  --muted: #5a5775;
  --line: #d9ddee;
  --white: #ffffff;
  --on-indigo: #dfe3f4;

  --serif: "Times New Roman", Times, "Liberation Serif", "Nimbus Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 88px;
  --radius: 10px;
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
img { height: auto; }

a { color: var(--indigo); text-underline-offset: 0.18em; }
a:hover { color: var(--indigo-deep); }

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

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  background: var(--indigo);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Typografie ---------- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--indigo);
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.35rem, 1.3rem + 3.9vw, 4.1rem);
  line-height: 1.06;
  letter-spacing: -0.012em;
}
h2 {
  font-size: clamp(1.85rem, 1.3rem + 1.8vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.008em;
}
h3 {
  font-size: 1.4rem;
  line-height: 1.2;
}
p { margin: 0 0 1em; }
.lead {
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.275rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 34em;
}
.measure { max-width: 38em; }
h2 + .lead { margin-top: 1em; }

/* ---------- Icons ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.icon-badge {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--mist);
  color: var(--indigo);
}
.icon-badge .icon { width: 1.4rem; height: 1.4rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: 600 1rem/1 var(--sans);
  padding: 0.95rem 1.5rem;
  border-radius: 8px;
  border: 2px solid var(--indigo);
  background: var(--indigo);
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { background: var(--indigo-deep); border-color: var(--indigo-deep); color: var(--white); }
.btn--ghost { background: transparent; color: var(--indigo); }
.btn--ghost:hover { background: var(--indigo); color: var(--white); }
.btn--small { padding: 0.7rem 1.1rem; font-size: 0.95rem; }
.btn[disabled] { opacity: 0.65; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}
.brand { display: block; line-height: 0; }
.brand img { height: 66px; width: auto; display: block; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover { color: var(--indigo); border-bottom-color: var(--lavender); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 9px 14px;
  font: 600 0.95rem/1 var(--sans);
  color: var(--indigo);
  cursor: pointer;
}
.nav-toggle__bars {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
  border-radius: 2px;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, top 0.2s ease;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-open .nav-toggle__bars { background: transparent; }
.nav-open .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(60% 80% at 12% 0%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 70%),
    var(--mist);
  overflow: clip;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(20px, 4vw, 64px);
  align-items: center;
  padding-top: clamp(32px, 5vw, 72px);
}
.hero__copy { padding-bottom: clamp(24px, 5vw, 72px); }
.hero__grid { padding-bottom: clamp(24px, 4vw, 56px); }
.hero__copy h1 { margin-bottom: 0.45em; }
.hero__copy .lead { margin-bottom: 1.8em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__photo { position: relative; align-self: center; margin-bottom: 28px; }
.hero__photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(39, 27, 76, 0.22);
}
.chip {
  position: absolute;
  bottom: -22px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  background: var(--white);
  border-radius: 10px;
  padding: 12px 18px;
  box-shadow: 0 6px 22px rgba(54, 38, 100, 0.14);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.2;
  white-space: nowrap;
}
.chip strong { font: 700 1.5rem/1 var(--serif); color: var(--indigo); }
.chip--left { left: 0; }
.chip--right { right: 0; align-items: center; color: var(--indigo); font-weight: 600; }
.chip--right .icon { width: 1.1rem; height: 1.1rem; color: var(--lavender-ink); }

/* einmalige Einblendung beim Laden */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.hero__copy > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero__copy > :nth-child(2) { animation-delay: 0.1s; }
.hero__copy > :nth-child(3) { animation-delay: 0.2s; }
.hero__photo img { animation: fade 1s ease 0.25s both; }
.chip { animation: fade 0.8s ease 0.7s both; }

/* ---------- Sektionen ---------- */
.section { padding-block: clamp(56px, 8vw, 112px); }
.section--paper { background: var(--paper); }
.section--mist { background: var(--mist); }
.section__head { margin-bottom: clamp(32px, 4vw, 56px); }
.section__head .lead { margin-top: 1em; margin-bottom: 0; }

/* Warum JULING-med */
.why { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
.why__intro p { color: var(--muted); }
.points { list-style: none; margin: 0; padding: 0; }
.points li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding-block: 28px;
  border-top: 1px solid var(--line);
}
.points li:last-child { border-bottom: 1px solid var(--line); }
.points h3 { margin-bottom: 0.3em; }
.points p { margin: 0; color: var(--muted); }

/* Leistungen */
.offers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px) clamp(32px, 6vw, 96px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.offer { border-top: 2px solid var(--indigo); padding-top: 24px; }
.offer .icon-badge { margin-bottom: 18px; }
.offer h3 { margin-bottom: 0.4em; }
.offer p { color: var(--muted); margin: 0; max-width: 30em; }
.section__cta { margin-top: clamp(36px, 5vw, 60px); display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.section__cta p { margin: 0; color: var(--muted); }

/* Über uns */
.about {
  position: relative;
  background: var(--indigo);
  color: var(--on-indigo);
  overflow: hidden;
}
.about::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/monogramm-weiss.png") no-repeat right 3% center / auto 92%;
  opacity: 0.07;
  pointer-events: none;
}
.about .wrap { position: relative; z-index: 1; }
.about h2 { color: var(--white); }
.about__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.about__text p { max-width: 36em; }
.about__text h2 { margin-bottom: 0.6em; }
.about blockquote {
  margin: 0;
  padding-left: clamp(20px, 3vw, 36px);
  border-left: 3px solid var(--lavender);
}
.about blockquote p {
  font: italic 400 clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem) / 1.25 var(--serif);
  color: var(--white);
  margin-bottom: 0.7em;
}
.about blockquote footer { color: var(--on-indigo); font-size: 0.95rem; }

/* Service */
.service { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service__item { padding: 4px clamp(20px, 3vw, 40px); border-left: 1px solid var(--lavender); }
.service__item:first-child { padding-left: 0; border-left: 0; }
.service__item:last-child { padding-right: 0; }
.service__item .icon-badge { background: var(--white); margin-bottom: 18px; }
.service__item h3 { margin-bottom: 0.4em; }
.service__item p { margin: 0; color: var(--muted); }

/* Kontakt */
.contact { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact__intro { margin-bottom: 28px; }
.contact__intro p { color: var(--muted); max-width: 32em; margin: 0.9em 0 0; }

.form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(22px, 3.5vw, 36px);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid #b5bcda;
  border-radius: 8px;
  padding: 12px 14px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--lavender); outline-offset: 0; border-color: var(--indigo); }
.field--check { display: flex; gap: 12px; align-items: flex-start; }
.field--check input { margin-top: 0.35em; width: 1.1rem; height: 1.1rem; accent-color: var(--indigo); flex: none; }
.field--check label { font-weight: 400; font-size: 0.93rem; color: var(--muted); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin: 16px 0 0; font-weight: 600; }
.form__status:empty { display: none; }
.form__status.is-error { color: #a01c2b; }
.form-success {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(24px, 4vw, 40px);
}
.form-success h3 { margin-bottom: 0.4em; }
.form-success p { margin: 0; color: var(--muted); }

.address { margin-bottom: 20px; }
.address__row { display: flex; gap: 16px; align-items: flex-start; }
.address address { font-style: normal; }
.address strong { font: 700 1.3rem/1.2 var(--serif); color: var(--indigo); display: block; margin-bottom: 4px; }
.address a { font-weight: 600; }

.map {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(131, 146, 189, 0.16) 25%, transparent 25%) 0 0 / 28px 28px,
    linear-gradient(225deg, rgba(131, 146, 189, 0.16) 25%, transparent 25%) 0 0 / 28px 28px,
    var(--mist);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__consent {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px;
  text-align: center;
}
.map__consent .icon { width: 2rem; height: 2rem; color: var(--indigo); }
.map__consent p { margin: 0; font-size: 0.88rem; color: var(--muted); max-width: 26em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding-block: 36px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.site-footer img { height: 52px; width: auto; display: block; mix-blend-mode: multiply; }
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; margin: 0; padding: 0; }
.site-footer a { color: var(--ink); }
.site-footer small { color: var(--muted); }

/* ---------- Rechtstexte / Hilfsseiten ---------- */
.doc { padding-block: clamp(40px, 6vw, 80px); }
.doc h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); margin-bottom: 0.6em; }
.doc h2 { font-size: 1.55rem; margin: 1.8em 0 0.5em; }
.doc h3 { font-size: 1.2rem; margin: 1.4em 0 0.4em; }
.doc p, .doc li { max-width: 46em; }
.doc ul { padding-left: 1.2em; }
.todo { background: #fff2b3; color: #4a3a00; padding: 0.05em 0.35em; border-radius: 4px; font-weight: 600; }
.center-page { min-height: 60vh; display: grid; place-content: center; text-align: center; gap: 18px; padding: 40px var(--gutter); }
.center-page p { margin: 0 auto; color: var(--muted); max-width: 32em; }

/* ---------- Responsiv ---------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { padding-bottom: 8px; }
  .hero__photo { max-width: 640px; margin-inline: auto; width: 100%; }
  .why, .about__grid, .contact { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr; gap: 32px; }
  .service__item, .service__item:first-child, .service__item:last-child { padding: 0 0 0 20px; border-left: 2px solid var(--lavender); }
}

@media (max-width: 860px) {
  :root { --header-h: 72px; }
  .brand img { height: 52px; }
  .js .nav-toggle { display: inline-flex; }
  .site-nav { width: 100%; }
  .js .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 24px;
    box-shadow: 0 14px 24px rgba(54, 38, 100, 0.1);
  }
  .js.nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav li:last-child { border-bottom: 0; padding-top: 16px; }
  .site-nav a:not(.btn) { display: block; padding: 14px 2px; border-bottom: 0; }
  .site-nav .btn { width: 100%; }
  /* ohne JS: Navigation bleibt sichtbar und bricht um */
  html:not(.js) .site-header .wrap { flex-wrap: wrap; padding-block: 10px; }
  html:not(.js) .site-nav ul { flex-direction: row; flex-wrap: wrap; gap: 6px 18px; }
  html:not(.js) .site-nav li { border: 0; padding: 0; }
}

@media (max-width: 720px) {
  .offers { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .chip { padding: 9px 13px; font-size: 0.8rem; }
  .chip strong { font-size: 1.2rem; }
  .points li { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .site-header, .nav-toggle, .map, .form, .wa { display: none; }
}

/* ---- Fotos ---- */
.photo { margin: 0; }
.photo img { display: block; width: 100%; height: auto; border-radius: var(--radius); background: var(--mist); box-shadow: 0 10px 30px rgba(39, 27, 76, .14); }
.photo-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 28px); margin-top: clamp(32px, 5vw, 56px); }
.about__photo { margin-top: clamp(40px, 6vw, 72px); }
.about__photo .photo { max-width: 860px; margin-inline: auto; }
.about .photo img { box-shadow: 0 14px 40px rgba(0, 0, 0, .3); }
.service__photo { max-width: 860px; margin: clamp(36px, 5vw, 60px) auto 0; }
@media (max-width: 720px) {
  .photo-pair { grid-template-columns: 1fr; }
}

/* ---- WhatsApp-Button ---- */
.wa {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 14px 16px;
  border-radius: 999px;
  background: #14803f;
  color: #fff;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(10, 70, 35, .35);
  transition: background .2s ease, transform .2s ease;
}
.wa:hover { background: #0f6a34; transform: translateY(-2px); }
.wa:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px #14803f; }
.wa .icon { width: 1.5rem; height: 1.5rem; flex: none; }
@media (max-width: 560px) {
  .wa { right: 14px; bottom: 16px; padding: 15px; }
  .wa__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

.wa[hidden] { display: none; }
