/* TARVIS Public Layout – Final Pyramidenstruktur */

#layout {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.top-header {
  height: 70px;
  flex-shrink: 0;
}

.bottom-footer {
  height: 50px;
  flex-shrink: 0;
}

.public-wrapper {
  flex: 1 1 auto;
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1rem 5rem 1rem;
}

/* Intro */
.public-logo {
  display: block;
  margin: 1rem auto 0.1rem auto;
  width: 300px;
  opacity: 0.9;
}

.public-intro {
  text-align: center;
  max-width: 800px;
  margin: 3rem auto 1.5rem auto;
}

.public-intro h1 {
  font-size: 1.5rem;
  color: var(--color-main);
  margin-bottom: 1rem;
}

.public-intro p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 1rem;
}

/* Generische Public-Headings */
.public h1 {
  font-size: 1.8rem;
  color: var(--color-main);
  margin-top: 2.5rem;
  margin-bottom: 1.2rem;
}

.public h2 {
  font-size: 1.5rem;
  color: var(--color-main);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.public h3 {
  font-size: 1.3rem;
  color: var(--color-main);
  margin-top: 1.8rem;
  margin-bottom: 0.9rem;
}

.public p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 1.2rem;
}

/* Kartenstruktur */
.public-card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 1.25rem;
  border: 1px solid rgba(42, 79, 172, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
  margin: 0 !important;
  width: 100%;
}

.public-card:hover {
  background-color: #cad5f2;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.public-card h3 {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.public-card h3 i,
.public-card h3 [data-lucide] {
  stroke: var(--color-main);
  color: var(--color-main);
  margin-right: 0.5rem;
}

/* Farben & Schatten */
.card-1 h3 i, .card-1 h3 [data-lucide] { color: #6C63FF; stroke: #6C63FF; }
.card-2 h3 i, .card-2 h3 [data-lucide] { color: #4BB543; stroke: #4BB543; }
.card-3 h3 i, .card-3 h3 [data-lucide] { color: #FFAA00; stroke: #FFAA00; }
.card-4 h3 i, .card-4 h3 [data-lucide] { color: #E91E63; stroke: #E91E63; }
.card-5 h3 i, .card-5 h3 [data-lucide] { color: #2F8F95; stroke: #2F8F95; }
.card-10 h3 i, .card-10 h3 [data-lucide] { color: #2A4FAC; stroke: #2A4FAC; }

.card-1 { border-color: rgba(108,99,255,0.4); box-shadow: 0 2px 8px rgba(108,99,255,0.15); }
.card-2 { border-color: rgba(75,181,67,0.4);  box-shadow: 0 2px 8px rgba(75,181,67,0.15); }
.card-3 { border-color: rgba(255,170,0,0.4);  box-shadow: 0 2px 8px rgba(255,170,0,0.15); }
.card-4 { border-color: rgba(233,30,99,0.4);  box-shadow: 0 2px 8px rgba(233,30,99,0.15); }
.card-5 { border-color: rgba(74,195,201,0.4); box-shadow: 0 2px 8px rgba(74,195,201,0.15); }
.card-10 { border-color: rgba(42,79,172,0.4); box-shadow: 0 2px 8px rgba(42,79,172,0.15); }

.public-grid-stack {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  width: 95%;
  margin: 0 auto;
}

/* Zeile 1 – zentrierte Box */
.public-grid-row1 {
  display: flex;
  justify-content: center;
  margin: 2rem auto 1rem auto;
  position: relative;
}
.public-grid-row1 .public-card {
  width: 25%;
  min-width: 280px;
  max-width: 350px;
}

/* Zeile 2 – drei Spalten, mittlere Breite */
.public-grid-row2 {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1.0rem;
  margin: 1rem auto;
  width: 77%;
}
.public-grid-row2 .public-card {
  flex: 1 1 0;
  min-width: 280px;
  max-width: 350px;
}

/* Zeile 3 – breite Box */
.public-grid-row3 {
  display: flex;
  justify-content: center;
  margin: 1.0rem auto 2rem auto;
  width: 95%;
}
.public-grid-row3 .public-card {
  width: 100%;
  max-width: 1280px;
}

/* Chevron + Readmore */
.public-read-more {
  display: none;
  margin-top: 1rem;
}
.public-card.open .public-read-more {
  display: block;
}
.public-chevron-toggle {
  position: absolute;
  bottom: 0.3rem;
  right: 1.2rem;
  width: 24px;
  height: 24px;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.3s ease;
}
.public-chevron-toggle i {
  width: 100%;
  height: 100%;
  stroke-width: 2.2;
  color: var(--color-main);
  transition: transform 0.3s ease;
}
.public-card.open .public-chevron-toggle i {
  transform: rotate(180deg);
}

.public-card.textbox {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 1.25rem;
  border: 1px solid rgba(42, 79, 172, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
  margin: 0 !important;
  width: 100%;
  cursor: default;
  pointer-events: auto;
}

.public-card.textbox h1,
.public-card.textbox h2,
.public-card.textbox h3 {
  color: var(--color-main);
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: 600;
}

.public-card.textbox h1 {
  font-size: 1.75rem;
}

.public-card.textbox h2 {
  font-size: 1.4rem;
}

.public-card.textbox h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.public-card.textbox p {
  margin: 0 0 1.25rem 0;
}

/* Outro */
.public-outro {
  text-align: center;
  margin: 2rem auto;
  max-width: 720px;
}
.public-outro-icon {
  width: 64px;
  margin: 0.1rem auto;
  opacity: 0.9;
}
.public-outro-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2A4FAC;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}
.public-outro-subtext {
  font-size: 1.1rem;
  color: #444;
}

/* Responsive */
@media (max-width: 768px) {
  .public-grid-row1,
  .public-grid-row2,
  .public-grid-row3 {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .public-grid-row1 .public-card,
  .public-grid-row2 .public-card,
  .public-grid-row3 .public-card {
    width: 100%;
    max-width: 100%;
    margin-bottom: 1.5rem;
  }

  .public-grid-row2 {
    gap: 1.25rem;
  }
}


.public-grid-row1-wrapper {
  position: relative;
  margin: 2rem auto 1rem auto;
}

/* Quote links und rechts neben der Hauptbox */
.quote-side {
  position: absolute;
  top: 75%;
  transform: translateY(-50%);
  max-width: 450px;
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--color-main);
  opacity: 0.6;
}

.quote-side.left {
  transform: translate(-85%, -50%) rotate(-25deg);
  transform-origin: left center;
  text-align: left;
}

.quote-side.right {
  transform: translate(85%, -50%) rotate(25deg);
  transform-origin: right center;
  text-align: right;
}

/* Responsive fallback */
@media (max-width: 1000px) {
  .quote-side.left,
  .quote-side.right {
    display: none;
  }
}

