/* daspro.de – schlichtes, responsives Layout ohne externe Ressourcen */

:root {
  --text: #222;
  --muted: #666;
  --bg: #fff;
  --soft: #f4f4f2;
  --line: #ddd;
  --accent: var(--c4);     /* Linkfarbe = Blau */

  /* Farben der vier Bereiche */
  --c1: #2a4c3e;           /* Grün  – Home        */
  --c2: #d7ba34;           /* Gelb  – Leistungen  */
  --c3: #75423e;           /* Rot   – Unternehmen */
  --c4: #385584;           /* Blau  – Kontakt     */

  --max: 64rem;            /* Seitenbreite */
  --gap: 3rem;             /* Abstand zwischen den Spalten */
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: 1rem; padding-right: 1rem; }

a { color: var(--accent); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--bg); padding: .5rem; z-index: 10; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Bereichsfarben ---------- */
.c1 { --c: var(--c1); }
.c2 { --c: var(--c2); }
.c3 { --c: var(--c3); }
.c4 { --c: var(--c4); }

/* ---------- Sprachwahl: kleine Textzeile links oben ---------- */
.lang { display: flex; gap: .15rem; padding-top: .5rem; font-size: .78rem; letter-spacing: .06em; }
.lang a { color: var(--muted); text-decoration: none; padding: .2rem .35rem; }
.lang a + a::before { content: "|"; color: var(--line); margin-right: .5rem; margin-left: -.35rem; }
.lang a:hover { color: var(--text); }
.lang a[aria-current] { color: var(--text); font-weight: 700; }

/* ---------- Kopf: Schlagwort links (3/5), Logo groß rechts (2/5) ---------- */
.header-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  column-gap: var(--gap);
  align-items: end;
  padding-top: .25rem;
  padding-bottom: 1.5rem;
}

.claim { justify-self: start; }
.claim img { display: block; max-height: 4rem; width: auto; }
.claim-text { font-size: 2.2rem; font-weight: 700; letter-spacing: -.02em; line-height: 1; }

.logo { display: block; justify-self: end; text-align: right; color: var(--text); text-decoration: none; font-size: 5rem; font-weight: 700; letter-spacing: -.03em; line-height: .9; }
.logo img { display: block; max-height: 10rem; width: auto; margin-left: auto; }
.logo-sub { display: block; font-size: 1.1rem; font-weight: 400; letter-spacing: .14em; color: var(--muted); margin-top: .35rem; }

/* ---------- Navigation: jeder Bereich mit eigener Farblinie ---------- */
.main-nav { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.main-nav ul {
  list-style: none; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); column-gap: .5rem;
}
.main-nav a {
  display: block; padding: .75rem .25rem .6rem;
  color: var(--text); text-decoration: none; font-size: .95rem;
  text-transform: uppercase; letter-spacing: .06em;
  border-bottom: 4px solid var(--c);
}
.main-nav a:hover { background: var(--soft); }
.main-nav a[aria-current] { font-weight: 700; border-bottom-width: 8px; padding-bottom: .35rem; }

/* ---------- Inhalt: Hauptspalte (3/5) + Randspalte (2/5) ---------- */
main.wrap { padding-top: 2.25rem; padding-bottom: 3rem; }

.cols {
  display: grid;
  grid-template-columns: 3fr 2fr;
  grid-template-areas: "main aside";
  column-gap: var(--gap);
  align-items: start;
}
.col-main  { grid-area: main; min-width: 0; }
.col-aside { grid-area: aside; min-width: 0; }

.col-aside .panel { background: var(--soft); padding: 1.25rem 1.25rem .5rem; margin-bottom: 1.5rem; border-top: 4px solid var(--c, var(--line)); }
.col-aside .panel h2 { margin-top: 0; font-size: 1.1rem; }

h1 { font-size: 1.9rem; line-height: 1.2; margin: 0 0 1.25rem; letter-spacing: -.01em; }
h2 { font-size: 1.3rem; line-height: 1.3; margin: 2.25rem 0 .75rem; }
h3 { font-size: 1.05rem; margin: 1.75rem 0 .5rem; }
p  { margin: 0 0 1rem; }

.lead { font-size: 1.15rem; }

/* Liste mit „/“-Markern wie auf der bisherigen Seite */
ul.slash { list-style: none; padding: 0; margin: 0 0 1.25rem; }
ul.slash li { position: relative; padding-left: 1.4rem; margin-bottom: .5rem; }
ul.slash li::before { content: "/"; position: absolute; left: 0; font-weight: 700; color: var(--c3); }

address { font-style: normal; }

.portrait, .cert img { width: 100%; max-width: 16rem; height: auto; display: block; }
.portrait { border-radius: 4px; margin-bottom: 1rem; }

.member { display: flex; gap: 1rem; align-items: center; margin-top: 2rem; }
.member img { width: 6rem; flex-shrink: 0; }
.member p { margin: 0; }

.legal p, .legal li { font-size: .97rem; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; }
.legal dt { color: var(--muted); }
.legal dd { margin: 0; }
.muted { color: var(--muted); }

/* ---------- Fuß ---------- */
.site-footer { background: var(--soft); font-size: .9rem; color: var(--muted); }
.footer-colors { display: flex; }
.footer-colors a { flex: 1; height: 8px; background: var(--c); }
.footer-colors a:hover { height: 12px; }
.footer-row {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  padding-top: 1.25rem; padding-bottom: 1.5rem;
}
.footer-row nav { display: flex; gap: 1.25rem; }
.footer-row a { color: var(--muted); }
.footer-row a[aria-current] { color: var(--text); }

/* ---------- Tablet und Handy ---------- */
@media (max-width: 48rem) {
  :root { --gap: 1.5rem; }
  .cols { grid-template-columns: 1fr; grid-template-areas: "main" "aside"; }
  .cols.aside-first { grid-template-areas: "aside" "main"; }
  .col-aside { margin-top: 1.5rem; }
  .cols.aside-first .col-aside { margin-top: 0; margin-bottom: .5rem; }
}

@media (max-width: 34rem) {
  body { font-size: 1rem; }
  h1 { font-size: 1.55rem; }
  .header-grid { column-gap: 1rem; align-items: center; }
  .claim img { max-height: 2rem; }
  .claim-text { font-size: 1.15rem; }
  .logo img { max-height: 5.5rem; }
  .logo { font-size: 3rem; }
  .logo-sub { font-size: .8rem; }
  .main-nav ul { grid-template-columns: repeat(2, 1fr); column-gap: .75rem; }
  .main-nav a { font-size: .88rem; }
  .portrait, .cert img { max-width: 10rem; }
  .legal dl { grid-template-columns: 1fr; }
  .legal dd { margin-bottom: .5rem; }
  .footer-row { flex-direction: column; }
}

/* ---------- Druck ---------- */
@media print {
  .main-nav, .lang, .skip, .footer-colors { display: none; }
  .cols { grid-template-columns: 1fr; grid-template-areas: "main" "aside"; }
  body { font-size: 11pt; }
  a { color: inherit; }
}
