/* ---------------------------------------------------------------------- */
/* Tokens                                                                  */
/* ---------------------------------------------------------------------- */
:root {
  --sky-1: #150a2e;
  --sky-2: #3a1450;
  --sky-3: #a3336a;
  --sky-4: #ff7e47;
  --sky-5: #ffc267;

  --forest-deep: #06231a;
  --forest-mid: #0c3d2b;
  --forest-light: #16593f;

  --gold: #f4c95d;
  --cream: #faf6ec;
  --ink: #0a0f0c;

  --glass-bg: rgba(250, 246, 236, 0.07);
  --glass-border: rgba(250, 246, 236, 0.16);
  --glass-blur: blur(18px);

  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius-lg: 28px;
  --radius-md: 18px;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--forest-deep);
  color: var(--cream);
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

/* ---------------------------------------------------------------------- */
/* Grain overlay — gives the whole page a filmic, less "flat CSS" feel     */
/* ---------------------------------------------------------------------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 500;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------------------------------------------------------------------- */
/* Nav                                                                     */
/* ---------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 64px);
  transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
  background: rgba(6, 20, 15, 0.55);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding-top: 14px;
  padding-bottom: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.nav__brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.nav__brand span.dot {
  color: var(--gold);
}

.nav__links {
  display: flex;
  gap: clamp(16px, 3vw, 36px);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.nav__links a {
  text-decoration: none;
  opacity: 0.82;
  position: relative;
  padding-bottom: 4px;
  transition: opacity 0.25s ease;
}

.nav__links a:hover {
  opacity: 1;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--gold);
  transition: width 0.3s ease;
}

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

/* ---------------------------------------------------------------------- */
/* Hero                                                                    */
/* ---------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.hero__sky {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: linear-gradient(
    180deg,
    var(--sky-1) 0%,
    var(--sky-2) 32%,
    var(--sky-3) 58%,
    var(--sky-4) 78%,
    var(--sky-5) 100%
  );
  background-size: 100% 220%;
  animation: skyDrift 22s ease-in-out infinite alternate;
}

@keyframes skyDrift {
  0% {
    background-position: 0% 0%;
    filter: hue-rotate(0deg);
  }
  100% {
    background-position: 0% 100%;
    filter: hue-rotate(-14deg);
  }
}

.hero__sun {
  position: absolute;
  z-index: -2;
  left: 50%;
  top: 46%;
  width: min(60vw, 620px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #fff6da 0%, var(--gold) 35%, rgba(244, 201, 93, 0) 70%);
  filter: blur(2px);
  opacity: 0.9;
  animation: sunPulse 8s ease-in-out infinite;
}

@keyframes sunPulse {
  0%, 100% { opacity: 0.75; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.95; transform: translate(-50%, -50%) scale(1.04); }
}

.hero__mountains {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  z-index: -1;
  width: 100%;
  line-height: 0;
}

.hero__mountains svg {
  width: 100%;
  height: auto;
  display: block;
}

.hero__mountains .layer-far { opacity: 0.55; }
.hero__mountains .layer-mid { opacity: 0.78; }
.hero__mountains .layer-near { opacity: 1; }

.hero__particles {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 20px;
  max-width: 900px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 8vw, 5.6rem);
  line-height: 1.04;
  margin: 0 0 22px;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.hero__title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em);
  animation: revealUp 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 560px;
  margin: 0 auto 40px;
  color: rgba(250, 246, 236, 0.85);
  opacity: 0;
  animation: revealUp 1s ease 0.6s forwards;
}

.hero__cta {
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: revealUp 1s ease 0.8s forwards;
}

.btn {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 15px 32px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold), #ffdf9b);
  color: #2b1a03;
  box-shadow: 0 12px 30px rgba(244, 201, 93, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(244, 201, 93, 0.5);
}

.btn--ghost {
  background: var(--glass-bg);
  border-color: var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: var(--cream);
}

.btn--ghost:hover {
  background: rgba(250, 246, 236, 0.14);
  transform: translateY(-2px);
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.3);
}

.btn[disabled]:hover {
  transform: none;
  box-shadow: none;
}

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.75;
  animation: revealUp 1s ease 1.1s forwards;
  opacity: 0;
}

.scroll-cue__line {
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, var(--cream), transparent);
  animation: cueMove 1.8s ease-in-out infinite;
}

@keyframes cueMove {
  0% { transform: scaleY(0.2); transform-origin: top; opacity: 0.3; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(0.2); transform-origin: bottom; opacity: 0.3; }
}

/* ---------------------------------------------------------------------- */
/* Sections shared                                                        */
/* ---------------------------------------------------------------------- */
.section {
  position: relative;
  padding: 120px clamp(20px, 6vw, 80px);
  max-width: 1180px;
  margin: 0 auto;
}

