:root {
  --primary: #EF7F1A;
  --salbei: #DDE6DB;
  --blue: #0F2B46;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --bg-light: #f8fafc;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #ffffff;
  color: var(--text);
  line-height: 1.6;
}

/* Layout */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 3.5rem 0;
}

.section-salbei {
  background: #f4f7f3;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 1.5rem;
}

/* Header / Navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
  background-color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  gap: 1rem;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 32px;
  width: auto;
}

.logo-fallback {
  height: 32px;
  width: 32px;
  border-radius: 6px;
  background-color: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.logo-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--blue);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
}


.main-nav a {
  text-decoration: none;
  color: #475569;
}

.main-nav a:hover {
  color: var(--blue);
}

.main-nav a.active {
  font-weight: 600;
  color: var(--blue);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-dark {
  background-color: var(--blue);
  color: #fff;
}

.btn-dark:hover {
  opacity: 0.9;
}

.btn-outline {
  background-color: #fff;
  color: var(--blue);
  border: 1px solid #cbd5e1;
}

.btn-outline:hover {
  background-color: #f8fafc;
}

.small-btn {
  font-size: 0.8rem;
  padding: 0.45rem 0.9rem;
}

/* Hero (Startseite) */

.hero {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: #dde6db;
  opacity: 0.6;
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding: 3.5rem 1rem 4.5rem;
}

.hero-text h1 {
  font-size: 2.3rem;
  line-height: 1.2;
  margin: 0;
  color: var(--blue);
  font-weight: 800;
}

.hero-text p {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: #475569;
}

.hero-buttons {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-card {
  background-color: #ffffff;
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--border);
}

.hero-card-top {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.hero-icon {
  height: 48px;
  width: 48px;
  border-radius: 18px;
  background-color: rgba(15, 43, 70, 0.9);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.4rem;
}

.hero-card-title {
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.25rem;
}

.hero-card-text {
  font-size: 0.9rem;
  color: #475569;
}

.hero-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.hero-pill {
  border-radius: 0.75rem;
  padding: 0.6rem 0.75rem;
  background-color: rgba(221, 230, 219, 0.6);
}

/* Grids */

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-4 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: 1fr; }

/* Cards */

.card {
  background-color: #ffffff;
  border-radius: 1.25rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
  font-size: 0.95rem;
}

.card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  color: var(--blue);
}

.card-emoji {
  font-size: 1.7rem;
  margin-bottom: 0.5rem;
}

/* Bildkarten */

.image-card {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  height: 50vh;
  min-height: 260px;
  background-color: rgba(221, 230, 219, 0.4);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.22);
}

.image-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.image-card:hover img {
  transform: scale(1);
}

.image-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.1), transparent);
}

.image-card figcaption {
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 0.9rem;
  color: #ffffff;
  text-shadow: 0 2px 5px rgba(15, 23, 42, 0.8);
}

.image-card figcaption h4 {
  margin: 0 0 0.15rem;
  font-size: 1rem;
  font-weight: 600;
}

.image-card figcaption p {
  margin: 0;
  font-size: 0.85rem;
}

/* Preise / Listen */

.price-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.price {
  color: var(--primary);
  font-weight: 700;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.old-price {
  color: #94a3b8;
  font-size: 0.75rem;
  text-decoration: line-through;
  margin-left: 0.35rem;
}

.info-small {
  font-size: 0.85rem;
  color: #475569;
  margin-top: 0.25rem;
}

.bullet-list {
  margin: 0.25rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
}

.bullet-list li {
  margin-bottom: 0.15rem;
}

/* Page-Header Unterseiten */

.page-hero {
  background: var(--salbei);
  border-bottom: 1px solid var(--border);
}

.page-hero-inner {
  padding: 2.5rem 1rem;
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: 2rem;
  color: var(--blue);
}

.page-hero p {
  margin: 0;
  color: #475569;
  max-width: 620px;
  font-size: 0.98rem;
}

/* Pflege-Pills */

.pill {
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  background-color: rgba(221, 230, 219, 0.7);
  font-size: 0.9rem;
}

/* Über mich */

.about-grid {
  margin-top: 1.8rem;
  align-items: center;
}

.about-image-wrap {
  display: flex;
  justify-content: center;
}

.about-image {
  max-width: 260px;
  width: 100%;
  border-radius: 1.5rem;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.28);
  object-fit: cover;
}

.about-steckbrief {
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  background-color: rgba(221, 230, 219, 0.4);
  padding: 1.2rem;
  font-size: 0.9rem;
  color: #1e293b;
}

.about-steckbrief h3 {
  margin: 0 0 0.75rem;
  color: var(--blue);
  font-size: 1rem;
}

.label {
  display: inline-block;
  font-weight: 600;
  color: #475569;
}

/* Kontakt */

.kontakt-grid {
  display: grid;
  gap: 1.75rem;
  align-items: flex-start;
}

.contact-form {
  background-color: #ffffff;
  border-radius: 1.25rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.1);
  display: grid;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  border-radius: 0.9rem;
  border: 1px solid #cbd5e1;
  padding: 0.55rem 0.75rem;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 1px rgba(15, 43, 70, 0.08);
}

.contact-form textarea {
  resize: vertical;
  min-height: 110px;
}

.form-note {
  font-size: 0.75rem;
  color: #64748b;
}

/* Footer */

.footer-top {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  display: grid;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: #64748b;
}

.footer-title {
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 0.25rem;
}

