/* public/css/arbeitsplan.css - styles for Arbeitsplan page */

:root{
  --gap: 0.75rem;
  --border: #d0d0d0;
  --muted-bg: #fafafa;
  --header-bg: #eee;
  --accent: #2e7d32;
}

* { box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.45;
  color: #222;
  margin: 0;
  background: #fff;
}

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

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.header h1 {
  margin: 0;
  font-size: 1.6rem;
}

/* Intro */
.intro {
  margin-top: 0.75rem;
  color: #111;
}

.intro h4 {
  margin: 0 0 0.5rem 0;
  font-weight: 600;
  line-height: 1.3;
}

/* Arbeitsplan grid */
.arbeitsplan-grid {
  margin-top: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

/* header row */
.grid-header {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: var(--gap);
  padding: 0.75rem;
  background: var(--header-bg);
  font-weight: 700;
  align-items: center;
}

/* data rows */
.grid-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: var(--gap);
  padding: 0.75rem;
  align-items: start;
  border-top: 1px solid var(--border);
}

.grid-row:nth-child(even) {
  background: var(--muted-bg);
}

.col-date {
  font-weight: 600;
  color: #0b3b2e;
  min-width: 120px;
}

/* topic column may contain HTML (bold tags) */
.col-topic {
  color: #111;
}

/* Activities */
.activities {
  margin-top: 1.75rem;
}

.activities h3 {
  margin-bottom: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .grid-header,
  .grid-row {
    grid-template-columns: 1fr;
  }

  .col-date {
    font-weight: 700;
    margin-bottom: 0.25rem;
  }

  .grid-row {
    padding: 0.75rem 0.75rem;
  }
}

#main-title {
  flex: 1;
  text-align: center;
}

#main-title_to_del {
  flex: 1;
  text-align: center;
  padding-top: 20px;
}

/* small visual polish */
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.back-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 12px;
      border-radius: 6px;
      border: 1px solid #ccc;
      background: #fff;
      color: #111;
      text-decoration: none;
      cursor: pointer;
      font-size: 0.95rem;
	    transition: background-color 180ms ease, color 180ms ease, transform 120ms ease;
    }

.back-btn:hover {
      background-color: #f5f5f5;
      color: #ff0000;               /* red text on hover */
      transform: translateY(-1px);
    }
	
.back-btn:focus { outline: 3px solid rgba(46,125,50,0.18); outline-offset: 2px; }
.back-btn svg { width: 16px; height: 16px; display: block; }
.top-controls { margin: 12px 0; }