/* ============================================================
   Kwizda Marketing Portal – Design System
   Source: Adobe XD "20260401_Kwizda-Agro_Distributorenplattform_v0-1_JM"
   Viewport: 1920 × 1080
   ============================================================ */

/* ---- Custom Properties ------------------------------------ */
:root {
  /* Colors */
  --color-primary:      #004B93;
  --color-text-dark:    #373737;
  --color-text-gray:    #707070;
  --color-text-light:   #808080;
  --color-bg-page:      #F0F2F5;
  --color-bg-card:      #E8E9EB;
  --color-white:        #FFFFFF;
  --color-border:       #D0D5DD;
  --color-border-blue:  #004B93;

  /* Typography */
  --font-family:        'Roboto', Arial, sans-serif;

  --fs-hero:            2.25rem;   /* 36px */
  --fs-h2:              1.75rem;   /* 28px */
  --fs-h3:              1.25rem;   /* 20px */
  --fs-body-lg:         1.0625rem; /* 17px */
  --fs-body:            0.9375rem; /* 15px */
  --fs-card:            0.875rem;  /* 14px */

  --fw-bold:            700;
  --fw-medium:          500;

  /* Layout */
  --max-width:          1400px;
  --gutter:             40px;
  --section-gap:        48px;
  --card-radius:        4px;
  --header-height:      72px;
}

/* ---- Reset & Base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; height: 100%; }

body {
  font-family: var(--font-family);
  font-weight: var(--fw-medium);
  font-size: var(--fs-body);
  color: var(--color-text-dark);
  background: var(--color-bg-page);
  line-height: 1.4;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

body > main {
  flex: 1;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ---- Layout Utility --------------------------------------- */
.portal-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============================================================
   HEADER
   ============================================================ */
.portal-header {
  background: var(--color-white);
  height: var(--header-height);
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.portal-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.portal-header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}

.portal-header__logo img {
  height: 44px;
  width: auto;
}

.portal-header__logo .logo-badge {
  height: 36px;
}

.portal-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 32px;
}

.portal-nav a {
  font-size: var(--fs-body-lg);
  font-weight: var(--fw-medium);
  color: var(--color-text-dark);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}

.portal-nav a:hover,
.portal-nav a.is-active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.portal-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.portal-lang-select {
  font-family: var(--font-family);
  font-size: var(--fs-card);
  color: var(--color-text-dark);
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 4px;
}

.portal-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}

.portal-icon-btn:hover { background: #003a73; }

.portal-icon-btn svg { width: 18px; height: 18px; }

.portal-profile {
  position: relative;
}
.portal-profile__dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  z-index: 200;
  overflow: hidden;
}
.portal-profile__item {
  display: block;
  padding: 12px 16px;
  font-size: var(--fs-card);
  color: var(--color-text-dark);
  text-decoration: none;
  transition: background .12s;
}
.portal-profile__item:hover {
  background: var(--color-bg-page);
  color: var(--color-primary);
}

/* ============================================================
   HERO BANNER
   ============================================================ */
.portal-hero {
  background:
    linear-gradient(to right, rgba(0,0,0,.30) 0%, transparent 55%),
    var(--color-primary) url('/images/portal-hero-bg.jpg') center / cover no-repeat;
  padding: 80px 0 28px;
}

.portal-hero__title {
  font-size: var(--fs-hero);
  font-weight: var(--fw-bold);
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.portal-main {
  padding: var(--section-gap) 0 64px;
}

/* ---- Search Bar ------------------------------------------- */
.portal-search {
  display: flex;
  justify-content: center;
  margin-bottom: var(--section-gap);
}

.portal-search__form {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 680px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 8px 8px 8px 20px;
  gap: 8px;
}

.portal-search__input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-family);
  font-size: var(--fs-card);
  color: var(--color-text-dark);
  background: transparent;
}

.portal-search__input::placeholder { color: var(--color-text-light); }

.portal-search__btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.portal-search__btn svg { width: 16px; height: 16px; }

/* ---- Section ---------------------------------------------- */
.portal-section { margin-bottom: var(--section-gap); }

.portal-section__heading {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  margin-bottom: 24px;
}

