@layer base {
  :root {
    /* Markenbasis bleibt */
    --brand-primary: oklch(0.55 0.22 264);

    /* CTA / Brand Surface – etwas dunkler */
    --brand-primary-cta-bg: oklch(0.45 0.22 264); /* -0.10 */

    /* Text: einen Tick heller & ruhiger */
    --brand-primary-cta-fg: oklch(0.93 0.05 264);


    /* Sekundäre Texte */
    --brand-primary-muted-1: oklch(0.89 0.045 264);
    --brand-primary-muted-2: oklch(0.86 0.035 264);


    --color-base-content: oklch(0.278078 0.029596 256.848);
  }
}

html {
  font-family: Inter , system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", sans-serif !important; 
}

p {
  line-height: 1.55;
}

main ul,
main ol {
  line-height: 1.45;
}

.page-content {
  background-color: #ffffff;
}

.page-content h1 {
  margin-top: 1em;
  line-height: 1.25em !important;
}

.page-content h2 {
  padding-left: 0.95em;
  text-indent: -0.95em;
  line-height: 1.2em !important;
}

/* Standard-Links modernisieren */
.link,
.link-primary {
  color: #1d4ed8; /* modernes, etwas helleres Blau */
  font-weight: 500;
  text-decoration: none;
  border-bottom: none;
}

.link:hover,
.link-primary:hover {
  text-decoration: underline;
  color: #1e3a8a; /* etwas dunkler beim Hover */
}

footer {
  --footer-text: oklch(0.36 0.02 256);
  --footer-muted-70: oklch(0.36 0.02 256 / 0.7);
  --footer-muted-60: oklch(0.36 0.02 256 / 0.6);

  color: var(--footer-text);
}

footer .link,
footer .link-primary {
  color: oklch(0.50 0.02 256) !important;
}

/* Footer-Links neutral */
footer .link,
footer .link-primary {
  color: inherit;
  text-decoration: none;
}

footer .link:hover,
footer .link-primary:hover {
  text-decoration: underline;
}

footer .text-base-content\/70 {
  color: var(--footer-muted-70);
}

footer .text-base-content\/60 {
  color: var(--footer-muted-60);
}

footer p {
  line-height: 1.35;
}


@layer components {
  .label-text {
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: oklch(0.3 0 0);
  }
}

@layer components {
  .label {
    padding-top: 0.25rem; /* 4px */ 
    padding-bottom: 0.125rem; /* 2px */ 
    padding-inline: 0.25rem; /* 4px */
  }
}

@layer components {
  .hero-section {
    padding-top: 55px;
    padding-bottom: 48px;
  }

  @media (min-width: 640px) {
    .hero-section {
      padding-top: 56px;
      padding-bottom: 56px;
      color: var(--color-base-content);
    }
  }

  .hero-inner {
    
    margin: 0 auto;
    padding: 0;
  }

}

@layer components {
  .hero-section h1 {
    font-size: 1.875rem; /* text-3xl */
    font-weight: 700;
    line-height: 2.25rem;
    margin-bottom: 8px;
  }

  .hero-section h2 {
    font-size: 1.125rem; /* text-lg */
    font-weight: 600;
    line-height: 28px !important; 
    margin-bottom: 16px;
    opacity: 0.8;
  }

  .hero-section p {
    line-height: 1.75rem;
    opacity: 0.7;
    margin-bottom: 24px;
  }

  .hero-text { 
    max-width: 46rem; 
    margin: 0 auto; 
  }
}

@layer components {
  @media (min-width: 640px) {
    .hero-section h1 {
      font-size: 2.25rem; /* text-4xl */
      line-height: 2.5rem;
    }

    .hero-section h2 {
      font-size: 1.25rem; /* text-xl */
    }
  }
}


@layer components {
  .brand-surface {
    /* DaisyUI Theme neutralisieren */
    --color-primary: initial;
    --color-primary-content: initial;
    --color-base-100: initial;
    --color-base-content: initial;

    background-color: var(--brand-primary-cta-bg);
    color: var(--brand-primary-cta-fg);
  }
}


