/**
 * Kalziumrechner Theme - Main Styles
 * Built with Tailwind CSS
 */

/* Import Fonts - Must be before @tailwind */

/**
 * Custom Font Face Declarations
 * Local Google Fonts for GDPR compliance
 */

/* Poppins Bold - Headings */

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../../fonts/poppins/Poppins-Bold.woff2') format('woff2');
}

/* Roboto Light - Introduction Text */

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../../fonts/roboto/Roboto-Light.woff2') format('woff2');
}

/* Roboto Regular - Body Text */

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../../fonts/roboto/Roboto-Regular.woff2') format('woff2');
}

/* Roboto Bold - Buttons & Strong Text */

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../../fonts/roboto/Roboto-Bold.woff2') format('woff2');
}

/* Roboto Condensed Light - Navigation */

@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../../fonts/roboto/RobotoCondensed-Light.woff2') format('woff2');
}

/* Roboto Condensed Regular - Navigation */

@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../../fonts/roboto/RobotoCondensed-Regular.woff2') format('woff2');
}

/* Roboto Condensed Bold - Navigation (Bold items) */

@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../../fonts/roboto/RobotoCondensed-Bold.woff2') format('woff2');
}

/* Import Component Styles */

/**
 * Calculator Components
 * Styles specific to the calcium calculator
 */

/* Embed: flex column, nav-content-area handles all scrolling */

.kalziumrechner-embed {
  display: flex;
  flex-direction: column;
}

/* Calculator Header – sticks to top of nav-content-area once intro scrolls away */

.calculator-header {
  padding-bottom: 24px;
  padding-top: 16px;
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 2rem;
  align-items: start;
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Soft horizontal shadow below calculator-header */

.calculator-header::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 10%;
  right: 10%;
  height: 8px;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,0,0,0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* Header Left Side - Headline + Age Input */

.header-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.calculator-question {
  margin: 0px;
  font-family: Poppins, sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 700;
  --tw-text-opacity: 1;
  color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}

.age-input-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
}

.age-input-group label {
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 500;
  --tw-text-opacity: 1;
  color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}

.age-input-group input {
  width: 6rem;
}

/* Header Right Side - Results Grid */

.header-right {
  display: flex;
  flex-direction: column;
}

.results-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.section-inner .is-layout-flex .result-label { margin-bottom: 0.5rem; }

.result-label {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  --tw-text-opacity: 1;
  color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}

.result-value {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 700;
  --tw-text-opacity: 1;
  color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}

/* Progress Bar in Result Box */

.section-inner .is-layout-flex .result-box .progress-bar { margin-top: 0.5rem; }

.result-box .progress-bar {
  margin-top: 0.5rem;
  height: 0.5rem;
  width: 100%;
  overflow: hidden;
  border-radius: 9999px;
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}

.result-box .progress-fill {
  height: 100%;
  --tw-bg-opacity: 1;
  background-color: rgb(102 126 234 / var(--tw-bg-opacity, 1));
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 400ms;
}

/* Result Text Box */

.calculator-result-text {
  margin-top: 24px;
  font-size: 0.875rem;
  line-height: 1.25rem;
  --tw-text-opacity: 1;
  color: rgb(55 65 81 / var(--tw-text-opacity, 1));
  line-height: 1.55;
}

/* Footnotes inside calculator header */

.section-inner .is-layout-flex .calculator-fussnoten { margin-top: 0.5rem; }

.calculator-fussnoten {
  margin-top: 0.5rem;
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

.calculator-fussnoten p {
  margin: 0px;
}

.section-inner .is-layout-flex .calculator-fussnoten ol { margin-top: 0.25rem; }

.calculator-fussnoten ol {
  margin-top: 0.25rem;
}

.calculator-fussnoten ol > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.125rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.125rem * var(--tw-space-y-reverse));
}

.calculator-fussnoten ol {
  padding-left: 1rem;
}

.calculator-fussnoten a {
  word-break: break-all;
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
  text-decoration-line: underline;
}

/* Food Categories Wrapper – natural flow, nav-content-area scrolls */

.food-categories-wrapper {
  overflow-x: hidden;
  scrollbar-width: none; /* Firefox */
}

.food-categories-wrapper::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Age Input Section */

.age-input-section {
  margin-bottom: 32px;
}

.section-inner .is-layout-flex .age-input-section label { margin-bottom: 0.5rem; }

.age-input-section label {
  margin-bottom: 0.5rem;
  display: block;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 600;
}

.age-input-section input {
  width: 100%;
  max-width: 20rem;
}

/* Result Boxes Grid */

.result-boxes {
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 24px;
}

@media (min-width: 768px) {

  .result-boxes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.result-box {
  border-radius: 15px;
  text-align: center;
  --tw-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  --tw-shadow-colored: 0 5px 20px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  background-color: rgba(192, 187, 172, 0.7); /* Initial red color (0% status) with 70% opacity */
}

.section-inner .is-layout-flex .result-box h3 { margin-bottom: 0.5rem; }

.result-box h3 {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  --tw-text-opacity: 1;
  color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}

.section-inner .is-layout-flex .result-box .value { margin-top: 0.25rem; }

.result-box .value {
  margin-top: 0.25rem;
  display: block;
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
  --tw-text-opacity: 1;
  color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}

/* Progress Bar */

.progress-section {
  margin-bottom: 32px;
}

.progress-container {
  position: relative;
  height: 2rem;
  width: 100%;
  overflow: hidden;
  border-radius: 9999px;
  --tw-bg-opacity: 1;
  background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1));
}

.progress-fill {
  height: 100%;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 400ms;
}

.progress-fill.low {
  --tw-bg-opacity: 1;
  background-color: rgb(239 68 68 / var(--tw-bg-opacity, 1));
}

.progress-fill.optimal {
  --tw-bg-opacity: 1;
  background-color: rgb(34 197 94 / var(--tw-bg-opacity, 1));
}

.progress-fill.high {
  --tw-bg-opacity: 1;
  background-color: rgb(249 115 22 / var(--tw-bg-opacity, 1));
}

.progress-text {
  position: absolute;
  inset: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 700;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Food Categories */

#foodCategories > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));
}

.category {
  margin-bottom: 0.25rem;
}

.category-header {
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-weight: 700;
  --tw-text-opacity: 1;
  color: rgb(17 24 39 / var(--tw-text-opacity, 1));
  border-bottom: 1.5px solid #111;
}

.category-header:hover {
  opacity: 0.7;
}

.category-header .toggle {
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 400;
}

.category-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  -moz-column-gap: 1.5rem;
       column-gap: 1.5rem;
  background: transparent;
}

.category-content.collapsed {
  display: none;
}

/* Food Items */

.food-item {
  display: grid;
  align-items: center;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  grid-template-columns: 1fr auto 70px auto;
  gap: 0.3rem;
  background: transparent;
}

