/* ============================================================
   Selbstgehostete Schriften — kein Google-CDN, kein Datenabfluss
   Dateien nach media/templates/site/cassiopeia_krisch/fonts/
   Quelle: gwfh.mranftl.com · Lizenzen: OFL bzw. Apache 2.0
   ============================================================ */

/* great-vibes-regular */
@font-face {
  font-display: swap;
  font-family: 'Great Vibes';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/great-vibes-v21-latin_latin-ext-regular.woff2') format('woff2');
}

/* comfortaa-regular */
@font-face {
  font-display: swap;
  font-family: 'Comfortaa';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/comfortaa-v47-latin_latin-ext-regular.woff2') format('woff2');
}
/* comfortaa-600 */
@font-face {
  font-display: swap;
  font-family: 'Comfortaa';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/comfortaa-v47-latin_latin-ext-600.woff2') format('woff2');
}

/* open-sans-regular */
@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/open-sans-v44-latin_latin-ext-regular.woff2') format('woff2');
}
/* open-sans-500 */
@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/open-sans-v44-latin_latin-ext-500.woff2') format('woff2');
}
/* open-sans-700 */
@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/open-sans-v44-latin_latin-ext-700.woff2') format('woff2');
}

/* ============================================================
   praxis-krisch.at — Cassiopeia Child Template
   Neuaufbau 2026 · Julia Grossauer

   Gestaltung rekonstruiert aus dem alten Template "fxone"
   (Helix-Ultimate-Derivat von Fairgrafix):
     Farben   → templates/fxone/css/custom.css
     Schrift  → Template-Parameter in fx4jo_template_styles
   Nachgebaut, nicht kopiert — keine Fremdtemplate-Dateien.

   Ablage: media/templates/site/cassiopeia_krisch/css/user.css
   ============================================================ */

:root {
  /* Originalpalette */
  --pk-beige:       #d9c0a9;   /* Topbar, Akzent      (custom.css: var--beige)   */
  --pk-beige-tief:  #c8b19b;   /* Footer, Bottom      (custom.css: var--beigeMO) */
  --pk-grau:        #9D9E9E;   /* Überschriften       (custom.css: var--grau1)   */
  --pk-grau-hell:   #D9DADA;   /* Linien, Flächen     (custom.css: var--grau2)   */
  --pk-text:        #475360;   /* Fließtext           (Preset: text_color)       */
  --pk-link:        #001830;   /* Links               (Preset: link_color)       */
  --pk-weiss:       #fdfbf8;
  --pk-rand:        rgba(157,158,158,.28);

  /* Originaltypografie */
  --pk-script: "Great Vibes", "Segoe Script", cursive;   /* H1, H2, Navigation */
  --pk-rund:   "Comfortaa", "Trebuchet MS", sans-serif;  /* H3–H6              */
  --pk-text-f: "Open Sans", system-ui, "Segoe UI", sans-serif;

  --pk-mass: min(1140px, 100% - 3rem);
  --pk-luft: clamp(3.5rem, 8vw, 7rem);
}

/* --- Grundlagen ------------------------------------------- */

body.pk-home {
  margin: 0;
  font-family: var(--pk-text-f);
  font-size: clamp(1rem, .96rem + .2vw, 1.06rem);
  line-height: 1.75;
  color: var(--pk-text);
  background: var(--pk-weiss);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--pk-link); }

.pk-section { padding-block: var(--pk-luft); }
.pk-section > .pk-inner { width: var(--pk-mass); margin-inline: auto; }
.pk-section--sand { background: #faf7f4; }

/* Überschriften: Schreibschrift wie im Original.
   Great Vibes hat eine sehr kleine x-Höhe — daher die großen Grade
   (Original: H1 52px, H2 44px) und die enge Zeilenhöhe. */
.pk-section h2 {
  font-family: var(--pk-script);
  font-weight: 400;
  font-size: clamp(2.4rem, 1.6rem + 3vw, 2.75rem);  /* ~44px */
  line-height: 1.25;
  color: var(--pk-grau);
  margin: 0 0 1.4rem;
}

.pk-section h3 {
  font-family: var(--pk-rund);
  font-weight: 600;
  font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem);  /* ~24px */
  line-height: 1.35;
  color: var(--pk-grau);
  margin: 0 0 .6rem;
}

.pk-section p { margin: 0 0 1.1rem; max-width: 68ch; }
.pk-section p:last-child { margin-bottom: 0; }