@layer components {
  .btn {
    /* Form & Typo */
    --radius-field: 0.75rem;
    line-height: 1;

    /* Modern: kein Depth‑Look */
    --depth: 0;
    --btn-shadow: none;
    box-shadow: none;
  }
}

@layer components {
  .btn-primary {
    /* CTA‑Form */
    --radius-field: 0.625rem;
    --size-field: 0.3rem; /* 48px */

    /* Text */
    --btn-fg: oklch(0.94 0 0);
    text-shadow: none;
  }
}

@layer components {
  .btn.btn-primary {
    background-color: var(--brand-primary-cta-bg) !important; 
    border-color: var(--brand-primary-cta-bg) !important; 
    color: var(--brand-primary-cta-fg) !important;
    
    text-shadow: none;
  }
}


@layer components {
  .brand-card {
    background-color: var(--brand-primary-cta-bg);
    color: var(--brand-primary-cta-fg);
  }

  .brand-card .muted-1 {
    color: var(--brand-primary-muted-1);
  }

  .brand-card .muted-2 {
    color: var(--brand-primary-muted-2);
  }
}

@layer components {
  .card-base {
    padding: 24px;
  }

  .card-base .card-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 28px !important;
    margin-bottom: 8px;
  }

  .card-base .card-note {
    margin-bottom: 0;
  }
}

@layer components {
  .card-plain .card-value {
    font-size: 30px;
    font-weight: 700;
    line-height: 36px !important;
    margin-bottom: 0;
  }

  .card-plain .card-sub {
    line-height: 24px !important;
    margin-bottom: 12px;
    opacity: 0.7;
  }

  .card-plain .card-note {
    font-size: 14px;
    line-height: 20px !important;
    opacity: 0.6;
  }
}

@layer components {
  .card-result .card-value {
    font-size: 36px;
    font-weight: 700;
    line-height: 40px !important;
    margin-bottom: 0;
  }

  .card-result .card-sub {
    line-height: 24px !important;
    margin-bottom: 16px;
    opacity: 0.9;
  }

  .card-result .card-note {
    font-size: 12px;
    line-height: 16px !important;
    opacity: 0.8;
  }
}


/* Number-Spinner ausblenden */

/* Chrome, Safari, Edge, Opera */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  appearance: textfield; /* Standard */
  -moz-appearance: textfield;
}

/* Optional: aktive Buttons hervorheben */
.btn-active {
  @apply btn-primary text-primary-content;
}

@media (max-width: 480px) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}







/* Live Header (Mobile) */
.live-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  background-color: #2563eb;
  color: white;

  border-bottom: 1px solid rgba(0,0,0,0.15);
  z-index: 9999;
  padding: 10px 16px;
}

.page-subline {
  font-size: 0.95rem;
  color: hsl(var(--bc) / 0.6);
  margin-bottom: 1.25rem;
}




/* iOS Safe Area */
@supports (padding-top: env(safe-area-inset-top)) {
  .live-header {
    padding-top: calc(10px + env(safe-area-inset-top));
  }
}

/* Burger Icon */
.nav-toggle {
  width: 32px;
  height: 32px;
  padding: 0;
  margin-left: -2px;

  background: none;
  border: none;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
}



.live-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.live-header .label {
  margin-left: 8px; /* Abstand zum Burger */ 
  margin-right: auto; /* schiebt alles andere nach rechts */
  font-size: 12px;
  padding: 8px 4px; 

  color: rgba(255,255,255,0.6); 
  opacity: 1;
}

.live-header .value {
  line-height: 1;
  font-size: 18px;
  font-weight: 700;
  color: hsl(var(--pc));
}

/* Nur auf Mobile anzeigen */
@media (max-width: 768px) {
  .live-header {
    display: block;
    height: 54px;
  }
  .hero-section {
    margin-top: 56px; /* Höhe des Live-Headers */
  }
}

