/*
 * Copyright (c) 2025 TechDivision GmbH
 * All rights reserved
 *
 * This product includes proprietary software developed at TechDivision GmbH, Germany
 * For more information see https://www.techdivision.com/
 *
 * To obtain a valid license for using this software please contact us at
 * license@techdivision.com
 */

/* banner */
.contact-banner {
  /* CLS issues */
  min-height: 320px;

  @media (width >= 900px) {
    min-height: 320px;
  }

  /* side by side */

  > div {
    @media (width >= 900px) {
      display: flex;
      gap: var(--spacing-simple);

      > div {
        flex: 1;
        max-width: calc(50% - var(--spacing-simple) / 2);
      }
    }

    > div {
      min-height: 300px;
    }
  }

  /* sections are not regular sections */

  .section {
    padding: 0;
  }

  /* columns element */

  .columns {
    background-color: var(--color-gray-light);
    border-radius: var(--card-border-radius);
    overflow: hidden;

    & > div {
      align-items: stretch;
      margin-bottom: 0;

      > div:not(:first-child) {
        padding: 20px 20px 20px 0;
      }

      > div {
        > p {
          margin: 0;

          &:first-child {
            font-size: var(--heading-font-size-m);
            margin-bottom: var(--spacing-simple);
          }

          &:nth-child(2) {
            height: 3em;
            margin-bottom: var(--spacing-half);
          }

          &:first-child,
          &:nth-child(2) {
            font-weight: var(--font-weight-bold);
          }

          a {
            text-overflow: ellipsis;
            white-space: nowrap;
            overflow: hidden;
            display: inline-block;
            max-width: calc(100% - 2em);
          }
        }
      }
    }

    /* image */

    .columns-img-col {
      margin: calc(-1 * var(--spacing-quarter));

      @media (width >= 600px) {
        margin: 0;
      }

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;

        @media (width >= 600px) {
          max-width: 300px;
        }
      }
    }

    &.one-quarter-three-quarter > div > div:first-child {
      flex: 0 0 40%;
    }
  }

  /* icons */

  .icon {
    width: 18px;
  }

  /* link */

  .contact-link {
    p {
      padding: 0;
      margin: 0;
    }

    a {
      padding: 8px 16px;
      display: inline-block;
      margin-top: var(--spacing-simple);
    }
  }
}