/* --- Kopfzeile: Topbar + klebender Header ------------------ */

.pk-topbar {
  background: var(--pk-beige);
  color: var(--pk-weiss);
  font-size: .875rem;
  padding: 4px 0;
}
.pk-topbar a { color: var(--pk-weiss); text-decoration: none; }
.pk-topbar > div { width: var(--pk-mass); margin-inline: auto;
  display: flex; gap: 1.2rem; justify-content: flex-end; flex-wrap: wrap; }

.pk-header {
  position: sticky; top: 0; z-index: 99;
  background: var(--pk-weiss);
  border-bottom: 1px solid var(--pk-beige);
  transition: all .5s ease;
}
.pk-header > div { width: var(--pk-mass); margin-inline: auto;
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  min-height: 60px; }
.pk-header .pk-logo { margin-right: auto; }
.pk-header .pk-logo img { height: 50px; width: auto; display: block; }

.pk-header nav a {
  font-family: var(--pk-script);
  font-size: 1.45rem;
  color: var(--pk-link);
  text-decoration: none;
  line-height: 60px;
}
.pk-header nav a:hover { color: var(--pk-beige-tief); }

/* --- Hero -------------------------------------------------- */

.pk-hero {
  position: relative;
  min-height: clamp(400px, 66vh, 700px);
  display: grid; place-items: center; text-align: center;
  color: var(--pk-weiss);
  background: var(--pk-grau) center / cover no-repeat;
  padding: var(--pk-luft) 1.5rem;
}
.pk-hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(60,55,50,.25), rgba(60,55,50,.55)); }
.pk-hero > * { position: relative; z-index: 1; width: min(46rem, 100%); }

.pk-hero h1 {
  font-family: var(--pk-script);
  font-weight: 400;
  font-size: clamp(2.8rem, 1.8rem + 4vw, 3.25rem);   /* ~52px */
  line-height: 1.25;
  color: var(--pk-weiss);
  margin: 0 0 1.2rem;
  text-wrap: balance;
}
.pk-hero p { margin: 0 auto 2.2rem; max-width: 40rem; color: rgba(255,255,255,.94); }

/* --- Buttons (Original: uppercase, 16px, 10/15 Innenabstand) */

.pk-btn {
  display: inline-block;
  font: 500 1rem/1.75 var(--pk-text-f);
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: 3px;
  transition: background-color .2s, color .2s, border-color .2s;
}
.pk-btn--voll { background: var(--pk-beige); color: var(--pk-weiss); }
.pk-btn--voll:hover, .pk-btn--voll:focus-visible { background: var(--pk-beige-tief); color: var(--pk-weiss); }
.pk-btn--linie { border-color: currentColor; color: inherit; }
.pk-btn--linie:hover, .pk-btn--linie:focus-visible { background: var(--pk-weiss); color: var(--pk-link); border-color: var(--pk-weiss); }
.pk-btn + .pk-btn { margin-left: .6rem; }

.pk-btn:focus-visible, .pk-section a:focus-visible, .pk-header a:focus-visible {
  outline: 3px solid var(--pk-beige-tief);
  outline-offset: 3px;
}

/* --- Zierteiler -------------------------------------------- */

.pk-teiler { display: block; width: 120px; height: auto;
  margin: 0 auto 2.5rem; opacity: .8; }

/* --- Zweispalter ------------------------------------------- */

.pk-split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 860px) {
  .pk-split { grid-template-columns: 1fr 1fr; }
  .pk-split--bild-links .pk-split__bild { order: -1; }
}
.pk-split__bild img { width: 100%; height: auto; display: block; }

/* --- Kartenraster ------------------------------------------ */

.pk-karten { display: grid; gap: 1.5rem; margin-top: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.pk-karte { background: var(--pk-weiss); border: 1px solid var(--pk-rand);
  padding: 2rem 1.8rem; text-align: center; }
.pk-karte img { width: 48px; height: 48px; margin-bottom: 1.1rem; }
.pk-karte p { font-size: .95rem; text-align: left; }

/* --- Qualifikationen --------------------------------------- */

.pk-quali { display: grid; gap: 2rem 3rem; }
@media (min-width: 700px) { .pk-quali { grid-template-columns: 1fr 1fr; } }
.pk-quali h4 { font: 600 1.15rem/1.3 var(--pk-rund); color: var(--pk-grau); margin: 0 0 1rem; }
.pk-quali ul { margin: 0; padding: 0; list-style: none; }
.pk-quali li { position: relative; padding-left: 1.4rem; margin-bottom: .45rem; font-size: .95rem; }
.pk-quali li::before { content: ""; position: absolute; left: 0; top: .68em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--pk-beige); }