.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 600;
  margin: 0 0 14px;
}

.section__subtitle {
  color: rgba(250, 246, 236, 0.72);
  line-height: 1.6;
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

/* ---------------------------------------------------------------------- */
/* Glass card base                                                        */
/* ---------------------------------------------------------------------- */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* ---------------------------------------------------------------------- */
/* Weather section                                                        */
/* ---------------------------------------------------------------------- */
.weather-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.weather-card {
  padding: 28px 26px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: block;
  width: 100%;
  text-align: left;
  font-family: inherit;
  color: inherit;
  border: 1px solid var(--glass-border);
  cursor: pointer;
}

.weather-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.4);
}

.weather-card__place {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250, 246, 236, 0.65);
  margin-bottom: 18px;
}

.weather-card__row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.weather-card__icon {
  font-size: 2.6rem;
  line-height: 1;
}

.weather-card__temp {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
}

.weather-card__desc {
  margin-top: 14px;
  font-size: 0.9rem;
  color: rgba(250, 246, 236, 0.75);
}

.weather-card__meta {
  margin-top: 6px;
  font-size: 0.78rem;
  color: rgba(250, 246, 236, 0.5);
}

.weather-card.is-loading .weather-card__temp,
.weather-card.is-loading .weather-card__icon {
  opacity: 0.35;
}

.weather-card.is-error .weather-card__desc {
  color: #ffb4a3;
}

/* ---------------------------------------------------------------------- */
/* Quick links                                                            */
/* ---------------------------------------------------------------------- */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.link-card {
  padding: 30px 22px;
  text-align: center;
  text-decoration: none;
  color: var(--cream);
  transition: transform 0.3s ease, background 0.3s ease;
}

.link-card:hover {
  transform: translateY(-6px) scale(1.02);
  background: rgba(250, 246, 236, 0.12);
}

