:root {
  --lomi-farbe-gruen: rgb(0,123,60);
  --lomi-farbe-braun: rgb(59,21,14);
  --lomi-farbe-gruen-halbtransparent: rgba(0,123,60,.5);
  --lomi-farbe-gruen-fasttransparent: rgba(100,223,160,.3);
  --lomi-farbe-chat-text: #222;

  --lomi-farbe-standard: rgb(59,21,14);
  --lomi-farbe-braun: rgb(59,21,14);
  --lomi-farbe-rot: rgb(255, 38, 0);
  --lomi-farbe-dunkel: rgb(29, 10, 7);
  --lomi-farbe-braun-fasttransparent: rgba(159,121,114,.3);
  --lomi-farbe-rot-fasttransparent: rgba(225,51,44,.2);
  /*--lomi-farbe-halbtransparent: rgba(255,255,255,.5);*/
  --lomi-farbe-halbtransparent: rgba(242,242,242,.5);
  --lomi-farbe-dunkel-transparent: rgba(0,0,0,.5);
  /*--lomi-farbe-dunkel-fasttransparent: rgba(0,0,0,.1);*/
  --lomi-farbe-dunkel-fasttransparent: rgba(9,9,9,.1);
  --lomi-farbe-rot-halbtransparent: rgba(255, 38, 0, 0.3);
  --lomi-farbe-braun-halbtransparent: rgba(59,21,14,.5);
  
  --lomi-farbe-hell: rgba(213,225,223,.5);

  --lomi-header-height: 104px;


  --header-hoehe: 80px;
  --header-bild-abstand: 10px;
  --header-logotext-textgroesse: 18px;
  --header-menu-textgroesse: 18px;
  --header-menu-textfarbe: #424746;
  --header-menu-textfarbe-over: #afc7c4;
  --header-menu-abstand-hori: 20px;
  --header-menu-mobile-hintergrund: #D5E1DF;
  --header-menu-mobile-textgroesse: 22px;
  --header-menu-mobile-textfarbe: #424746;
  --header-menu-mobile-textfarbe-over: #222;
  --header-menu-breite: 768px;
}

@font-face{
    font-family: futura-lt-w01-light;
    font-style: normal;
    font-weight: 400;
    src: url(/assets/futura-lt-w05-light.woff2) format("woff2");
    unicode-range:U+0100-010F,U+0111-012B,U+012E-0130,U+0132-0137,U+0139-0149,U+014C-0151,U+0154-015F,U+0162-0177,U+0179-017C,U+0218-021B,U+02C9,U+02D8-02D9,U+02DB,U+02DD,U+0394,U+03A9,U+03BC,U+03C0,U+1E9E,U+20B9-20BA,U+20BC-20BD,U+2113,U+2126,U+212E,U+2202,U+2206,U+220F,U+2211-2212,U+2215,U+2219-221A,U+221E,U+222B,U+2248,U+2260,U+2264-2265,U+25CA,U+F8FF,U+FB01-FB02}
@font-face{
    font-family: futura-lt-w01-light;
    font-style: normal;
    font-weight: 400;
    src: url(/assets/futura-lt-w01-light.woff2) format("woff2");
    unicode-range:U+0000,U+000D,U+0020-007E,U+00A0-00FF,U+0110,U+0131,U+0152-0153,U+0160-0161,U+0178,U+017D-017E,U+0192,U+0237,U+02C6-02C7,U+02DA,U+02DC,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+20AC,U+2122
    }

html, body {
  height: 100%;
}

* {
  margin: 0;
  padding: 0;
  font-family: 'futura-lt-w01-light', sans-serif;
  font-weight: 200;
  color: var(--lomi-farbe-standard);
}

body {
  background: #fff;
  height: 100%;
  background-color: var(--lomi-farbe-halbtransparent);
}

.ganz {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 0px 1fr 0px;
  gap: 0px 0px;
  grid-auto-flow: row;
  grid-template-areas:
    "ganzoben"
    "ganzmitte"
    "ganzunten";
  height: 100vh;
}

.ganzoben { grid-area: ganzoben; }
.ganzunten { grid-area: ganzunten; }

.ganzmitte {
  display: grid;
  grid-template-columns: 0px 1fr 0px;
  grid-template-rows: 1fr;
  gap: 0px 0px;
  grid-auto-flow: row;
  grid-template-areas:
    "aussenlinks aussenmitte aussenrechts";
  grid-area: ganzmitte;
  height: 100%;
}

