:root {
  --primary: #2c3e50;
  --secondary: #34495e;
  --accent: #1abc9c;
  --background: #ecf0f1;
  --text: #2c3e50;
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  background: var(--background, #ecf0f1);
  color: var(--text, #2c3e50);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background: var(--primary);
  color: white;
  text-align: center;
}

main {
  flex: 1;
  padding: 2rem 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

a {
  cursor: pointer;
}

.description {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1),
              0 0 10px rgba(0, 80, 80, 0.1); 
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: 
    transform 0.3s ease, 
    box-shadow 0.3s ease,
    background-color 0.3s ease,
    border 0.3s ease;
  border: 2px solid transparent;
  will-change: transform;
}

.card:hover {
  transform: translateY(-8px) scale(1.02) 
             rotateX(2deg) rotateY(2deg);
  box-shadow: 0 8px 16px rgba(0, 80, 80, 0.2),
              0 0 20px rgba(0, 80, 80, 0.2); 
  background-color: #f9f9f9;
  border-color: #005050;
}
.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

footer {
  padding: 1rem;
  text-align: center;
  background: var(--secondary);
  color: white;
  font-size: 0.9rem;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.card-grid a {
  text-decoration: none;
  color: inherit;
}

.card-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  justify-content: center;
}

.tag {
  display: flex;
  align-items: center;
  gap: 0.35em;
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  padding: 0.3em 0.6em;
  border-radius: 999px;
  white-space: nowrap;
}

.tag i {
  font-size: 0.85em;
}

.card-author {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: #888;
  text-align: center;
}

.form-group {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

label {
  font-weight: bold;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

input[type="text"] {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.tooltip {
  position: relative;
  cursor: pointer;
  color: var(--accent);
}

.tooltip:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 0.4rem 0.6rem;
  font-size: 0.75rem;
  border-radius: 4px;
  top: 100%;
  left: 0;
  white-space: nowrap;
  margin-top: 4px;
  z-index: 10;
}

.output {
  margin-top: 1.5rem;
  word-break: break-word;
  background: white;
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 0 4px rgba(0,0,0,0.1);
}

button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 1rem;
}

button:hover {
  background: #16a085;
}

.form-group {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

label {
  font-weight: bold;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

input[type="text"] {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.tooltip {
  position: relative;
  cursor: pointer;
  color: var(--accent);
}

.tooltip:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 0.4rem 0.6rem;
  font-size: 0.75rem;
  border-radius: 4px;
  top: 100%;
  left: 0;
  white-space: nowrap;
  margin-top: 4px;
  z-index: 10;
}

.output {
  margin-top: 1.5rem;
  background: white;
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  word-break: break-word;
}

.output a {
  flex: 1 1 auto;
  color: var(--accent);
  text-decoration: underline;
  font-weight: 600;
}

.copy-btn {
  background: var(--accent);
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
}

.copy-btn:hover {
  background: #16a085;
}

.commit-container {
  display: flex;
  gap: 2rem;
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
  height: 70vh; /* fixe Höhe für Scroll */
  background: var(--background);
}

#commit-list {
  flex: 0 0 35%;
  list-style: none;
  padding: 0 1rem 0 0;
  margin: 0;
  border-right: 1px solid var(--secondary);
  overflow-y: auto;
  height: 100%;
}

#commit-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--background);
}

#commit-list a {
  color: var(--text);
  text-decoration: none;
  display: block;
}

#commit-list a:hover, #commit-list a.active {
  color: var(--accent);
  font-weight: 600;
}

#commit-details {
  flex: 1 1 60%;
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  overflow-y: auto;
  height: 100%;
  display: none;
}

#commit-details h2, 
#commit-details p {
  margin-top: 0;
  margin-bottom: 1rem;
}

#commit-details a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

#commit-details a:hover {
  text-decoration: underline;
}