.link-card__icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.link-card__label {
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------------------------------------------------------------------- */
/* Family CTA (Startseite — verlinkt auf die eigene /family/-Seite)       */
/* ---------------------------------------------------------------------- */
.family-cta {
  text-align: center;
  padding: 64px clamp(24px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.family-cta__emoji {
  font-size: 2.6rem;
}

.family-cta__title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 600;
  margin: 0;
}

.family-cta__subtitle {
  max-width: 460px;
  color: rgba(250, 246, 236, 0.72);
  line-height: 1.6;
  margin: 0 0 10px;
}

/* ---------------------------------------------------------------------- */
/* Familienseite (/family/) — schmale App-Spalte statt Marketing-Header   */
/* ---------------------------------------------------------------------- */
.page-main {
  max-width: 630px;
  margin: 0 auto;
  padding: 86px 16px 100px;
}

/* ---------------------------------------------------------------------- */
/* Buttons: small / icon variants                                         */
/* ---------------------------------------------------------------------- */
.btn--small {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.btn--icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--cream);
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn--icon:hover {
  background: rgba(250, 246, 236, 0.16);
  transform: translateY(-1px);
}

/* ---------------------------------------------------------------------- */
/* Shared modal system (Wetter-Detail, Neue Gruppe)                       */
/* ---------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

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

.modal-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 8, 0.72);
  backdrop-filter: blur(6px);
}

.modal-panel {
  position: relative;
  width: min(640px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px clamp(20px, 4vw, 44px) 36px;
}

.modal-panel--narrow {
  width: min(440px, 100%);
}

.modal-panel__close {
  position: absolute;
  top: 18px;
  right: 18px;
}

.modal-panel__title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  margin: 0 0 20px;
}

.modal-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--glass-border);
}

.modal-tabs__tab {
  background: none;
  border: none;
  color: rgba(250, 246, 236, 0.6);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 6px 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-right: 18px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.modal-tabs__tab.is-active {
  color: var(--gold);
  border-color: var(--gold);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.modal-now__hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.modal-now__icon {
  font-size: 3rem;
}

.modal-now__temp {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
}

.modal-now__desc {
  color: rgba(250, 246, 236, 0.75);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

.stat-tile {
  background: rgba(250, 246, 236, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.stat-tile__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(250, 246, 236, 0.55);
  margin-bottom: 6px;
}

.stat-tile__value {
  font-weight: 600;
  font-size: 1.05rem;
}

.hourly-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.hourly-item {
  flex: 0 0 auto;
  width: 84px;
  text-align: center;
  background: rgba(250, 246, 236, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 14px 8px;
}

.hourly-item__time {
  font-size: 0.78rem;
  color: rgba(250, 246, 236, 0.6);
  margin-bottom: 8px;
}

.hourly-item__icon {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.hourly-item__temp {
  font-weight: 600;
  margin-bottom: 6px;
}

.hourly-item__bar {
  height: 40px;
  width: 8px;
  margin: 0 auto 6px;
  border-radius: 999px;
  background: rgba(250, 246, 236, 0.12);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hourly-item__bar-fill {
  width: 100%;
  background: linear-gradient(180deg, #7ec8ff, #3d8bd6);
  border-radius: 999px;
}

.hourly-item__precip {
  font-size: 0.72rem;
  color: rgba(250, 246, 236, 0.55);
}

.radar-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.radar-scrubber {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  background: rgba(250, 246, 236, 0.2);
  cursor: pointer;
}

.radar-scrubber::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  border: none;
  margin-top: -6px;
}

.radar-scrubber::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  border: none;
}

.radar-scrubber::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(250, 246, 236, 0.2);
}

.radar-time {
  font-size: 0.85rem;
  color: rgba(250, 246, 236, 0.7);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.radar-map {
  height: 360px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--forest-mid);
}

.radar-attribution {
  font-size: 0.68rem;
  color: rgba(250, 246, 236, 0.4);
  margin: 10px 2px 0;
}

.radar-error {
  padding: 16px;
  text-align: center;
  color: rgba(250, 246, 236, 0.6);
  font-size: 0.85rem;
}

.form-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(250, 246, 236, 0.6);
  margin: 18px 0 8px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: rgba(250, 246, 236, 0.06);
  color: var(--cream);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-input:focus {
  outline: none;
  border-color: var(--gold);
}

.emoji-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.emoji-option {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(250, 246, 236, 0.05);
  font-size: 1.3rem;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.emoji-option.is-selected {
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* ---------------------------------------------------------------------- */
/* Familienbereich — Stil an echten Plattformen orientiert:                */
/* Gruppenliste wie WhatsApp-Chatliste, Feed/Beitrag wie Instagram-Post.   */
/* Farben/Formen kommen aus dem body.theme-family-Block weiter unten.      */
/* ---------------------------------------------------------------------- */
.ig-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--ig-border);
}

.ig-topbar__back {
  font-size: 0.85rem;
  color: var(--ig-text-secondary);
  text-decoration: none;
}

.ig-topbar__back:hover {
  color: var(--ig-text);
}

.ig-topbar__label {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ig-text);
}

.ig-topbar__new,
.ig-topbar__iconbtn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--ig-surface-alt);
  color: var(--ig-text);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.ig-topbar__new:hover,
.ig-topbar__iconbtn:hover {
  background: var(--ig-surface-alt-hover);
}