/* ---- Quick Actions Grid ----------------------------------- */
.portal-actions-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.portal-action-card {
  background: var(--color-white);
  border-radius: var(--card-radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  transition: box-shadow .15s;
  cursor: pointer;
}

.portal-action-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); }

.portal-action-card__label {
  font-size: var(--fs-card);
  font-weight: var(--fw-bold);
  color: var(--color-text-dark);
}

.portal-action-card__thumb {
  aspect-ratio: 4/3;
  background: var(--color-bg-card);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.portal-action-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- Products / Assets Grid ------------------------------ */
.portal-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.portal-card {
  background: var(--color-white);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: box-shadow .15s;
}

.portal-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }

.portal-card__thumb {
  aspect-ratio: 4/3;
  background: var(--color-bg-card);
  position: relative;
  overflow: hidden;
}

.portal-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder: plain grey, no pattern */
.portal-card__thumb--placeholder {
  background: var(--color-bg-card);
}

.portal-card__body {
  padding: 12px 14px;
}

.portal-card__title {
  font-size: var(--fs-card);
  font-weight: var(--fw-bold);
  color: var(--color-text-gray);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-card__subtitle {
  font-size: var(--fs-card);
  font-weight: var(--fw-medium);
  color: var(--color-text-gray);
  margin-top: 4px;
}

/* ── Status badge on UserCreation cards ─────────────────── */
.portal-card__status {
  position: absolute;
  top: 8px; right: 8px;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: var(--fw-bold);
  line-height: 1.4;
}
.portal-card__status--pending,
.portal-card__status--rendering {
  background: rgba(0,0,0,.45);
  color: #fff;
}
.portal-card__status--ready {
  background: #1a7d44;
  color: #fff;
}
.portal-card__status--error {
  background: #c00;
  color: #fff;
}

/* ── Download link inside card body ─────────────────────── */
.portal-card__download {
  display: inline-block;
  margin-top: 6px;
  font-size: var(--fs-card);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  text-decoration: none;
}
.portal-card__download:hover { text-decoration: underline; }

/* ── Card meta (date etc.) ───────────────────────────────── */
.portal-card__meta {
  font-size: 12px;
  color: var(--color-text-gray);
  margin: 2px 0 8px;
}

/* ── Small primary button variant (Re-open) ──────────────── */
.cr-btn-primary--sm {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  height: 32px;
  font-size: 13px;
  font-weight: var(--fw-bold, 700);
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--card-radius);
  text-decoration: none;
  transition: opacity .15s;
}
.cr-btn-primary--sm:hover { opacity: .85; }

/* ── Small secondary button variant (Generate / Download PDF) */
.cr-btn-secondary--sm {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  height: 32px;
  font-size: 13px;
  font-weight: var(--fw-bold, 700);
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  border-radius: var(--card-radius);
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.cr-btn-secondary--sm:hover:not(:disabled) { background: var(--color-primary); color: #fff; }
.cr-btn-secondary--sm:disabled {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}
.cr-btn-secondary--sm.cr-btn--loading {
  opacity: .7;
  cursor: pointer;
}

/* ── Card action row (Re-open + Generate PDF side by side) ── */
.portal-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

/* ── Empty state note ────────────────────────────────────── */
.portal-empty-note {
  grid-column: 1 / -1;
  font-size: var(--fs-card);
  color: var(--color-text-gray);
  padding: 8px 0;
}

/* ---- Brand Assets (2-col) -------------------------------- */
.portal-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.portal-asset-card {
  background: var(--color-white);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: box-shadow .15s;
  cursor: pointer;
}

.portal-asset-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }

.portal-asset-card__thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-primary);
}

.portal-asset-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-asset-card__label {
  padding: 12px 16px;
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  color: var(--color-text-dark);
}

/* ---- Vorlagen Carousel ----------------------------------- */
.portal-section--bordered {
  border: 2px solid var(--color-primary);
  border-radius: var(--card-radius);
  padding: 24px;
}

.portal-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.portal-carousel__track {
  flex: 1;
  overflow: hidden;
}

.portal-carousel__items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.portal-carousel__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
}

.portal-carousel__btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.portal-carousel__btn svg { width: 16px; height: 16px; }

/* ============================================================
   ASSETS PAGE
   ============================================================ */

