/*
 * Stylesheet for Gartner IT website
 * This file defines the core look and feel of the website, including
 * typography, layout, colours and responsive behaviour.
 */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

/* Colour palette */
:root {
  --primary: #002e5b; /* dunkles Blau für Kopf- und Fußbereich */
  --secondary: #005a9c; /* mittleres Blau als Zwischenfarbe */
  --accent: #8b0000; /* dunkles Rot als Akzentfarbe (passend zum Logo) */
  --light-bg: #f5f7fa; /* helles Grau für Bereiche */
  --text-dark: #222;
  --text-light: #fff;
}

/* Utility classes */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

h1,
h2,
h3 {
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--primary);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary);
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--secondary);
}

p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

a {
  color: var(--secondary);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Header & Navigation */
header {
  background-color: var(--primary);
  color: var(--text-light);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}

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

.logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-light);
}

/* Logo image container */
.logo-container img {
  height: 60px;
  width: auto;
}

.logo .highlight {
  color: var(--accent);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav li {
  position: relative;
}

nav a {
  color: var(--text-light);
  font-weight: 600;
  transition: color 0.2s ease-in-out;
}

nav a:hover {
  color: var(--accent);
}

/* Hero section */
.hero {
  position: relative;
  height: 70vh;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/images/hero.png');
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 46, 91, 0.6);
  z-index: -1;
}

.hero-content {
  max-width: 700px;
  padding: 1rem;
}

.hero-content h1 {
  color: var(--text-light);
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content p {
  color: #e0e7f0;
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--accent);
  color: var(--text-light);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.2s ease-in-out;
}

.btn:hover {
  background-color: #660000; /* dunkleres Rot beim Hover */
}

/* Services section */
.services {
  background-color: var(--light-bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.service {
  background-color: #fff;
  border-radius: 6px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-top: 4px solid var(--secondary);
  transition: transform 0.2s ease-in-out;
}

.service:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

/* About section */
.about {
  background-color: #fff;
}

.about p {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Contact section */
.contact {
  background-color: var(--light-bg);
}

.contact-details {
  margin-bottom: 1.5rem;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 600px;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 122, 204, 0.2);
}

.contact-form button {
  justify-self: start;
  cursor: pointer;
}

/* Footer */
footer {
  background-color: var(--primary);
  color: var(--text-light);
  text-align: center;
  padding: 1rem 0;
}

footer p {
  font-size: 0.875rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.25rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  nav ul {
    gap: 1rem;
  }
  .contact-form {
    grid-template-columns: 1fr;
  }
}