/*
  ZimTec – Farbschema 1:1 aus dem bisherigen Auftritt übernommen:
  orange: #f8981d | blau: #27235b | grau: #b8b8b8
*/

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-variable-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --zt-orange: #f8981d;
  --zt-orange-dark: #d97f0d;
  --zt-blue: #27235b;
  --zt-blue-light: #3a3578;
  --zt-grey: #b8b8b8;
  --zt-grey-light: #f4f4f6;
  --zt-white: #ffffff;
  --font-sans: 'Inter', Arial, Helvetica, sans-serif;
  --container-width: 1120px;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(39, 35, 91, 0.1);
  --shadow-md: 0 10px 30px rgba(39, 35, 91, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--zt-blue);
  background: var(--zt-white);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

h1,
h2,
p {
  overflow-wrap: break-word;
}

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

a {
  color: var(--zt-blue);
}

a:hover {
  color: var(--zt-orange);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--zt-orange);
  color: var(--zt-blue);
  padding: 10px 16px;
  z-index: 1000;
  font-weight: 600;
  border-radius: 0 0 8px 0;
}

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

/* Header / Navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--zt-white);
  border-bottom: 1px solid #eceaf4;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.site-logo img {
  height: 44px;
  width: auto;
  border-radius: 6px;
}

.site-logo__text {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--zt-blue);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--zt-grey);
  background: var(--zt-white);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  margin: 0 auto;
  background: var(--zt-blue);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  align-items: center;
}

.site-nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--zt-blue);
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: var(--zt-orange);
  color: var(--zt-blue);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--zt-white);
    border-bottom: 1px solid #eceaf4;
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 20px 16px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 8px;
    border-bottom: 1px solid var(--zt-grey-light);
    border-radius: 0;
  }
}

/* Hero (Home) */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: center;
  padding: 48px 0 16px;
}

.hero__image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__eyebrow {
  color: var(--zt-orange-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.8rem;
  margin: 0 0 10px;
}

.hero h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  margin: 0 0 18px;
  line-height: 1.2;
}

.hero p {
  margin: 0 0 14px;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 24px;
  }

  .hero__image {
    order: -1;
  }
}

.competencies {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.competencies li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
}

.competencies li::before {
  content: '';
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 6px;
  background: var(--zt-orange);
  border-radius: 3px;
  transform: rotate(45deg);
}

.closing-line {
  margin-top: 24px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--zt-blue);
}

/* Generic content pages */

.page-header {
  padding: 44px 0 8px;
}

.page-header h1 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 6px;
}

.page-header .lead {
  color: var(--zt-blue-light);
  font-size: 1.05rem;
  margin: 0;
}

.prose {
  padding: 12px 0 56px;
  max-width: 74ch;
}

.prose p {
  margin: 0 0 16px;
  text-align: justify;
}

.prose h2 {
  color: var(--zt-orange-dark);
  font-size: 1.05rem;
  margin: 28px 0 10px;
}

.prose ul {
  margin: 0 0 18px;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.prose ul li {
  padding-left: 22px;
  position: relative;
}

.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 9px;
  height: 9px;
  background: var(--zt-orange);
  border-radius: 2px;
  transform: rotate(45deg);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding: 12px 0 56px;
}

.split figure {
  margin: 0;
}

.split figure img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .split figure {
    order: -1;
    max-width: 260px;
  }
}

.cta-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
  text-decoration: none;
  color: var(--zt-blue);
}

.cta-link::after {
  content: ' \2192';
}

.cta-link:hover {
  color: var(--zt-orange-dark);
}

/* Referenzen */

.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  padding: 8px 0 56px;
  list-style: none;
  margin: 0;
}

.client-card {
  display: block;
  padding: 20px;
  border: 1px solid var(--zt-grey-light);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  color: var(--zt-blue);
  background: var(--zt-white);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.client-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--zt-blue);
  border-color: var(--zt-orange);
}

/* Über mich */

.portrait-figure img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.portrait-figcaption {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--zt-blue-light);
}

/* Legal pages */

.legal h2 {
  font-size: 1rem;
  color: var(--zt-orange-dark);
  margin: 26px 0 8px;
}

.agb-part,
.section-heading {
  font-size: 1.3rem;
  color: var(--zt-blue);
  margin: 36px 0 10px;
}

.legal table {
  border-collapse: collapse;
  margin: 0 0 20px;
}

.legal table td {
  padding: 4px 14px 4px 0;
  vertical-align: top;
}

.legal table td:first-child {
  font-weight: 700;
  white-space: nowrap;
}

.toc a {
  font-weight: 600;
}

.back-to-top {
  display: inline-block;
  margin: 6px 0 30px;
  font-size: 0.85rem;
}

.notice-box {
  background: var(--zt-grey-light);
  border-left: 4px solid var(--zt-orange);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 0 0 24px;
}

/* Footer */

.site-footer {
  background: var(--zt-blue);
  color: #e7e6f2;
  margin-top: 40px;
}

.site-footer__inner {
  padding: 34px 0 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  justify-content: space-between;
  align-items: flex-start;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.site-footer a {
  color: #e7e6f2;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: var(--zt-orange);
}

.site-footer__meta {
  font-size: 0.82rem;
  color: #b3b0d1;
  padding-bottom: 22px;
}

.site-footer__cookie-note {
  font-size: 0.82rem;
  color: #b3b0d1;
  max-width: 60ch;
}

/* Cookie banner */

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  max-width: 560px;
  margin: 0 auto;
  background: var(--zt-blue);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 16px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.9rem;
  flex: 1 1 260px;
}

.cookie-banner button {
  background: var(--zt-orange);
  color: var(--zt-blue);
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

.cookie-banner[hidden] {
  display: none;
}

/* Buttons / forms (admin) */

.btn {
  display: inline-block;
  background: var(--zt-orange);
  color: var(--zt-blue);
  border: none;
  border-radius: 8px;
  padding: 11px 20px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  background: var(--zt-orange-dark);
  color: var(--zt-white);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--zt-grey);
  color: var(--zt-blue);
}

.admin-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.admin-card {
  border: 1px solid var(--zt-grey-light);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.field input[type="text"],
.field input[type="password"],
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--zt-grey);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field small {
  display: block;
  color: var(--zt-blue-light);
  margin-top: 4px;
}

.admin-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.flash {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 18px;
  font-weight: 600;
}

.flash-success {
  background: #e4f4e6;
  color: #1e6b2e;
}

.flash-error {
  background: #fbe4e4;
  color: #8a1f1f;
}

.page-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-list a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--zt-grey-light);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
}

.page-list a:hover {
  border-color: var(--zt-orange);
}