.food-item label {
  cursor: pointer;
  font-weight: 400;
  --tw-text-opacity: 1;
  color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}

.calcium-badge {
  white-space: nowrap;
  border-radius: 9999px;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
  font-size: 0.75rem;
  line-height: 1rem;
  background-color: rgba(192, 187, 172, 0.7);
  color: #374151;
  font-weight: 500;
}

.food-item input[type="number"] {
  width: 100%;
  text-align: right;
}

.food-item .unit {
  font-weight: 500;
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}

/* Empty State */

.empty-state {
  padding-top: 48px;
  padding-bottom: 48px;
  padding-left: 24px;
  padding-right: 24px;
  text-align: center;
}

.empty-state p {
  margin-bottom: 24px;
  font-size: 1.125rem;
  line-height: 1.75rem;
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}

.empty-state a {
  --tw-text-opacity: 1;
  color: rgb(102 126 234 / var(--tw-text-opacity, 1));
  text-decoration-line: underline;
}

/* Loading State */

.loading-spinner {
  display: inline-block;
  height: 1.5rem;
  width: 1.5rem;
}

@keyframes spin {

  to {
    transform: rotate(360deg);
  }
}

.loading-spinner {
  animation: spin 1s linear infinite;
  border-radius: 9999px;
  border-width: 4px;
  border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
  --tw-border-opacity: 1;
  border-top-color: rgb(102 126 234 / var(--tw-border-opacity, 1));
}

/* Mobile Responsiveness */

@media (max-width: 768px) {
  /* Stack header vertically on mobile, no sticky */
  .calculator-header {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 24px;
    position: relative;
  }

  .results-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .header-right {
    justify-content: flex-start;
  }

  .calculator-question {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }

  /* Food categories: unconstrained height, single column */
  .food-categories-wrapper {
    height: auto !important;
    max-height: none !important;
    overflow: visible;
  }

  .category-content {
    grid-template-columns: 1fr;
  }

  .food-item {
    grid-template-columns: 1fr auto;
    gap: 0.25rem 0.5rem;
  }

  .food-item label {
    font-size: 0.875rem;
    line-height: 1.25rem;
    grid-column: 1 / -1;
  }

  .calcium-badge {
    grid-column: 1 / -1;
    justify-self: start;
  }

  /* input (col 1) + unit "g" (col 2) stay on the same row */
  .food-item input[type="number"] {
    text-align: left;
  }

  .result-box .value {
    font-size: 1.75rem;
    line-height: 2rem;
  }
}

/**
 * Section-specific Styles
 * Layouts for Einleitung, Kalziumrechner, Osteoporose sections
 */

/* Section: Kalziumrechner */

#section-kalziumrechner .calculator-container {
  margin-left: auto;
  margin-right: auto;
  max-width: 64rem;
}

/* Section Animations */

.content-section.active {
  animation: fadeInUp 0.4s ease-out;
  /* Ensure final state after animation */
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Adjustments */

@media (max-width: 768px) {
  #section-kalziumrechner h2 {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }

  .info-cards {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .two-column {
    gap: 24px;
  }
}

*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

/*! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com
 */

/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: #e5e7eb; /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  -moz-tab-size: 4; /* 3 */
  -o-tab-size: 4;
     tab-size: 4; /* 3 */
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  font-size: 100%; /* 1 */
  font-weight: inherit; /* 1 */
  line-height: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/

dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/

:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

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

/* Make elements with the HTML hidden attribute stay hidden by default */

[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}

input:where([type='text']),input:where(:not([type])),input:where([type='email']),input:where([type='url']),input:where([type='password']),input:where([type='number']),input:where([type='date']),input:where([type='datetime-local']),input:where([type='month']),input:where([type='search']),input:where([type='tel']),input:where([type='time']),input:where([type='week']),select:where([multiple]),textarea,select {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-color: #fff;
  border-color: #6b7280;
  border-width: 1px;
  border-radius: 0px;
  padding-top: 0.5rem;
  padding-right: 0.75rem;
  padding-bottom: 0.5rem;
  padding-left: 0.75rem;
  font-size: 1rem;
  line-height: 1.5rem;
  --tw-shadow: 0 0 #0000;
}

input:where([type='text']):focus, input:where(:not([type])):focus, input:where([type='email']):focus, input:where([type='url']):focus, input:where([type='password']):focus, input:where([type='number']):focus, input:where([type='date']):focus, input:where([type='datetime-local']):focus, input:where([type='month']):focus, input:where([type='search']):focus, input:where([type='tel']):focus, input:where([type='time']):focus, input:where([type='week']):focus, select:where([multiple]):focus, textarea:focus, select:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  --tw-ring-inset: var(--tw-empty,/*!*/ /*!*/);
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: #2563eb;
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  border-color: #2563eb;
}

input::-moz-placeholder, textarea::-moz-placeholder {
  color: #6b7280;
  opacity: 1;
}

input::placeholder,textarea::placeholder {
  color: #6b7280;
  opacity: 1;
}

::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}

::-webkit-date-and-time-value {
  min-height: 1.5em;
  text-align: inherit;
}

::-webkit-datetime-edit {
  display: inline-flex;
}

::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field {
  padding-top: 0;
  padding-bottom: 0;
}

select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
  -webkit-print-color-adjust: exact;
          print-color-adjust: exact;
}

select:where([multiple]),select:where([size]:not([size="1"])) {
  background-image: initial;
  background-position: initial;
  background-repeat: unset;
  background-size: initial;
  padding-right: 0.75rem;
  -webkit-print-color-adjust: unset;
          print-color-adjust: unset;
}

input:where([type='checkbox']),input:where([type='radio']) {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  padding: 0;
  -webkit-print-color-adjust: exact;
          print-color-adjust: exact;
  display: inline-block;
  vertical-align: middle;
  background-origin: border-box;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  flex-shrink: 0;
  height: 1rem;
  width: 1rem;
  color: #2563eb;
  background-color: #fff;
  border-color: #6b7280;
  border-width: 1px;
  --tw-shadow: 0 0 #0000;
}

input:where([type='checkbox']) {
  border-radius: 0px;
}

input:where([type='radio']) {
  border-radius: 100%;
}

input:where([type='checkbox']):focus,input:where([type='radio']):focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  --tw-ring-inset: var(--tw-empty,/*!*/ /*!*/);
  --tw-ring-offset-width: 2px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: #2563eb;
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
}

