/* =========================================================
   Gotsch-IT GmbH
   Custom styles for Hugo Serif
   ========================================================= */

:root {
  --color-primary: #163f6b;
  --color-accent: #2f80c0;
  --color-accent-dark: #246a9f;

  --color-text: #4e5965;
  --color-text-muted: #666666;

  --color-background: #fafafa;
  --color-panel: #ffffff;
  --color-panel-accent: #f0f6fb;

  --color-border: #e1e5e9;
}


/* =========================================================
   Header / Branding
   ========================================================= */

.header {
  min-height: 72px;
}

.header .container {
  width: min(1200px, calc(100% - 80px));
  max-width: none;
  min-height: 72px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

.logo .site-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;

  text-decoration: none;
}

.logo .site-title {
  display: block;

  color: var(--color-primary);

  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.1;
}

.logo .site-subtitle {
  display: block;

  margin-top: 5px;

  color: var(--color-text-muted);

  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.01em;

  white-space: nowrap;
}

.logo .site-brand:hover {
  text-decoration: none;
}

.logo .site-brand:hover .site-title {
  color: var(--color-accent);
}

.main-menu ul li a {
  font-size: 1rem;
}


/* =========================================================
   Homepage
   ========================================================= */

.page-home .main {
  width: 100%;
  max-width: none;

  margin: 0;
  padding: 0;
}


/* =========================================================
   Hero
   ========================================================= */

.hero-gotsch {
  width: 100%;

  background:
    linear-gradient(
      rgba(4, 18, 36, 0.48),
      rgba(4, 18, 36, 0.58)
    ),
    url("/images/hero/gotsch-it-hero.png");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  color: #ffffff;
}

.hero-overlay {
  width: 100%;

  padding: 62px 0 68px;
}

/*
   Wider wrapper than the normal page content.

   Together with the 100px left margin of .hero-content,
   this visually aligns the hero text with the 1200px
   content area below.
*/
.hero-inner {
  width: min(1400px, calc(100% - 80px));

  margin: 0 auto;
}

.hero-content {
  width: 100%;
  max-width: 720px;

  margin: 0 0 0 100px;

  text-align: left;
}

.hero-content h1 {
  margin: 0 0 22px;

  color: #ffffff;

  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1.1;
}


/* =========================================================
   Hero service line
   ========================================================= */

.hero-services {
  display: flex;
  align-items: center;
  justify-content: flex-start;

  margin: 0 0 18px;

  color: #ffffff;

  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
}

.hero-services div {
  padding: 0 26px;

  white-space: nowrap;
}

.hero-services div:first-child {
  padding-left: 0;
}

.hero-services div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.55);
}


/* =========================================================
   Hero experience text
   ========================================================= */

.hero-experience {
  margin: 0 0 20px;

  color: #e4ebf3;

  font-size: 1.15rem;
  line-height: 1.5;
}


/* =========================================================
   Hero buttons
   ========================================================= */

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;

  gap: 14px;

  margin: 0;
}

.hero-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 160px;
  min-height: 44px;

  padding: 10px 22px;

  border-radius: 4px;

  font-size: 1rem;
  font-weight: 600;
  line-height: 1;

  text-align: center;
  text-decoration: none;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.hero-actions .button-primary {
  background-color: var(--color-accent);
  border: 1px solid var(--color-accent);

  color: #ffffff;
}

.hero-actions .button-primary:hover {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);

  color: #ffffff;

  text-decoration: none;
}

.hero-actions .button-secondary {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.85);

  color: #ffffff;
}

.hero-actions .button-secondary:hover {
  background-color: rgba(255, 255, 255, 0.12);

  color: #ffffff;

  text-decoration: none;
}


/* =========================================================
   Homepage overview
   ========================================================= */

.home-overview {
  padding: 38px 0 42px;

  background: var(--color-background);
}

.home-overview-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(360px, 1.25fr);

  gap: 34px;

  width: min(1200px, calc(100% - 80px));

  margin: 0 auto;
}


/* =========================================================
   Services
   ========================================================= */

.home-services {
  min-width: 0;
}

.home-services-heading {
  margin: 0 0 24px;

  color: var(--color-primary);

  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.home-services-heading span {
  padding: 0 10px;

  color: #7a8ea3;

  font-weight: 400;
}

.home-services-heading strong {
  font-weight: inherit;
}
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 22px;
}

.service-card {
  display: flex;
  flex-direction: column;

  min-height: 245px;

  padding: 25px 24px;

  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: 6px;

  box-shadow: 0 4px 16px rgba(20, 45, 70, 0.06);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-3px);

  box-shadow: 0 8px 22px rgba(20, 45, 70, 0.10);
}

