:root{
  --bg-main: rgba(247, 243, 227, 1);
  --bg-alt:  rgba(239, 230, 204, 1);
  --bg-hover:rgba(227, 217, 184, 1);
  --bar:     rgba(187, 177, 153, 1);
  --ink:     rgba(66, 45, 20, 1);
  --muted:   rgba(66, 45, 20, .75);
  --border:  rgba(66, 45, 20, .25);
  --link:    rgba(66, 45, 20, .95);
f}


button.editBtn,
button.deleteBtn {
  background: none;         /* kein Hintergrund */
  border: none;             /* kein Rahmen */
  padding: 4px;             /* etwas Abstand */
  cursor: pointer;          /* Hand-Cursor */
  opacity: 0.6;             /* leicht transparent */
  transition: opacity 0.2s ease, transform 0.1s ease;
  font-size: 16px;          /* Icons etwas kleiner/gleichmäßig */
}

/* beim Hover leicht stärker sichtbar */
button.editBtn:hover,
button.deleteBtn:hover {
  opacity: 1;
  transform: scale(1.1);    /* sanfte Vergrößerung */
}

.btn-group {
  display: flex;             /* nebeneinander */
  gap: 6px;                  /* Abstand zwischen Buttons */
  justify-content: center;   /* zentriert in der Zelle */
}