/* ── Two-column layout: sidebar + content ─────────────────── */
.assets-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-gap) var(--gutter) 64px;
  align-items: start;
}

/* ── Sidebar ─────────────────────────────────────────────── */
.assets-sidebar {
  padding-right: 32px;
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.assets-search-bar {
  display: flex;
  align-items: center;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 7px 8px 7px 16px;
  gap: 6px;
  margin-bottom: 28px;
}

.assets-search-bar__input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-family);
  font-size: var(--fs-card);
  color: var(--color-text-dark);
  background: transparent;
  min-width: 0;
}

.assets-search-bar__input::placeholder { color: var(--color-text-light); }

.assets-search-bar__btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.assets-search-bar__btn svg { width: 14px; height: 14px; }

/* ── Filter Groups ──────────────────────────────────────── */
.assets-filter-group {
  margin-bottom: 28px;
}

.assets-filter-group__heading {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  color: var(--color-text-dark);
  margin-bottom: 12px;
}

.assets-filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-card);
  font-weight: var(--fw-medium);
  color: var(--color-text-dark);
  cursor: pointer;
  padding: 4px 0;
}

.assets-filter-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
}

.assets-filter-option__radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s;
}

.assets-filter-option input[type="radio"]:checked + .assets-filter-option__radio {
  border-color: var(--color-primary);
  background: radial-gradient(circle, var(--color-primary) 45%, transparent 45%);
}

.assets-filter-select-wrap {
  position: relative;
  margin-bottom: 12px;
}

.assets-filter-select {
  width: 100%;
  font-family: var(--font-family);
  font-size: var(--fs-card);
  color: var(--color-text-dark);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 8px 32px 8px 16px;
  appearance: none;
  cursor: pointer;
}

/* ── Results bar ────────────────────────────────────────── */
.assets-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}

.assets-results-bar__count {
  font-size: var(--fs-card);
  color: var(--color-text-gray);
}

.assets-results-bar__sort {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-card);
  color: var(--color-text-gray);
  flex-shrink: 0;
}

.assets-sort-select {
  font-family: var(--font-family);
  font-size: var(--fs-card);
  color: var(--color-text-dark);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 6px 28px 6px 16px;
  appearance: none;
  cursor: pointer;
}

/* ── Asset Grid ─────────────────────────────────────────── */
.assets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ── Asset Card ─────────────────────────────────────────── */
.asset-card {
  background: var(--color-white);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: box-shadow .15s;
}

.asset-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.12); }

.asset-card__thumb {
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--color-bg-card);
}

.asset-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .2s;
}

.asset-card__thumb:hover img { transform: scale(1.03); }

.asset-card__thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-border);
}

.asset-card__thumb-placeholder svg { width: 48px; height: 48px; }

.asset-card__body {
  padding: 12px 14px;
}

.asset-card__name {
  font-size: var(--fs-card);
  font-weight: var(--fw-bold);
  color: var(--color-text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}

.asset-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.asset-card__size {
  font-size: var(--fs-card);
  color: var(--color-text-gray);
}

.asset-card__actions {
  display: flex;
  gap: 8px;
}

.asset-card__action {
  color: var(--color-text-gray);
  transition: color .15s;
  line-height: 0;
}

.asset-card__action:hover { color: var(--color-primary); }
.asset-card__action svg { width: 18px; height: 18px; }

/* ── Empty state ────────────────────────────────────────── */
.assets-empty {
  padding: 48px 0;
  font-size: var(--fs-body);
  color: var(--color-text-gray);
  text-align: center;
}

.assets-empty a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ── Pagination ─────────────────────────────────────────── */
.assets-pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.assets-pagination__item {
  min-width: 36px;
  height: 36px;
  border-radius: 4px;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-card);
  color: var(--color-text-gray);
  transition: background .15s, color .15s, border-color .15s;
  padding: 0 10px;
}

.assets-pagination__item:hover,
.assets-pagination__item.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .assets-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .assets-layout { grid-template-columns: 1fr; padding-top: 24px; }
  .assets-sidebar { position: static; padding-right: 0; margin-bottom: 32px; }
  .assets-grid { grid-template-columns: repeat(2, 1fr); }
}

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

