/* ========== Grundlayout ========== */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Source Sans 3', 'Segoe UI', 'Helvetica Neue', sans-serif;
  background-color: rgba(41, 103, 165);
  color: #fff;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ========== Header ========== */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  background-color: rgba(41, 103, 165, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  margin-left: 1rem;
  margin-right: 1rem;
}

/* ========== Navigation ========== */
nav {
  position: relative;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-list li {
  position: relative;
}

.nav-list a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: background-color 0.3s ease;
}

.nav-list a:hover,
.dropdown-content a:hover {
  background-color: #009fe3;
  border-radius: 4px;
}

.nav-list a.active {
  background-color: #009fe3;
  border-radius: 4px;
}

/* ========== Dropdown-Menü ========== */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  transform: translateX(-20px);
  background-color: rgba(0, 31, 63, 0.9);
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 20;
  padding: 0;
  margin: 0;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

.dropdown-content li {
  list-style: none;
}

.dropdown-content a {
  color: #fff;
  padding: 0.75rem 1rem;
  display: block;
  text-decoration: none;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* ========== Hero-Bereich ========== */
.hero {
  position: relative;
  margin-top: 80px;
}

.hero img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-text {
  position: absolute;
  bottom: 30%;
  left: 10%;
  background-color: #fff;
  color: rgba(41, 103, 165, 0.95);
  padding: 1rem 2rem;
  font-size: 1.8rem;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ========== Hauptbereich ========== */
main {
  flex: 1;
  background-color: #fff;
  color: #000;
  padding: 2rem 0;
  font-size: 20px;
}

.content-container {
  padding-left: 10%;
  padding-right: 10%;
}

main section {
  margin-bottom: 3rem;
}

/* ========== Standard-Hyperlinks außerhalb Navigation & Footer ========== */
main a,
.content-container a {
  color: #009fe3; /* confobis-Blau */
  text-decoration: none;
  transition: color 0.3s ease;
}

main a:hover,
.content-container a:hover {
  color: #00b4d8; /* helleres Blau beim Hover */
  text-decoration: none;
}

/* ========== Überschriften-Stil ========== */
h1, h2, h3 {
  font-family: 'Source Sans 3', 'Segoe UI', 'Helvetica Neue', sans-serif;
  color: rgba(41, 103, 165, 0.95); /* confobis-Blau auf weißem Hintergrund */
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

h1 {
  font-size: 2.4rem;
  font-weight: 700;
  border-bottom: 2px solid #009fe3;
  padding-bottom: 0.5rem;
}

h2 {
  font-size: 1.8rem;
  font-weight: 600;
  border-left: 6px solid #009fe3;
  padding-left: 1rem;
}

h3 {
  font-size: 1.4rem;
  font-weight: 500;
  color: #023e8a; /* dunkleres Blau für Unterüberschriften */
}

/* ========== Footer ========== */
.site-footer {
  background-color: #1e2a38;
  color: white;
  padding: 2rem 0;
}

.footer-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-left: 10%;
  padding-right: 10%;
  gap: 2rem;
}

/* Linker Bereich */
.footer-left {
  flex: 1;
  display: flex;
  align-items: flex-start;
}

.footer-left p {
  margin: 0; /* entfernt Standardabstand */
  line-height: 1.5;
}

/* Rechter Bereich */
.footer-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  text-align: right;
}

/* Linkliste */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover-Farbe wie .nav-list a.active */
.footer-links a:hover {
  background-color: #009fe3;
  border-radius: 4px;
}

/* Responsive Anpassung */
@media (max-width: 768px) {
  .footer-wrapper {
    flex-direction: column;
    padding-left: 5%;
    padding-right: 5%;
  }

  .footer-right {
    justify-content: flex-start;
    text-align: left;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* ========== contact-block ========== */

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
}

.contact-icon {
  width: 24px;
  height: 24px;
  fill: #009fe3; /* confobis-Blau */
  flex-shrink: 0;
}

.contact-item a {
  color: #00b4d8;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #00b4d8; /* Hover-Farbe wie .nav-list a.active */
}

/* ========== App-Grid ========== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 2rem;
  padding-left: 10%;
  padding-right: 10%;
  margin-bottom: 3rem;
}

.project-tile {
  display: flex;
  align-items: flex-start;
  background-color: #1e2a38;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.project-tile img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.project-info {
  flex: 1;
  color: white;
}

.project-info h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: #009fe3; /* confobis-Akzentfarbe */
}

.project-info p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr;
    padding-left: 5%;
    padding-right: 5%;
  }

  .project-tile {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    width: 100%;
    box-sizing: border-box;
  }

  .project-tile img {
    margin: 0 0 1rem 0;
  }

  .project-info {
    text-align: center;
  }
}

/* ========== Responsive Anpassungen ========== */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: rgba(0, 31, 63, 0.95);
    width: 200px;
    display: none;
    padding: 1rem;
    border-radius: 6px;
  }

  .nav-list.show {
    display: flex;
  }

  .nav-list li {
    margin-bottom: 1rem;
  }

  .dropdown-content {
    position: static;
    transform: none;
    box-shadow: none;
    backdrop-filter: none;
    background-color: rgba(0, 31, 63, 0.8);
  }

  .hero-text {
    bottom: 10%;
    left: 5%;
    font-size: 1.2rem;
    padding: 0.75rem 1rem;
    max-width: 90%;
  }
}


/* CSS: Grundlayout */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.tile {
  display: block;
  color: white; 
  text-decoration: none;
  font-size: 1.4rem;
  padding: 3rem 2rem;
  border-radius: 12px;
  text-align: center;
  background: var(--tile-bg, #1e2a38);
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.3s ease;
  border: none;
  outline: none;
}

.tile:link,
.tile:visited,
.tile:hover,
.tile:active,
.tile:focus {
  color: white !important;
  text-decoration: none;
}

.tile:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* Farbvarianten */
.it-beratung { background: linear-gradient(135deg, #1e2a38, #1e2a38); }
.digitalisierung { background: linear-gradient(135deg, #1e2a38, #1e2a38); }
.webentwicklung { background: linear-gradient(135deg, #b7b7b7, #b7b7b7); }
.softwareentwicklung { background: linear-gradient(135deg, #009fe3, #1e2a38); }
.app-entwicklung { background: linear-gradient(135deg, #009fe3, #1e2a38); }
.dienstleistung { background: linear-gradient(135deg, #1e2a38, #3359a8); }

/* ========== scrollToTop ========== */

#scrollToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #009fe3;
  color: white;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease, transform 0.3s ease;
  z-index: 100;
}

#scrollToTop:hover {
  background-color: #00b4d8;
  transform: translateY(-4px);
}

/* ========== Source Sans 3 Webfonts ========== */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url('../fonts/source-sans-3-v19-latin-200.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/source-sans-3-v19-latin-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/source-sans-3-v19-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/source-sans-3-v19-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/source-sans-3-v19-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/source-sans-3-v19-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/source-sans-3-v19-latin-800.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/source-sans-3-v19-latin-900.woff2') format('woff2');
}