.site-footer {
  text-align: center;
  padding: 1.5rem 1rem 2rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

/* Responsive */

@media (min-width: 768px) {
  .main-nav { display: flex; }

  .hero-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }

  .hero-text h1 { font-size: 2.7rem; }

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

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

  .header-inner { padding-inline: 0; }
}

@media (max-width: 767px) {
  .site-header {
    position: sticky;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding-inline: 1rem;
  }

  .main-nav {
    width: 100%;
    margin-top: 0.25rem;
  }

  .small-btn {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
  }
}

/* Schickeres Formular-Layout */
.contact-form {
  background-color: #ffffff;
  border-radius: 1.25rem;
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.15);
  display: grid;
  gap: 1rem;
}

.contact-form div {
  display: grid;
  gap: 0.25rem;
}

.contact-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
}

.contact-form input,
.contact-form textarea {
  border-radius: 0.9rem;
  border: 1px solid #cbd5e1;
  padding: 0.65rem 0.85rem;
  font: inherit;
  background-color: #f8fafc;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, transform 0.05s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #94a3b8;
  font-size: 0.85rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  background-color: #ffffff;
  box-shadow: 0 0 0 1px rgba(15, 43, 70, 0.1);
  transform: translateY(-0.5px);
}

/* Checkbox-Label */
.checkbox-wrap label {
  cursor: pointer;
}

/* Overlay beim Senden */
#sending-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.sending-box {
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 1.5rem 1.75rem;
  max-width: 320px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35);
}

.sending-box h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--blue);
}

.sending-box p {
  margin: 0;
  font-size: 0.9rem;
  color: #475569;
}

/* Modal-Darstellung für kontakt.php */
.modal-backdrop {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, rgba(221, 230, 219, 0.7), #0f172a 120%);
  padding: 2rem 1rem;
}

.modal-card {
  background: #ffffff;
  border-radius: 1.75rem;
  padding: 2rem 2.25rem;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.45);
  text-align: left;
}

.modal-card h1 {
  margin: 0 0 0.75rem;
  font-size: 1.4rem;
  color: var(--blue);
}

.modal-card p {
  margin: 0.15rem 0;
}

.modal-card .muted {
  margin-top: 0.25rem;
}
	  
.fullwidth-image figure.image-card {
  width: 100%;
}

.fullwidth-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Standard (Desktop) – groß und gut sichtbar */
.emoji-icon {
  width: 2em;
  height: 2em;
  vertical-align: -0.25em;
  display: inline-block;
}

/* Handy & kleine Tablets */
@media (max-width: 768px) {
  .emoji-icon {
    width: 1.8em;
    height: 1.8em;
    vertical-align: -0.22em;
  }
}

/* Sehr kleine Smartphones (< 400px Breite) */
@media (max-width: 400px) {
  .emoji-icon {
    width: 1.6em;
    height: 1.6em;
    vertical-align: -0.18em;
  }
}
/* =========================================================
   Impressum – Layout im Stil der Unterseiten
   ========================================================= */

.impressum {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3rem 1rem 4rem;
  line-height: 1.7;
  font-size: 0.95rem;
  color: var(--text);
}

/* Haupttitel – angelehnt an .section-title */
.impressum h1 {
  margin: 0 0 1.75rem;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--blue);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.4rem;
}

/* Abschnittstitel */
.impressum h2 {
  font-size: 1.1rem;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  color: var(--blue);
  font-weight: 600;
}

/* Absätze */
.impressum p {
  margin: 0.25rem 0 0.9rem;
  color: var(--text);
}

/* Links im Impressum */
.impressum a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.impressum a:hover {
  text-decoration: underline;
}

/* Abschnittstrennung – sehr dezent */
.impressum section {
  padding: 0.75rem 0 1.25rem;
  border-bottom: 1px solid var(--border);
}

.impressum section:last-child {
  border-bottom: none;
}

/* Kleine Anpassung für Handy */
@media (max-width: 600px) {
  .impressum {
    padding: 2.5rem 1rem 3rem;
  }

  .impressum h1 {
    font-size: 1.6rem;
  }

  .impressum h2 {
    font-size: 1rem;
  }
}
	  /* Fix: Originalgröße für das große Bild (fullwidth-image) */
.fullwidth-image .image-card {
  height: auto !important;
}

.fullwidth-image .image-card img {
  width: 75% !important;   /* 50% = halb so breit */
  height: auto !important;
  object-fit: contain !important;
  position: relative !important;
  margin: 0 auto;
  display: block;
	}
.hero-photo-wrap {
  margin-top: 1rem;
  width: 160px;        /* feste kleine Breite, damit es NIEMALS riesig wird */
}

.hero-photo {
  width: 100%;         /* passt sich der kleinen Box oben an */
  border-radius: 16px;
  object-fit: cover;
  display: block;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: none;            /* standardmäßig zu */
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 9999;            /* wichtig: über Header etc. */
}

.modal-backdrop.is-open{
  display: flex;            /* bei Klick sichtbar */
}

.modal-card {
  width: 100%;
  max-width: 720px;
  margin-top: 5vh;             /* statt center */
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.5rem;

  max-height: 90dvh;
  overflow-y: auto;
}

	  .modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;              /* wichtig für Mobile */
  background: rgba(0,0,0,.55);

  display: none;
  justify-content: center;
  align-items: flex-start;     /* wichtig */
  
  padding: 1rem;
  z-index: 10000;
}

.modal-backdrop.is-open {
  display: flex;
}

