/* ==========================================================================
   Inteama Online-Praxis – Onepager
   Farben und Schriften abgeleitet von inteama.com (Divi-Theme):
   Text #604842 · Rosé #e3b3ad · Mocca #8d6a61 · Graublau #a1bfc6 · Taupe #c6a697
   Überschriften: Sorts Mill Goudy (kursiv) · Fließtext: Open Sans
   ========================================================================== */

@font-face { font-family: "Sorts Mill Goudy"; src: url("fonts/SortsMillGoudy-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Sorts Mill Goudy"; src: url("fonts/SortsMillGoudy-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("fonts/OpenSans-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("fonts/OpenSans-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("fonts/OpenSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Allura"; src: url("fonts/Allura-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  /* Markenfarben (Website) */
  --brown: #604842;
  --rose: #e3b3ad;
  --mocha: #8d6a61;
  --blue: #a1bfc6;
  --taupe: #c6a697;

  /* abgeleitet */
  --ink: #3f2a26;          /* dunkler Ton für Überschriften */
  --rose-deep: #9a5650;    /* Rosé, abgedunkelt für lesbaren Text (Kontrast 5:1) */
  --cream: #faf6f1;        /* Seitenhintergrund */
  --sand: #f3e9e2;         /* Kartenhintergrund (Taupe-Tönung) */
  --line: rgba(96, 72, 66, .14);

  --serif: "Sorts Mill Goudy", "Iowan Old Style", Georgia, serif;
  --sans: "Open Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --script: "Allura", "Snell Roundhand", cursive;

  --page: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(227, 179, 173, .16), transparent 60%),
    radial-gradient(900px 600px at 100% 100%, rgba(161, 191, 198, .12), transparent 60%),
    var(--cream);
  color: var(--brown);
  font-family: var(--sans);
  font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a { color: inherit; }

:focus-visible { outline: 2px solid var(--rose-deep); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 10;
  text-decoration: none; border-radius: 4px;
}
.skip-link:focus { top: 1rem; }

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

/* --- Vierfarb-Streifen (wie unter dem Header der bisherigen Website) --- */
.stripe {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right,
    var(--brown) 0 25%, var(--rose) 25% 50%, var(--mocha) 50% 75%, var(--blue) 75% 100%);
}

/* --- Header --- */
.site-header { padding-top: clamp(18px, 3vw, 28px); position: relative; z-index: 3; }
.brand {
  display: inline-flex; flex-direction: column; align-items: flex-end;
  text-decoration: none; padding-bottom: 14px;
}
.brand img { width: clamp(130px, 16vw, 178px); }
.brand-sub {
  margin-top: -6px;
  font-family: var(--sans); font-size: .78rem; letter-spacing: .08em;
  color: var(--mocha);
  padding: 0 0 3px 18px;
  background: linear-gradient(to right, transparent 0, var(--rose) 18px, var(--rose) 60%, var(--blue) 60%) bottom / 100% 2px no-repeat;
}

/* ==========================================================================
   Startseite
   ========================================================================== */
.stage { position: relative; padding-bottom: clamp(48px, 7vw, 88px); }

/* Tür – rechts, läuft weich nach links und unten in den Hintergrund aus */
.door {
  position: absolute; z-index: 0;
  top: 0; right: var(--gutter);
  width: calc(46% - var(--gutter));
  bottom: clamp(150px, 15vw, 210px);
  margin: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 20%), linear-gradient(to bottom, #000 62%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, #000 20%), linear-gradient(to bottom, #000 62%, transparent 100%);
  mask-composite: intersect;
}
.door img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 40% 50%;
  animation: door-in 2.4s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes door-in { from { transform: scale(1.06); opacity: 0; } to { transform: none; opacity: 1; } }

.intro {
  position: relative; z-index: 1;
  width: min(60%, 640px);
  padding-top: clamp(48px, 7vw, 92px);
}

.headline {
  margin: 0;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  line-height: 1.04; letter-spacing: -.01em;
  color: var(--ink);
}
.headline-1 { display: block; font-size: clamp(2.3rem, 1.4rem + 3.4vw, 4.2rem); }
.headline-2 { display: block; font-size: clamp(2.7rem, 1.6rem + 4.2vw, 5rem); color: var(--rose-deep); margin-top: .08em; }

.rule {
  width: 120px; height: 2px; border: 0; margin: clamp(22px, 3vw, 34px) 0;
  background: linear-gradient(to right, var(--rose-deep), var(--rose));
}

.intro p { margin: 0 0 1em; max-width: 36em; }

.lead { font-size: 1.08em; }

.door-line {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.35rem, 1.1rem + .9vw, 1.7rem);
  line-height: 1.3; color: var(--ink);
  margin: 1.2em 0 1.3em !important;
  padding-left: 18px;
  border-left: 2px solid var(--rose);
}

.intro strong { font-weight: 600; color: var(--ink); }

/* --- Kontaktbereich --- */
.contact {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) auto minmax(0, .95fr);
  align-items: center;
  gap: clamp(24px, 3.5vw, 48px);
  margin-top: clamp(40px, 5vw, 64px);
}

.cta {
  position: relative; display: inline-block;
  margin: 0 0 28px;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.45rem, 1.15rem + .8vw, 1.8rem);
  line-height: 1.2; color: var(--rose-deep);
  white-space: nowrap;
  padding: .45em .9em .5em .7em;
  isolation: isolate;
}
.cta .brush {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  overflow: visible;
}