/* --- Rundes Portrait (Original: .imgrund) ------------------ */

.pk-portrait img { width: 100%; max-width: 300px; height: auto;
  aspect-ratio: 1; object-fit: cover;   /* Quelle ist 300x380 — sonst Ei statt Kreis */
  display: block; border-radius: 100%; margin-inline: auto; }
.pk-portrait figcaption { text-align: center; margin-top: 1.2rem;
  font-family: var(--pk-rund); font-size: 1.35rem; color: var(--pk-grau); }
.pk-portrait figcaption span { display: block; font-family: var(--pk-text-f);
  font-size: .9rem; color: var(--pk-text); margin-top: .35rem; }

/* --- Siegel ------------------------------------------------ */

.pk-siegel { text-align: center; padding-block: clamp(2.5rem, 5vw, 4rem); }
.pk-siegel img { width: 120px; height: auto; }

/* --- Abschluss-CTA ----------------------------------------- */

.pk-cta { position: relative; text-align: center; color: var(--pk-weiss);
  background: var(--pk-beige-tief) center / cover no-repeat; padding-block: var(--pk-luft); }
.pk-cta::after { content: ""; position: absolute; inset: 0; background: rgba(90,75,62,.55); }
.pk-cta > .pk-inner { position: relative; z-index: 1; }
.pk-cta h2 { color: var(--pk-weiss); }
.pk-cta p { margin-inline: auto; color: rgba(255,255,255,.94); }

/* --- Fußbereich (Original: beige, weiße Schrift) ----------- */

.pk-bottom { background: var(--pk-beige-tief); color: var(--pk-weiss);
  padding: 40px 0; font-size: .875rem; line-height: 1.6; }
.pk-bottom a { color: var(--pk-weiss); }
.pk-bottom a:hover { color: #efefef; }
.pk-bottom > div { width: var(--pk-mass); margin-inline: auto;
  display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.pk-bottom h4 { font: 400 1.25rem/1.2 var(--pk-rund); color: var(--pk-weiss);
  letter-spacing: .4px; margin: 0 0 1.25rem; }
.pk-bottom ul { list-style: none; margin: 0; padding: 0; }
.pk-bottom p { margin: 0 0 .4rem; }

.pk-footer { background: var(--pk-beige-tief); color: var(--pk-weiss); }
.pk-footer > div { width: var(--pk-mass); margin-inline: auto;
  padding: 10px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .875rem; }

/* --- Anker / Bewegung -------------------------------------- */

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 5rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============================================================
   Anbindung an Joomla — ergänzt 24.08.2026
   Diese Regeln verbinden die pk-Optik mit dem, was Joomlas
   Module und com_content tatsächlich ausgeben.
   ============================================================ */

/* Navigation kommt aus einem Menü-Modul: <ul class="mod-menu"> */
.pk-header nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.6rem);
  flex-wrap: wrap;
}
.pk-header nav li { margin: 0; }
.pk-header nav .mod-menu__sub { display: none; }   /* keine Unterebenen im One-Pager */

/* Topbar-Module nebeneinander */
.pk-topbar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.2rem; }
.pk-topbar li { margin: 0; }

/* Fußspalten: jedes Modul ist eine Rasterzelle */
.pk-bottom > div > * { margin: 0; }

/* Inhaltsbereich.
   Die pk-Abschnitte des One-Pagers laufen randlos über die volle Breite.
   Alles andere — Impressum, Datenschutz, Kontaktformular, Systemmeldungen —
   bekommt die normale Satzbreite. */
.pk-main { width: 100%; }

.pk-main .com-content-article__body > *:not(.pk-hero):not(.pk-cta):not(.pk-section):not(.pk-siegel),
.pk-main > .com-content-article > .page-header,
.pk-main > .com-contact,
.pk-main > .com-users,
.pk-main > .com-content-category-blog {
  width: var(--pk-mass);
  margin-inline: auto;
}

/* Abstand unter dem klebenden Kopf für Seiten ohne Hero */
.pk-main > .com-content-article > .page-header,
.pk-main > .com-contact { padding-top: var(--pk-luft); }

