/* ==========================================================================
   KBI GmbH – gemeinsames Stylesheet für alle Seiten
   ========================================================================== */

/* ---- Basis / Reset -------------------------------------------------- */
:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f4f6f8;
  --color-text: #1f2933;
  --color-text-muted: #52606d;
  --color-primary: #0f2f4c;      /* dunkles Blaugrau */
  --color-primary-dark: #0a2036;
  --color-secondary: #3d5a73;    /* mittleres Blaugrau */
  --color-accent: #e41914;       /* Signalfarbe (Rot) */
  --color-accent-dark: #b61410;
  --color-border: #d9e0e6;
  --color-header-bg: #0f2f4c;
  --color-footer-bg: #0a2036;
  --color-footer-text: #cbd5df;

  --font-base: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;

  --max-width: 1180px;
  --radius: 8px;
  --transition: 0.2s ease-in-out;
}

* ,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

a:hover,
a:focus-visible {
  color: var(--color-accent);
}

h1, h2, h3, h4 {
  color: var(--color-primary);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p {
  margin: 0 0 1em;
  color: var(--color-text-muted);
}

ul {
  margin: 0 0 1em;
  padding-left: 1.25em;
  color: var(--color-text-muted);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 4rem 0;
}

section:nth-of-type(even) {
  background-color: var(--color-bg-alt);
}

.section-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.section-heading p {
  margin-bottom: 0;
}

/* Sichtbarkeit für Tastatur-Fokus */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* Skip-Link für Barrierefreiheit */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-accent);
  color: #fff;
  padding: 0.75em 1.25em;
  z-index: 1000;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
}

/* ---- Header / Navigation --------------------------------------------- */
.site-header {
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(15, 47, 76, 0.12);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 108px;
  max-width: 1440px;
}

.header-logos {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-logo,
.city-logo {
  display: flex;
  align-items: center;
}

.site-logo img {
  height: 62px;
  width: auto;
}

.city-logo {
  padding-left: 1.5rem;
  border-left: 1px solid var(--color-border);
}

.city-logo img {
  height: 72px;
  width: auto;
}

/* Navigation wird ausschließlich als Burgermenü dargestellt */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle .bar {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.main-nav {
  position: absolute;
  top: 108px;
  left: 0;
  right: 0;
  background-color: var(--color-primary-dark);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
}

.main-nav.is-open {
  max-height: 400px;
}

.main-nav ul {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin: 0;
  padding: 1rem 1.5rem 1.5rem;
  list-style: none;
}

.main-nav li {
  width: 100%;
}

.main-nav a {
  display: block;
  color: #eef2f6;
  font-weight: 500;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--color-accent);
}

/* ---- Hero -------------------------------------------------------------- */
.hero {
  background:
    linear-gradient(135deg, rgba(15, 47, 76, 0.92) 0%, rgba(61, 90, 115, 0.9) 100%),
    url("images/Das KreativWerkR6.JPG");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  padding: 5rem 0;
  text-align: center;
}

.hero .container {
  max-width: 780px;
}

.hero-logo {
  height: 88px;
  width: auto;
  margin: 0 auto 2rem;
}

.hero h1 {
  color: #ffffff;
}

.hero .subline {
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0;
}

/* ---- Über uns ------------------------------------------------------ */
.about-content {
  max-width: 820px;
  margin: 0 auto;
}

.about-content p {
  font-size: 1.05rem;
}

.lead-text {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* ---- Projekt-Kachel ----------------------------------------------------- */
.project-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2.5rem;
  max-width: 1050px;
  margin: 0 auto;
}

.project-info h3 {
  margin-bottom: 0.5rem;
}

.project-info p {
  margin-bottom: 1.25rem;
}

.project-logo {
  height: 56px;
  width: auto;
  margin: 0 0 1.25rem;
}

.project-photo-link {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(15, 47, 76, 0.12);
  transition: transform var(--transition), box-shadow var(--transition);
}

.project-photo-link:hover,
.project-photo-link:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(15, 47, 76, 0.18);
}

.project-photo {
  width: 100%;
  height: auto;
}

@media (max-width: 820px) {
  .project-card {
    grid-template-columns: 1fr;
  }
}

.btn {
  display: inline-block;
  background-color: var(--color-accent);
  color: #ffffff;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  transition: background-color var(--transition), transform var(--transition);
}

.btn:hover,
.btn:focus-visible {
  background-color: var(--color-accent-dark);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ---- Kontakt ------------------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 340px));
  justify-content: center;
  gap: 3rem;
}

@media (max-width: 820px) {
  .contact-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .contact-block h3 {
    justify-content: center;
  }
}

.contact-block h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.contact-block address {
  font-style: normal;
  color: var(--color-text-muted);
}

.contact-block p {
  margin-bottom: 0.4em;
}

.contact-block a {
  font-weight: 600;
}

/* ---- Footer -------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 3rem 0 1.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 1.5rem;
}

.footer-brand img {
    margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--color-footer-text);
  opacity: 0.85;
}

.footer-logo-kbi {
   width: 220px;
    height: auto;
    max-width: none;
    flex-shrink: 0;
}

.footer-logo-ohv {
    width: 120px;
    height: auto;
    max-width: none;
    flex-shrink: 0;
}

.footer-nav h4,
.footer-address h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 1rem;
    height: auto;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li {
  margin-bottom: 0.6rem;
}

.footer-nav a,
.footer-address a {
  color: var(--color-footer-text);
}

.footer-nav a:hover,
.footer-address a:hover {
  color: var(--color-accent);
}

.footer-address address {
  font-style: normal;
  color: var(--color-footer-text);
  opacity: 0.85;
}

.footer-bottom {
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.75;
}

/* ---- Mutterunternehmen-Hinweis ------------------------------------------- */
.parent-company {
  text-align: center;
}

.parent-company p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--color-text-muted);
}

.parent-company a {
  font-weight: 600;
}

/* ---- Unterseiten (Impressum / Datenschutz) ------------------------------- */
.legal-page main {
  padding: 3.5rem 0 5rem;
}

.legal-page .container {
  max-width: 820px;
}

.legal-page h2 {
  font-size: 1.2rem;
  margin-top: 2.5rem;
}

.legal-page h2:first-of-type {
  margin-top: 0;
}

.legal-page .page-title {
  margin-bottom: 2rem;
}

.legal-page address {
  font-style: normal;
}

.placeholder-note {
  margin-top: 3rem;
  padding: 1.25rem 1.5rem;
  background-color: var(--color-bg-alt);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}
