/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  --primary:    #3EA587;
  --secondary:  #4C8F91;
  --accent1:    #D19A25;
  --accent2:    #9F6E90;
  --red:        #CF5A23;
  --bg:         #2E7C65;

  --text:       #EAEAEA;
  --text-muted: rgba(234, 234, 234, 0.6);

  --card-bg:     rgba(0, 0, 0, 0.32);
  --card-border: rgba(62, 165, 135, 0.22);
  --card-hover:  rgba(62, 165, 135, 0.55);

  --font-head: 'Lato', sans-serif;
  --font-body: 'Roboto', sans-serif;

  --radius:    14px;
  --radius-sm: 7px;
  --shadow:    0 4px 24px rgba(0, 0, 0, 0.3);
  --transition: 0.2s ease;
}

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

html { font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

img { display: block; }

/* ============================================================
   Background canvas
   ============================================================ */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* ============================================================
   Circuits decoration (fixed bottom-left)
   ============================================================ */
.circuits-deco {
  position: fixed;
  bottom: -25px;
  left: -10px;
  height: 180px;
  width: auto;
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   Page shell
   ============================================================ */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* ============================================================
   Profile bar
   ============================================================ */
.profile-bar {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0.85rem 1.25rem;
  margin: 1.25rem 0 0;
  background: var(--card-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}

#portrait {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--card-border);
  flex-shrink: 0;
}

.profile-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  margin-right: auto;
}

.profile-name {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.profile-role {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.iconlist {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
  font-size: 1.25rem;
  color: var(--text-muted);
}

.iconlist a { color: var(--text-muted); transition: color var(--transition); }
.iconlist a:hover { color: var(--primary); }

/* ============================================================
   Main content
   ============================================================ */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 0 4rem;
}

.page-title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
  margin-bottom: 0.4rem;
  text-align: center;
}

.page-subtitle {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 3rem;
  text-align: center;
}

/* ============================================================
   Tools grid
   ============================================================ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 960px;
}

/* ============================================================
   Tool card
   ============================================================ */
.tool-card {
  background: var(--card-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  box-shadow: var(--shadow);
  transition:
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.tool-card:hover {
  border-color: var(--card-hover);
  transform: translateY(-5px);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.55);
}

.tool-card__icon {
  font-size: 2.6rem;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.tool-card__title {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}

.tool-card__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.tool-card__tag {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  margin-top: 0.25rem;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.6rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  margin-top: 0.75rem;
  transition:
    background var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: #4dbfa0;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(62, 165, 135, 0.45);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-muted);
}
.btn-ghost:hover {
  border-color: var(--text-muted);
  color: var(--text);
  transform: translateY(-2px);
}

/* ============================================================
   Footer (with brand)
   ============================================================ */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0 1.5rem;
  border-top: 1px solid var(--card-border);
  margin-top: auto;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.kzu-logo {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 1px 6px rgba(0,0,0,0.4));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-informatik {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.brand-kzu {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.footer-address {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: right;
  line-height: 1.5;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 600px) {
  .page { padding: 0 1.25rem; }
  .circuits-deco { height: 90px; }
  .tools-grid { grid-template-columns: 1fr; }
  .footer { justify-content: center; }
  .footer-address { text-align: center; width: 100%; }
}