/* ============================================================
   BRAND PAGE – Cards
   ============================================================ */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.brand-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: box-shadow .15s;
}

.brand-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }

/* Thumbnail – landscape (Brand Guidelines) */
.brand-card__thumb {
  aspect-ratio: 16/10;
  background: var(--color-bg-card);
  overflow: hidden;
  position: relative;
}

.brand-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Thumbnail – logo variant: square, with visible border */
.brand-card__thumb--logo {
  aspect-ratio: 4/3;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.brand-card__thumb--logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-card__thumb--placeholder {
  background: var(--color-bg-card);
}

.brand-card__body {
  padding: 16px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.brand-card__title {
  font-size: var(--fs-h3);      /* 26px */
  font-weight: var(--fw-bold);
  color: var(--color-text-dark);
  line-height: 1.25;
}

.brand-card__description {
  font-size: var(--fs-body);    /* 20px */
  font-weight: var(--fw-medium);
  color: var(--color-text-gray);
  line-height: 1.5;
  flex: 1;
}

.brand-card__download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-card);    /* 18px */
  font-weight: var(--fw-medium);
  color: var(--color-text-gray);
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--color-border);
  transition: color .15s;
}

.brand-card__download:hover { color: var(--color-primary); }

.brand-card__download svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

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

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

/* ============================================================
   NEWS TEASER
   ============================================================ */

.news-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.news-teaser-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: box-shadow .15s, transform .15s;
}

.news-teaser-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
  transform: translateY(-2px);
}

.news-teaser-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--color-bg-card);
  overflow: hidden;
  position: relative;
}

.news-teaser-card__thumb--placeholder { background: var(--color-bg-card); }

.news-teaser-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-teaser-card__body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.news-teaser-card__date {
  font-size: var(--fs-card);
  color: var(--color-text-gray);
}

.news-teaser-card__title {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  color: var(--color-text-dark);
  line-height: 1.3;
}

.news-teaser-card__text {
  font-size: var(--fs-body);
  color: var(--color-text-gray);
  line-height: 1.5;
  margin-top: 4px;
}

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

@media (max-width: 600px) {
  .news-teaser-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CREATOR PAGE
   ============================================================ */

/* Breadcrumb */
.cr-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-card);
  color: var(--color-text-gray);
  margin-bottom: 32px;
}

.cr-breadcrumb a {
  color: var(--color-primary);
  font-weight: var(--fw-medium);
  transition: opacity .15s;
}

.cr-breadcrumb a:hover { opacity: .75; }

/* "Meine letzten Produkte" cards */
.cr-product-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.cr-product-card__thumb {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--color-bg-card);
  overflow: hidden;
  position: relative;
}

.cr-product-card__thumb--placeholder { background: var(--color-bg-card); }

.cr-product-card__thumb img { width: 100%; height: 100%; object-fit: cover; }

.cr-product-card__body {
  padding: 12px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cr-product-card__title {
  font-size: var(--fs-card);
  font-weight: var(--fw-bold);
  color: var(--color-text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cr-product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cr-product-card__subtitle {
  font-size: calc(var(--fs-card) - 2px);
  color: var(--color-text-gray);
}

.cr-product-card__menu {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 4px;
}

.cr-product-card__menu span {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-text-gray);
}

/* "+ Neues Produkt" CTA button */
.cr-new-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: var(--fs-card);
  font-weight: var(--fw-bold);
  padding: 12px 28px;
  border-radius: 100px;
  margin-top: 24px;
  transition: background .15s;
}

.cr-new-btn:hover { background: #003a72; }
.cr-new-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Brand cards (carousel) */
.cr-brand-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  transition: transform .3s ease;
}

.cr-brand-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: box-shadow .15s, transform .15s;
}

.cr-brand-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
  transform: translateY(-2px);
}

.cr-brand-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--color-bg-card);
  overflow: hidden;
  position: relative;
}

.cr-brand-card__thumb--placeholder { background: var(--color-bg-card); }
.cr-brand-card__thumb img { width: 100%; height: 100%; object-fit: cover; }

.cr-brand-card__body { padding: 14px 16px; }

.cr-brand-card__title {
  font-size: var(--fs-card);
  font-weight: var(--fw-bold);
  color: var(--color-text-dark);
}