.service-icon {
  display: flex;
  align-items: center;

  width: 46px;
  height: 46px;

  margin-bottom: 14px;

  color: var(--color-accent);
}

.service-icon svg {
  width: 42px;
  height: 42px;

  fill: none;

  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  margin: 0 0 10px;

  color: var(--color-primary);

  font-size: 1.35rem;
  font-weight: 700;
}

.service-card p {
  margin: 0 0 16px;

  color: var(--color-text);

  font-size: 1rem;
  line-height: 1.5;
}

.service-card a {
  margin-top: auto;

  color: #1f6fae;

  font-weight: 600;

  text-decoration: none;
}

.service-card a:hover {
  color: #174f7f;

  text-decoration: none;
}


/* =========================================================
   Why Gotsch-IT
   ========================================================= */

.why-gotsch {
  padding: 25px;

  background: var(--color-panel-accent);

  border-radius: 6px;
}

.why-gotsch h2 {
  margin: 0 0 20px;

  color: var(--color-primary);

  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.2;
}

.why-gotsch h2::after {
  display: block;

  width: 34px;
  height: 2px;

  margin-top: 12px;

  background: var(--color-accent);

  content: "";
}

.why-item {
  display: grid;
  grid-template-columns: 30px 1fr;

  gap: 14px;

  margin-bottom: 16px;
}

.why-item:last-child {
  margin-bottom: 0;
}

.why-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 24px;
  height: 24px;

  margin-top: 2px;

  border: 1px solid var(--color-accent);
  border-radius: 50%;

  color: #1f6fae;

  font-size: 0.9rem;
  font-weight: 700;
}

.why-item h3 {
  margin: 0 0 3px;

  color: var(--color-primary);

  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.why-item p {
  margin: 0;

  color: var(--color-text);

  font-size: 0.92rem;
  line-height: 1.4;
}


/* =========================================================
   Footer
   ========================================================= */

.sub-footer {
  background: var(--color-primary);

  color: #ffffff;
}

.sub-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 58px;
}

.sub-footer-left {
  font-size: 0.9rem;
}

.sub-footer-right a {
  color: #ffffff;

  font-size: 0.9rem;

  text-decoration: none;
}

.sub-footer-right a:hover {
  text-decoration: underline;
}


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 1050px) {

  .home-overview-inner {
    grid-template-columns: 1fr;
  }

  .why-gotsch {
    max-width: none;
  }

  .hero-inner {
    width: calc(100% - 60px);
  }

  .hero-content {
    max-width: 680px;
    margin-left: 0;
  }

  .hero-services {
    font-size: 1.2rem;
  }

  .hero-services div {
    padding: 0 18px;
  }

  .hero-services div:first-child {
    padding-left: 0;
  }

  .logo .site-subtitle {
    font-size: 0.7rem;
  }
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 768px) {

  /* Header */

  .header,
  .header .container {
    min-height: 68px;
  }


  /* Hero */

  .hero-overlay {
    padding: 48px 0 52px;
  }

  .hero-inner {
    width: calc(100% - 40px);
  }

  .hero-content {
    max-width: none;
    margin-left: 0;
  }

  .hero-content h1 {
    margin-bottom: 26px;

    font-size: 2.4rem;
  }

  .hero-services {
    flex-direction: column;
    align-items: flex-start;

    width: 100%;

    margin-bottom: 26px;

    font-size: 1.2rem;
  }

  .hero-services div {
    width: 230px;

    padding: 10px 0;

    white-space: normal;
  }

  .hero-services div + div {
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-left: 0;
  }

  .hero-experience {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions .button {
    width: 190px;
  }


  /* Homepage overview */

  .home-overview {
    padding: 50px 0 60px;
  }

  .home-overview-inner {
    width: calc(100% - 40px);
  }

  .home-services-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 4px;

    font-size: 1.6rem;
  }

  .home-services-heading span {
    display: none;
  }

  .service-cards {
    grid-template-columns: 1fr;

    gap: 20px;
  }

  .service-card {
    min-height: 0;
  }

  .why-gotsch {
    padding: 28px 24px;
  }


  /* Footer */

  .sub-footer .container {
    flex-direction: column;
    justify-content: center;

    gap: 6px;

    padding-top: 14px;
    padding-bottom: 14px;
  }
}

/* =========================================================
   Service detail pages
   ========================================================= */

.service-page-inner {
  width: min(1200px, calc(100% - 80px));
  margin: 0 auto;
}


