/*
 * Basis-Styles für die modulare Website von Kropf Systems
 *
 * Farben und Abstände können über CSS-Variablen angepasst werden.
 */

/* CSS-Variablen für Farben und Abstände */
:root {
  --color-primary: #0d3b66;
  --color-secondary: #f4d35e;
  --color-accent: #dbe5f1;
  --color-light: #f6f7fb;
  --color-dark: #001d3d;
  --color-text: #0a192f;
  --max-width: 1200px;
  --gutter: 1.25rem;
  --color-text-light: #617d98; /* für sekundäre Hinweise */
}

/* Globales Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background-color: #ffffff;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  margin-right: 1rem;
}

.logo img {
  height: 72px;
  width: auto;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links li a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  transition: color 0.2s ease-in-out;
}

.nav-links li a:hover,
.nav-links li a:focus {
  color: var(--color-primary);
}

/* Burger Icon */
.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 24px;
  height: 3px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s ease;
}

/* Hero Section */
.hero {
  position: relative;
  height: 80vh;
  min-height: 500px;
  background-image: url("hero-bg-optimized.jpg");
  background-size: cover;
  background-position: center;
  color: #ffffff;
  display: flex;
  align-items: center;
}

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

.hero-content {
  position: relative;
  z-index: 1;
  text-align: left;
  max-width: 700px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw + 1rem, 3rem);
  margin-bottom: 1rem;
  font-weight: 700;
  hyphens: auto;
  overflow-wrap: anywhere;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  background-color: var(--color-accent);
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--color-primary);
  color: #ffffff;
}

/* Sections */
.section { padding: 4rem 0; }

.section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.about-section p {
  margin-bottom: 1rem;
  max-width: 800px;
}

/* Technology Section */
.technology-section p {
  max-width: 800px;
  margin-bottom: 2rem;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.tech-item h3 {
  margin-bottom: 0.5rem;
  color: var(--color-primary);
  font-size: 1.2rem;
}

.tech-item p {
  font-size: 0.95rem;
  color: var(--color-text);
}

/* SIS Section */
.sis-section p {
  max-width: 800px;
  margin-bottom: 2rem;
}

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

.module-card {
  background-color: var(--color-light);
  border: 1px solid #e0e5ec;
  border-radius: 8px;
  padding: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.module-card:hover,
.module-card:focus {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.module-card h3 {
  margin-bottom: 0.5rem;
  color: var(--color-primary);
  font-size: 1.2rem;
}

.module-card p {
  color: var(--color-text);
  font-size: 0.95rem;
}

/* Governance Section */
.governance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.gov-item h3 {
  margin-bottom: 0.5rem;
  color: var(--color-primary);
  font-size: 1.2rem;
}

.gov-item p {
  font-size: 0.95rem;
  color: var(--color-text);
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.team-member {
  background-color: var(--color-light);
  border: 1px solid #e0e5ec;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}

.team-member h3 {
  margin-bottom: 0.25rem;
  color: var(--color-primary);
  font-size: 1.2rem;
}

.team-member p {
  font-size: 0.9rem;
  color: var(--color-text);
}

/* Use Cases Section */
.usecases-section ul {
  margin-top: 1rem;
  padding-left: 1.25rem;
}

.usecases-section li {
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

/* Legal Sections */
.legal-section p {
  max-width: 800px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--color-text);
}

/* Benefits Section */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.benefit-item h3 {
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.benefit-item p {
  font-size: 0.95rem;
  color: var(--color-text);
}

/* Hinweistext unterhalb der Nutzen-Kacheln */
.benefit-note {
  margin-top: 2rem;
}

.benefit-note p {
  margin-bottom: 0.8rem;
}

/* Products Section */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.product-item {
  background-color: var(--color-light);
  border: 1px solid #e0e5ec;
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
  display: block;
  text-decoration: none;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.product-item h3 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.product-item p {
  color: var(--color-text);
  font-size: 0.9rem;
}

.product-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Subpage Hero */
.hero-subpage {
  position: relative;
  background-image: url("hero-bg-optimized.jpg");
  background-size: cover;
  background-position: center;
  color: var(--color-light);
  padding: 4rem 0;
}

.hero-subpage::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8));
  z-index: 0;
}

.hero-subpage .container {
  position: relative;
  z-index: 1;
}

.hero-subpage h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-subpage p {
  font-size: 1.1rem;
  max-width: 700px;
}

/* Footer */
.footer {
  background-color: var(--color-dark);
  color: #ffffff;
  padding: 1rem 0;
  text-align: center;
}

.footer p { margin: 0; font-size: 0.9rem; }

.footer a {
  color: #ffffff;
  text-decoration: none;
}
.footer a:hover,
.footer a:focus { text-decoration: underline; }

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  gap: 1rem;
}

.footer-links li { margin: 0; }

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover,
.footer-links a:focus { text-decoration: underline; }

/* Responsive Navigation */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    right: 0;
    background-color: #ffffff;
    width: 220px;
    height: calc(100vh - 80px);
    flex-direction: column;
    align-items: start;
    padding: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }
  .nav-links.open { transform: translateX(0); }
  .burger { display: flex; }
  .burger.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

/* SIS Link verstecken */
.nav-links li a[href="sis.html"] {
  display: none;
}
