/* ============================================================
   THERESIEN APOTHEKE — Global Design System
   ============================================================ */

/* ── IMPORT APTOS FONT (system font stack, locally available on macOS/Windows) ── */
@font-face {
  font-family: 'Aptos';
  src: local('Aptos'), local('Aptos Display');
  font-weight: 100 900;
  font-style: normal;
}

/* ── CSS VARIABLES ── */
:root {
  /* Colors */
  --green:         #3F6E44;
  --green-dark:    #2D5232;
  --green-light:   rgba(63, 110, 68, 0.08);
  --green-mid:     rgba(63, 110, 68, 0.15);
  --green-shadow:  rgba(63, 110, 68, 0.30);
  --brown:         #2C2118;
  --brown-shadow:  rgba(44, 33, 24, 0.10);
  --brown-shadow-deep: rgba(44, 33, 24, 0.18);
  --off-white:     #F8F5F0;
  --beige:         #EDE0D0;
  --sand:          #D9C9B0;
  --taupe:         #B5A598;
  --text:          #2C2118;
  --border:        rgba(181, 165, 152, 0.35);
  --border-solid:  #D9C9B0;

  /* Typography */
  --font: 'Aptos', 'Aptos Display', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Spacing */
  --section-pad-desktop: 100px;
  --section-pad-mobile:  64px;
  --content-max:         1180px;
  --card-pad:            40px 32px;
  --grid-gap:            24px;

  /* Borders */
  --radius-card:   14px;
  --radius-pill:   28px;
  --radius-btn:    12px;
  --radius-input:  10px;

  /* Shadows */
  --shadow-card:   0 4px 28px var(--brown-shadow);
  --shadow-hover:  0 12px 48px rgba(44, 33, 24, 0.16);
  --shadow-image:  0 16px 48px rgba(44, 33, 24, 0.12);
  --shadow-tabbar: 0 8px 32px rgba(44, 33, 24, 0.18), 0 2px 8px rgba(44, 33, 24, 0.08);

  /* Transitions */
  --transition-base:  0.3s ease;
  --transition-slow:  0.6s ease;
  --transition-glass: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-index Scale */
  --z-base:    0;
  --z-card:    10;
  --z-sticky:  20;
  --z-header:  1000;
  --z-tabbar:  9999;
  --z-overlay: 10000;
}

/* ── RESET & BASE ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--off-white);
  overflow-x: hidden;
  /* Account for fixed header */
  padding-top: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: var(--font);
  border: none;
  background: none;
}

input, textarea, select {
  font-family: var(--font);
  font-size: 1rem;
}

/* ── SCROLLBAR (subtle) ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--sand); border-radius: 3px; }

/* ── TYPOGRAPHY SCALE ── */
.display {
  font-size: clamp(3rem, 6vw, 6.5rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.08;
}

h1, .h1 {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 300;
  letter-spacing: 0.03em;
  line-height: 1.15;
}

h2, .h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
  font-weight: 300;
  line-height: 1.2;
}

h3, .h3 {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.caption {
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--taupe);
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--green);
  display: block;
  margin-bottom: 16px;
}

.quote-text {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.45;
}

.body-large {
  font-size: 1.1rem;
  line-height: 1.8;
}

/* ── LAYOUT ── */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 767px) {
  .container { padding: 0 20px; }
}

.section {
  padding: var(--section-pad-desktop) 0;
}

.section--beige { background-color: var(--beige); }
.section--sand  { background-color: var(--sand); }
.section--white { background-color: #ffffff; }
.section--brown { background-color: var(--brown); }
.section--green { background-color: var(--green); }

.text-center { text-align: center; }
.text-left   { text-align: left; }

/* ── GRID HELPERS ── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
}

@media (max-width: 1023px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── CARD ── */
.card {
  background: #ffffff;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: var(--card-pad);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.card--beige {
  background: var(--beige);
}

/* ── IMAGE TREATMENT ── */
.img-styled {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-image);
  overflow: hidden;
}

