/* ================================================================
   unsix.de – style.css
   Mobile-first, no external dependencies, no animations
   ================================================================ */

/* --- Custom Properties (Light Mode) ----------------------------- */
:root {
  --color-bg:       #f5f7fa;
  --color-surface:  #ffffff;
  --color-text:     #1a1a1a;
  --color-muted:    #6b7280;
  --color-accent:   #1558b0;
  --color-accent-h: #0e3f82;
  --color-border:   #dde3ec;
  --color-header:   #ffffff;

  --font:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  --max-w:   1100px;
  --gap:     1.5rem;
  --radius:  6px;
}

/* --- Dark Mode --------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg:       #0f1117;
    --color-surface:  #1a1d27;
    --color-text:     #e2e8f0;
    --color-muted:    #9ca3af;
    --color-accent:   #5b9bd5;
    --color-accent-h: #82b8e8;
    --color-border:   #2d3748;
    --color-header:   #1a1d27;
  }
}

/* --- Reset ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: auto; }

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: 2px; }

ul { list-style: none; }

h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 600;
  color: var(--color-text);
}
h1 { font-size: 1.9rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; }

p + p { margin-top: 0.7rem; }

/* --- Layout ----------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

main { flex: 1; }

/* --- Header / Navigation --------------------------------------- */
header {
  background: var(--color-header);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 72px;
}

/* Logo: colored background pill, switches with color scheme */
.logo-link {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius);
  line-height: 0;
  background: #fff;
}

@media (prefers-color-scheme: dark) {
  .logo-link { background: #000; }
}

.logo                 { height: 52px; width: auto; }

/* Nav list */
nav                   { position: relative; }
.nav-list             { display: flex; align-items: center; gap: 0.1rem; flex-wrap: wrap; }
.nav-list a           { display: block; padding: 0.4rem 0.7rem; border-radius: var(--radius); color: var(--color-text); font-size: 0.95rem; white-space: nowrap;}
.nav-list a:hover, .nav-list a.active { background: var(--color-bg); color: var(--color-accent); text-decoration: none; }

/* Hamburger button (mobile only) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--color-text);
  border-radius: 2px;
}

.nav-toggle:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* Mobile nav */
@media (max-width: 767px) {
  .nav-toggle { display: flex; }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 200px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.4rem;
    gap: 0.1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  }

  .nav-list.open { display: flex; }
  .nav-list a { padding: 0.6rem 0.8rem; }
}

.btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.65rem 1.5rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
}

.btn:hover            { background: var(--color-accent-h); text-decoration: none; }
.btn:focus-visible    { outline: 2px solid var(--color-accent); outline-offset: 3px; }

/* --- Sections --------------------------------------------------- */
.section              { padding: 3rem 0; }
.section + .section   { border-top: 1px solid var(--color-border); }
.section-title        { font-size: 1.4rem; margin-bottom: 1.5rem; }

/* --- Cards ------------------------------------------------------ */
.cards                { display: grid; grid-template-columns: 1fr; gap: var(--gap); }

@media (min-width: 560px) {
  .cards { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1100px) {
  .cards.cards-4 { grid-template-columns: repeat(4, 1fr); }
  .cards.cards-3 { grid-template-columns: repeat(3, 1fr); }
}

/* --- Bullet list (domainweit, kontextfrei) ---------------------- */
.list                 { list-style: disc; padding-left: 1.5rem; margin-top: 0.5rem; }
.list li              { color: var(--color-muted); margin-bottom: 0.3rem; font-size: 0.95rem; }

/* Verschachtelte Unterliste (z.B. Qualifikationen) */
.sub-list             { list-style: disc; padding-left: 1.4rem; margin-top: 0.4rem; }

/* --- Gedämpfter Text (domainweite Utility) ---------------------- */
.text-muted { color: var(--color-muted); }

/* --- Kleingedrucktes (Legal-Seiten) ----------------------------- */
.fineprint {
  margin-top: 1rem;
  font-size: 0.875rem;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem 1.5rem;
}

.card::before {
  content: '';
  display: block;
  width: 28px;
  height: 3px;
  background: var(--color-accent);
  margin-bottom: 0.85rem;
  border-radius: 2px;
}

.card h3 {
  margin-bottom: 0.45rem;
  font-size: 1rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.card a.more {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
}

/* --- Page header ------------------------------------------------ */
.page-header          { background: var(--color-surface); border-bottom: 1px solid var(--color-border); padding: 2rem 0 1.5rem; }
.page-header h1       { color: var(--color-accent); font-size: 1.75rem; }
.page-header p        { margin-top: 0.5rem; color: var(--color-muted); }

/* --- Content sections ------------------------------------------ */
.content-section {
  padding: 2rem 0;
}

.content-section + .content-section {
  border-top: 1px solid var(--color-border);
}

.content-section h2 {
  margin-bottom: 0.6rem;
  font-size: 1.2rem;
}

.content-section > .container > p {
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

.content-section .text-muted { margin-bottom: 0.75rem; }

/* --- Sub-panels (Embedded + Testing als Teil von Engineering) --- */
.sub-panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

@media (min-width: 640px) {
  .sub-panels { grid-template-columns: 1fr 1fr; }
}

.sub-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem 1.5rem;
}

.sub-panel h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.sub-panel > p {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* --- Contact block (impressum) ---------------------------------- */
.contact-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  min-height: 80px;
  font-size: 0.95rem;
}

.contact-block p { margin-bottom: 0.3rem; color: var(--color-text); }

/* --- Placeholder card ------------------------------------------ */
.placeholder-card {
  background: var(--color-surface);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  color: var(--color-muted);
}

.placeholder-card p { font-size: 0.95rem; margin-top: 0.5rem; }

/* --- Notice / Hint --------------------------------------------- */
.notice {
  background: var(--color-surface);
  border-left: 3px solid var(--color-accent);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-top: 1rem;
}

/* --- Legal text (Impressum / Datenschutz) ----------------------- */
.legal-section {
  padding: 2rem 0;
}

.legal-section + .legal-section {
  border-top: 1px solid var(--color-border);
}

.legal-section h2 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.legal-section p {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.legal-section p + p { margin-top: 0.6rem; }
.legal-section ul + p { margin-top: 0.75rem; }

/* --- Footer ---------------------------------------------------- */
footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.footer-inner nav {
  display: flex;
  gap: 1.5rem;
}

.footer-inner nav a {
  color: var(--color-muted);
  font-size: 0.875rem;
}

.footer-inner nav a:hover { color: var(--color-accent); }

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