.aussenlinks { grid-area: aussenlinks; }
.aussenrechts { grid-area: aussenrechts; }

.aussenmitte {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 0px 0px;
  grid-auto-flow: row;
  grid-template-areas:
    "hauptoben"
    "hauptmitte"
    "hauptunten";
  grid-area: aussenmitte;
  width: 100%;
}

.hauptoben { grid-area: hauptoben; }
.hauptunten { grid-area: hauptunten; }

.hauptmitte {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 0px 0px;
  grid-auto-flow: row;
  grid-template-areas:
    "."
    "."
    ".";
  grid-area: hauptmitte;
  height: 100%;
}

/* INHALTE: */

/* -----------------------------------------------
   Grundgerüst
----------------------------------------------- */
.inhaltsblock {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
}

.inhaltsblockoben,
.inhaltsblockunten {
  background: #eee;
  width: 100%;
  min-height: 0;
  height: auto;
}

.inhaltsblockmitte {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  container-type: inline-size;
}

/* -----------------------------------------------
   50/50-Hauptbereich
----------------------------------------------- */
.inhaltsblockcontent,
.inhaltsblockcontent_revers {
  display: flex;
  flex-direction: row;
  width: 100%;
  flex: 1;
  container-type: inline-size;
  
  /* direkte Kinder (.contentblock) auf gleiche Höhe: */
  align-items: stretch; 
}

.contentblock {
  flex: 1 1 50%;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  container-type: inline-size;
  min-height: 0; /* Verhindert Overflow-Probleme in verschachtelten Flexboxen */
}

/* Links: Rand links, Fläche rechts */
[data-type="links"] {
  flex-direction: row;
}

/* Rechts: Fläche links, Rand rechts */
[data-type="rechts"] {
  flex-direction: row-reverse;
}

/* -----------------------------------------------
   Rand + Fläche
----------------------------------------------- */
.rand {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  transform-origin: left;
  opacity: 1;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

[data-type="rechts"] .rand {
  transform-origin: right;
}

.randwerkzeuge {
  opacity: 1;
  transform: scaleX(1);
}

.rand:not(.randwerkzeuge) {
  opacity: 0;
  transform: scaleX(0);
}

.flaeche {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: max-width 0.35s ease;
  align-self: stretch;
  min-height: 0;
  height: 100%;
  overflow: hidden; 
  background-color: var(--lomi-farbe-braun-halbtransparent);
  
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover; /* Standard: Füllt die Fläche komplett aus */
  background-color: transparent; /* Fallback-Farbe */

  transition: background-size 0.5s ease-in-out;
}


/* 
   Wenn das Bild zu groß ist, setzt das JS 'max-height', 
   aber auf den Wrapper anwenden, nicht direkt auf das img, 
   damit das img immer noch 100% vom Wrapper sein kann.
   Logik:
   1. Standard: height: 100% (gestreckt durch Flexbox).
   2. Wenn JS --target-height setzt, wird das zur Obergrenze.
*/
.img-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  max-height: 100%; 
  max-height: var(--target-height, 100%);
  overflow: hidden;
}

/* Bilder */
.flaeche img,
.flaeche picture {
  /*position: absolute;*/
  width: 1px;
  height: 1px;
  /*opacity: 0;*/
  overflow: hidden;
  pointer-events: none;
  
  width: 100%;
  height: 100%; /* vom Wrapper */
  height: auto;
  
  /* Für den Cover-Effekt (Vergrößern/Verkleinern ohne Verzerrung): */
  object-fit: cover; 
  
  display: block;
  object-position: center;
  transition: transform .5s ease-in-out;
}

.flaeche:hover > img,
.flaeche:hover > picture {
  transform: scale(1.1);
}
/*
.flaeche:hover {
  background-size: 110%;
}*/

/* URL aus dem src-Attribut des versteckten img-Tags lesen */
/*
.flaeche:has(img) {
  background-image: url(attr(src url)); /* Funktioniert in modernen Browsern (Chrome 120+, FF, Safari) */
}
*/

