/* style.css: site-wide base styles. Every public page loads it (after bootstrap.min.css, before navbar.css).
   Holds the page base (font, text colour, links, headings, form fields) and the styles of the older pages
   that have no CSS file of their own: Über uns (organization.html), Impressum and Satzung (.footer-page)
   and Datenschutz. The newer pages bring their own file: see README.md in this folder. */

/* ---------- Page base ---------- */
:root {
  --accent-color: #0d0d0d;
  --bs-body-bg-rgb: 255, 255, 255;
  --bs-dark: #000;
}

:root {
  /* One font across the site (same as the new pages) */
  --body-font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --heading-font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  box-sizing: border-box;
}

body {
  font-family: var(--body-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 2;
  color: var(--accent-color);
  margin: 0;
}

strong {
  font-weight: bold;
}

a {
  color: var(--bs-dark);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--heading-font);
  font-weight: 600;
  font-style: normal;
}

/* ---------- Shared pieces: .container (Impressum, Satzung), h2 sizes, .card (Ablauf einer Adoption), .wrapper (every page) ---------- */
.container {
  width: 80%;
  margin: 0 auto;
  text-align: center;
}

h2 {
  font-size: 3em;
  margin: 20px 0;
}

@media (max-width: 1024px) {
  h2 {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  h2 {
    font-size: 1.8em;
  }
}

/* Individual card styling */
.card {
  position: relative;
  flex: 0 0 300px;
  /* Each card takes up 300px of width */
  height: 400px;
  overflow: hidden;
  border-radius: 20px;
  transition: transform 0.3s ease;
  cursor: pointer;
  scroll-snap-align: center;
  /* Cards snap into center */
  border: none;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
  border: none;
}

/* Mobile screens: Vertically align cards */
@media (max-width: 768px) {
  .card {
    flex: 0 0 100%;
    /* Full width on mobile */
    max-width: 300px;
    /* Max width of 300px */
    height: auto;
    /* Let the height adjust to content */
    margin-bottom: 20px;
    /* Space between stacked cards */
  }

  .card img {
    height: auto;
    /* Adjust height to fit the new card size */
  }
}

/* Small mobile screens: Further reduce size */
@media (max-width: 480px) {
  .card {
    max-width: 90%;
    /* Cards take up 90% of the screen */
    margin-bottom: 15px;
    /* Smaller space between cards */
  }
}

.wrapper {
  min-height: 100vh;
  /* Full height of the viewport */
  display: flex;
  flex-direction: column;
  /* Stacks the header, content, and footer */
}

/* Optional improvement: Adjust text size for smaller screens */
@media (max-width: 480px) {
  .container {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    max-width: 90%;
  }
}

/* ---------- Über uns (organization.html): milestones ---------- */
.timeline-steps-container {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  overflow-x: auto;
  padding: 40px 20px;
  scrollbar-width: none; /* Hides scrollbar on Firefox */
}

.timeline-steps-container::-webkit-scrollbar {
  display: none; /* Hides scrollbar on Chrome/Safari */
}

.timeline-step {
  display: flex;
  flex-direction: column; /* Stack Date over Title */
  align-items: center;
  justify-content: center;

  /* The Pill Shape */
  min-width: 200px;
  padding: 10px 20px;
  border-radius: 100px;

  background-color: #fff;
  border: 2px solid #e0e0e0; /* Light gray border for inactive */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);

  cursor: pointer;
  flex: 0 0 auto;
  transition: all 0.3s ease;
  text-align: center;
}

/* Date Styling (Top) */
.step-date {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #806c55; /* Brownish color for the text */
  font-weight: 700;
  line-height: 1.5;
}

/* Title Styling (Bottom) */
.step-title {
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.5;
}

/* Active / Hover State */
.timeline-step.active,
.timeline-step:hover {
  background-color: #998a73; /* The brownish background from your photo */
  border-color: #998a73;

  /* CHANGE: Replace translateY with scale for the zoom effect */
  transform: scale(1.05); /* Scales up by 5% */

  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Change text color to white when active */
.timeline-step.active .step-date,
.timeline-step.active .step-title,
.timeline-step:hover .step-date,
.timeline-step:hover .step-title {
  color: #fff;
}

.timeline-line {
  width: 30px;
  flex: 0 0 auto;
}

.timeline-details-container {
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  padding: 50px;
  display: none;
  animation: fadeIn 0.3s ease-in-out;
  flex-direction: row;
  margin: 0 auto;
  margin-bottom: 5rem;
}

.timeline-details-container.active {
  display: flex;
}

.timeline-details-container h2 {
  font-size: 2.5rem;
  color: black;
  margin-bottom: 20px;
  text-align: left;
}

.timeline-details-container p {
  font-size: 1rem;
  line-height: 1.6;
  margin-right: 10px;
  padding-right: 50px;
  text-align: justify;
}

.timeline-details-container img {
  max-width: 500px;
  height: 100%;
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@media (max-width: 480px) {
  .timeline-steps-container {
    width: 100%;
    height: 120px;
    padding: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: flex-start;
  }

  .timeline-step {
    width: 60px;
    height: 60px;
    font-size: 0.8rem;
  }

  .timeline-line {
    width: 30px;
  }

  .timeline-details-container {
    width: 100%;
    padding: 20px;
    margin-bottom: 20px;
    flex-direction: column;
    align-items: center;
  }

  .timeline-details-container h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    max-width: 100%;
  }

  .timeline-details-container p {
    font-size: 1rem;
    margin-bottom: 10px;
    padding-right: 0;
  }

  .timeline-details-container img {
    width: 100%;
    height: auto;
    order: -1; /* This moves the image to the first position */
    margin-bottom: 20px;
  }
}

/* ---------- Impressum and Satzung ---------- */
.footer-page {
  text-align: left;
}

.footer-page p {
  line-height: 1.6;
}

.footer-page a {
  color: #998a73;
}

.footer-page .section-title {
  line-height: 1.6;
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-page .section {
  margin-bottom: 20px;
}

/* ---------- Form fields: select boxes get the brown arrow ---------- */
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  color: #000000;
  background-image: url("../icon/arrow-down.1e8437db0ca3.svg");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 24px 24px;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  box-shadow: none;
}

/* Über uns: how a milestone appears */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Main headings on phones (every page) */
@media (max-width: 640px) {
  h1 {
    font-size: 2.5rem;
  }
}
/* ---------- Über uns (organization.html): page header ---------- */
@media (min-width: 768px) {
  .hero-section {
    padding: 6rem 4rem;
  }
}

@media (min-width: 1024px) {
  .hero-section {
    padding: 6rem 6rem;
  }
}

/* Hero Section */
.hero-section {
  background-color: #f6f5f2;
  padding-top: 100px;
}

.hero-title {
  text-align: center;
  margin-bottom: 4rem;
  padding-top: 1rem;
}

.hero-title h1 {
  font-size: clamp(2.5rem, 7vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #111827;
  margin-bottom: 1rem;
}

.hero-underline {
  width: 80px;
  height: 4px;
  background-color: #998a73;
  border-radius: 2px;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .hero-title {
    margin-bottom: 3rem;
  }
  .hero-title h1 {
    font-size: 2rem;
  }
}

/* Layout container */
.hero-container {
  position: relative;
  max-width: 90rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  z-index: 20;
}

@media (min-width: 1024px) {
  .hero-container {
    padding: 0 3rem;
  }
}

@media (min-width: 1280px) {
  .hero-container {
    padding: 0 4rem;
  }
}

/* ---------- Datenschutz (datenschutz.html) ---------- */
.datenschutz {
  padding: 2rem;
  background-color: #fdfdfd;
}
.datenschuts-h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.datenschuts-h2 {
  font-size: 1.75rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.datenschuts-p {
  margin-bottom: 1rem;
}
.datenschuts-list {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}
.datenschuts-list li {
  margin-bottom: 0.5rem;
}
.datenschuts-section {
  margin-bottom: 2rem;
}
.datenschutz a {
  color: #998a73;
  text-decoration: underline;
  word-break: break-word;
}
.datenschuts-h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .datenschutz {
    padding: 1rem; /* less padding on mobile */
  }
  .datenschuts-h1 {
    font-size: 2rem; /* smaller main heading */
  }
  .datenschuts-h2 {
    font-size: 1.5rem; /* smaller subheadings */
  }
  .datenschuts-p {
    font-size: 1rem; /* slightly smaller paragraphs */
  }
  .datenschuts-list {
    margin-left: 1rem; /* less indentation for lists */
  }
}

/* ---------- Über uns (organization.html): sections, photos, numbers, quote, tags ---------- */
.org-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.org-max-w-4xl {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.org-subtitle {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #806c55;
  margin-bottom: 0.75rem;
  display: block;
}

.text-justify {
  text-align: justify;
}

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

.org-body-text {
  color: #4b5563;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.org-section {
  padding: 5rem 0;
}

/* On mobile, you usually want them to stack again */
@media (max-width: 850px) {
  .org-section {
    padding: 5rem 1rem;
  }
}

.org-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .org-grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  .org-lg-order-1 {
    order: 1;
  }
}

/* Image Cards */
.org-image-wrapper {
  position: relative;
}

.org-image-card {
  border-radius: 32px;
  overflow: hidden;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  aspect-ratio: 5 / 4;
}

.org-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.org-stat-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background-color: white;
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 10;
}

.org-icon-circle {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: rgba(153, 138, 115, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #998a73;
}

.org-icon-circle svg {
  width: 1.5rem;
  height: 1.5rem;
}

.org-stat-number {
  margin-top: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 0.2;
}

.org-stat-label {
  font-size: 0.875rem;
  color: #4b5563;
  font-weight: 500;
  margin-bottom: 0rem;
}

@media (max-width: 768px) {
  .org-stat-badge {
    bottom: -2rem;
    right: 0.5rem;
    padding: 1rem;
  }
}

/* Journey Container */
.org-journey-card {
  background-color: white;
  border-radius: 32px;
  padding: 2rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border: 1px solid #f3f4f6;
  margin: 5rem 0;
}

@media (min-width: 1024px) {
  .org-journey-card {
    padding: 3rem;
  }
}

.org-stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #f3f4f6;
}

@media (min-width: 768px) {
  .org-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.org-stat-item {
  text-align: center;
}

.org-stat-item .org-icon-circle {
  margin: 0 auto 1rem;
  width: 4rem;
  height: 4rem;
}

.org-stat-item .org-icon-circle svg {
  width: 2rem;
  height: 2rem;
}

.org-stat-item .org-stat-number {
  margin-bottom: 0.5rem;
}

/* Quote block */
.org-quote-block {
  background-color: rgba(153, 138, 115, 0.1);
  border-left: 4px solid #998a73;
  padding: 1.5rem;
  border-radius: 0 16px 16px 0;
  margin-top: 1.5rem;
}

.org-quote-text {
  color: var(--text-dark);
  font-weight: 500;
  font-style: italic;
  line-height: 1.6;
}

.org-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.org-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #f6f5f2;
  padding: 0.625rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4b5563;
}

.org-tag svg {
  width: 1rem;
  height: 1rem;
  color: #998a73;
}

/* ---------- Every page ---------- */
/* Überschriften gleichmäßig umbrechen */
h1,
h2,
h3 {
  text-wrap: balance;
}

/* very small phones (320 px): wide buttons and long words stay inside the screen */
@media (max-width: 360px) {
  .datenschuts-h1 {
    font-size: 1.6rem;
    hyphens: auto;
    overflow-wrap: break-word;
  }
}