.mail {
  display: grid; grid-template-columns: 34px 1fr; gap: 16px;
  align-items: start;
  margin: 0 0 32px;
}
.mail svg { width: 34px; height: 26px; margin-top: 4px; color: var(--rose-deep); }
.mail p { margin: 0; }
.mail a {
  font-weight: 600; color: var(--ink);
  text-decoration: none; overflow-wrap: anywhere;
  background: linear-gradient(var(--rose), var(--rose)) left bottom / 100% 2px no-repeat;
  transition: background-size .3s ease, color .3s ease;
}
.mail a:hover { color: var(--rose-deep); background-size: 100% 40%; }
.mail em { font-family: var(--serif); font-size: 1.08em; }

.signoff { margin: 0; }
.signature {
  display: block;
  font-family: var(--script); font-weight: 400;
  font-size: clamp(3rem, 2.4rem + 2vw, 3.9rem);
  line-height: 1; color: var(--rose-deep);
  margin: 4px 0 0 -4px;
  transform: rotate(-4deg); transform-origin: left center;
}

.portrait {
  margin: 0;
  width: clamp(200px, 21vw, 268px); aspect-ratio: 1;
  border-radius: 50%;
  padding: 7px; background: #fff;
  box-shadow: 0 24px 50px -24px rgba(63, 42, 38, .45), 0 0 0 1px rgba(96, 72, 66, .06);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; border-radius: 50%; }

.card {
  position: relative;
  background: rgba(243, 233, 226, .92);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-radius: 4px 14px 14px 4px;
  padding: 24px 26px 24px 28px;
  box-shadow: 0 18px 40px -28px rgba(63, 42, 38, .35);
  font-size: .94rem; line-height: 1.5;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px;
  width: 2px; background: linear-gradient(to bottom, var(--rose-deep), var(--rose));
}
.card-practice {
  margin: 0;
  font-family: var(--serif); font-weight: 400; font-size: 1.32rem; line-height: 1.25;
  color: var(--ink);
}
.card-practice span { letter-spacing: .08em; }
.card-sub { margin: 4px 0 18px; color: var(--mocha); }
.card-name {
  margin: 0 0 10px; padding-top: 16px; border-top: 1px solid var(--line);
  font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.32rem; line-height: 1.25;
  color: var(--ink);
}
.card ul { list-style: none; margin: 0; padding: 0; }
.card li {
  position: relative; padding-left: 20px; margin: 0 0 7px;
}
.card li:last-child { margin-bottom: 0; }
.card li::before {
  content: ""; position: absolute; left: 0; top: .2em;
  width: 9px; height: 18px;
  background: url("img/pusteblume.png") center / contain no-repeat;
  opacity: .85;
}

/* --- Einblenden beim Laden --- */
.reveal { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.reveal-2 { animation-delay: .12s; }
.reveal-3 { animation-delay: .24s; }
.reveal-4 { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

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

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { margin-top: auto; padding-bottom: 28px; }
.site-footer nav {
  display: flex; justify-content: center; align-items: center; gap: 22px;
  padding-top: 22px;
  font-family: var(--serif); font-size: 1.08rem;
}
.site-footer nav a { text-decoration: none; color: var(--brown); transition: color .2s; }
.site-footer nav a:hover, .site-footer nav a[aria-current="page"] { color: var(--rose-deep); }
.site-footer .sep { width: 1px; height: 1.1em; background: var(--mocha); opacity: .5; }

/* ==========================================================================
   Rechtstexte (Impressum, Datenschutz, 404)
   ========================================================================== */
.legal {
  max-width: 760px;
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(48px, 7vw, 88px);
}
.legal h1 {
  margin: 0 0 .5em;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(2.3rem, 1.6rem + 2.4vw, 3.4rem); line-height: 1.1; color: var(--ink);
}
.legal h2 {
  margin: 2.2em 0 .5em;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 1.55rem; line-height: 1.25; color: var(--ink);
}
.legal h3 { margin: 1.6em 0 .3em; font-size: 1em; font-weight: 600; color: var(--ink); }
.legal p, .legal ul { margin: 0 0 1em; }
.legal ul { padding-left: 1.2em; }
.legal a { color: var(--rose-deep); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal .back {
  display: inline-block; margin-bottom: 28px;
  font-size: .92rem; text-decoration: none; color: var(--mocha);
}
.legal .back:hover { color: var(--rose-deep); }
.legal .meta { color: var(--mocha); font-size: .92rem; }

.facts {
  display: grid; grid-template-columns: minmax(180px, 34%) 1fr;
  gap: 10px 28px; margin: 1.5em 0 0; padding: 26px 28px;
  background: rgba(243, 233, 226, .7); border-radius: 12px;
}
.facts dt { font-weight: 600; color: var(--ink); overflow-wrap: break-word; }
.facts dd { margin: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .contact { grid-template-columns: minmax(0, 1fr) auto; }
  .contact-text { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .stage { display: flex; flex-direction: column; }
  .door {
    position: relative; order: -1; right: auto;
    width: calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter));
    height: clamp(260px, 62vw, 440px);
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  }
  .door img { object-position: 52% 45%; }
  .intro { width: 100%; padding-top: 8px; }
  .site-header .stripe { margin-bottom: 0; }
}

@media (max-width: 600px) {
  .contact { grid-template-columns: 1fr; justify-items: start; }
  .portrait { justify-self: center; }
  .card { width: 100%; }
  .cta { white-space: normal; font-size: 1.32rem; padding: .45em .6em .5em .5em; }
  .facts { grid-template-columns: 1fr; gap: 2px; padding: 20px; }
  .facts dd { margin-bottom: 12px; }
}
