/* Shared card system: --info, --action and --product are the public variants.
   --module, --media and --logo describe layout, independently of interaction.
   Semantic links/buttons also activate interaction, including optional Panel
   links inside an information card. Product surfaces and artwork are retained. */
html body :is(#main-content, .edp-card-layout) .edp-card-base {
  --card-border: #e3e4e6;
  --card-shadow: 0 2px 8px rgb(27 28 27 / 4%);
  position: relative;
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  height: auto;
  padding: 24px;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  font-family: 'Miriam Libre', sans-serif;
  text-decoration: none;
  overflow-wrap: anywhere;
  cursor: default;
  opacity: 1;
  transform: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
html body :is(#main-content, .edp-card-layout) .edp-card-base:not(.edp-card--product) {
  --accent-start: #c9070a;
  --accent-end: #c9070a;
  --blog-card-accent: #c9070a;
  --edp-accent: #c9070a;
  --card-accent: #c9070a;
  --card-accent-end: #c9070a;
  background: #fff;
  color: #333;
}
html body :is(#main-content, .edp-card-layout) .edp-card-base :is(h2, h3, .product-overview__web-copy strong, .product-overview__pillar-copy strong) {
  margin: 0 0 12px;
  font-size: var(--heading-card-size, 22px);
  line-height: 1.3;
  letter-spacing: normal;
}
html body :is(#main-content, .edp-card-layout) .edp-card-base :is(p, .richtext, .webportal-info-card__text) {
  font-size: 18px;
  line-height: 1.6;
}
html body :is(#main-content, .edp-card-layout) .edp-card-base p { margin: 0 0 16px; }
html body :is(#main-content, .edp-card-layout) .edp-card-base p:last-child { margin-bottom: 0; }
html body :is(#main-content, .edp-card-layout) .edp-card-base:not(.edp-card--product) :is(h2, h3, p, .richtext, .card-text) { color: #333; }
html body :is(#main-content, .edp-card-layout) .edp-card-base .material-symbols-outlined {
  font-size: 28px;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
html body :is(#main-content, .edp-card-layout) .edp-card-base:not(.edp-card--product) :is(.feature-card__icon, .benefit-card__icon, .spezial-card__icon, .career-benefit__icon, .career-education__icon, .material-symbols-outlined) { color: #c9070a; }
html body :is(#main-content, .edp-card-layout) .edp-card-base:not(.edp-card--product) :is(.card-accent, .spezial-card__accent, .career-benefit__accent) {
  height: 2px;
  background: #c9070a;
  border-radius: 12px 12px 0 0;
}
html body :is(#main-content, .edp-card-layout) .edp-card-base.webportal-principle__card::before { height: 2px; background: #c9070a; }
html body :is(#main-content, .edp-card-layout) .edp-card-base.edp-card--product .card-accent { height: 2px; background: var(--accent-start, var(--page-accent)); }
html body :is(#main-content, .edp-card-layout) .edp-card-base.blog-card--without-image::after {
  height: 2px;
  background: #c9070a;
}
/* News labels retain their existing category/topic colours and surfaces. */
html body :is(#main-content, .edp-card-layout) .edp-card-base :is(.news-card__category, .blog-card-topic) .material-symbols-outlined { color: inherit; }
/* Information variant: neither a link nor a container of links/buttons. */
html body :is(#main-content, .edp-card-layout) :is(.edp-card-base, .edp-card-interactive):not(:is(a[href], button, :has(a[href], button))):is(:hover, :focus-within) {
  transform: none;
  box-shadow: var(--card-shadow);
}
/* Existing product presentation: share only interaction, never layout or type. */
html body :is(#main-content, .edp-card-layout) .edp-card-interactive {
  --card-shadow: var(--shadow-sm);
  opacity: 1;
  transform: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
/* Information cards have no decorative top rule, including optional products
   without a link. Internal content separators remain part of their layout. */
html body :is(#main-content, .edp-card-layout) :is(.edp-card-base, .edp-card-interactive):not(:is(a[href], button, :has(a[href], button))) > :is(.card-accent, .spezial-card__accent, .career-benefit__accent) { display: none; }
html body :is(#main-content, .edp-card-layout) :is(.edp-card-base, .edp-card-interactive):not(:is(a[href], button, :has(a[href], button)))::before,
html body :is(#main-content, .edp-card-layout) :is(.edp-card-base, .edp-card-interactive):not(:is(a[href], button, :has(a[href], button)))::after { content: none; display: none; }
/* Action variant: whole-card links and separately actionable links. */
html body :is(#main-content, .edp-card-layout) :is(.edp-card-base, .edp-card-interactive):is(a[href], button) { cursor: pointer; }
html body :is(#main-content, .edp-card-layout) :is(.edp-card-base, .edp-card-interactive):is(a[href], button, :has(a[href], button)):focus-visible,
html body :is(#main-content, .edp-card-layout) :is(.edp-card-base, .edp-card-interactive) :is(a, button):focus-visible {
  outline: 3px solid #c9070a;
  outline-offset: 4px;
}
html body :is(#main-content, .edp-card-layout) :is(.edp-card-base, .edp-card-interactive):has(:focus-visible) {
  outline: 3px solid #c9070a;
  outline-offset: 4px;
}
html body :is(#main-content, .edp-card-layout) .edp-card-base :is(.edp-card__action, .edp-link, .related-overview-card__link, .news-card__footer > a) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--card-border);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  color: inherit;
}
html body :is(#main-content, .edp-card-layout) .edp-card-base :is(.edp-card__arrow, .news-card__action .material-symbols-outlined, .footer-action-link .material-symbols-outlined, .product-overview__pillar-arrow) {
  flex-shrink: 0;
  font-size: 24px;
  transform: none;
  transition: transform 180ms ease;
  color: inherit;
}
html body :is(#main-content, .edp-card-layout) .edp-card-base .news-card__action,
html body :is(#main-content, .edp-card-layout) .edp-card-base .footer-action-link { background: transparent; color: inherit; transform: none; }
html body :is(#main-content, .edp-card-layout) .edp-card-base:is(.news-card, .blog-card, .blog-related__card) :is(.edp-card__arrow, .news-card__action, .footer-action-link) { color: var(--edp-red); }
@media (hover: hover) and (pointer: fine) {
  html body :is(#main-content, .edp-card-layout) :is(.edp-card-base, .edp-card-interactive):is(a[href], button, :has(a[href], button)):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgb(27 28 27 / 9%);
  }
  html body :is(#main-content, .edp-card-layout) :is(.edp-card-base, .edp-card-interactive):is(a[href], button, :has(a[href], button)):hover :is(.edp-card__arrow, .news-card__action .material-symbols-outlined, .footer-action-link .material-symbols-outlined, .product-overview__pillar-arrow) { transform: translateX(3px); }
}
/* Flexible row layout; subgrid aligns titles, text and actions independently. */
html body :is(#main-content, .edp-card-layout) :is(.product-grid, .card-grid, .edp-two, .spezial-card-grid, .product-overview__main, .product-overview__web-products, .product-overview__service-products, .career-benefits-grid):not(:has(> .edp-card-interactive)) { grid-auto-rows: auto; align-items: stretch; }
html body :is(#main-content, .edp-card-layout) :has(> .edp-card-base):not(:has(> .edp-card-interactive)) { grid-auto-rows: auto; align-items: stretch; }
html body :is(#main-content, .edp-card-layout) .edp-card-base:is(.feature-card, .benefit-card, .spezial-card, .career-benefit, .about-related-card, .webportal-principle__card) {
  display: flex;
  flex-direction: column;
  gap: 0;
}
html body :is(#main-content, .edp-card-layout) .edp-card-base:is(.edp-sector, .edp-project-card, .related-overview-card, .about-related-card, .spezial-project-card, .blog-card, .news-card) { align-items: stretch; text-align: left; }
html body :is(#main-content, .edp-card-layout) .edp-card-base:is(.product-card, .product-overview__main-card) {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  row-gap: 12px;
  align-content: stretch;
}
html body :is(#main-content, .edp-card-layout) .edp-card-base.product-card .product-card__icon-wrap { align-self: center; }
html body :is(#main-content, .edp-card-layout) .edp-card-base.product-card > :is(h3, p) { margin: 0; }
html body :is(#main-content, .edp-card-layout) .edp-card-base.product-card > .product-card__icon-wrap { grid-row: 1; }
html body :is(#main-content, .edp-card-layout) .edp-card-base.product-card > h3 { grid-row: 2; }
html body :is(#main-content, .edp-card-layout) .edp-card-base.product-card > p { grid-row: 3; }
html body :is(#main-content, .edp-card-layout) .edp-card-base.product-card > .richtext { grid-row: 3; }
html body :is(#main-content, .edp-card-layout) .edp-card-base.product-card > .edp-card__action { grid-row: 4; align-self: stretch; }
html body :is(#main-content, .edp-card-layout) .edp-card-base:is(.product-card, .product-overview__main-card, .product-overview__web-card) > .edp-card__action { margin-top: 0; align-self: stretch; }
html body :is(#main-content, .edp-card-layout) .edp-card-base.product-card:not(:has(.edp-card__action)) {
  grid-row: auto;
  grid-template-rows: auto;
  align-content: start;
}
html body :is(#main-content, .edp-card-layout) .edp-card-base.product-card:has(.webportal-info-card__text) { text-align: left; justify-items: start; }
/* Offers have an examples footer rather than a link: preserve the shared tracks. */
html body :is(#main-content, .edp-card-layout) .edp-card-base.edp-project-card {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  gap: 16px;
}
html body :is(#main-content, .edp-card-layout) .edp-card-base .solution-card__heading { display: flex; gap: 12px; align-items: flex-start; }
html body :is(#main-content, .edp-card-layout) .edp-card-base .solution-card__heading h3 { margin: 0; }
html body :is(#main-content, .edp-card-layout) .edp-card-base .solution-card__examples { margin: 0; padding-top: 16px; border-top: 1px solid var(--card-border); text-align: left; }
html body :is(#main-content, .edp-card-layout) .edp-card-base .solution-card__examples p { font-size: 16px; }
/* Product/module variant: retain surfaces, icon sizes and nesting. */
html body :is(#main-content, .edp-card-layout) .edp-card-base.edp-card--module { padding: 20px 16px; }
html body :is(#main-content, .edp-card-layout) .edp-card-base.product-overview__pillar-card::before { height: 2px; background: var(--product-color); border-radius: 12px 12px 0 0; }
html body :is(#main-content, .edp-card-layout) .edp-card-base.edp-card--header { border: 0; border-radius: 12px 12px 0 0; box-shadow: none; }
html body :is(#main-content, .edp-card-layout) .edp-card-base .product-overview__portal-copy strong { font-size: 22px; }
html body :is(#main-content, .edp-card-layout) .edp-card-base .product-overview__portal-copy small { font-size: 16px; line-height: 1.5; }
html body :is(#main-content, .edp-card-layout) .edp-card-base.product-overview__main-card :is(h3, p) { margin: 0; opacity: 1; color: inherit; }
html body :is(#main-content, .edp-card-layout) .edp-card-base.product-overview__main-card h3 { font-size: 20px; }
html body :is(#main-content, .edp-card-layout) .edp-card-base.product-overview__main-card p { font-size: 16px; line-height: 1.5; }
html body :is(#main-content, .edp-card-layout) .edp-card-base.product-overview__web-card { grid-row: span 3; grid-template-rows: subgrid; row-gap: 12px; align-content: stretch; }
html body :is(#main-content, .edp-card-layout) .edp-card-base.product-overview__web-card::before { height: 2px; background: var(--web-product-color, #c9070a); }
html body :is(#main-content, .edp-card-layout) .edp-card-base.product-overview__web-card:not(.edp-card--product)::before { background: #c9070a; }
html body :is(#main-content, .edp-card-layout) .edp-card-base .product-overview__web-copy strong { display: block; font-size: 20px; }
html body :is(#main-content, .edp-card-layout) .edp-card-base .product-overview__web-copy small { font-size: 16px; line-height: 1.5; }
/* Media variant: picture and content share the same frame. */
html body :is(#main-content, .edp-card-layout) .edp-card-base.edp-card--media { padding: 0; overflow: hidden; }
html body :is(#main-content, .edp-card-layout) .edp-card-base.edp-card--form { padding: 0; }
html body :is(#main-content, .edp-card-layout) .edp-card-base.edp-card--form .card-body { padding: 24px; }
html body :is(#main-content, .edp-card-layout) .edp-card-base.newsletter-signout__card::before { height: 2px; background: #c9070a; }
html body :is(#main-content, .edp-card-layout) .edp-card-base .newsletter-signout__icon { background: #fff; color: #c9070a; }
html body :is(#main-content, .edp-card-layout) .edp-card-base.blog-card .blog-card-body { padding: 24px; }
html body :is(#main-content, .edp-card-layout) .edp-card-base.blog-card .blog-card-footer { padding: 0 24px 24px; margin-top: auto; }
html body :is(#main-content, .edp-card-layout) .edp-card-base.edp-card--logo { padding: 16px; flex-direction: column; gap: 16px; justify-content: flex-start; }
html body :is(#main-content, .edp-card-layout) .edp-card-base.edp-card--logo img { width: 100%; height: auto; aspect-ratio: 2; object-fit: contain; }
html body :is(#main-content, .edp-card-layout) .edp-card-base.edp-card--logo img { filter: none; opacity: 1; transform: none; transition: none; }
html body :is(#main-content, .edp-card-layout) .edp-card-base.timeline-card { text-align: left; }
html body :is(#main-content, .edp-card-layout) .edp-card-base :is(.richtext, .webportal-info-card__text) { text-align: left; }
html body :is(#main-content, .edp-card-layout) .edp-card-base :is(.feature-card__icon, .benefit-card__icon, .spezial-card__icon, .career-benefit__icon, .webportal-principle__icon, .webportal-info-card__icon, .career-education__icon) { width: 40px; height: 40px; margin-bottom: 16px; background: transparent; border-radius: 0; }
/* Icons beside a heading share the same appearance without an extra bottom gap. */
html body :is(#main-content, .edp-card-layout) .edp-card-base .career-education__icon { margin-bottom: 0; align-self: center; }
html body :is(#main-content, .edp-card-layout) .edp-card-base.career-education__card > h3 { margin: 0; }
/* Explanatory and factual cards use one alignment throughout each section.
   Facts also align left so longer details share the same layout as short ones. */
html body :is(#main-content, .edp-card-layout) .edp-card-base.edp-card--info {
  align-items: stretch;
  justify-content: stretch;
  text-align: left;
}
html body :is(#main-content, .edp-card-layout) .edp-card-base.edp-card--info.product-card {
  grid-template-columns: minmax(0, 1fr);
}
html body :is(#main-content, .edp-card-layout) .edp-card-base.edp-card--info :is(h2, h3, p, .richtext) { text-align: left; }
html body :is(#main-content, .edp-card-layout) .edp-card-base.edp-card--info :is(.feature-card__icon, .benefit-card__icon, .spezial-card__icon, .career-benefit__icon, .webportal-principle__icon, .product-card__icon-wrap, .webportal-info-card__icon) {
  align-self: flex-start;
  justify-self: start;
  margin-inline: 0;
}
/* A single status message stays centred in every newsletter state. */
html body :is(#main-content, .edp-card-layout) .edp-card-base.newsletter-signout__card :is(h1, p, .richtext) { text-align: center; }
html body :is(#main-content, .edp-card-layout) .edp-card-base .news-card__footer { width: 100%; min-height: 0; padding-top: 0; border-top: 0; margin-top: auto; }
html body :is(#main-content, .edp-card-layout) .edp-card-base .news-card__text { margin-bottom: 16px; }
html body :is(#main-content, .edp-card-layout) .edp-card-base :is(.news-card__category, .blog-card-topic) .material-symbols-outlined { font-size: 18px; }
html body :is(#main-content, .edp-card-layout) .edp-card-base.blog-related__card { display: flex; flex-direction: column; }
html body :is(#main-content, .edp-card-layout) .edp-card-base .blog-related__link { margin-top: auto; }
html body :is(#main-content, .edp-card-layout) .edp-card-base .blog-related__image { margin: -24px -24px 24px; overflow: hidden; border-radius: 12px 12px 0 0; }
html body :is(#main-content, .edp-card-layout) .edp-card-base .career-education__divider { margin-top: auto; }
html body :is(#main-content, .edp-card-layout) .edp-card-base .career-education__footer { min-height: 44px; }
html body :is(#main-content, .edp-card-layout) .edp-card-base :is(.career-education__footer a, .career-education__link, .spezial-project-card__link) { display: inline-flex; align-items: center; min-height: 44px; }
html body :is(#main-content, .edp-card-layout) .edp-card-base .spezial-project-card__link { text-decoration: underline; }
html body :is(#main-content, .edp-card-layout) .edp-card-base :is(.career-education__footer a, .career-education__link) { text-decoration: none; }
html body :is(#main-content, .edp-card-layout) .edp-card-base .career-education__footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
html body :is(#main-content, .edp-card-layout) .edp-card-base .button .material-symbols-outlined { color: inherit; font-size: 20px; }
html body :is(#main-content, .edp-card-layout) .edp-card-base .career-status-card__badge span { background: #c9070a; }
html body :is(#main-content, .edp-card-layout) .edp-card-base:not(.edp-card--product) .webportal-info-card__icon { background: transparent; color: #c9070a; }
html body :is(#main-content, .edp-card-layout) .edp-card-base :is(.news-card__footer, .blog-card-footer):not(:has(a, .edp-card__action, .material-symbols-outlined)) { display: none; }
@media (max-width: 600px) {
  html body :is(#main-content, .edp-card-layout) :is(.product-grid, .card-grid, .edp-two, .spezial-card-grid, .product-overview__main, .product-overview__web-products, .product-overview__service-products):not(:has(> .edp-card-interactive)) { grid-auto-rows: auto; grid-template-columns: minmax(0, 1fr); }
  html body :is(#main-content, .edp-card-layout) .edp-card-base { padding: 20px; }
  html body :is(#main-content, .edp-card-layout) .edp-card-base:is(.product-card, .product-overview__main-card, .product-overview__web-card, .edp-project-card, .related-overview-card) { grid-row: auto; grid-template-rows: auto; }
  html body :is(#main-content, .edp-card-layout) .edp-card-base.product-card > :is(.product-card__icon-wrap, h3, p, .edp-card__action) { grid-row: auto; }
  html body :is(#main-content, .edp-card-layout) .edp-card-base.related-overview-card > :is(.related-overview-card__heading, p, .related-overview-card__link),
  html body :is(#main-content, .edp-card-layout) .edp-card-base.related-overview-card:has(> p) > .related-overview-card__heading { grid-row: auto; }
  html body :is(#main-content, .edp-card-layout) .edp-card-base.blog-card .blog-card-body { padding: 20px; }
  html body :is(#main-content, .edp-card-layout) .edp-card-base.blog-card .blog-card-footer { padding: 0 20px 20px; }
  html body :is(#main-content, .edp-card-layout) .edp-card-base .blog-related__image { margin: -20px -20px 20px; }
  html body :is(#main-content, .edp-card-layout) .edp-card-base.edp-card--form .card-body { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html body :is(#main-content, .edp-card-layout) :is(.edp-card-base, .edp-card-interactive),
  html body :is(#main-content, .edp-card-layout) :is(.edp-card-base, .edp-card-interactive) * { transition: none !important; animation: none !important; }
  html body :is(#main-content, .edp-card-layout) .edp-card-base:is(:hover, :focus-within),
  html body :is(#main-content, .edp-card-layout) :is(.edp-card-base, .edp-card-interactive):is(a[href], button, :has(a[href], button)):hover,
  html body :is(#main-content, .edp-card-layout) :is(.edp-card-base, .edp-card-interactive):is(a[href], button, :has(a[href], button)):hover :is(.edp-card__arrow, .news-card__action .material-symbols-outlined, .footer-action-link .material-symbols-outlined, .product-overview__pillar-arrow) { transform: none; }
}