/*
.pos_links { object-position: left center !important; }
.pos_rechts { object-position: right center !important; }
.pos_center { object-position: center center !important; }
.pos_25 { object-position: 25% 50% !important; }*/
/* Positionierung überschreiben für Backgrounds */
.flaeche.pos_links { background-position: left center !important; }
.flaeche.pos_rechts { background-position: right center !important; }
.flaeche.pos_center { background-position: center center !important; }
.flaeche.pos_25 { background-position: 25% 50% !important; }

/* -----------------------------------------------
   Container Query: Mobile
----------------------------------------------- */
@container (max-width: 800px) {
  .inhaltsblockcontent {
    flex-direction: column;
  }
  .inhaltsblockcontent_revers {
    flex-direction: column-reverse;
  }

  .contentblock {
    width: 100%;
    flex: none;
    flex-direction: row;
    min-height: 0;
  }

  .flaeche {
    max-width: none;
    align-self: auto;
    height: auto;
    overflow: visible;
    background-color: transparent;
  }
  
  .flaeche img,
  .flaeche picture {
    height: auto;
  }
}

/* --- Typography & Styles (Rest wie bisher) --- */

h1 {
  margin-bottom: 2rem;
  line-height: 110%;
}
h1, h1 * {
  font-size: 100px;
}
h1 .hdazu,
h1 .hdazu * {
  display: block;
  font-size: 48px;
  line-height: 48px;
  margin-left: 1em;
  margin-right: 1em;
}

h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
}
h2, h2 * {
  font-size: 24px;
  line-height: 24px;
}
h2 .hdazu {
  display: block;
  margin-top: 10px;
  font-size: 18px;
  line-height: 22px;
}

#ueber, #philosophie, #massagen, #lomi, #fuss, #hotstone, #raindrop, #faszien, #schwangerschaft, #kontakt {
  scroll-margin-top: var(--header-hoehe);
}

h2::after {
  content: url(/media/wackelstrich.svg);
  display: block;
  width: 60%;
  margin-top: -6px;
  margin-left: -2px;
  transition: all 0.5s ease;
}

h2:hover::after {
  transform: scaleX(1.66);
  transform-origin: 0% 0%;
}

h3 {
  margin-bottom: 1rem;
  font-size: 14px;
  font-weight: bold;
  font-weight: 600;
}

p > em {
  font-size: 14px;
  padding: 17px;
  display: block;
  background-color: var(--lomi-farbe-dunkel-fasttransparent);
  font-weight: 600;
  font-style: italic;
  transition: all 0.5s ease;
}

p > em:hover {
  background-color: rgba(220,220,220,.5);
  border-radius: 13px;
}

p, p *, ul, li, li * {
  font-size: 16px;
  line-height: 28.8px;
}

b {
  letter-spacing: 1px;
  font-weight: bold;
  font-weight: 800;
}

p b, p * b, ul b, li b, li * b {
  font-size: 14px;
}

em b {
  text-decoration: italic;
}

p, p *, ul {
  margin-bottom: 1.8em;
}

ul {
  margin-left: 3em;
}

li {
  margin-bottom: 0.3em;
}

p a {
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.3 ease;
}

p a:hover {
  border-bottom: 2px solid var(--lomi-farbe-dunkel-transparent);
}

p:first-of-type {
  margin-top: 2em;
}

p:nth-of-type(even) {
  text-decoration: italic;
}

.nowrap {
  white-space: nowrap;
}

.artikel {
  padding: 1rem;
  align-self: stretch; /* Streckt Textcontainer auf Höhe des Bildes */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 99999;
  background-color: var(--lomi-farbe-halbtransparent);
  backdrop-filter: blur(4px) saturate(120%);
  -webkit-backdrop-filter: blur(4px) saturate(120%);
  isolation: isolate;
  transform: translateZ(0);
  will-change: transform, background-color;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04), 0 4px 30px rgba(0, 0, 0, 0.08);
  width: 100%;
  height: var(--lomi-header-height);
}

.hauptunten { margin-top: var(--lomi-header-height); }
.hauptoben { position: fixed; width: 100%; height: 76px; top: 0; }
.hauptmitte { margin-top: 74px; }

.banner, .banner * {
  font-weight: bold;
  font-weight: 800;
}

.bannerbox {
  background: var(--lomi-farbe-dunkel-fasttransparent) !important;
  padding: 0 13px !important;
}

header a { text-decoration: none; }

header .titel,
header .telefon {
  display: inline-block;
  white-space: nowrap;
}

header .titel {
  font-size: 48px;
  font-weight: 200;
  margin: 0 10px 0 110px;
  z-index: 0;
}

