/* ── Sections ── */
.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section:nth-child(even) { background: var(--bg-alt); }

.section-inner {
  max-width: 980px;
  width: 100%;
  text-align: center;
}

.section-label {
  text-transform: uppercase;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: #fff;
}

[data-theme="light"] .section-title {
  color: #1d1d1f;
}

.section-desc {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

.section-cta {
  display: inline-block;
  margin-top: 2rem;
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s;
}

.section-cta:hover { opacity: 0.7; }
.section-cta::after { content: ' \2192'; }

/* ── BASE Section ── */
.section-base {
  background: var(--bg);
}

.base-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 3rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.base-layer-foundation {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(var(--primary-rgb), 0.08);
  border: 2px solid var(--primary);
  border-radius: 16px;
  padding: 1.75rem 2.5rem;
  width: 100%;
}

.base-layer-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--primary);
}

.base-layer-icon svg {
  width: 100%;
  height: 100%;
}

.base-layer-content {
  text-align: left;
}

.base-layer-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

[data-theme="light"] .base-layer-title {
  color: #1d1d1f;
}

.base-suffix {
  font-size: 0.5em;
  color: var(--primary);
  font-weight: 700;
  vertical-align: baseline;
}

.base-layer-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  line-height: 1.5;
}

/* Each connector sits in a flex column that matches .base-modules'
   layout so the vertical line drops straight from the center of its
   module down to the foundation — three parallel lines, one per
   module, instead of three stubs in the middle. */
.base-connectors {
  display: flex;
  gap: 1.5rem;
  padding: 0.5rem 0;
  width: 100%;
}

.base-connector {
  flex: 1;
  display: flex;
  justify-content: center;
  height: 32px;
}

.base-connector::before {
  content: '';
  display: block;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--border));
  border-radius: 1px;
}

.base-modules {
  display: flex;
  gap: 1.5rem;
  width: 100%;
}

.base-module {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.3s, transform 0.3s;
}

a.base-module { cursor: pointer; }

.base-module:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

[data-theme="light"] .base-module {
  background: rgba(0,0,0,0.02);
}

.base-module svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

@media (max-width: 640px) {
  /* Keep the three connectors as parallel vertical lines (side-by-side)
     and list the module boxes vertically below them. */
  .base-modules { flex-direction: column; }
  .base-layer-foundation { padding: 1.25rem 1.5rem; }
}

/* ── Section with Background Image ── */
.section-with-bg {
  position: relative;
  overflow: hidden;
}

.section-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
}

.section-bg--base,
.section-bg--contact { background-image: var(--contact-bg, none); }
.section-bg--link    { background-image: url('../img/link.jpg'); }
.section-bg--findact { background-image: url('../img/find-act.jpg'); }
.section-bg--props   { background-image: url('../img/properties.jpg'); }

[data-theme="light"] .section-bg {
  opacity: 0.10;
}

.section-bg-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, var(--bg) 0%, transparent 25%, transparent 75%, var(--bg) 100%);
  z-index: 0;
}

.section-with-bg .section-inner {
  position: relative;
  z-index: 1;
}

/* Legacy compat */
.section-findact {
  position: relative;
  overflow: hidden;
}

.section-findact-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  z-index: 0;
}

[data-theme="light"] .section-findact-bg {
  opacity: 0.12;
}

.section-findact-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, var(--bg) 0%, transparent 30%, transparent 70%, var(--bg) 100%);
  z-index: 0;
}

.section-findact .section-inner {
  position: relative;
  z-index: 1;
}

/* ── Feature Grid (FIND & ACT) ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .feature-grid { grid-template-columns: 1fr; }
}

.feature-bullets {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0 0;
}

.feature-bullets li {
  position: relative;
  padding: 0.25rem 0 0.25rem 1rem;
  font-size: 0.95rem;
  color: var(--text-secondary, inherit);
  line-height: 1.5;
}

.feature-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.feature-card {
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: left;
  transition: border-color 0.3s;
}

.feature-card:hover {
  border-color: var(--primary);
}

/* ── Feature-card thumbnail preview ──
   Small square in the top-right corner of the tile indicating a
   preview is available. Hover or tap expands it into a larger
   floating preview anchored to the same corner. z-index lift ensures
   the expanded preview sits above neighboring tiles. */
.feature-thumb {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 52px;
  height: 40px;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  cursor: zoom-in;
  z-index: 2;
  transition: width 0.28s ease, height 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.feature-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, transparent 60%, rgba(0,0,0,0.55) 100%),
    /* tiny maximize-corner indicator */
    linear-gradient(to top left, rgba(255,255,255,0.85) 0 2px, transparent 3px) bottom right / 10px 10px no-repeat,
    linear-gradient(to top right, rgba(255,255,255,0.85) 0 2px, transparent 3px) bottom right / 10px 10px no-repeat;
}

.feature-thumb:hover,
.feature-thumb:focus-visible,
.feature-thumb.feature-thumb-open {
  width: 320px;
  height: 220px;
  border-color: var(--primary);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  cursor: zoom-out;
  z-index: 10;
  outline: none;
}

.feature-thumb:hover::after,
.feature-thumb:focus-visible::after,
.feature-thumb.feature-thumb-open::after {
  background: none;
}

@media (max-width: 640px) {
  .feature-thumb:hover,
  .feature-thumb:focus-visible,
  .feature-thumb.feature-thumb-open {
    width: min(260px, calc(100vw - 4rem));
    height: min(180px, calc((100vw - 4rem) * 0.6));
  }
}

@media (prefers-reduced-motion: reduce) {
  .feature-thumb { transition: none; }
}

[data-theme="light"] .feature-card {
  background: rgba(0,0,0,0.02);
}

.feature-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1.25rem;
  color: var(--primary);
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: #fff;
}

[data-theme="light"] .feature-title {
  color: #1d1d1f;
}

.feature-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Source Grid (LINK) ── */
.source-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 640px) {
  .source-grid { grid-template-columns: 1fr; }
}

.source-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: left;
  transition: border-color 0.3s;
}

.source-card:hover {
  border-color: var(--primary);
}

[data-theme="light"] .source-card {
  background: rgba(0,0,0,0.02);
}

.source-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 2px;
}

.source-icon svg {
  width: 100%;
  height: 100%;
}

.source-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #fff;
}

[data-theme="light"] .source-title {
  color: #1d1d1f;
}

.source-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Props Grid (EIGENSCHAFTEN) ── */
.props-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

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

@media (max-width: 480px) {
  .props-grid { grid-template-columns: 1fr; }
}

.prop-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  transition: border-color 0.3s;
}

.prop-badge:hover {
  border-color: var(--primary);
}

[data-theme="light"] .prop-badge {
  background: rgba(0,0,0,0.02);
}

.prop-icon {
  width: 28px;
  height: 28px;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.prop-icon svg {
  width: 100%;
  height: 100%;
}

.prop-label {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.3rem;
}

[data-theme="light"] .prop-label {
  color: #1d1d1f;
}

.prop-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.4;
}


/* ── Application Areas Section ── */
.section-areas {
  background: var(--bg);
  padding: 6rem 2rem;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 1280px;
  margin: 3rem auto 0;
}

@media (max-width: 800px) {
  .areas-grid { grid-template-columns: 1fr; }
}

.area-tile {
  position: relative;
  border: 1px solid transparent;
  border-radius: 16px;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  cursor: default;
  transition: border-color 0.3s;
}

.area-tile:hover {
  border-color: var(--primary);
}

.area-tile-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.area-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.05) 100%);
}

.area-tile-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  color: #fff;
  width: 100%;
}

.area-tile-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.area-tile-desc {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.9;
}