.ig-topbar__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ig-text);
}

.ig-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ig-surface-alt);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.hub-tagline {
  margin: 14px 4px 18px;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--ig-text-secondary);
}

/* ------------------------------ Gruppenliste ------------------------------ */
.chat-list {
  display: flex;
  flex-direction: column;
}

.chat-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 4px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--ig-border);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

.chat-row:hover {
  background: var(--ig-surface-alt);
}

.chat-row__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ig-avatar-ring);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.chat-row__body {
  flex: 1;
  min-width: 0;
}

.chat-row__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.chat-row__name {
  font-weight: 700;
  color: var(--ig-text);
}

.chat-row__time {
  font-size: 0.75rem;
  color: var(--ig-text-secondary);
  flex-shrink: 0;
}

.chat-row__preview {
  font-size: 0.87rem;
  color: var(--ig-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-row__chevron {
  color: var(--ig-text-secondary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* -------------------------------- Composer -------------------------------- */
.ig-composer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 16px 4px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--ig-border);
}

.ig-composer__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--ig-surface-alt);
  color: var(--ig-text);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.ig-composer__caption {
  flex: 1 1 160px;
  border: none;
  border-bottom: 1px solid var(--ig-border);
  background: none;
  padding: 8px 2px;
  color: var(--ig-text);
  font-family: inherit;
  font-size: 0.9rem;
}

.ig-composer__caption:focus {
  outline: none;
  border-color: var(--ig-accent);
}

.ig-composer__submit {
  border: none;
  background: none;
  color: var(--ig-accent);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 6px 8px;
}

.ig-composer__submit:disabled {
  color: var(--ig-accent-disabled);
  cursor: not-allowed;
}

/* ---------------------------------- Feed ----------------------------------- */
.ig-feed {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 18px;
}

.ig-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--ig-text-secondary);
}

.ig-post {
  border: 1px solid var(--ig-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--ig-surface);
}

.ig-post__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}

.ig-post__author {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ig-text);
}

.ig-post__media {
  width: 100%;
  max-height: 480px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  background: var(--ig-surface-alt);
}

.ig-post__media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

.ig-post__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 8px 0;
}

.ig-icon-btn {
  background: none;
  border: none;
  color: var(--ig-text);
  cursor: pointer;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}

.ig-icon-btn:hover {
  transform: scale(1.08);
}

.ig-like.is-liked {
  color: var(--ig-like);
}

.ig-post__likes {
  padding: 4px 14px 0;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ig-text);
}

.ig-post__caption {
  padding: 6px 14px 0;
  line-height: 1.5;
  font-size: 0.9rem;
  color: var(--ig-text);
}

.ig-post__caption strong {
  margin-right: 6px;
}

.ig-post__comments {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 14px 0;
  font-size: 0.88rem;
}

.ig-post__comments strong {
  margin-right: 6px;
  color: var(--ig-text);
}

.ig-post__time {
  padding: 8px 14px 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ig-text-secondary);
}

.ig-post__composer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 14px;
  border-top: 1px solid var(--ig-border);
  margin-top: 10px;
}

.ig-post__composer input {
  flex: 1;
  border: none;
  background: none;
  color: var(--ig-text);
  font-family: inherit;
  font-size: 0.88rem;
}

.ig-post__composer input:focus {
  outline: none;
}

.ig-post__comment-submit {
  border: none;
  background: none;
  color: var(--ig-accent);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

/* -------------------------------- Verwalten -------------------------------- */
.ig-manage {
  margin-top: 24px;
  padding: 20px 4px;
  border-top: 1px solid var(--ig-border);
}

.ig-manage__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.ig-manage__head h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--ig-text);
}

.ig-email-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.ig-email-row input {
  flex: 1;
  border: 1px solid var(--ig-border);
  border-radius: 8px;
  padding: 9px 12px;
  background: var(--ig-surface);
  color: var(--ig-text);
  font-family: inherit;
}

.ig-email-row input:focus {
  outline: none;
  border-color: var(--ig-accent);
}

