/* =============================================
   Hucks EDV-Dienstleistung
   ============================================= */

:root {
  /* === Logo blue rgb(12,152,194) — "Hucks EDV" text === */
  --b-900: #062a36;
  --b-800: #094d65;
  --b-700: #0b7898;
  --b-600: #0b8db5;
  --b-500: #0c98c2; /* exact logo colour */
  --b-400: #2aadd4;
  --b-300: #5dc3e2;
  --b-100: #c2ebf7;
  --b-50:  #e8f7fc;

  /* === Logo light blue (triangle fill) === */
  --logo-lt: #cce8f5;

  /* === Teal (original brand) === */
  --t-800: #003535;
  --t-700: #004d4d;
  --t-600: #005f5f;
  --t-500: #006666;
  --t-400: #008080;
  --t-300: #33a0a0;
  --t-200: #70bfbf;
  --t-100: #c0e0e0;
  --t-50:  #e8f5f5;
  --t-25:  #f3fafa;

  --white:       #ffffff;
  --text:        #0d2530;
  --text-muted:  #3d6070;
  --shadow:      0 2px 8px rgba(0,30,60,.12), 0 8px 40px rgba(0,30,60,.10);

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --r: 5px;
}

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

html {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background-color: #0a6878;
  background-image:
    /* Dots — layer 1: on grid intersections */
    radial-gradient(circle, rgba(255,255,255,.22) 1.5px, transparent 1.5px),
    /* Dots — layer 2: offset half-step (creates diamond/PCB-pad feel) */
    radial-gradient(circle, rgba(255,255,255,.13) 1px,   transparent 1px),
    /* Faint grid lines */
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px),
    /* Depth gradient — logo blue (#0C98C2) into teal */
    linear-gradient(160deg, #085e78 0%, #0a8090 45%, #387272 100%);
  background-size:
    32px 32px,
    32px 32px,
    32px 32px,
    32px 32px,
    100% 100%;
  background-position:
    0 0,
    16px 16px,
    0 0,
    0 0,
    0 0;
  background-attachment: fixed;
  min-height: 100%;
}

body {
  margin: 0 auto;
  max-width: 1080px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--white);
  box-shadow: var(--shadow);
}

/* === Skip Link === */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--t-500);
  color: white;
  padding: 8px 18px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--r) 0;
  z-index: 200;
  transition: top .15s;
}
.skip-link:focus { top: 0; }

/* === Header === */
.site-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 36px;
  /* dark → logo blue (#0C98C2) → teal */
  background: linear-gradient(120deg, var(--b-800) 0%, var(--b-500) 40%, var(--t-500) 75%, var(--t-400) 100%);
  position: relative;
  overflow: hidden;
}

/* Subtle decorative circle in header */
.site-header::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  pointer-events: none;
}

.head { flex: 1; min-width: 0; }