.img-styled img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.img-styled:hover img {
  transform: scale(1.03);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--green);
  color: #ffffff;
  box-shadow: 0 4px 16px var(--green-shadow);
}

.btn-primary:hover {
  background: var(--green-dark);
  box-shadow: 0 8px 24px var(--green-shadow);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--green);
  border: 1px solid var(--green);
}

.btn-outline:hover {
  background: var(--green);
  color: #ffffff;
}

.btn-outline--white {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.6);
}

.btn-outline--white:hover {
  background: #ffffff;
  color: var(--green);
}

.btn-white {
  background: #ffffff;
  color: var(--green);
  box-shadow: 0 4px 16px rgba(44,33,24,0.12);
}

.btn-white:hover {
  background: var(--off-white);
  transform: translateY(-1px);
}

.btn-full { width: 100%; justify-content: center; }

/* ── HAIRLINE ── */
.hairline {
  width: 64px;
  height: 1px;
  background: var(--sand);
  margin: 40px auto;
  border: none;
}

.hairline--left {
  margin: 40px 0;
}

/* ── SECTION HEADER (centered title block) ── */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  margin-top: 12px;
}

.section-header p {
  margin-top: 16px;
  color: var(--taupe);
  font-style: italic;
  font-size: 1.05rem;
}

/* ── BENEFIT / CHECK LIST ── */
.benefit-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 1rem;
  line-height: 1.6;
}

.benefit-item .check-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
}

/* ── PILL TAGS ── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 30px;
  background: var(--green-light);
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 1px solid rgba(63,110,68,0.2);
}

.pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

/* ── INFO BOX ── */
.info-box {
  background: var(--beige);
  border-radius: 12px;
  padding: 24px;
  border-left: 3px solid var(--green);
  margin-top: 24px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
}

/* ── FORM ELEMENTS ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 767px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.03em;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: #ffffff;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(63, 110, 68, 0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--taupe);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.form-note {
  font-size: 0.82rem;
  color: var(--taupe);
  text-align: center;
  margin-top: 12px;
}

/* ── STEP LIST ── */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.step-list::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(to bottom, var(--green), rgba(63,110,68,0.1));
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
  position: relative;
}

.step-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.step-content h4 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--brown);
  margin-bottom: 4px;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--taupe);
  line-height: 1.6;
}

/* ── PAGE HERO (subpages) ── */
.page-hero {
  height: 55vh;
  min-height: 380px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-bottom: 64px;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--brown);
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44,33,24,0.72) 0%, rgba(44,33,24,0.25) 60%, transparent 100%);
}

.page-hero__content {
  position: relative;
  z-index: 1;
  color: #ffffff;
}

.page-hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.75);
  display: block;
  margin-bottom: 12px;
}

.page-hero__title {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 300;
  color: #ffffff;
  letter-spacing: 0.03em;
  line-height: 1.1;
}

/* ── CONTACT INFO STRIP ── */
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--off-white);
  opacity: 0.85;
}

.contact-info-item svg {
  flex-shrink: 0;
  opacity: 0.7;
}

/* ── PRODUCT CARD ── */
.product-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.product-card__image {
  padding: 36px;
  background: rgba(63, 110, 68, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.product-card__image img {
  max-height: 150px;
  width: auto;
  object-fit: contain;
}

.product-card__body {
  padding: 20px 24px 28px;
}

.product-card__name {
  font-size: 1rem;
  font-weight: 500;
  color: var(--brown);
  margin-bottom: 6px;
}

.product-card__desc {
  font-size: 0.85rem;
  color: var(--taupe);
  font-style: italic;
}

/* ── TEASER CARD (homepage) ── */
.teaser-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.teaser-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.teaser-card:hover .teaser-card__arrow {
  transform: translateX(4px);
}

.teaser-card__image {
  height: 240px;
  overflow: hidden;
  background: var(--beige);
}

.teaser-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.teaser-card:hover .teaser-card__image img {
  transform: scale(1.04);
}

.teaser-card__body {
  padding: 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.teaser-card__eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--green);
  margin-bottom: 10px;
}

.teaser-card__title {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--brown);
  margin-bottom: 10px;
}

