/* Allgemein */
:root{
    --indent: 18px;
    --muted: #666;
    --accent: #2b7cff;
    --bg-hover: #f5f8ff;
}

body{
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    margin: 20px;
    color: #222;
    background: #fff;
}

.app {
    max-width: 980px;
    margin: 0 auto;
}

/* Titel */
.title {
    margin: 0 0 12px 0;
    font-size: 1.35rem;
    font-weight: 700;
}

/* Controls */
.controls {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.input-label {
    font-size: 0.95rem;
}

.input-base {
    padding: 6px 8px;
    font-size: 0.95rem;
    width: 420px;
    max-width: 60vw;
    box-sizing: border-box;
}

.buttons {
    display: flex;
    gap: 8px;
}

.btn {
    padding: 8px 10px;
    border: 1px solid #ccc;
    background: white;
    cursor: pointer;
    border-radius: 6px;
    font-size: 0.95rem;
}

.btn:hover { box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.btn-primary { background: var(--accent); color: #fff; border-color: rgba(0,0,0,0.06); }

/* Gruppen-Header */
.group-header {
    font-weight: 700;
    font-size: 1.06rem; /* minimal größer */
    margin: 22px 0 6px 0; /* mehr Abstand zwischen Sprachen */
    padding-bottom: 6px;
    border-bottom: 1px dashed #e6e6e6;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Links container */
.links {
    margin-top: 12px;
    border-radius: 6px;
    padding: 8px 6px;
    background: #fff;
    min-height: 60px;
    border: 1px solid #f0f0f0;
}

/* Node line */
.node-line {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px;
    border-radius: 4px;
}

.node-line:hover {
    background: var(--bg-hover);
}

/* label & checkbox */
.node-label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    color: #111;
    text-decoration: none;
}

.node-label--ghost {
    color: var(--muted);
    font-style: italic;
}

.node-checkbox {
    margin-right: 6px;
}

/* icons */
.node-icon {
    display: inline-block;
    width: 18px;
    text-align: center;
}

/* spacer between groups */
.group-spacer {
    height: 8px;
}

/* status */
.status-area { margin-top: 12px; }
.status { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Levels (Indentation) */
.level-0 { margin-left: 0; }
.level-1 { margin-left: calc(var(--indent) * 1); }
.level-2 { margin-left: calc(var(--indent) * 2); }
.level-3 { margin-left: calc(var(--indent) * 3); }
.level-4 { margin-left: calc(var(--indent) * 4); }
.level-5 { margin-left: calc(var(--indent) * 5); }
.level-6 { margin-left: calc(var(--indent) * 6); }
.level-7 { margin-left: calc(var(--indent) * 7); }
.level-8 { margin-left: calc(var(--indent) * 8); }
.level-9 { margin-left: calc(var(--indent) * 9); }
.level-10{ margin-left: calc(var(--indent) *10); }

/* responsive small screens */
@media (max-width: 640px) {
    .input-base { width: 100%; max-width: 100%; }
    .buttons { flex-wrap: wrap; }
}


/* Fortschrittsbalken */
.progress-container {
    position: relative;
    width: 100%;
    background: #eee;
    border-radius: 8px;
    overflow: hidden;
    height: 24px;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #007bff, #00c6ff);
    transition: width 0.3s ease;
}

.progress-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    color: #fff;
    text-shadow: -1px -1px 0 var(--muted),1px -1px 0 var(--muted),-1px 1px 0 var(--muted),1px 1px 0 var(--muted);
}

/* Carwl List */
h1 {
    font-size:1.8rem;
    margin-bottom:1rem;
}


.domain {
    background: #fff;
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.domain h2 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #0078d7;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

th, td {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

th {
    background: #f0f0f0;
}

a {
    color: #0078d7;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.time {
    color: #666;
    font-size: 0.9rem;
}