.site-header h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.2rem, 2.8vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -.025em;
  text-align: left;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.site-header h2 {
  margin: 5px 0 0;
  color: rgba(255,255,255,.75);
  font-size: clamp(.8rem, 1.5vw, .95rem);
  font-weight: 400;
  text-align: left;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.logo { flex-shrink: 0; z-index: 1; }
.logo img {
  display: block;
  max-height: 68px;
  width: auto;
  border-radius: 4px;
  background: rgba(255,255,255,.12);
  padding: 4px;
}

/* === Page Layout === */
.page-layout {
  display: flex;
  flex: 1;
  align-items: stretch;
}

/* === Navigation === */
.site-nav {
  width: 172px;
  flex-shrink: 0;
  background: var(--t-25);
  border-right: 1px solid var(--t-100);
  padding: 28px 0;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li { margin: 0; }

.site-nav a {
  display: block;
  padding: 9px 16px 9px 14px;
  color: var(--t-600);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  letter-spacing: .01em;
  transition: background .12s, border-color .12s, color .12s;
}
.site-nav a::before { content: none; }

.site-nav a:hover {
  background: var(--t-50);
  border-left-color: var(--t-200);
  color: var(--t-800);
}
.site-nav a.active,
.site-nav a[aria-current="page"] {
  background: var(--b-50);
  border-left-color: var(--b-700);  /* logo blue indicator */
  color: var(--b-800);
  font-weight: 700;
}

/* === Focus === */
a:focus, button:focus {
  outline: 3px solid var(--t-300);
  outline-offset: 2px;
  border-radius: 2px;
}

/* === Main Content === */
.main {
  flex: 1;
  min-width: 0;
  padding: 36px 44px 52px;
}

/* === Content Typography === */
.main h2 {
  margin-top: 0;
  margin-bottom: 22px;
  padding-bottom: 12px;
  color: var(--b-700);          /* logo blue */
  font-size: 1.35rem;
  font-weight: 700;
  text-align: left;
  border-bottom: 2px solid var(--t-100);
}
h3 {
  color: var(--b-600);          /* logo blue, lighter */
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 8px;
}
h4 {
  color: var(--b-700);
  font-size: .95rem;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 6px;
}
p { margin-top: 0; margin-bottom: 14px; }

/* === Links === */
a {
  color: var(--t-400);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
a:visited { color: var(--t-600); }
a:hover   { color: var(--t-800); text-decoration-thickness: 2px; }
a:active  { color: var(--t-700); }

/* === Images === */
img { border: none; max-width: 100%; height: auto; }

/* === Tables (AGB) === */
table { width: 100%; border-collapse: collapse; }
td {
  text-align: left;
  vertical-align: top;
  padding: 4px 8px;
  font-size: .9rem;
  line-height: 1.55;
}
td.headline {
  color: var(--b-700);          /* logo blue for AGB section headings */
  font-weight: 600;
  font-size: .92rem;
  padding-top: 12px;
}

/* === Footer (inside .main) ===
   Negative margins cancel .main's padding so the
   footer spans the full content width edge-to-edge. */
.footer {
  margin-top: 56px;
  margin-left:   -44px;
  margin-right:  -44px;
  margin-bottom: -52px;
  padding: 28px 44px 32px;
  background: linear-gradient(135deg, var(--t-800) 0%, var(--t-600) 100%);
  color: rgba(255,255,255,.88);
  border-top: 3px solid var(--t-400);
}

.partner-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.partnerlogo { display: inline-flex; align-items: center; }
.partnerlogo img {
  height: 46px;
  width: auto;
  border-radius: 4px;
  background: rgba(255,255,255,.93);
  padding: 4px 7px;
  transition: background .2s, transform .18s;
}
.partnerlogo:hover img {
  background: var(--white);
  transform: translateY(-2px) scale(1.04);
}

.footer-contact {
  font-style: normal;
  font-size: .87rem;
  line-height: 1.75;
  display: block;
  margin-bottom: 14px;
  color: rgba(255,255,255,.9);
}
.footer-contact a {
  color: rgba(255,255,255,.9);
  text-decoration-color: rgba(255,255,255,.4);
}
.footer-contact a:hover { color: var(--white); text-decoration-color: white; }

.footer-copy {
  font-size: .77rem;
  color: rgba(255,255,255,.5);
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.12);
}

/* === Misc === */
p.corona {
  border: 2px solid #e53e3e;
  padding: 12px 16px;
  border-radius: var(--r);
  background: #fff5f5;
  color: #742a2a;
}

/* ================================================
   TABLET  ≤ 860px
   ================================================ */
@media (max-width: 860px) {
  .site-nav { width: 148px; }

  .main { padding: 28px 30px 44px; }

  .footer {
    margin-left:   -30px;
    margin-right:  -30px;
    margin-bottom: -44px;
    padding: 24px 30px 28px;
  }
}

/* ================================================
   MOBILE  ≤ 640px
   ================================================ */
@media (max-width: 640px) {
  /* fixed-attachment causes repaints on mobile — switch to scroll */
  html { background-attachment: scroll; }

  body { max-width: 100%; }

  .site-header {
    flex-direction: column;
    padding: 16px 20px;
    gap: 10px;
    text-align: center;
  }
  .logo { order: -1; }
  .logo img { max-height: 54px; margin: 0 auto; padding: 3px; }
  .site-header h1 { text-align: center; font-size: 1.3rem; }
  .site-header h2 { text-align: center; font-size: .8rem; }

  .page-layout { flex-direction: column; }

  .site-nav {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--t-100);
    padding: 8px 6px;
  }
  .site-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
  .site-nav a {
    border-left: none;
    border-radius: 4px;
    padding: 6px 14px;
    font-size: .85rem;
    background: transparent;
  }
  .site-nav a:hover,
  .site-nav a.active,
  .site-nav a[aria-current="page"] {
    background: var(--t-50);
    border-left: none;
    outline: 1px solid var(--t-100);
  }

  .main { padding: 20px 18px 36px; }

  .footer {
    margin-left:   -18px;
    margin-right:  -18px;
    margin-bottom: -36px;
    padding: 20px 18px 24px;
  }

  .partnerlogo img { height: 38px; }
  td { font-size: .82rem; }
}

/* ================================================
   SMALL  ≤ 380px
   ================================================ */
@media (max-width: 380px) {
  .site-header { padding: 14px; }
  .main { padding: 16px 14px 30px; }
  .footer {
    margin-left:   -14px;
    margin-right:  -14px;
    margin-bottom: -30px;
    padding: 16px 14px 20px;
  }
}