.teaser-card__text {
  font-size: 0.9rem;
  color: var(--taupe);
  line-height: 1.65;
  flex: 1;
}

.teaser-card__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 20px;
}

.teaser-card__arrow {
  color: var(--green);
  font-size: 1.2rem;
  transition: transform var(--transition-base);
}

/* ── QUOTE SECTION ── */
.quote-section {
  padding: 120px 0;
  background: var(--off-white);
  position: relative;
  overflow: hidden;
}

.quote-section__mark {
  position: absolute;
  top: 20px;
  left: 40px;
  font-size: 16rem;
  color: var(--green);
  opacity: 0.07;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  font-family: Georgia, serif;
}

.quote-section__inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* ── FADE-IN ANIMATION ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up--delay-1 { transition-delay: 0.1s; }
.fade-up--delay-2 { transition-delay: 0.2s; }
.fade-up--delay-3 { transition-delay: 0.3s; }
.fade-up--delay-4 { transition-delay: 0.4s; }

/* ── SCROLL PADDING (for fixed header) ── */
[id] { scroll-margin-top: 90px; }

/* ── RESPONSIVE TYPOGRAPHY ── */
@media (max-width: 767px) {
  .section { padding: var(--section-pad-mobile) 0; }
  .section-header { margin-bottom: 40px; }
  .quote-section { padding: 80px 0; }
  .quote-section__mark { font-size: 8rem; }
  .card { padding: 28px 22px; }
}

/* ── OPENING STATUS BADGE ── */
.opening-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  width: fit-content;
  margin: 0 auto 16px;
  font-size: 0.82rem;
  font-weight: 500;
}

.opening-status--open {
  background: rgba(76, 175, 80, 0.12);
  color: #2e7d32;
}

.opening-status--closed {
  background: rgba(229, 57, 53, 0.1);
  color: #c62828;
}

.opening-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.opening-status--open .opening-status__dot {
  background: #4caf50;
}

.opening-status--closed .opening-status__dot {
  background: #e53935;
}

/* ── VERLEIH LINKS ── */
.verleih-list .benefit-item {
  padding: 0;
}

.verleih-link {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--brown);
  font-weight: 400;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.verleih-link span {
  flex: 1;
}

.verleih-link em {
  font-style: normal;
  color: var(--taupe);
  font-size: 0.82rem;
  margin-left: 6px;
}

.verleih-arrow {
  width: 18px;
  height: 18px;
  color: var(--taupe);
  flex-shrink: 0;
  transition: transform 0.25s ease, color 0.25s ease;
}

.verleih-link:hover {
  border-color: var(--green);
  background: var(--green-light);
  transform: translateX(3px);
}

.verleih-link:hover .verleih-arrow {
  color: var(--green);
  transform: translateX(3px);
}

/* ── GESUND.DE BANNER ── */
.gesund-de-banner {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 48px;
  padding: 28px 36px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 28px rgba(44, 33, 24, 0.08);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gesund-de-banner:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(44, 33, 24, 0.12);
}

.gesund-de-banner__img {
  flex-shrink: 0;
}

.gesund-de-banner__img img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 16px;
}

.gesund-de-banner__body {
  flex: 1;
  min-width: 0;
}

.gesund-de-banner__body h3 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--brown);
  margin-bottom: 6px;
}

.gesund-de-banner__body p {
  font-size: 0.85rem;
  color: var(--taupe);
  line-height: 1.6;
  margin-bottom: 12px;
}

.gesund-de-banner__cta {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--green);
  letter-spacing: 0.02em;
}

.gesund-de-banner:hover .gesund-de-banner__cta {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .gesund-de-banner {
    flex-direction: column;
    text-align: center;
    padding: 28px 24px;
    gap: 20px;
  }

  .gesund-de-banner__img img {
    width: 72px;
    height: 72px;
  }
}

/* App menü unten entfernen */
.tab-bar { display: none !important; }
