:root {
  --bg: #2f7b55;
  --bg-deep: #004d28;
  --overlay: rgba(0, 49, 25, 0.5);
  --overlay-soft: rgba(8, 62, 34, 0.34);
  --card-top: rgba(103, 157, 117, 0.78);
  --card-bottom: rgba(10, 74, 42, 0.88);
  --card-border: rgba(255, 255, 255, 0.14);
  --text: #f7fbf5;
  --muted: rgba(247, 251, 245, 0.84);
  --surface: rgba(243, 251, 240, 0.96);
  --surface-2: rgba(222, 242, 224, 0.96);
  --surface-border: rgba(0, 102, 49, 0.18);
  --ink: #155437;
  --accent: #006631;
  --accent-2: #11a35a;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(7, 33, 18, 0.28);
  --radius-panel: 34px;
  --radius-pill: 999px;
  --max-width: 760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Source Sans Pro", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, var(--overlay-soft), var(--overlay)),
    url("assets/kraeuterhausaussenbild.jpg") center/cover fixed no-repeat,
    linear-gradient(180deg, var(--bg), var(--bg-deep));
}

body[data-theme="light"] {
  --overlay: rgba(222, 241, 228, 0.52);
  --overlay-soft: rgba(246, 252, 245, 0.3);
  --card-top: rgba(248, 252, 247, 0.88);
  --card-bottom: rgba(214, 236, 215, 0.9);
  --card-border: rgba(0, 102, 49, 0.12);
  --text: #155437;
  --muted: rgba(21, 84, 55, 0.82);
  --surface: rgba(255, 255, 255, 0.98);
  --surface-2: rgba(236, 249, 237, 0.98);
  --shadow: 0 24px 70px rgba(0, 102, 49, 0.14);
}

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

button {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 14px;
}

.profile-card {
  width: min(100%, var(--max-width));
  padding: 28px 24px 24px;
  border-radius: var(--radius-panel);
  border: 1px solid var(--card-border);
  background:
    linear-gradient(180deg, var(--card-top), rgba(84, 136, 98, 0.78) 24%, var(--card-bottom) 100%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.top-actions {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.action-chip {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #10301d;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(16, 40, 23, 0.16);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.action-chip:hover,
.action-chip:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(16, 40, 23, 0.22);
}

.action-chip svg {
  width: 28px;
  height: 28px;
}

.hero {
  text-align: center;
}

.brand-avatar {
  width: 144px;
  height: 144px;
  margin: 8px auto 18px;
  padding: 10px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #006631;
  box-shadow: 0 18px 36px rgba(6, 41, 22, 0.24);
}

.brand-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hero h1 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.1rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.subtitle {
  max-width: 35ch;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.42;
}

.social-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 34px;
}

.social-link {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 160ms ease, background-color 160ms ease;
}

body[data-theme="light"] .social-link {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(0, 102, 49, 0.12);
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
}

body[data-theme="light"] .social-link:hover,
body[data-theme="light"] .social-link:focus-visible {
  background: rgba(255, 255, 255, 0.92);
}

.social-link svg {
  width: 26px;
  height: 26px;
}

.link-section + .link-section {
  margin-top: 30px;
}

.section-label {
  margin: 0 0 16px;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.link-list,
.secondary-list {
  display: grid;
  gap: 14px;
}

.link-card,
.secondary-card {
  display: grid;
  grid-template-columns: 88px 1fr 34px;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  padding: 10px 16px 10px 10px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--surface-border);
  color: var(--ink);
  box-shadow:
    0 12px 24px rgba(8, 37, 21, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.link-card:hover,
.link-card:focus-visible,
.secondary-card:hover,
.secondary-card:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 18px 30px rgba(8, 37, 21, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.logo-badge,
.secondary-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(15, 50, 28, 0.16);
}

.logo-white {
  background: rgba(255, 255, 255, 0.98);
}

.logo-white img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 6px;
}

.icon-badge {
  color: var(--accent);
  background: linear-gradient(145deg, #ffffff, #e8f6ea);
}

.icon-badge svg {
  width: 28px;
  height: 28px;
}

.secondary-icon {
  width: 58px;
  height: 58px;
  color: var(--white);
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
}

.secondary-icon svg {
  width: 32px;
  height: 32px;
}

.secondary-icon.instagram {
  background: linear-gradient(135deg, #f9ce34, #ee2a7b 52%, #6228d7);
}

.secondary-icon.facebook {
  background: linear-gradient(180deg, #1877f2, #0d5fd3);
}

.secondary-icon.youtube {
  background: linear-gradient(180deg, #ff3b30, #cf160c);
}

.secondary-icon.pinterest {
  background: linear-gradient(180deg, #e60023, #b8001c);
}

.secondary-icon.blog {
  background: linear-gradient(180deg, #17a35e, #006631);
}

.link-copy {
  min-width: 0;
}

.link-copy strong {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.link-copy span {
  display: block;
  margin-top: 3px;
  color: rgba(21, 84, 55, 0.84);
  font-size: 0.97rem;
  line-height: 1.24;
}

.card-share {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: rgba(21, 84, 55, 0.58);
  cursor: pointer;
}

.card-share svg {
  width: 18px;
  height: 18px;
}

.legal-section {
  margin-top: 30px;
  text-align: center;
  color: var(--muted);
}

.legal-section p {
  margin: 0;
}

.legal-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.legal-links a {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  font-family: "Montserrat", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
}

body[data-theme="light"] .legal-links a {
  border-color: rgba(0, 102, 49, 0.14);
  background: rgba(255, 255, 255, 0.66);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(12px);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(14, 36, 22, 0.92);
  color: #f7fbf5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 720px) {
  .profile-card {
    padding: 20px 16px 22px;
    border-radius: 28px;
  }

  .action-chip {
    width: 44px;
    height: 44px;
  }

  .action-chip svg {
    width: 24px;
    height: 24px;
  }

  .brand-avatar {
    width: 128px;
    height: 128px;
    padding: 9px;
  }

  .subtitle {
    font-size: 1.03rem;
  }

  .link-card,
  .secondary-card {
    grid-template-columns: 82px 1fr 28px;
    gap: 12px;
    min-height: 76px;
    padding: 9px 12px 9px 9px;
  }

  .logo-badge,
  .secondary-icon {
    width: 64px;
    height: 64px;
  }

  .secondary-icon {
    width: 50px;
    height: 50px;
  }

  .logo-white img {
    padding: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .action-chip,
  .social-link,
  .link-card,
  .secondary-card,
  .toast {
    transition: none;
  }
}