@media (max-width: 639px) {
  #calculator .sm\:bg-neutral-50,
  section.max-w-6xl > .sm\:bg-neutral-50 {
    padding: 0; /* explizit, damit nichts „durchrutscht“ */
  }

  /* Optional: etwas Luft innerhalb der Sektionen statt Card-Look */
  #calculator,
  section.max-w-6xl {
    padding-left: 16px;
    padding-right: 16px;
  }

  #calculator {
    scroll-margin-top: 80px;
  }
}

/* Live Header nur auf Mobile anzeigen */
@media (min-width: 640px) {
  #live-header {
    display: none !important;
  }
}

/* Entfernt DaisyUI-Pink: secondary wird zu deinem Brand-Blau */
.btn-secondary {
  background-color: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
}

.btn-secondary:hover {
  background-color: #1d4ed8 !important; /* etwas dunkler */
  border-color: #1d4ed8 !important;
}

/* Breadcrumb Navigation */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;

  /* geändert */
  margin: -1.8rem 0 0.75rem 0;
  font-size: 0.75rem;
  color: #6b7280;
}


.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb li + li::before {
  content: "›";
  margin: 0 0.4rem;
  color: #9ca3af;
}

.breadcrumb a {
  color: #2563eb; /* portal link color */
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
  color: #374151;
  font-weight: 500;
}

.nav-overlay {
  position: fixed;
  inset: 0;

  background-color: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;

  z-index: 10000;
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.nav-overlay-content {
  background-color: rgba(255, 255, 255, 0.85); /* statt #ffffff */
  height: 100%;
  padding: 32px 30px;

  display: flex;
  flex-direction: column;
}

.nav-main {
  list-style: none;
  padding: 0;
  margin: 64px 0 0;
}

.nav-main li {
  margin-bottom: 24px;
}

.nav-item {
  all: unset;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: space-between;

  font-size: 1rem;          /* klein, ruhig */
  font-weight: 500;
  line-height: 1.4;

  color: #111;
  padding: 10px 0;
}


.nav-item.has-children::after {
  content: "›";
  display: inline-block;
  margin-left: 12px;

  font-size: 1.1rem;
  line-height: 1;
  color: rgba(0,0,0,0.45);
}

.nav-close {
  position: absolute;
  top: 20px;
  right: 20px;

  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
}


body.nav-open {
  overflow: hidden;
}

.nav-sub-header {
  all: unset;
  cursor: pointer;

  display: flex;
  align-items: center;

  font-size: 1rem;
  font-weight: 500;
  color: #111;

  margin-bottom: 12px;
}

.nav-back-icon {
  margin-right: 8px;
  font-size: 1.5rem;
  color: rgba(0,0,0,0.6);
}

.nav-sub-divider {
  height: 1px;
  background: rgba(0,0,0,0.1);
  margin: 12px 0 24px;
}

.nav-sub .nav-item {
  padding: 10px 0;
}

/* Standard: dunkler Burger (Subseiten, weißer Header) */
.nav-toggle .burger-bar {
  fill: #111;
}

/* Live-Header: heller Burger */
.live-header .nav-toggle .burger-bar {
  fill: #E3ECFF;
}



@keyframes button-pop {
  0% {
    transform: scale(var(--btn-focus-scale, .98));
  }
  40% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .btn {
    animation: button-pop var(--animation-btn, .25s) ease-out;
  }
}

.btn:active {
  transform: scale(var(--btn-focus-scale, .98));
}

:root {
  --animation-btn: .25s;
  --btn-focus-scale: 0.98;
}

.input:focus,
.select:focus-within,
.textarea:focus {
  box-shadow: none;
  border-color: oklch(0.278078 0.029596 256.848 / 0.2);  /* Neue Rahmenfarbe */
  outline: 2px solid oklch(0.278078 0.029596 256.848 / 0.2); /* Farbe des Fokus-Rings */
  outline-offset: 2px; /* Ring leicht vom Rahmen absetzen */
}