/* Systemmeldungen von Joomla nicht über die ganze Breite kleben */
#system-message-container { width: var(--pk-mass); margin-inline: auto; padding-top: 1.5rem; }

/* --- Korrekturen nach dem ersten Sichttest, 24.08.2026 --- */

/* Cassiopeia unterstreicht jeden Link (a) und zusätzlich den aktiven
   Menüpunkt (.mod-list li.active > a). Beides passt nicht zur Optik. */
.pk-header .pk-logo,
.pk-header .pk-logo:hover,
.pk-header nav .mod-list li.active > a,
.pk-header nav a:hover { text-decoration: none; }

.pk-header .pk-logo { color: inherit; }

/* Aktive Seite dezent über die Farbe kennzeichnen statt per Unterstrich */
.pk-header nav .mod-list li.active > a { color: var(--pk-beige-tief); }

/* Blog-/Übersichtsansichten von com_content ebenfalls auf Satzbreite */
.pk-main > .blog,
.pk-main > .blog-featured,
.pk-main > .com-content-category { width: var(--pk-mass); margin-inline: auto; padding-top: var(--pk-luft); }

/* ============================================================
   Kopfzeile: einreihige Navigation + mobiles Menü
   Ergänzt 25.08.2026

   Ursache des Umbruchs: mod-menu.min.css setzt auf .mod-menu ein
   flex-direction: column. Unsere Regel weiter oben setzte zwar
   display:flex, aber keine Richtung — also blieb die Spalte stehen
   und jeder Eintrag wurde wegen line-height:60px zu einer 60-px-Zeile.
   ============================================================ */

.pk-header > div { flex-wrap: nowrap; }

.pk-header nav ul {
  flex-direction: row;          /* schlägt .mod-menu { flex-direction: column } */
  flex-wrap: nowrap;
  white-space: nowrap;
}
.pk-header nav a {
  line-height: 1.6;             /* statt 60px — zentriert wird über align-items */
  display: block;
}
.pk-header .pk-logo { flex: 0 0 auto; }

/* --- Burger-Knopf ------------------------------------------ */

.pk-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;                  /* 44x44 = empfohlene Mindestgröße für Touch */
  height: 44px;
  padding: 12px 8px;
  border: 0;
  background: none;
  cursor: pointer;
  flex: 0 0 auto;
}
.pk-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--pk-link);
  transition: transform .25s ease, opacity .2s ease;
}
.pk-burger:focus-visible {
  outline: 3px solid var(--pk-beige-tief);
  outline-offset: 3px;
}
.pk-header.is-open .pk-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.pk-header.is-open .pk-burger span:nth-child(2) { opacity: 0; }
.pk-header.is-open .pk-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Unter 880 px: Navigation klappt auf ------------------- */

@media (max-width: 879.98px) {
  .pk-burger { display: flex; }

  .pk-header nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: var(--pk-weiss);
    border-bottom: 1px solid var(--pk-beige);
    box-shadow: 0 14px 26px rgba(60, 55, 50, .12);
    max-height: calc(100dvh - 60px);
    overflow-y: auto;
  }
  .pk-header.is-open nav { display: block; }

  .pk-header nav ul {
    flex-direction: column;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
    white-space: normal;
  }
  .pk-header nav li + li { border-top: 1px solid var(--pk-grau-hell); }
  .pk-header nav a {
    padding: .9rem 1.5rem;
    font-size: 1.6rem;
    line-height: 1.5;
  }
}

@media (max-width: 400px) {
  .pk-header .pk-logo img { height: 38px; }
}

/* --- Fußspalten (Chrome "pkspalte") ----------------------- */

.pk-bottom .pk-spalte > *:last-child { margin-bottom: 0; }
.pk-bottom .pk-spalte li { margin-bottom: .35rem; }
.pk-bottom .pk-spalte a { text-decoration: none; }
.pk-bottom .pk-spalte a:hover { text-decoration: underline; }

/* --- Honeypot (Spam-Falle im Kontaktformular) --------------
   Bewusst nicht display:none — manche Bots ignorieren das.
   Stattdessen unsichtbar außerhalb des sichtbaren Bereichs,
   für Screenreader zusätzlich per aria-hidden verborgen. ---- */