header .telefon {
  float: right;
  margin: 17px 23px 0;
  font-size: 32px;
  z-index: 99;
  font-weight: 200;
}

header .telefon a {
  color: var(--lomi-farbe-braun);
  font-weight: 200;
}

header .telefon a:hover {
  color: var(--lomi-farbe-rot);
}

header nav.menue {
  display: flex;
  gap: 2rem;
  margin: 0 auto;
  padding: 0 1rem;
  white-space: nowrap;
  font-size: 18px;
}

.hero {
  background-image: url('/media/hero6.jpg');
  background-size: cover;
  background-position: center top;
  width: 100%;
}

.hero .flaeche {
  max-width: 100%;
  text-align: center;
}

.hero a,
.inhaltsbutton {
  background-color: var(--lomi-farbe-braun-halbtransparent);
  color: #fff;
  margin: 17px;
  text-decoration: none;
  cursor: pointer;
}

.hero a:hover,
.inhaltsbutton:hover {
  background-color: var(--lomi-farbe-halbtransparent);
  color: var(--lomi-farbe-braun);
}

.inhaltsbutton {
  display: inline-block;
  clear: left;
  margin: 13px 17px;
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color 0.5s ease-in-out, color 0.5s ease-in-out;
  letter-spacing: 0.075em;
  font-size: 18px;
  height: 2.25em;
  line-height: 2.25em;
  padding: 0 1.75em;
  text-align: center;
  white-space: nowrap;
}

.hero .inhaltsbutton {
  background-color: var(--lomi-farbe-halbtransparent);
  color: var(--lomi-farbe-braun);
}

.hero .inhaltsbutton:hover {
  background-color: var(--lomi-farbe-braun-halbtransparent);
  color: #fff;
}

.hero h1 {
  padding-top: 17px;
  padding-bottom: 17px;
}

.hero .artikel,
.hero .flaeche {
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  background-color: transparent;
  border-radius: 0;
}

.hero .banner,
.hero .banner * {
  font-size: 42px;
  color: #fff;
  font-weight: 200;
}

.hero .banner {
  padding: 23px 0;
  margin: 23px 0;
}

.rota {
    animation: perspektive 8s infinite linear;
}
@media (prefers-reduced-motion: reduce) {
  .rota {
      animation: none;
  }
}
@keyframes perspektive {
    0% {transform:perspective(300px) rotateY(0deg)}
    25% {transform:perspective(300px) rotateY(90deg)}
    50% {transform:perspective(300px) rotateY(180deg)}
    75% {transform:perspective(300px) rotateY(270deg)}
    100% {transform:perspective(300px) rotateY(360deg)}
}
.hero .bildbox {
  width: 100%;
  text-align: center;
}
.hero .rota {
  max-width: 300px;
  display: inline-block;
}

.menuebild {
  max-height: 55px;
  min-width: 40px;
  width: auto;
  margin-right: auto;
}

.logo {
  display: flex;
  flex-direction: row;
  gap: var(--header-bild-abstand);
  align-items: center;
  padding-left: 20px;
  transform: all 0.5 ease-in-out;
}

.logo a:hover {
  color: var(--header-menu-textfarbe-over);
  animation: perspektive 8s infinite linear;
}

.logotext {
  white-space: nowrap;
}

ul {
  list-style: none;
}
ul li {
  position: relative;
  list-style: none;
}

ul li:before {
  content: "";
  position: absolute;
  top: 6px;
  left: -26px;
  width: 16px;
  height: 16px;
  background-image: url('/media/herz.png');
}

.unterschrift {
  width: 160px;
  max-width: 160px;
}

a.aktionslink {
  display: inline-block;
  border: 0;
  background-color: var(--lomi-farbe-dunkel-fasttransparent);
  padding: 3px 12px;
  margin-bottom: 7px;
  text-decoration: none;
  color: var(--lomi-farbe-braun);
  cursor: pointer;
}

a.aktionslink:hover {
  border: 0;
  background-color: var(--lomi-farbe-braun-halbtransparent);
  color: #fff;
}

footer {
  display: flex;
  width: 100%;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 3px;
  text-align: center;
  background-color: var(--lomi-farbe-dunkel-fasttransparent);
}

footer * {
  color: var(--lomi-farbe-standard);
}