/* Template grid (State 2) */
.cr-template-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

.cr-template-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: box-shadow .15s, transform .15s;
}

.cr-template-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
  transform: translateY(-2px);
}

.cr-template-card__thumb {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--color-bg-card);
  overflow: hidden;
  position: relative;
}

.cr-template-card__thumb--placeholder { background: var(--color-bg-card); }
.cr-template-card__thumb img { width: 100%; height: 100%; object-fit: cover; }

.cr-template-card__body {
  padding: 14px 16px;
  border-top: 1px solid var(--color-border);
}

.cr-template-card__title {
  font-size: var(--fs-card);
  font-weight: var(--fw-bold);
  color: var(--color-text-dark);
}

@media (max-width: 1100px) {
  .cr-template-grid { grid-template-columns: repeat(3, 1fr); }
  .cr-brand-items { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  .cr-template-grid { grid-template-columns: repeat(2, 1fr); }
  .cr-brand-items { grid-template-columns: repeat(2, 1fr); }
}

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

/* ============================================================
   NEWS ARTICLE DETAIL
   ============================================================ */

.na-hero {
  background: var(--color-primary);
  padding: 40px 0 36px;
}

.na-hero__meta {
  font-size: var(--fs-card);
  color: rgba(255,255,255,.75);
  font-weight: var(--fw-medium);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.na-hero__title {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  color: var(--color-white);
  line-height: 1.2;
  max-width: 820px;
}

.na-article {
  max-width: 820px;
  margin: 0 auto;
  padding: 44px 0 72px;
}

.na-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-card);
  font-weight: var(--fw-medium);
  color: var(--color-primary);
  margin-bottom: 32px;
  transition: opacity .15s;
}

.na-back:hover { opacity: .7; }

.na-hero-image {
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 36px;
}

.na-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.na-intro {
  font-size: var(--fs-body-lg);
  font-weight: var(--fw-bold);
  color: var(--color-text-dark);
  line-height: 1.5;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 2px solid var(--color-primary);
}

/* Rich-text body */
.na-body {
  font-size: var(--fs-body);
  color: var(--color-text-dark);
  line-height: 1.75;
}

.na-body p         { margin-bottom: 1.1em; }
.na-body h2        { font-size: var(--fs-h3); font-weight: var(--fw-bold); color: var(--color-primary); margin: 1.75em 0 .5em; }
.na-body h3        { font-size: var(--fs-body-lg); font-weight: var(--fw-bold); color: var(--color-text-dark); margin: 1.4em 0 .4em; }
.na-body ul,
.na-body ol        { margin: .5em 0 1.1em 1.4em; }
.na-body li        { margin-bottom: .3em; }
.na-body a         { color: var(--color-primary); text-decoration: underline; }
.na-body a:hover   { opacity: .75; }
.na-body img       { max-width: 100%; border-radius: var(--radius); margin: 1em 0; }
.na-body blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 12px 20px;
  margin: 1.5em 0;
  color: var(--color-text-gray);
  font-style: italic;
}

/* ============================================================
   FOOTER
   ============================================================ */
.portal-footer {
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding: 20px 0;
}

.portal-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.portal-footer__links {
  display: flex;
  gap: 24px;
}

.portal-footer__links a {
  font-size: var(--fs-card);
  font-weight: var(--fw-medium);
  color: var(--color-text-gray);
  transition: color .15s;
}

.portal-footer__links a:hover { color: var(--color-primary); }

.portal-footer__copy {
  font-size: var(--fs-card);
  color: var(--color-text-gray);
}

/* ============================================================
   RESPONSIVE (basic)
   ============================================================ */
@media (max-width: 1200px) {
  .portal-actions-grid { grid-template-columns: repeat(3, 1fr); }
  .portal-carousel__items { grid-template-columns: repeat(3, 1fr); }
}

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

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .portal-actions-grid { grid-template-columns: 1fr; }
  .portal-grid-4 { grid-template-columns: 1fr; }
  .portal-carousel__items { grid-template-columns: 1fr; }
  .portal-hero__title { font-size: 2rem; }
  .portal-section__heading { font-size: 1.75rem; }
  .portal-nav { display: none; }
}