.pk-hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ============================================================
   Unterseiten: Kontakt, Impressum, Datenschutz
   Ergänzt 26.08.2026

   Diese Seiten laufen durch dasselbe pk-Gerüst (Kopf/Fuß bereits
   einheitlich), zeigen im Inhaltsbereich aber noch Joomlas
   Bootstrap-Standardtypografie. Hier wird das an die pk-Optik
   der Startseite angeglichen: Seitentitel in Schreibschrift,
   Zwischenüberschriften in Comfortaa, Kontaktformular im
   Beige-Akzent. Die Autor/Kategorie/Datum-Zeile bei Impressum
   und Datenschutz wird nicht per CSS versteckt, sondern über die
   Artikel-Anzeigeoptionen abgeschaltet (sauberer als display:none).
   ============================================================ */

/* Seitentitel (H1): "Kontakt"/"Olivia Krisch", "Impressum", "Datenschutz" */
.pk-main .page-header h1 {
  font-family: var(--pk-script);
  font-weight: 400;
  font-size: clamp(2.4rem, 1.6rem + 3vw, 2.75rem);
  line-height: 1.25;
  color: var(--pk-grau);
  margin: 0 0 .3rem;
}

/* Zwischenüberschriften: "Kontakt"/"Kontaktformular" (com_contact H2)
   und "Verantwortliche", "Cookies" usw. im Artikeltext (H4) */
.pk-main .com-content-article__body h2,
.pk-main .com-content-article__body h3,
.pk-main .com-content-article__body h4,
.pk-main .com-contact__container h2,
.pk-main .com-contact__form h2 {
  font-family: var(--pk-rund);
  font-weight: 600;
  font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem);
  line-height: 1.35;
  color: var(--pk-grau);
  margin: 2rem 0 .8rem;
}
.pk-main .com-content-article__body > h2:first-child,
.pk-main .com-content-article__body > h3:first-child,
.pk-main .com-content-article__body > h4:first-child,
.pk-main .com-contact__container > h2:first-child {
  margin-top: 0;
}

/* Lesbare Zeilenlänge für Fließtext (v.a. Datenschutz ist lang) */
.pk-main .com-content-article__body p,
.pk-main .com-content-article__body ul,
.pk-main .com-content-article__body ol {
  max-width: 68ch;
}

/* Kontaktdaten-Block (Position, Adresse, Telefon) */
.pk-main .com-contact__container dl.dl-horizontal {
  margin-bottom: 1.5rem;
}
.pk-main .com-contact__container dl.dl-horizontal dt {
  font-family: var(--pk-rund);
  font-weight: 600;
  color: var(--pk-grau);
  float: none;
  width: auto;
  text-align: left;
}
.pk-main .com-contact__container dl.dl-horizontal dd {
  margin-left: 0;
  margin-bottom: .5rem;
}

/* Kontaktformular: Karte im Sand-Ton statt Bootstrap-"well" */
.pk-main .com-contact form.well {
  background: #faf7f4;
  border: 1px solid var(--pk-rand);
  border-radius: 4px;
  box-shadow: none;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 42rem;
}

.pk-main .com-contact label {
  font-family: var(--pk-rund);
  font-weight: 600;
  font-size: .95rem;
  color: var(--pk-grau);
}

.pk-main .com-contact .form-control {
  font-family: var(--pk-text-f);
  color: var(--pk-text);
  border: 1px solid var(--pk-grau-hell);
  border-radius: 3px;
  box-shadow: none;
}
.pk-main .com-contact .form-control:focus {
  border-color: var(--pk-beige-tief);
  box-shadow: 0 0 0 .2rem rgba(200, 177, 155, .3);
}

.pk-main .com-contact .btn.btn-primary {
  background: var(--pk-beige);
  border-color: var(--pk-beige);
  color: var(--pk-weiss);
  text-transform: uppercase;
  font: 500 1rem/1.75 var(--pk-text-f);
  border-radius: 3px;
  padding: 10px 22px;
}
.pk-main .com-contact .btn.btn-primary:hover,
.pk-main .com-contact .btn.btn-primary:focus {
  background: var(--pk-beige-tief);
  border-color: var(--pk-beige-tief);
}

/* --- Zitat oberhalb "Ueber mich" ---------------------------- */
.pk-zitat {
  margin: 0 0 3rem;
  padding: 0;
  border: 0;
  text-align: center;
}
.pk-zitat p {
  font-family: var(--pk-script);
  font-weight: 400;
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem);
  line-height: 1.4;
  color: var(--pk-grau);
  max-width: 44ch;
  margin: 0 auto;
}
.pk-zitat p::before,
.pk-zitat p::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  background: var(--pk-beige);
  margin: 0 auto .9rem;
}
