
/* Fonts */
:root {
  --default-font: "Roboto",  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Raleway",  sans-serif;
  --nav-font: "Poppins",  sans-serif;
}

/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root { 
  --background-color: #ffffff; /* Background color for the entire website, including individual sections */
  --default-color: #444444; /* Default color used for the majority of the text content across the entire website */
  --heading-color: #2a2c39; /* Color for headings, subheadings and title throughout the website */
  --accent-color: #044BD9; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --surface-color: #ffffff; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: #ffffff; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
}

/* Nav Menu Colors - The following color variables are used specifically for the navigation menu. They are separate from the global colors to allow for more customization options */
:root {
  --nav-color: #ffffff;  /* The default color of the main navmenu links */
  --nav-hover-color: #044BD9; /* Applied to main navmenu links when they are hovered over or active */
  --nav-mobile-background-color: #ffffff; /* Used as the background color for mobile navigation menu */
  --nav-dropdown-background-color: #ffffff; /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
  --nav-dropdown-color: #060606; /* Used for navigation links of the dropdown items in the navigation menu. */
  --nav-dropdown-hover-color: #044BD9; /* Similar to --nav-hover-color, this color is applied to dropdown navigation links when they are hovered over. */
}


/* ===========================
   Blog Intro (Unser Blog)
=========================== */

.blog-intro {
  padding: 80px 0 30px;
}

.blog-intro .section-title h2 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
section {
  padding: 20px 0;
}
.section-title {
  padding-bottom: 10px;
}
.blog-intro .section-title p {
  margin: 0;
  font-size: 1rem;
  color: color-mix(in srgb, var(--default-color), transparent 10%);
}

/* ===========================
   Blog List Section
=========================== */

.blog {
  padding: 30px 0 80px;
}

/* Kategorien-Buttons (Chips) */

.blog-categories {
  margin-top: 10px;
  margin-bottom: 32px;
}

.blog-categories .btn {
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.8rem;
}

.blog-categories .btn-outline-primary {
  border-color: color-mix(in srgb, var(--accent-color), transparent 50%);
  color: color-mix(in srgb, var(--accent-color), transparent 10%);
  background-color: #f9fafb;
}

.blog-categories .btn-outline-primary:hover,
.blog-categories .btn-outline-primary.active {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--contrast-color);
}

/* Grid-Abstände der Cards */

.posts-list {
  row-gap: 32px;
}

/* ===========================
   Blog Cards
=========================== */

.blog .posts-list .blog-card {
  background-color: var(--surface-color);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  padding: 0 0 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog .posts-list .blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

/* Bild oben mit fixer Höhe */

.blog .posts-list .blog-card .post-img {
  margin: 0;
  max-height: 220px;
  overflow: hidden;
}

.blog .posts-list .blog-card .post-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* Titel */

.blog .posts-list .blog-card h2.title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 18px 18px 8px;
  line-height: 1.4;
}

.blog .posts-list .blog-card h2.title a {
  color: var(--heading-color);
  text-decoration: none;
}

.blog .posts-list .blog-card h2.title a:hover {
  color: var(--accent-color);
}

/* Excerpt – auf 3 Zeilen begrenzt */

.blog .posts-list .blog-card .post-excerpt {
  margin: 0 18px 16px;
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Meta-Bereich unten */

.blog .posts-list .blog-card .post-meta {
  margin: 0 18px 4px;
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.blog .posts-list .blog-card .post-meta p {
  margin-bottom: 4px;
}

.blog .posts-list .blog-card .post-meta i {
  font-size: 0.9rem;
  margin-right: 4px;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}