/* optional: unterschiedliche Farben */
button.editBtn { color: #8a7b54; }     /* warmes Braun-Gold passend zum Stil */
button.deleteBtn { color: #b66; }      /* sanftes Rot, aber nicht knallig */

		div.group {
			background-color: rgba(187, 177, 153, 1);
			border-top: 4px rgb(239, 230, 204) solid;
			/* border-bottom: 4px rgb(239, 230, 204) solid;*/
			padding: 6px 12px;
			display: flex;
			justify-content: space-between;
			align-items: center;
			position: sticky;
			top: 0px;
			z-index: 9999;
		}
		
		div.group > h2 {    
			color: rgba(66, 45, 20, 1);
			font-size: 20px;
			display:block;
		}
		div.group > h4 {    
			color: rgba(66, 45, 20, 1);
			font-size: 16px;
			display:block;
			margin: 0;
		}
		
		tr.datum { background-color: rgba(227, 217, 184, 1); }
		tbody.odd tr { background-color: rgba(247, 243, 227, 1); }
		tbody.even tr {background-color: rgba(239, 230, 204, 1); }
		tbody.odd:hover tr { background-color: rgba(227, 217, 184, 1); }
		tbody.even:hover tr {background-color: rgba(227, 217, 184, 1); }
		td {padding:0px 5px;}

		.clickable-image {
			cursor: pointer;
			max-width: 350px;
			height: auto;
			max-height: 200px;
			padding: 3px 6px;
			objectFit: contain;
		}
		.clickable-mini-image {
			cursor: pointer;
			max-width: 50px;
			height: auto;
			max-height: 50px;
			padding: 3px 6px;
			objectFit: contain;
		}

.fullscreen-overlay {
  position: fixed;
  top: 0;            /* bleibt */
  left: 0;           /* bleibt */
  right: 0;          /* ← HINZUFÜGEN */
  bottom: 0;         /* ← HINZUFÜGEN */
  /* width/height entfernen (ersetzen durch right/bottom)  ← ÄNDERN */
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.fullscreen-overlay img {
  max-width: 100%;   /* ← ÄNDERN: statt 95% */
  max-height: 100%;  /* ← ÄNDERN: statt 95% */
  object-fit: contain; /* ← HINZUFÜGEN */
}

.hidden {
  display: none;
}
        body {
            font-family: Open Sans;
            background: #000;
            padding: 0px;
        }
        h1 {
            font-size: 2em;
        }
		table {
		  border: none;
		  border-collapse: collapse;
		}

		th, td {
		  border: none;
		}
		.wetterData {
			font-size:14px;
		}
		
		body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; margin: 0; padding: 1rem; }
header { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:1rem; }
.grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap:1rem; }
.card { border: 1px solid #ddd; border-radius: 12px; padding: 1rem; background:#fff; }
.card-group { border: 1px solid #ddd; border-radius: 12px; padding: 1rem; background:#fff; }
.badge { display:inline-block; padding:.25rem .5rem; border-radius: 999px; background:#f2f2f2; font-size:.9rem; }
h2 { margin:.25rem 0; }
.caption { font-weight:600; margin-top:.5rem; }
.small { font-size:.9rem; }
@media print { a[href]:after{ content:'' } .badge { background: none; border:1px solid #aaa;} }


.detail-wrap { padding:10px 12px; background:#f7f3e3; border-top:1px solid #e6dfc8; }
.detail-header { display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.toggle-details { background:none; border:none; cursor:pointer; opacity:.7; font-size:14px; }

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px 20px;
  width: 100%;
  box-sizing: border-box;
}

.detail-item label { font-weight:600; color:#5a4f35; }
.detail-input {
  width:100%; padding:6px 8px; border:1px solid #ccc; border-radius:6px;
  background:#fff; outline:none;
}
.detail-input:focus { border-color:#a89d83; box-shadow:0 0 0 2px rgba(168,157,131,.2); }

/* optional: animiertes Ein-/Ausblenden */
.detail-body[hidden] { display:none !important; }

.editable {
  display: inline-block;
  min-width: 20px;              /* 👈 klickbarer Bereich, auch wenn leer */
  padding: 2px 4px;
  border-bottom: 1px dotted #aaa; /* 👈 dezente Markierung */
  cursor: text;
  background-color: transparent;
}

/* beim Hovern leicht betonen */
.editable:hover {
  border-bottom-color: #666;
  background-color: #fffbe8;
}

/* beim Fokussieren klarer zeigen */
.editable:focus {
  outline: none;
  border-bottom: 1px solid #8b7a44;
  background-color: #fff7cc;
}

.editable.memo {
  min-height: 80px;               /* immer anklickbar */
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 6px;
  background-color: #fff;
  cursor: text;
  white-space: pre-wrap;          /* Zeilenumbrüche beibehalten */
}

.menu {
  position: absolute;
  display: none;
  background: white;
  border: 1px solid #ccc;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.2);
  border-radius: 4px;
  z-index: 1000;
}
.menu div {
  padding: 8px 12px;
  cursor: pointer;
}
.menu div:hover {
  background: #eee;
}


.cards{
  display: grid;
  gap: 8px;
}
.cards.cols-1{ grid-template-columns: repeat(1, minmax(0,1fr)); }
.cards.cols-2{ padding-top: 10px; padding-left: 10px; padding-right: 10px; grid-template-columns: repeat(2, minmax(0,1fr)); }
.cards.cols-3{ grid-template-columns: repeat(3, minmax(0,1fr)); }

.card-group {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;                /* kompakt */
  color: var(--ink);
  transition: background .15s ease, border-color .15s ease;
}
/* Einzelne Karte */
.card{
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;                /* kompakt */
  color: var(--ink);
  transition: background .15s ease, border-color .15s ease;
}
.card:hover{
  background: var(--bg-hover);
  border-color: rgba(66,45,20,.35);
}

/* Titel (fett, ganze Breite) */
.card .title{
  font-weight: 800;
  font-size: 15px;
  margin: 0 0 4px 0;
}

/* Link direkt unter dem Titel – leicht eingerückt mit Bullet */
.card .links{
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 4px 0;
}
.card .links a{
  background: transparent !important; /* macht den schwarzen Balken weg */
  color: var(--link);
  text-decoration: none;
  display: inline;            /* nicht blockbreit */
  padding: 0;
  margin-left: 12px;
  border: 0;
  box-shadow: none;
  line-height: 1.2;
  font-size: 11px;
}
.card .links a:before{ content: "• "; margin-left: -12px; }
.card .links a:hover{ text-decoration: underline; }

/* Beschreibung (mehrzeilig) */
.card .desc{
  white-space: pre-wrap;       /* Zeilenbrüche bleiben */
  font-size: 14px;
  color: var(--ink);
}

badge{ display:none; }
.title .icon{
  display:inline-block;
  font-size:16px;   /* klein & klar */
  line-height:1;
  margin-right:6px;
  transform: translateY(1px);
  color: rgba(66,45,20,.85); /* passend zu deinem Farbschema */
}

.md-modal[hidden]{
  display: none !important;  /* überschreibt .md-modal { display:flex; } */
}
.md-modal{
  position:fixed; inset:0; background:rgba(0,0,0,.35);
  display:flex; 
  align-items:center; 
  justify-content:center; 
  z-index:9999;
  padding:16px;
}
.md-dialog button{ border:1px solid #ccc; background:#f6f6f6; border-radius:8px; padding:6px 10px; cursor:pointer; }
.md-dialog button:hover{ background:#eee; }


/* ersetzt den bestehenden .md-dialog/.md-dialog textarea/.md-dialog .row Block */
.md-dialog{
  background:#fff; color:#111;
  width:70vw; max-width:900px;            /* breiter */
  height:70vh; 
  max-height:90vh;           /* höher */
  border-radius:12px; padding:14px;
  box-shadow:0 10px 30px rgba(0,0,0,.35);
  display:flex; flex-direction:column;    /* Layout fix */
  padding: 10px 30px 10px 10px;
}
.md-dialog h3{ margin:0 0 8px 0; }
.md-dialog textarea{
  flex:1;                                  /* nimmt den Platz zwischen Header & Buttons ein */
  min-height:0;                            /* wichtig für flex in Firefox */
  width:100%;
  font:12px/1.45 ui-monospace,Consolas,Menlo,monospace;
  border:1px solid #ccc; border-radius:8px; 
  padding: 10px;
  resize:vertical;                          /* nur vertikal */
}
.md-dialog .row{
  display:flex; gap:8px; justify-content:flex-end; margin-top:10px;
}

.notes-toolbar{ margin:6px 10px 8px 10px; }

.btn-notes{
  display:inline-flex; align-items:center; gap:6px;
  padding:4px 10px;
  font-size:12px; font-weight:600;
  color: var(--ink);
  background: var(--bg-alt);
  border:1px solid var(--border);
  border-radius:10px;
  box-shadow: inset 0 -1px 0 rgba(66,45,20,.08);
  cursor:pointer;
}
.btn-notes i{ font-size:14px; line-height:1; transform:translateY(1px); }

.btn-notes:hover{
  background: var(--bg-hover);
  border-color: rgba(66,45,20,.35);
}
.btn-notes:active{
  transform: translateY(1px);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.08);
}


/* Vollbild-Popup */
.link-modal[hidden]{ display:none !important; }
.link-modal{
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.55);
  display: flex; align-items: stretch; justify-content: center;
  padding: 18px;
  box-sizing: border-box;
}
.link-modal .wrap{
  position: relative;
  background: #fff;
  width: 96vw; height: 92vh;   /* fast Vollbild */
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.link-modal iframe{
  width: 100%; height: 100%; border: 0; display: block;
}
.link-modal .close{
  position: absolute; top: 10px; right: 10px;
  background: rgba(0,0,0,.7); color: #fff; border: 0;
  border-radius: 999px; width: 34px; height: 34px;
  font-size: 18px; line-height: 34px; cursor: pointer;
}
.link-modal .close:hover{ background: rgba(0,0,0,.85); }


.open-map {
  color: inherit;          /* übernimmt Textfarbe vom Eltern-Element */
  text-decoration: none;   /* entfernt Unterstreichung */
}

.open-map i {
  color: inherit;          /* Icon bleibt in Standardfarbe */
  text-decoration: none;   /* Sicherheitsmaßnahme, falls FontAwesome CSS überschreibt */
}
.open-map:hover i {
  color: #555; /* oder deine gewünschte Hoverfarbe */
}
.inline-bar{
  display:flex; align-items:center; gap:12px;
  background: var(--panel); color: var(--text);
  border:1px solid rgba(255,255,255,.08);
  border-radius: 14px; padding:8px 14px; box-shadow: var(--shadow);
  width:min(1000px, 96vw);
  white-space: nowrap; overflow:hidden; text-overflow: ellipsis;
  font-weight:600; font-size:1.05rem; line-height:1.25;
  -webkit-font-smoothing:antialiased; 
  font-variant-numeric: tabular-nums;
  font-feature-settings:"tnum" 1; /* tabular nums */
  font-size:10px;
  
}

h2.inline-bar {
	font-size: 16px !important;
}
.inline-bar .title{
	font-size: 20px;
  font-weight:800;
  color: var(--text);
  display:inline-flex; align-items:center; gap:.5ch;
}
.inline-bar .sep{ opacity:.45; padding-left:8px; padding-right:8px;}
.inline-bar .muted{ color: var(--muted); font-weight:600; }

.inline-bar .icon{
  width:auto; height:auto; display:inline-flex; align-items:center; justify-content:center;
  line-height:1; 
}
.inline-bar .icon svg{
  width:16px; height:16px;    /* eine Spur kleiner, wirkt ruhiger */
  display:block;              /* entfernt Inline-Lücken */
  transform: translateY(1px); /* optische Zentrierung */
  stroke: currentColor;
}
.inline-bar .lg svg{          /* falls du .lg nutzt */
  width:20px; height:20px;
}
.inline-bar .sun{ color: var(--warn); }

/* Werte + Einheit als Block, bruchsicher und optisch bündig */
.metric{ display:inline-flex; align-items:baseline; gap:2px; }
.unit{ opacity:.9; font-weight:600; }
.dim{ color: var(--muted); font-weight:600; }

/* Falls die Leiste in einem <h2> steckt, Typo glätten */
h2.inline-bar{ all:unset; display:block; }