footer a {
  text-decoration: none;
  margin: 0 3px;
  color: var(--lomi-farbe-standard);
  white-space: nowrap;
}

footer a:hover {
  color: var(--lomi-farbe-dunkel);
  background-color: var(--lomi-farbe-halbtransparent);
}

footer a.by {
  color: var(--lomi-farbe-standard);
}

footer img {
  margin-bottom: -4px;
}

footer a.by:hover {
  color: var(--lomi-farbe-dunkel);
  background-color: var(--lomi-farbe-halbtransparent);
}

/* Header & Menu Styles */
header {
  height: var(--header-hoehe);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transition: background-color 0.3s ease;
}
.menupic {
  height: calc(var(--header-hoehe) * 0.7);
  width: auto;
}

.logotext {
  font-size: var(--header-logotext-textgroesse);
  text-decoration: none;
  color: inherit;
}

.menu-box {
  display: flex;
  align-items: center;
  margin-right: 20px;
}

.menu {
  display: flex;
  gap: var(--header-menu-abstand-hori);
}

.menu a {
  font-size: var(--header-menu-textgroesse);
  color: var(--header-menu-textfarbe);
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 5px 0;
  position: relative;
}

.menu a:hover {
  color: var(--header-menu-textfarbe-over);
}

.menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--header-menu-textfarbe-over);
  transition: width 0.3s ease;
}

.menu a:hover::after {
  width: 100%;
}

.mobile-menu-icon-open,
.mobile-menu-icon-close {
  display: flex;
  align-items: center;
}

.mobile-menu-icon-open a,
.mobile-menu-icon-close a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-icon-open img,
.mobile-menu-icon-close img {
  height: 30px;
  width: 30px;
  cursor: pointer;
}

.mobile-menu-icon-open {
  display: none;
}

.mobile-menu-box {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: var(--header-menu-mobile-hintergrund);
  z-index: 999;
  transition: right 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  padding: 20px;
  box-sizing: border-box;
}

.mobile-menu-box.active {
  right: 0;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  flex-grow: 1;
  justify-content: center;
}

.mobile-menu a {
  font-size: var(--header-menu-mobile-textgroesse);
  color: var(--header-menu-mobile-textfarbe);
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
  text-align: center;
  width: 100%;
  padding: 10px 0;
}

.mobile-menu a:hover {
  color: var(--header-menu-mobile-textfarbe-over);
  transform: translateX(5px);
}

html {
  scroll-behavior: smooth;
}

body.mobile-menu-open {
  overflow: hidden;
}

@media (min-width: calc(var(--header-menu-breite) + 1px)) {
  .mobile-menu-box {
    display: none !important;
  }
}

.hider {
  display: none;
}

@media (max-width: 760px) {
  .menu {
    display: none;
  }
  .bildbox {
    display: none;
  }
  .mobile-menu-icon-open {
    display: flex;
  }
  .mobile-menu-icon-close {
    display: flex;
  }
  .logotext {
    margin-left: 0;
  }
  .no-mobile {
    display: none !important;
  }
}

@media (max-width: 550px) {
  .inhaltsbutton {
    width: calc(100% - 28px);
    padding: 0;
  }
}

@media (max-width: 380px) {
  .hero h1, .hero h1 * {
    font-size: 80px;
  }
  .hero h1 .hdazu {
    font-size: 24px;
    line-height: 42px;
  }
  .hero .banner,
  .hero .banner * {
    padding: 13px 0;
  }
}

.inhaltsblockcontentlinksflaeche,
.inhaltsblockcontentrechtsflaeche {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  box-sizing: border-box;
}

.horizent {
  display: flex;
  width: 100%;
  justify-content: center;
}
.horirechts {
  display: flex;
  width: 100%;
  justify-content: flex-end;
}
.vertmitte  {
  display: flex;
  height: 100%;
  align-items: center;
}
.vertunten  {
  display: flex;
  height: 100%;
  align-items: flex-end;
}

.infoboxlinks {
  text-align: right;
}
.infoboxlinks::after {
  content: '';
}

.info {
}

.hintergrund_hell {
  background-color: var(--lomi-farbe-hell);
}

.info .artikel {
  background-color: transparent;
}

.infotitel p {
  font-style: italic;
  letter-spacing: 6px;
  font-size: 24px;
  line-height: 24px;
}

.kommentare p {
  font-style: italic;
}

.kommentare p .autor {
  font-style: normal;
}