/* ---------------------------------------------------------
   Service page hero
   --------------------------------------------------------- */

.service-page-hero {
  padding: 48px 0 52px;

  background:
    linear-gradient(
      110deg,
      #102f50 0%,
      #163f6b 62%,
      #1e557f 100%
    );

  color: #ffffff;
}

.service-page-intro {
  max-width: 760px;
}

.service-page-kicker {
  margin-bottom: 12px;

  color: #89bde5;

  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-page-intro h1 {
  margin: 0 0 22px;

  color: #ffffff;

  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
}

.service-page-intro p {
  max-width: 720px;
  margin: 0 0 14px;

  color: rgba(255, 255, 255, 0.9);

  font-size: 1.08rem;
  line-height: 1.6;
}

.service-page-intro p:last-child {
  margin-bottom: 0;
}


/* ---------------------------------------------------------
   Automation content
   --------------------------------------------------------- */

.automation-content {
  padding: 48px 0 55px;

  background: var(--color-background);
}

.automation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 24px;
}

.automation-section {
  display: grid;
  grid-template-columns: 44px 1fr;

  gap: 18px;

  padding: 28px;

  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: 6px;

  box-shadow: 0 4px 16px rgba(20, 45, 70, 0.05);
}

.automation-section-number {
  color: var(--color-accent);

  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.automation-section h2 {
  margin: 0 0 12px;

  color: var(--color-primary);

  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.25;
}

.automation-section p {
  margin: 0 0 16px;

  color: var(--color-text);

  line-height: 1.55;
}

.automation-section ul {
  margin: 0;
  padding-left: 20px;
}

.automation-section li {
  margin-bottom: 6px;

  color: var(--color-text);

  line-height: 1.45;
}

.automation-section li:last-child {
  margin-bottom: 0;
}


/* ---------------------------------------------------------
   Service page call-to-action
   --------------------------------------------------------- */

.service-page-cta {
  padding: 34px 0;

  background: #eef4f8;
  border-top: 1px solid #dce5ec;
}

.service-page-cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 40px;
}

.service-page-cta h2 {
  margin: 0 0 6px;

  color: var(--color-primary);

  font-size: 1.4rem;
  font-weight: 700;
}

.service-page-cta p {
  margin: 0;

  color: var(--color-text);

  line-height: 1.5;
}

.service-page-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  min-width: 125px;
  min-height: 44px;

  padding: 10px 24px;

  background: var(--color-accent);
  border-radius: 4px;

  color: #ffffff;

  font-weight: 600;
  text-decoration: none;
}

.service-page-cta-button:hover {
  background: var(--color-accent-dark);

  color: #ffffff;
  text-decoration: none;
}

/* =========================================================
   Automation main areas
   ========================================================= */

.automation-grid-main {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}


/* =========================================================
   Service detail pages - responsive
   ========================================================= */

@media (max-width: 900px) {

  .automation-grid-main {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 768px) {

  .service-page-inner {
    width: calc(100% - 40px);
  }

  .service-page-hero {
    padding: 40px 0 44px;
  }

  .service-page-intro h1 {
    font-size: 2.4rem;
  }

  .automation-content {
    padding: 40px 0 48px;
  }

  .automation-section {
    grid-template-columns: 1fr;

    padding: 24px;
  }

  .automation-section-number {
    margin-bottom: -6px;
  }

  .service-page-cta-content {
    flex-direction: column;
    align-items: flex-start;

    gap: 18px;
  }
}

/* =========================================================
   Generic service detail grid
   Infrastructure / Consulting
   ========================================================= */

.service-detail-content {
  padding: 48px 0 55px;
  background: var(--color-background);
}

.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.service-detail-section {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;

  padding: 28px;

  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: 6px;

  box-shadow: 0 4px 16px rgba(20, 45, 70, 0.05);
}

.service-detail-number {
  color: var(--color-accent);

  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.service-detail-section h2 {
  margin: 0 0 12px;

  color: var(--color-primary);

  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.25;
}

.service-detail-section p {
  margin: 0 0 16px;

  color: var(--color-text);

  line-height: 1.55;
}

.service-detail-section ul {
  margin: 0;
  padding-left: 20px;
}

.service-detail-section li {
  margin-bottom: 6px;

  color: var(--color-text);

  line-height: 1.45;
}

.service-detail-section li:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {

  .service-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {

  .service-detail-content {
    padding: 40px 0 48px;
  }

  .service-detail-section {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .service-detail-number {
    margin-bottom: -6px;
  }
}
