:root {
  --brand: #07962f;
  --brand-dark: #057226;
  --bg: #ffffff;
  --text: #202124;
  --text-muted: #5f6368;
  --border: #e0e0e0;
  --panel-bg: #f8f9fa;
  --hover-bg: #f1f3f4;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.page {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 20px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-logo {
  max-width: 480px;
  width: 100%;
  height: auto;
  margin-bottom: 36px;
}

/* Suchleiste */
.search-form {
  width: 100%;
  max-width: 600px;
  margin-bottom: 32px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 10px 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.search-box:focus-within {
  box-shadow: 0 1px 6px rgba(0,0,0,0.18);
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  background: transparent;
}

.search-box button {
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
}

.section-label {
  width: 100%;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}

/* Quicklinks */
.quicklinks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 36px;
  width: 100%;
  margin-bottom: 44px;
}

.quicklink {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  width: 104px;
}

.quicklink-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--panel-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.quicklink:hover .quicklink-icon {
  background: var(--hover-bg);
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.quicklink-icon img { width: 40px; height: 40px; object-fit: contain; }

.quicklink-label {
  font-size: 14px;
  text-align: center;
  line-height: 1.3;
  color: var(--text-muted);
}

/* Kompaktere Variante für die Google-Workspace-Zeile */
.quicklinks.compact { gap: 24px; margin-bottom: 40px; }
.quicklinks.compact .quicklink { width: 84px; gap: 8px; }
.quicklinks.compact .quicklink-icon { width: 52px; height: 52px; }
.quicklinks.compact .quicklink-icon img { width: 30px; height: 30px; }
.quicklinks.compact .quicklink-label { font-size: 12.5px; }

/* Dokumente-Box */
.doc-panel {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.doc-panel-header {
  background: #e8f0fe;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.doc-list {
  background: var(--bg);
}

.doc-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  text-decoration: none;
  color: var(--text);
  border-top: 1px solid var(--border);
}

.doc-row:first-child { border-top: none; }

.doc-row:hover { background: var(--hover-bg); }

.doc-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-icon.doc { background: #4285f4; }
.doc-icon.sheet { background: #34a853; }
.doc-icon.other { background: #5f6368; }

.doc-icon svg { width: 16px; height: 16px; fill: #fff; }

.doc-title { font-size: 14px; font-weight: 500; }
.doc-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.doc-empty {
  padding: 24px 20px;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}

.footer-link {
  margin-top: 24px;
  font-size: 12px;
}

.footer-link a { color: var(--text-muted); }

/* Admin */
.admin-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 20px 80px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
}

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

.admin-header h1 { font-size: 22px; margin: 0; }

.admin-header a.logout { color: var(--text-muted); font-size: 13px; text-decoration: none; }

.card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 24px;
}

.card h2 { font-size: 15px; margin: 0 0 14px; }

.form-row { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.form-row label { font-size: 13px; color: var(--text-muted); }
.form-row input, .form-row select {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
}

.btn {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 9px 18px;
  font-size: 14px;
  cursor: pointer;
}
.btn:hover { background: var(--brand-dark); }

.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--panel-bg); }

.btn-danger { background: #d93025; }
.btn-danger:hover { background: #b0261b; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); font-size: 14px; }
th { color: var(--text-muted); font-weight: 500; font-size: 12px; text-transform: uppercase; }
td.actions { white-space: nowrap; text-align: right; }
td.actions form { display: inline; margin-left: 6px; }
td.actions button { font-size: 12px; padding: 5px 10px; }
.url-cell { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-muted); }

.login-wrap {
  max-width: 340px;
  margin: 100px auto;
  padding: 0 20px;
}
.login-wrap h1 { font-size: 20px; margin-bottom: 20px; }
.error-msg { color: #d93025; font-size: 13px; margin-bottom: 12px; }