.ig-email-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.ig-email-chip {
  background: var(--ig-surface-alt);
  border-radius: 999px;
  padding: 6px 6px 6px 12px;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ig-text);
}

.ig-email-chip button {
  background: none;
  border: none;
  color: var(--ig-text-secondary);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.ig-danger-btn {
  background: none;
  border: 1px solid var(--ig-like);
  color: var(--ig-like);
  border-radius: 8px;
  padding: 9px 16px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

/* ---------------------------------------------------------------------- */
/* Footer                                                                  */
/* ---------------------------------------------------------------------- */
.footer {
  text-align: center;
  padding: 60px 20px 50px;
  color: rgba(250, 246, 236, 0.5);
  font-size: 0.85rem;
}

.footer strong {
  color: var(--gold);
}

/* ---------------------------------------------------------------------- */
/* Cursor glow (subtle, desktop only)                                     */
/* ---------------------------------------------------------------------- */
.cursor-glow {
  position: fixed;
  z-index: 1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 201, 93, 0.12), transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
}

@media (hover: hover) and (pointer: fine) {
  .cursor-glow.is-active {
    opacity: 1;
  }
}

/* ---------------------------------------------------------------------- */
/* Responsive                                                             */
/* ---------------------------------------------------------------------- */
@media (max-width: 720px) {
  .nav__links {
    display: none;
  }

  .section {
    padding: 90px 20px;
  }
}

/* ---------------------------------------------------------------------- */
/* Familienseite (/family/) — Theme angelehnt an echte Plattformen:        */
/* helle Fläche + Kartenraster wie Instagram, Farb-/Layoutsprache der      */
/* Gruppenliste wie eine Chat-App. Eigene Token-Namen (--ig-*), damit      */
/* nichts mit der dunklen Startseite kollidiert.                          */
/* ---------------------------------------------------------------------- */
body.theme-family {
  --ig-bg: #fafafa;
  --ig-surface: #ffffff;
  --ig-surface-alt: #f0f0f0;
  --ig-surface-alt-hover: #e6e6e6;
  --ig-border: #dbdbdb;
  --ig-text: #262626;
  --ig-text-secondary: #8e8e8e;
  --ig-accent: #0095f6;
  --ig-accent-disabled: #b2dffc;
  --ig-like: #ed4956;
  --ig-avatar-ring: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7);

  --forest-deep: var(--ig-bg);
  --glass-bg: var(--ig-surface);
  --glass-border: var(--ig-border);
  --cream: var(--ig-text);
  --gold: var(--ig-accent);
  --font-display: var(--font-body);
  --shadow-soft: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.theme-family .grain,
body.theme-family .cursor-glow {
  display: none;
}

body.theme-family .nav {
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid transparent;
}

body.theme-family .nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--ig-border);
  box-shadow: none;
}

body.theme-family .nav__brand {
  color: var(--ig-text);
}

body.theme-family .nav__links a {
  color: var(--ig-text-secondary);
}

body.theme-family .nav__links a:hover {
  color: var(--ig-text);
}

body.theme-family .modal-overlay__backdrop {
  background: rgba(38, 38, 38, 0.65);
}

body.theme-family .modal-panel {
  color: var(--ig-text);
  border-radius: 14px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.2);
}

body.theme-family .btn--primary {
  background: var(--ig-accent);
  color: #ffffff;
  box-shadow: none;
}

body.theme-family .btn--primary:hover {
  background: #1aa1f7;
  box-shadow: none;
  transform: none;
}

body.theme-family .form-input {
  background: var(--ig-surface);
  border-color: var(--ig-border);
  color: var(--ig-text);
  border-radius: 8px;
}

body.theme-family .form-label {
  color: var(--ig-text-secondary);
}

body.theme-family .emoji-option {
  background: var(--ig-surface-alt);
  border-color: var(--ig-border);
}

body.theme-family .footer {
  color: var(--ig-text-secondary);
}

body.theme-family .footer strong {
  color: var(--ig-text);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