input:where([type='checkbox']):checked,input:where([type='radio']):checked {
  border-color: transparent;
  background-color: currentColor;
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

input:where([type='checkbox']):checked {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
}

@media (forced-colors: active)  {

  input:where([type='checkbox']):checked {
    -webkit-appearance: auto;
       -moz-appearance: auto;
            appearance: auto;
  }
}

input:where([type='radio']):checked {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");
}

@media (forced-colors: active)  {

  input:where([type='radio']):checked {
    -webkit-appearance: auto;
       -moz-appearance: auto;
            appearance: auto;
  }
}

input:where([type='checkbox']):checked:hover,input:where([type='checkbox']):checked:focus,input:where([type='radio']):checked:hover,input:where([type='radio']):checked:focus {
  border-color: transparent;
  background-color: currentColor;
}

input:where([type='checkbox']):indeterminate {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");
  border-color: transparent;
  background-color: currentColor;
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

@media (forced-colors: active)  {

  input:where([type='checkbox']):indeterminate {
    -webkit-appearance: auto;
       -moz-appearance: auto;
            appearance: auto;
  }
}

input:where([type='checkbox']):indeterminate:hover,input:where([type='checkbox']):indeterminate:focus {
  border-color: transparent;
  background-color: currentColor;
}

input:where([type='file']) {
  background: unset;
  border-color: inherit;
  border-width: 0;
  border-radius: 0;
  padding: 0;
  font-size: unset;
  line-height: inherit;
}

input:where([type='file']):focus {
  outline: 1px solid ButtonText;
  outline: 1px auto -webkit-focus-ring-color;
}

body {
  position: relative;
  margin: 0px;
  min-height: 100vh;
  padding: 0px;
  font-family: Roboto, sans-serif;
    background-color: #e5e5e5;
    font-weight: 400; /* Roboto Regular */
    overflow-x: hidden;
}

/* Fixed background via pseudo-element – works on iOS Safari (background-attachment:fixed doesn't) */

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: url('../../img/VIA_Kalziumrechner_BG.jpg') center / cover no-repeat;
    z-index: -1;
  }

/* Headings - Poppins Bold */

h1, h2, h3, h4, h5, h6 {
  font-family: Poppins, sans-serif;
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-size: 2.5rem;
  line-height: 2.5rem;
}

h2 {
  font-size: 1.75rem;
  line-height: 2rem;
}

h3 {
  font-size: 1.75rem;
  line-height: 2rem;
}

h4 {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

h5 {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

h6 {
  font-size: 1rem;
  line-height: 1.5rem;
}

/* Introduction Text - Roboto Light */

p {
  font-family: Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
    font-weight: 400;
}

a {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

input[type="number"] {
  border-radius: 8px;
  border-width: 1px;
  --tw-border-opacity: 1;
  border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

input[type="number"]:focus {
  border-color: transparent;
  outline: 2px solid transparent;
  outline-offset: 2px;
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(102 126 234 / var(--tw-ring-opacity, 1));
}

.\!container {
  width: 100% !important;
}

.container {
  width: 100%;
}

@media (min-width: 640px) {

  .\!container {
    max-width: 640px !important;
  }

  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {

  .\!container {
    max-width: 768px !important;
  }

  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {

  .\!container {
    max-width: 1024px !important;
  }

  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {

  .\!container {
    max-width: 1280px !important;
  }

  .container {
    max-width: 1280px;
  }
}

@media (min-width: 1536px) {

  .\!container {
    max-width: 1536px !important;
  }

  .container {
    max-width: 1536px;
  }
}

/* Typography Components */

.fussnote {
    font-size: 0.75rem;
    line-height: 1rem;
  }

.einleitungstext {
  font-family: Roboto, sans-serif;
    /* padding-bottom: 1rem; */
    font-weight: 300;
    font-size: 1.3rem;
    /* margin-bottom: 2rem; */
}

/* SPA Container */

.spa-container {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
    /* min-height: calc(100vh - 30px);
    max-height: calc(100vh - 30px); */
}

/* Main Navigation */

.main-navigation {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1000;
  width: 80%;
  max-width: 72rem;
  font-family: Roboto Condensed, sans-serif;
  --tw-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  --tw-shadow-colored: 0 10px 40px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px);
    overflow: visible; /* Allow dropdowns to expand outside */
    display: flex;
    flex-direction: column;
    max-height: 100px;
    transition: all 1.2s ease-in-out;
    border-radius: 50px; /* Fully rounded ends (pill shape) */
    border: 3px solid white; /* White border */
}

/* Expanded state - when content is shown */

.main-navigation.has-content {
  top: 1.25rem;
    transform: translate(-50%, 0);
    max-height: calc(100vh - 80px);
    height: calc(100vh - 80px);
}

/* Navigation Header (menu area) - fixed at top */

.nav-header {
  padding-left: 32px;
  padding-right: 32px;
  padding-top: 16px;
  padding-bottom: 16px;
    /* background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); */
    flex-shrink: 0;
    z-index: 10;
    overflow: visible; /* Allow dropdowns to expand */
    position: relative;
}

/* Soft horizontal shadow below nav-header - very subtle and wide */

.nav-header::after {
    content: '';
  position: absolute;
  bottom: -8px;      /* unterhalb des Headers */
  left: 10%;         /* Abstand vom Rand */
  right: 10%;
  height: 8px;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,0,0,0.15) 0%, transparent 70%);
  pointer-events: none;
  }

/* Content Area inside Navigation - scrollable, fills remaining nav height */

.nav-content-area {
  padding-left: 32px;
  padding-right: 32px;
  padding-bottom: 32px;
    display: none;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    margin-bottom: 40px;
}

.main-navigation.has-content .nav-content-area {
    display: block;
  }

.nav-menu {
  margin: 0px;
  display: flex;
  width: 100%;
  list-style-type: none;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0px;
}

/* On Home (nav not expanded): center items vertically */

.main-navigation:not(.has-content) .nav-menu {
    align-items: center;
  }

.nav-item {
  position: relative;
  cursor: pointer;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
    font-weight: 300; /* Roboto Condensed Light */
}

.nav-item.center {
  font-size: 1.75rem;
  line-height: 2rem;
  --tw-text-opacity: 1;
  color: rgb(102 126 234 / var(--tw-text-opacity, 1));
    font-weight: 300; /* Roboto Condensed Light */
}

.nav-item:not(.center) {
  font-size: 1.125rem;
  line-height: 1.75rem;
  --tw-text-opacity: 1;
  color: rgb(17 24 39 / var(--tw-text-opacity, 1));
    font-weight: 300; /* Roboto Condensed Light */
}

.nav-item a {
  color: inherit;
  text-decoration-line: none;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
    position: relative;
}

.nav-item a:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
  }

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0px;
    right: 0px;
    height: 3px;
    border-radius: 0.125rem;
    background: linear-gradient(90deg, #667eea, #764ba2);
  }

/* Kalziumrechner Logo in Navigation */

.nav-item.center a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.zum-text {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.25rem;
    max-height: 2rem;
    overflow: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.4s ease, margin 0.4s ease;
}

/* Hide "zum" text when navigation is at top */

.main-navigation.has-content .zum-text {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    max-height: 0;
    margin: 0;
  }

.kalziumrechner-logo {
  height: 2.5rem;
  width: auto;
    display: block;
}

/* Remove hover effect for kalziumrechner-navi */

.kalziumrechner-navi a:hover {
    text-decoration: none !important;
  }

/* Plain-text title only used in mobile panel – hidden on desktop */

.kalziumrechner-title {
    display: none;
  }

/* Dropdown Menu */

.section-inner .is-layout-flex .nav-dropdown { margin-top: 0.5rem; }

.nav-dropdown {
  visibility: hidden;
  position: absolute;
  top: 100%;
  right: 0px;
  margin-top: 0.5rem;
  min-width: 200px;
  border-radius: 15px;
  opacity: 0;
  --tw-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  --tw-shadow-colored: 0 5px 20px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
    background: #414246;
    padding: 0.5rem 0;
}

.nav-item.has-dropdown:hover .nav-dropdown {
  visibility: visible;
  opacity: 1;
}

.dropdown-menu {
  margin: 0px;
  list-style-type: none;
  padding: 0px;
}

.dropdown-menu li {
  margin: 0px;
  padding: 0px;
}

.dropdown-menu a {
  display: block;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 1rem;
  line-height: 1.5rem;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
  text-decoration-line: none;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.dropdown-menu a:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}

/* Separator in Footer */

.footer-nav .separator {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  --tw-text-opacity: 1;
  color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}

/* Content Sections (inside navigation) */

.content-section {
  display: none;
  opacity: 0;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 400ms;
}

.content-section.active {
  display: block;
  opacity: 1;
}

.content-section .section-inner {
    margin-top: 2rem;
  }

/* .content-section h2 {
    @apply text-3xl font-heading font-bold mb-6 text-gray-900;
  } */

.content-section .page-content {
  line-height: 1.625;
  --tw-text-opacity: 1;
  color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}

/* Gutenberg block alignment */

/* aligncenter can be on the block wrapper OR on the inner figure */

.section-inner .aligncenter,
  .section-inner .wp-block-image.aligncenter,
  .section-inner .wp-block-image:has(.aligncenter) {
    margin-left: auto;
    margin-right: auto;
    display: block;
  }

.section-inner .alignleft,
  .section-inner .wp-block-image:has(.alignleft) {
    float: left;
    margin-right: 1.5rem;
  }

.section-inner .alignright,
  .section-inner .wp-block-image:has(.alignright) {
    float: right;
    margin-left: 1.5rem;
  }

/*
   * Gutenberg-Fix: .is-layout-flex > :is(*, div) { margin: 0 } hat Spezifität (0,1,1)
   * und überschreibt Tailwind-Utilities wie .mb-3 (0,1,0).
   * Diese Overrides haben (0,3,0) > (0,1,1) und stellen die Utility-Werte wieder her.
   */

.section-inner .is-layout-flex .mb-0 { margin-bottom: 0; }

.section-inner .is-layout-flex .mb-1 { margin-bottom: 0.25rem; }

.section-inner .is-layout-flex .mb-2 { margin-bottom: 0.5rem; }

.section-inner .is-layout-flex .mb-3 { margin-bottom: 0.75rem; }

.section-inner .is-layout-flex .mb-4 { margin-bottom: 1rem; }

.section-inner .is-layout-flex .mb-5 { margin-bottom: 1.25rem; }

.section-inner .is-layout-flex .mb-6 { margin-bottom: 1.5rem; }

.section-inner .is-layout-flex .mb-8 { margin-bottom: 2rem; }

.section-inner .is-layout-flex .mb-10 { margin-bottom: 2.5rem; }

.section-inner .is-layout-flex .mb-12 { margin-bottom: 3rem; }

.section-inner .is-layout-flex .mt-0 { margin-top: 0; }

.section-inner .is-layout-flex .mt-1 { margin-top: 0.25rem; }

.section-inner .is-layout-flex .mt-2 { margin-top: 0.5rem; }

.section-inner .is-layout-flex .mt-3 { margin-top: 0.75rem; }

.section-inner .is-layout-flex .mt-4 { margin-top: 1rem; }

.section-inner .is-layout-flex .mt-5 { margin-top: 1.25rem; }

.section-inner .is-layout-flex .mt-6 { margin-top: 1.5rem; }

.section-inner .is-layout-flex .mt-8 { margin-top: 2rem; }

.section-inner .is-layout-flex .my-0 { margin-top: 0; margin-bottom: 0; }

.section-inner .is-layout-flex .my-1 { margin-top: 0.25rem; margin-bottom: 0.25rem; }

.section-inner .is-layout-flex .my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }

.section-inner .is-layout-flex .my-3 { margin-top: 0.75rem; margin-bottom: 0.75rem; }

.section-inner .is-layout-flex .my-4 { margin-top: 1rem; margin-bottom: 1rem; }

/* SVG images: object-fit:cover without explicit height collapses to 0 */

.section-inner img[src$=".svg"],
  .section-inner .wp-block-image img[src$=".svg"] {
    width: 100%;
    height: auto !important;
    -o-object-fit: unset !important;
       object-fit: unset !important;
  }

/* White Content Boxes */

/* Two-Column Layout (Einleitung) */

/* Single Column Layout (Osteoporose) */

/* Result Boxes */

.result-box {
  border-radius: 8px;
  text-align: center;
  --tw-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  --tw-shadow-colored: 0 5px 20px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    padding:5px;
    background-color: rgba(192, 187, 172, 0.7);
}

/* Progress Bar */

.progress-fill.optimal {
  --tw-bg-opacity: 1;
  background-color: rgb(34 197 94 / var(--tw-bg-opacity, 1));
}

.progress-fill.high {
  --tw-bg-opacity: 1;
  background-color: rgb(249 115 22 / var(--tw-bg-opacity, 1));
}

/* Info Cards */

/* Calculator Preview */

/* Footer */

.site-footer {
  position: fixed;
  bottom: 0px;
  left: 0px;
  right: 0px;
  z-index: 999;
  background-color: transparent;
  padding: 16px;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

/* Inline footer (inside nav-content-area) only shown on mobile */

.site-footer--inline {
    display: none;
  }

.footer-nav {
  margin-left: auto;
  margin-right: auto;
  display: flex;
  width: 80%;
  max-width: 72rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-family: Roboto Condensed, sans-serif;
    font-weight: 300; /* Roboto Condensed Light */
    position: relative;
}

.footer-nav li {
    list-style: none;
  }

.footer-nav a {
  --tw-text-opacity: 1;
  color: rgb(17 24 39 / var(--tw-text-opacity, 1));
  text-decoration-line: none;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
    font-weight: 300; /* Roboto Condensed Light */
    display: inline-block;
    padding: 8px 6px;
}

.footer-nav a:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
  }

.footer-nav > span {
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / var(--tw-text-opacity, 1));
    position: absolute;
    right: 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    pointer-events: none;
}

.footer-freigabe-code {
  font-size: 0.75rem;
  line-height: 1rem;
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / var(--tw-text-opacity, 1));
    position: absolute;
    left: 0;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.viatris-logo {
    height: 3rem;
    width: auto;
    vertical-align: middle;
  }

/* Buttons - Roboto Bold */

/* Alerts */

.visible {
  visibility: visible;
}

.static {
  position: static;
}

.fixed {
  position: fixed;
}

.relative {
  position: relative;
}

.sticky {
  position: sticky;
}

.m-0 {
  margin: 0px;
}

.m-1 {
  margin: 0.25rem;
}

.m-10 {
  margin: 2.5rem;
}

.m-11 {
  margin: 2.75rem;
}

.m-12 {
  margin: 3rem;
}

.m-14 {
  margin: 3.5rem;
}

.m-16 {
  margin: 4rem;
}

.m-2 {
  margin: 0.5rem;
}

.m-20 {
  margin: 5rem;
}

.m-24 {
  margin: 6rem;
}

.m-3 {
  margin: 0.75rem;
}

.m-4 {
  margin: 1rem;
}

.m-5 {
  margin: 1.25rem;
}

.m-6 {
  margin: 1.5rem;
}

.m-7 {
  margin: 1.75rem;
}

.m-8 {
  margin: 2rem;
}

.m-9 {
  margin: 2.25rem;
}

.mx-0 {
  margin-left: 0px;
  margin-right: 0px;
}

.mx-1 {
  margin-left: 0.25rem;
  margin-right: 0.25rem;
}

.mx-10 {
  margin-left: 2.5rem;
  margin-right: 2.5rem;
}

.mx-11 {
  margin-left: 2.75rem;
  margin-right: 2.75rem;
}

.mx-12 {
  margin-left: 3rem;
  margin-right: 3rem;
}

.mx-14 {
  margin-left: 3.5rem;
  margin-right: 3.5rem;
}

.mx-16 {
  margin-left: 4rem;
  margin-right: 4rem;
}

.mx-2 {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

.mx-20 {
  margin-left: 5rem;
  margin-right: 5rem;
}

.mx-24 {
  margin-left: 6rem;
  margin-right: 6rem;
}

.mx-3 {
  margin-left: 0.75rem;
  margin-right: 0.75rem;
}

.mx-4 {
  margin-left: 1rem;
  margin-right: 1rem;
}

.mx-5 {
  margin-left: 1.25rem;
  margin-right: 1.25rem;
}

.mx-6 {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

.mx-7 {
  margin-left: 1.75rem;
  margin-right: 1.75rem;
}

.mx-8 {
  margin-left: 2rem;
  margin-right: 2rem;
}

.mx-9 {
  margin-left: 2.25rem;
  margin-right: 2.25rem;
}

.my-0 {
  margin-top: 0px;
  margin-bottom: 0px;
}

.my-1 {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

.my-10 {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

.my-11 {
  margin-top: 2.75rem;
  margin-bottom: 2.75rem;
}

.my-12 {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.my-14 {
  margin-top: 3.5rem;
  margin-bottom: 3.5rem;
}

.my-16 {
  margin-top: 4rem;
  margin-bottom: 4rem;
}

.my-2 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.my-20 {
  margin-top: 5rem;
  margin-bottom: 5rem;
}

.my-24 {
  margin-top: 6rem;
  margin-bottom: 6rem;
}

.my-3 {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.my-4 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.my-5 {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}

.my-6 {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.my-7 {
  margin-top: 1.75rem;
  margin-bottom: 1.75rem;
}

.my-8 {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.my-9 {
  margin-top: 2.25rem;
  margin-bottom: 2.25rem;
}

.mb-0 {
  margin-bottom: 0px;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-10 {
  margin-bottom: 2.5rem;
}

.mb-11 {
  margin-bottom: 2.75rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mb-14 {
  margin-bottom: 3.5rem;
}

.mb-16 {
  margin-bottom: 4rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-20 {
  margin-bottom: 5rem;
}

.mb-24 {
  margin-bottom: 6rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-5 {
  margin-bottom: 1.25rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-7 {
  margin-bottom: 1.75rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-9 {
  margin-bottom: 2.25rem;
}

.ml-0 {
  margin-left: 0px;
}

.ml-1 {
  margin-left: 0.25rem;
}

.ml-10 {
  margin-left: 2.5rem;
}

.ml-11 {
  margin-left: 2.75rem;
}

.ml-12 {
  margin-left: 3rem;
}

.ml-14 {
  margin-left: 3.5rem;
}

.ml-16 {
  margin-left: 4rem;
}

.ml-2 {
  margin-left: 0.5rem;
}

.ml-20 {
  margin-left: 5rem;
}

.ml-24 {
  margin-left: 6rem;
}

.ml-3 {
  margin-left: 0.75rem;
}

.ml-4 {
  margin-left: 1rem;
}

.ml-5 {
  margin-left: 1.25rem;
}

.ml-6 {
  margin-left: 1.5rem;
}

.ml-7 {
  margin-left: 1.75rem;
}

.ml-8 {
  margin-left: 2rem;
}

.ml-9 {
  margin-left: 2.25rem;
}

.mr-0 {
  margin-right: 0px;
}

.mr-1 {
  margin-right: 0.25rem;
}

.mr-10 {
  margin-right: 2.5rem;
}

.mr-11 {
  margin-right: 2.75rem;
}

.mr-12 {
  margin-right: 3rem;
}

.mr-14 {
  margin-right: 3.5rem;
}

.mr-16 {
  margin-right: 4rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

.mr-20 {
  margin-right: 5rem;
}

.mr-24 {
  margin-right: 6rem;
}

.mr-3 {
  margin-right: 0.75rem;
}

.mr-4 {
  margin-right: 1rem;
}

.mr-5 {
  margin-right: 1.25rem;
}

.mr-6 {
  margin-right: 1.5rem;
}

.mr-7 {
  margin-right: 1.75rem;
}

.mr-8 {
  margin-right: 2rem;
}

.mr-9 {
  margin-right: 2.25rem;
}

.mt-0 {
  margin-top: 0px;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-10 {
  margin-top: 2.5rem;
}

.mt-11 {
  margin-top: 2.75rem;
}

.mt-12 {
  margin-top: 3rem;
}

.mt-14 {
  margin-top: 3.5rem;
}

.mt-16 {
  margin-top: 4rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-20 {
  margin-top: 5rem;
}

.mt-24 {
  margin-top: 6rem;
}

.mt-3 {
  margin-top: 0.75rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-5 {
  margin-top: 1.25rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-7 {
  margin-top: 1.75rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mt-9 {
  margin-top: 2.25rem;
}

.block {
  display: block;
}

.inline {
  display: inline;
}

.flex {
  display: flex;
}

.hidden {
  display: none;
}

.w-0 {
  width: 0px;
}

.w-0\.5 {
  width: 0.125rem;
}

.w-1 {
  width: 0.25rem;
}

.w-1\.5 {
  width: 0.375rem;
}

.w-1\/12 {
  width: 8.333333%;
}

.w-1\/2 {
  width: 50%;
}

.w-1\/3 {
  width: 33.333333%;
}

.w-1\/4 {
  width: 25%;
}

.w-1\/5 {
  width: 20%;
}

.w-1\/6 {
  width: 16.666667%;
}

.w-10 {
  width: 2.5rem;
}

.w-10\/12 {
  width: 83.333333%;
}

.w-11 {
  width: 2.75rem;
}

.w-11\/12 {
  width: 91.666667%;
}

.w-12 {
  width: 3rem;
}

.w-14 {
  width: 3.5rem;
}

.w-16 {
  width: 4rem;
}

.w-2 {
  width: 0.5rem;
}

.w-2\.5 {
  width: 0.625rem;
}

.w-2\/12 {
  width: 16.666667%;
}

.w-2\/3 {
  width: 66.666667%;
}

.w-2\/4 {
  width: 50%;
}

.w-2\/5 {
  width: 40%;
}

.w-2\/6 {
  width: 33.333333%;
}

.w-20 {
  width: 5rem;
}

.w-24 {
  width: 6rem;
}

.w-28 {
  width: 7rem;
}

.w-2xl {
  width: 64px;
}

.w-3 {
  width: 0.75rem;
}

.w-3\.5 {
  width: 0.875rem;
}

.w-3\/12 {
  width: 25%;
}

.w-3\/4 {
  width: 75%;
}

.w-3\/5 {
  width: 60%;
}

.w-3\/6 {
  width: 50%;
}

.w-32 {
  width: 8rem;
}

.w-36 {
  width: 9rem;
}

.w-4 {
  width: 1rem;
}

.w-4\/12 {
  width: 33.333333%;
}

.w-4\/5 {
  width: 80%;
}

.w-4\/6 {
  width: 66.666667%;
}

.w-40 {
  width: 10rem;
}

.w-44 {
  width: 11rem;
}

.w-48 {
  width: 12rem;
}

.w-5 {
  width: 1.25rem;
}

.w-5\/12 {
  width: 41.666667%;
}

.w-5\/6 {
  width: 83.333333%;
}

.w-52 {
  width: 13rem;
}

.w-56 {
  width: 14rem;
}

.w-6 {
  width: 1.5rem;
}

.w-6\/12 {
  width: 50%;
}

.w-60 {
  width: 15rem;
}

.w-64 {
  width: 16rem;
}

.w-7 {
  width: 1.75rem;
}

.w-7\/12 {
  width: 58.333333%;
}

.w-72 {
  width: 18rem;
}

.w-8 {
  width: 2rem;
}

.w-8\/12 {
  width: 66.666667%;
}

.w-80 {
  width: 20rem;
}

.w-9 {
  width: 2.25rem;
}

.w-9\/12 {
  width: 75%;
}

.w-96 {
  width: 24rem;
}

.w-auto {
  width: auto;
}

.w-dvw {
  width: 100dvw;
}

.w-fit {
  width: -moz-fit-content;
  width: fit-content;
}

.w-full {
  width: 100%;
}

.w-lg {
  width: 32px;
}

.w-lvw {
  width: 100lvw;
}

.w-max {
  width: -moz-max-content;
  width: max-content;
}

.w-md {
  width: 24px;
}

.w-min {
  width: -moz-min-content;
  width: min-content;
}

.w-px {
  width: 1px;
}

.w-screen {
  width: 100vw;
}

.w-sm {
  width: 16px;
}

.w-svw {
  width: 100svw;
}

.w-xl {
  width: 48px;
}

.w-xs {
  width: 8px;
}

.flex-shrink {
  flex-shrink: 1;
}

.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.resize {
  resize: both;
}

.border {
  border-width: 1px;
}

.border-b {
  border-bottom-width: 1px;
}

.border-b-2 {
  border-bottom-width: 2px;
}

.border-b-4 {
  border-bottom-width: 4px;
}

.border-t {
  border-top-width: 1px;
}

.border-t-2 {
  border-top-width: 2px;
}

.border-t-4 {
  border-top-width: 4px;
}

.border-black {
  --tw-border-opacity: 1;
  border-color: rgb(0 0 0 / var(--tw-border-opacity, 1));
}

.border-gray-200 {
  --tw-border-opacity: 1;
  border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}

.border-gray-300 {
  --tw-border-opacity: 1;
  border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
}

.border-gray-400 {
  --tw-border-opacity: 1;
  border-color: rgb(156 163 175 / var(--tw-border-opacity, 1));
}

.border-white {
  --tw-border-opacity: 1;
  border-color: rgb(255 255 255 / var(--tw-border-opacity, 1));
}

.p-0 {
  padding: 0px;
}

.p-1 {
  padding: 0.25rem;
}

.p-10 {
  padding: 2.5rem;
}

.p-11 {
  padding: 2.75rem;
}

.p-12 {
  padding: 3rem;
}

.p-14 {
  padding: 3.5rem;
}

.p-16 {
  padding: 4rem;
}

.p-2 {
  padding: 0.5rem;
}

.p-20 {
  padding: 5rem;
}

.p-24 {
  padding: 6rem;
}

.p-3 {
  padding: 0.75rem;
}

.p-4 {
  padding: 1rem;
}

.p-5 {
  padding: 1.25rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-7 {
  padding: 1.75rem;
}

.p-8 {
  padding: 2rem;
}

.p-9 {
  padding: 2.25rem;
}

.px-0 {
  padding-left: 0px;
  padding-right: 0px;
}

.px-1 {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.px-10 {
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.px-11 {
  padding-left: 2.75rem;
  padding-right: 2.75rem;
}

.px-12 {
  padding-left: 3rem;
  padding-right: 3rem;
}

.px-14 {
  padding-left: 3.5rem;
  padding-right: 3.5rem;
}

.px-16 {
  padding-left: 4rem;
  padding-right: 4rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.px-20 {
  padding-left: 5rem;
  padding-right: 5rem;
}

.px-24 {
  padding-left: 6rem;
  padding-right: 6rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-5 {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.px-7 {
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}

.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.px-9 {
  padding-left: 2.25rem;
  padding-right: 2.25rem;
}

.py-0 {
  padding-top: 0px;
  padding-bottom: 0px;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.py-10 {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.py-11 {
  padding-top: 2.75rem;
  padding-bottom: 2.75rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.py-14 {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.py-24 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-5 {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.py-7 {
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.py-9 {
  padding-top: 2.25rem;
  padding-bottom: 2.25rem;
}

.pb-0 {
  padding-bottom: 0px;
}

.pb-1 {
  padding-bottom: 0.25rem;
}

.pb-10 {
  padding-bottom: 2.5rem;
}

.pb-11 {
  padding-bottom: 2.75rem;
}

.pb-12 {
  padding-bottom: 3rem;
}

.pb-14 {
  padding-bottom: 3.5rem;
}

.pb-16 {
  padding-bottom: 4rem;
}

.pb-2 {
  padding-bottom: 0.5rem;
}

.pb-20 {
  padding-bottom: 5rem;
}

.pb-24 {
  padding-bottom: 6rem;
}

.pb-3 {
  padding-bottom: 0.75rem;
}

.pb-4 {
  padding-bottom: 1rem;
}

.pb-5 {
  padding-bottom: 1.25rem;
}

.pb-6 {
  padding-bottom: 1.5rem;
}

.pb-7 {
  padding-bottom: 1.75rem;
}

.pb-8 {
  padding-bottom: 2rem;
}

.pb-9 {
  padding-bottom: 2.25rem;
}

.pb-lg {
  padding-bottom: 32px;
}

.pl-0 {
  padding-left: 0px;
}

.pl-1 {
  padding-left: 0.25rem;
}

.pl-10 {
  padding-left: 2.5rem;
}

.pl-11 {
  padding-left: 2.75rem;
}

.pl-12 {
  padding-left: 3rem;
}

.pl-14 {
  padding-left: 3.5rem;
}

.pl-16 {
  padding-left: 4rem;
}

.pl-2 {
  padding-left: 0.5rem;
}

.pl-20 {
  padding-left: 5rem;
}

.pl-24 {
  padding-left: 6rem;
}

.pl-3 {
  padding-left: 0.75rem;
}

.pl-4 {
  padding-left: 1rem;
}

.pl-5 {
  padding-left: 1.25rem;
}

.pl-6 {
  padding-left: 1.5rem;
}

.pl-7 {
  padding-left: 1.75rem;
}

.pl-8 {
  padding-left: 2rem;
}

.pl-9 {
  padding-left: 2.25rem;
}

.pr-0 {
  padding-right: 0px;
}

.pr-1 {
  padding-right: 0.25rem;
}

.pr-10 {
  padding-right: 2.5rem;
}

.pr-11 {
  padding-right: 2.75rem;
}

.pr-12 {
  padding-right: 3rem;
}

.pr-14 {
  padding-right: 3.5rem;
}

.pr-16 {
  padding-right: 4rem;
}

.pr-2 {
  padding-right: 0.5rem;
}

.pr-20 {
  padding-right: 5rem;
}

.pr-24 {
  padding-right: 6rem;
}

.pr-3 {
  padding-right: 0.75rem;
}

.pr-4 {
  padding-right: 1rem;
}

.pr-5 {
  padding-right: 1.25rem;
}

.pr-6 {
  padding-right: 1.5rem;
}

.pr-7 {
  padding-right: 1.75rem;
}

.pr-8 {
  padding-right: 2rem;
}

.pr-9 {
  padding-right: 2.25rem;
}

.pt-0 {
  padding-top: 0px;
}

.pt-1 {
  padding-top: 0.25rem;
}

.pt-10 {
  padding-top: 2.5rem;
}

.pt-11 {
  padding-top: 2.75rem;
}

.pt-12 {
  padding-top: 3rem;
}

.pt-14 {
  padding-top: 3.5rem;
}

.pt-16 {
  padding-top: 4rem;
}

.pt-2 {
  padding-top: 0.5rem;
}

.pt-20 {
  padding-top: 5rem;
}

.pt-24 {
  padding-top: 6rem;
}

.pt-3 {
  padding-top: 0.75rem;
}

.pt-4 {
  padding-top: 1rem;
}

.pt-5 {
  padding-top: 1.25rem;
}

.pt-6 {
  padding-top: 1.5rem;
}

.pt-7 {
  padding-top: 1.75rem;
}

.pt-8 {
  padding-top: 2rem;
}

.pt-9 {
  padding-top: 2.25rem;
}

.text-2xl {
  font-size: 1.75rem;
  line-height: 2rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-4xl {
  font-size: 2.5rem;
  line-height: 2.5rem;
}

.text-5xl {
  font-size: 3rem;
  line-height: 1;
}

.text-6xl {
  font-size: 3.75rem;
  line-height: 1;
}

.outline {
  outline-style: solid;
}

.blur {
  --tw-blur: blur(8px);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.underline-status-green {
    text-decoration: underline;
    text-decoration-color: #a0e8cb;
    text-decoration-thickness: 5px;
  }

.underline-status-orange {
    text-decoration: underline;
    text-decoration-color: #fdd287;
    text-decoration-thickness: 5px;
  }

.underline-status-red {
    text-decoration: underline;
    text-decoration-color: #f5917d;
    text-decoration-thickness: 5px;
  }

/* ===== OVERRIDES (außerhalb von @layer, überschreibt WP-Styles) ===== */

/* Gutenberg custom classes — außerhalb @layer, sonst werden sie durch Tailwind-Purging entfernt */

/* Icon + Heading nebeneinander: auf Gruppe-Block anwenden */

/* Muss auf .wp-block-group__inner-container zielen, nicht auf den äußeren Wrapper */

.icon-heading .wp-block-group__inner-container {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 0.75rem;
}

.icon-heading .wp-block-image {
  flex-shrink: 0;
  margin: 0;
}

.icon-heading h2 {
  margin: 0;
}

ul.simple-list {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}

ul.simple-list li {
  position: relative;
  padding-left: 1em;
  margin-bottom: 0.25rem;
}

ul.simple-list li::before {
  content: '•';
  position: absolute;
  left: 0;
}

.wp-block-ohne {
  margin-bottom: 0 !important;
}

.btn-outline,
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  border: 2px solid #000 !important;
  border-radius: 15px;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  color: #000 !important;
  cursor: pointer;
  display: inline-block;
  padding: 0.5rem 1.0rem;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}

.btn-outline:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: #000 !important;
  color: #fff !important;
}

/* Gutenberg Columns Block */

.wp-block-columns {
  display: flex !important;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.wp-block-column {
  flex: 1;
  min-width: min(300px, 100%);
}

/* ===== BASE LAYER ===== */

/* ===== COMPONENTS LAYER ===== */

/* ===== UTILITIES LAYER ===== */

/* Disable all transitions during window resize (prevents jarring breakpoint-crossing animations) */

.no-transition * { transition: none !important; }

/* ===== MOBILE ELEMENTS (hidden by default on desktop) ===== */

.mobile-header { display: none; }

.mobile-menu-btn { display: none; }

.mobile-nav-panel { display: none; }

.mobile-home-pill { display: none; }

/* ===== MOBILE NAVIGATION (≤768px) ===== */

@media (max-width: 768px) {
  body::before {
    background-image: url('../../img/VIA_Kalziumrechner_BG_mobile2.jpg');
  }

  h1, h2 {
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
  }
  .footer-nav a {
    padding:0;
  }

  /* Long URLs in content (e.g. Quellen) must wrap within the container */
  .section-inner p,
  .section-inner span,
  .section-inner a {
    overflow-wrap: break-word;
    word-break: break-word;
  }
  /* Mobile header bar - logo + burger, only on content pages */
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 56px;
    padding: 0 1rem 0 32px;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: visible;
  }

  .mobile-header::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 10%;
    right: 10%;
    height: 8px;
    z-index: 1;
    background: radial-gradient(ellipse at 50% 0%, rgba(0,0,0,0.15) 0%, transparent 70%);
    pointer-events: none;
  }

  .mobile-header__logo-link {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
  }

  .mobile-header__logo {
    height: 28px;
    width: auto;
    padding: 0;
    margin: 0;
  }

  /* Burger button - fixed top-right, always above header */
  .mobile-menu-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    position: fixed;
    top: 8px;
    right: 1rem;
    z-index: 1002;
    width: 2.5rem;
    height: 2.5rem;
    background: #E8E8E8;
    /* background: rgba(255, 255, 255, 0.25); */
    backdrop-filter: blur(8px);
    /* border: 1.5px solid rgba(255, 255, 255, 0.5); */
    border-radius: 8px;
    cursor: pointer;
  }

  .burger-line {
    display: block;
    width: 18px;
    height: 2px;
    background: #000;
    border-radius: 2px;
    transition: transform 250ms ease, opacity 250ms ease, background 250ms ease;
    transform-origin: center;
  }

  /* Burger → X animation (black lines also on dark panel background) */
  .mobile-menu-btn.is-open .burger-line {
    background: #000;
  }
  .mobile-menu-btn.is-open .burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .mobile-menu-btn.is-open .burger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .mobile-menu-btn.is-open .burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Main navigation - off-screen by default, slides in when content is active */
  .main-navigation {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    transform: translateX(100%) !important;
    transition: none !important;
    border-radius: 0 !important;
    background: transparent;
    border: none;
    overflow: hidden;
  }

  /* Hide desktop pill nav-header on mobile */
  .nav-header { display: none !important; }

  /* No animations for content sections on mobile */
  .content-section,
  .content-section.active {
    transition: none !important;
    animation: none !important;
  }

  /* Content shown: slide in, start below header bar */
  .main-navigation.has-content {
    transform: translateX(0) !important;
    top: 56px !important;
    height: calc(100% - 56px) !important;
    max-height: calc(100% - 56px) !important;
    background: rgba(255, 255, 255, 0.35) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: none !important;
    box-shadow: none !important;
    overflow-y: auto;
  }

  /* Content area padding */
  .main-navigation.has-content .nav-content-area {
    padding-top: 1.5rem;
  }

  /* Mobile menu panel: absolute overlay, slides in/out independently */
  .mobile-nav-panel {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center; /* vertically center menu items */
    overflow-y: auto;
    background: linear-gradient(to bottom, #000000, #414246);
    backdrop-filter: blur(16px);
    transform: translateX(100%);
    transition: transform 350ms cubic-bezier(0.4, 0, 0.2, 1);
    padding: 4rem 1.5rem 2rem;
    z-index: 10;
  }

  /* Panel slides in when menu is open */
  .main-navigation.mobile-open .mobile-nav-panel {
    transform: translateX(0);
  }

  /* Close button - absolute so it doesn't affect vertical centering */
  .mobile-nav-panel-header {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
  }

  .mobile-nav-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
  }

  /* Vertical nav menu */
  .mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
  }

  .mobile-nav-menu > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .mobile-nav-menu > li:last-child {
    border-bottom: none;
  }

  .mobile-nav-menu > li > a {
    display: block;
    padding: 1rem 0;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 300;
  }

  /* Always-expanded subnav in mobile panel */
  .mobile-nav-panel .nav-dropdown {
    position: static;
    opacity: 1 !important;
    visibility: visible !important;
    background: transparent;
    box-shadow: none;
    padding: 0;
    min-width: 0;
    border-radius: 0;
    transition: none;
  }

  .mobile-nav-panel .dropdown-menu {
    padding-bottom: 0.5rem;
  }

  .mobile-nav-panel .dropdown-menu a {
    color: rgba(255, 255, 255, 0.65);
    padding: 0.4rem 0 0.4rem 1rem;
    font-size: 0.95rem;
    background: transparent !important;
  }

  .mobile-nav-panel .dropdown-menu a:hover {
    color: white;
  }

  /* Kalziumrechner nav item in mobile panel: plain text, same as others */
  .mobile-nav-panel .kalziumrechner-navi a {
    font-size: 1.1rem;
    color: white;
  }
  .mobile-nav-panel .zum-text,
  .mobile-nav-panel .kalziumrechner-logo {
    display: none;
  }
  .mobile-nav-panel .kalziumrechner-title {
    display: inline;
  }

  /* Footer mobile */
  .site-footer:not(.site-footer--inline) {
    display: none;
  }

  .site-footer--inline {
    display: block;
    position: static;
    background: transparent;
    padding: 16px;
    text-align: center;
    font-size: 0.875rem;
    margin-top:40px;
  }

  .nav-content-area {
    margin-bottom: 0;
  }

  .footer-nav {
    flex-direction: column;
    width: auto;
  }

  .footer-nav > span {
    position: static;
  }

  .footer-freigabe-code {
    position: static;
    margin-top: -16px;
    font-size: 0.6rem;
  }

  /* ===== MOBILE HOME PILL ===== */
  /* Show only on start screen (no content loaded) */
  .mobile-home-pill {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 80%;
    transform: translate(-50%, -50%);
    z-index: 999;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px);
    border: 3px solid white;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: center;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 300ms ease;
  }

  .mobile-home-pill a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    text-decoration: none;
  }

  .mobile-home-pill__logo {
    height: auto;
    width: 100%;
  }

  /* Hide pill when content is open or menu is open */
  body:has(.main-navigation.has-content) .mobile-home-pill,
  body:has(.main-navigation.mobile-open) .mobile-home-pill {
    opacity: 0;
    pointer-events: none;
  }

  /* Hide mobile-header on start screen (no content), show only when content is active */
  body:not(:has(.main-navigation.has-content)) .mobile-header {
    display: none;
  }

  /* Show fixed footer on mobile home screen only */
  body:not(:has(.main-navigation.has-content)):not(:has(.main-navigation.mobile-open)) .site-footer:not(.site-footer--inline) {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
