/* ============================================================
   LEGACY BASE — merged from divelogs6.css
   ============================================================ */
/* latin */
@font-face {
	font-family: 'Raleway';
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url('../font/raleway-v27-latin-300.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin */
@font-face {
	font-family: 'Raleway';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../font/raleway-v27-latin-regular.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* open-sans-300 - latin */
@font-face {
	font-display: swap; 
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 300;
	src: url('../font/open-sans-v35-latin-300.woff2') format('woff2'); 
}

/* open-sans-300italic - latin */
@font-face {
	font-display: swap; 
	font-family: 'Open Sans';
	font-style: italic;
	font-weight: 300;
	src: url('../font/open-sans-v35-latin-300italic.woff2') format('woff2'); 
}

/* open-sans-regular - latin */
@font-face {
	font-display: swap; 
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 400;
	src: url('../font/open-sans-v35-latin-regular.woff2') format('woff2'); 
}

/* open-sans-italic - latin */
@font-face {
	font-display: swap; 
	font-family: 'Open Sans';
	font-style: italic;
	font-weight: 400;
	src: url('../font/open-sans-v35-latin-italic.woff2') format('woff2'); 
}

/* open-sans-500 - latin */
@font-face {
	font-display: swap; 
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 500;
	src: url('../font/open-sans-v35-latin-500.woff2') format('woff2'); 
}

/* open-sans-500italic - latin */
@font-face {
	font-display: swap; 
	font-family: 'Open Sans';
	font-style: italic;
	font-weight: 500;
	src: url('../font/open-sans-v35-latin-500italic.woff2') format('woff2'); 
}

/* open-sans-600 - latin */
@font-face {
	font-display: swap; 
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 600;
	src: url('../font/open-sans-v35-latin-600.woff2') format('woff2'); 
}

/* open-sans-600italic - latin */
@font-face {
	font-display: swap; 
	font-family: 'Open Sans';
	font-style: italic;
	font-weight: 600;
	src: url('../font/open-sans-v35-latin-600italic.woff2') format('woff2'); 
}

/* open-sans-700 - latin */
@font-face {
	font-display: swap; 
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 700;
	src: url('../font/open-sans-v35-latin-700.woff2') format('woff2'); 
}

/* open-sans-700italic - latin */
@font-face {
	font-display: swap; 
	font-family: 'Open Sans';
	font-style: italic;
	font-weight: 700;
	src: url('../font/open-sans-v35-latin-700italic.woff2') format('woff2'); 
}

/* open-sans-800 - latin */
@font-face {
	font-display: swap; 
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 800;
	src: url('../font/open-sans-v35-latin-800.woff2') format('woff2'); 
}

/* open-sans-800italic - latin */
@font-face {
	font-display: swap; 
	font-family: 'Open Sans';
	font-style: italic;
	font-weight: 800;
	src: url('../font/open-sans-v35-latin-800italic.woff2') format('woff2'); 
}

@font-face {
  font-family: 'divelogs';
  src: url('../font/divelogs.woff?jmfhm1') format('woff'),
       url('../font/divelogs.ttf?jmfhm1') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

html {
	overflow-y:scroll;
}

* {
	margin:0;
}

html,body {
	height:100%;
	width:100%;
}

body {
	background-color:#f9f9f9;
	color:#000;
	font-family:'Open Sans', Arial, Helvetica, sans-serif;
	font-size:14px;
	margin:0;
	padding:0;
	min-height:600px;
}

#editableTable {
	background-color: white;
}

.v.logbookvalue{
	min-height: 32px;
}

img {
	border:none;
}

.chat-container {
	max-width: 400px;
	margin: 0 auto;
}

.message-sent {
	position: relative;
	background-color: #3fb9f2;
	color: white;
	border-radius: 15px;
	padding: 10px 10px;
	margin: 8px 0;
	max-width: 70%;
	align-self: flex-end;
	margin-left: auto;
	position: relative;
	min-height: 35px;
}

.message-sent::after {
	content: "";
	position: absolute;
	bottom: 8px;
	width: 15px;
	height: 19px;
	background-color: #3fb9f2;
	clip-path: polygon(0 0, 0% 100%, 100% 100%);
	transform: rotate(15deg);
	right: -9px;
	bottom: 3px;
}

.message-sent a, .message-sent a:hover {
	color: #FFFFFF !important;
}

/* iMessage-Stil für empfangene Nachrichten (links) */
.message-received {
	position: relative;
	background-color: #e5e5ea;
	color: black;
	border-radius: 15px;
	padding: 10px 10px;
	margin: 8px 0;
	max-width: 70%;
	align-self: flex-start;
	min-height: 35px;
}

.message-received::after {
	content: "";
	position: absolute;
	bottom: 8px;
	left: -10px;
	width: 15px;
	height: 15px;
	background-color: #e5e5ea;
	clip-path: polygon(0 100%, 100% 0, 100% 100%);
	transform: rotate(-15deg);
	bottom: 3px;
}

.message-received a, .message-received a:hover {
	color: #000000 !important;
}

.message-time {
	font-size: 11px;
	color: #8e8e93;
	text-align: center;
}

/* slider pagination  */
.pager {
	position: relative;
	z-index: 10;
	text-align: center;
}
.pager-label {
	display: inline-block;
	vertical-align: top;
	line-height: 34px; /* == Buttonhöhe (30px) + 2px margin oben/unten -> vertikal bündig */
	margin-right: 10px;
	font-weight: 600;
	color: var(--ink-soft);
}

.slidecontainer {
	width: 205px;
	box-sizing: border-box;
	position: relative;
	display: inline-block;
}

.slider {
	-webkit-appearance: none;
	width: 200px;
	height: 30px;
	background: rgb(1,1,1,.05);
	outline: none;
	opacity: 0.7;
	-webkit-transition: .2s;
	transition: opacity .2s;
	z-index: -2;
	border:  1px solid grey;
	border-radius: 15px;
	box-sizing: border-box;
	margin-top: 2px;
}

.slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 25px;
	height: 25px;
	background: transparent!important;
	cursor: move;
	z-index: 1;
	top: -3px;
}

input[type=range] {
	-webkit-appearance: none;
}

input[type=range]::-webkit-slider-thumb {
	-webkit-appearance: none;
	border: none;
	height: 25px;
	width: 25px;
	border-radius: 50%;
	background: transparent;
	box-shadow: none!important;
}

.slider::-moz-range-thumb {
	width: 25px;
	height: 25px;
	background: transparent;
	cursor: move;
	z-index: 1;
	border:  none;
}

.sliderindicator {
	position: absolute;
	width: 26px;
	height: 26px;
	display:  block;
	text-align:  center;
	top: 4px;
	line-height:  24px;
	box-sizing: border-box;
	color: white;
	background-color: #63c5f3;
	border-radius:  15px;
	z-index: -1;
	left:  5px;
	font-family: Arial, Helvetica, sans-serif;
	font-size:  13px;
	border:  1px solid #a0a0a0;
}

.oneleft, .oneright {
	display: inline-block;
	width: 30px;
	height: 30px;
	vertical-align: top;
	background-color: #63c5f3;
	color: white;
	padding: 3px 6px;
	box-sizing: border-box;
	text-align: center;
	margin: 2px 0px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 16px;
}
/* slider pagination end */

#menuToggle input[type='checkbox'] {
	display: none;
}

#menu li {
	list-style-type: none;
	list-style-image: none;
}

#menu li span.pad {
	top: -2px;
	display: inline-block;
	position: relative;
}

.normal {
	font-size:10pt;
	color:#000;
	font-style:normal;
	background-color:#fff;
	font-family:Arial, Helvetica, sans-serif;
}

a:hover {
	color:red;
}

a {
	color:#0094C8;
}

.warn {
	font-size:10pt;
	font-weight:700;
	color:red;
}

.desc {
	color:#39ADE2;
	font:normal 15px/14px  'Raleway',sans-serif;
	margin-bottom:5px;
}

.descbl {
	color:#000;
	font:normal 14px/14px  'Raleway',sans-serif;
	margin-bottom:5px;
}

.minilogo {
	width: 100px;
	vertical-align: bottom;
	margin-bottom: -13px;
}

.nobr {
	white-space:nowrap;
}

.gross {
	font-family: 'Raleway', sans-serif;
	font-size:30px;
	color:#39ACE2;
	font-weight: 300;
}

.left {
	text-align: left;
}

.newsdate {
	color: #044C7E;
}

.username {
	font:italic 32px/38px Georgia,"Times New Roman", serif;
	color:#fff;
	text-shadow:#000 0 0 3px;
}

input {
	outline:none;
	transition:all .25s ease-in-out;
	-webkit-transition:all .25s ease-in-out;
	-moz-transition:all .25s ease-in-out;
	border-radius:3px;
	-webkit-border-radius:3px;
	-moz-border-radius:3px;
	border:1px solid rgba(0,0,0,0.2);
}

input:focus {
	box-shadow:0 0 5px rgba(57,172,226,1);
	border:1px solid rgba(57,172,226,0.8);
}

.nav-search input:focus, .lt-search input:focus, #usersearch {
	box-shadow:none;
	border:0px;
}

.narrow {
	font-size:11px;
	width: 124px;
	padding:2px;
}

.big {
	font:italic 12pt Georgia,"Times New Roman", serif;
	color:#39ACE2;
	font-weight:400;
	width:210px;
	padding-left:5px;
}

.rot {
	font-size:12pt;
	font-weight:700;
	color:red;
}

.bold {
	font-size:12pt;
	font-weight:700;
}

.pagelink {
	font-size:10pt;
	color:#31659c;
	font-style:normal;
	text-decoration:none;
}

.klein {
	font-size:8pt;
	font-style:normal;
}

.activetab {
	position:relative;
	margin-left:5px;
	background-color:#71CBF4;
	padding:5px;
}

.activetab2 {
	position:relative;
	background-color:#71CBF4;
	border-radius:3px;
	width: 100%;
}

.activetab2 a {
	color:#000;
}

.td {
	background-color:#FFF;
	line-height:1.4em;
	padding:3px;
	height: 50px;
}

.td2 {
	background-color:#EAF3F7;
	line-height:1.4em;
	padding:3px;
	height: 50px;
}

.td3 {
	background-color:#defed9;
	line-height:1.4em;
	padding:3px;
	height: 50px;
}

.tgedit label {
	display: block;
	margin: 10px 0 0 0;
	font-size: 1em;
}

.tgeditblock {
	display: inline-block;
	margin-right: 25px;
	min-width: 200px;
	margin-bottom: 10px;
}

.tgedit input[type=text] {
	min-width: 170px;
}

.tgeditblock input[type=text].numberinput {
	width: 70px !important;
	min-width: 70px;
}

.tgedit input {
	padding: 5px;
}

.durationblock input:focus, .durationblock input {
	outline:none;
}

.durationblock {
	display: inline-flex;
	align-items: center;
	min-width: 170px;
	border: 1px solid var(--line, rgba(0,0,0,0.15));
	border-radius: 8px;
	background: var(--surface-2, #f3f6f9);
	padding: 8px 12px;
	font: inherit;
}

.durationblock input[type=date], .durationblock input[type=time] {
	font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* Chrome, Safari, Edge, Opera */
.durationblock input::-webkit-outer-spin-button,
.durationblock input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Firefox */
.durationblock input[type=number] {
	-moz-appearance: textfield;
	width: 38px !important;
	text-align: center;
	border: none !important;
	background: transparent !important;
	padding: 3px 2px !important;
	font-size: inherit;
}

#mapInputs .desc{
	font-size: 1em;
}

#monthview .td, #monthview .td2 {
	height: 20px;
}

ul {
	margin-left:3px;
	padding-left:15px;
	text-indent:0;
	list-style-image:url(../img/bullet.png);
}

a.navilink,a.navilinkactive {
	display:block;
	white-space:nowrap;
	width:100%;
	font-size:11px;
	font-weight:700;
	color:#000;
	text-indent:5px;
	text-decoration:none;
	margin-bottom:2px;
	border-left:3px solid transparent;
	padding:3px 0;
}

a.navilink img,a.navilinkactive img {
	vertical-align:bottom;
	margin-bottom:2px;
}

a.navilinkactive,a.navilink:hover {
	border-left:3px solid #0094c8;
}

hr {
	line-height:0;
	font-size:0;
	border:0;
	border-bottom:1px solid #b0b0b0;
	margin:7px 0;
}

h1 {
	font: 60px/75px Georgia,"Times New Roman", serif;
	color:#FFF;
	margin:0;
}

h2 {
	font: 41px/75px Georgia,"Times New Roman", serif;
	color:#FFF;
}

h3 {
	font-family: Raleway,"Times New Roman", serif;
	font-size: 22px;
	line-height: 30px;
	color:#6FCAF4;
	margin-top:0;
	text-align:center;
}

h4 {
	font-family: 'Raleway', sans-serif;
	font-size:20px;
	color:#FFF;
	margin-top:0;
	text-align:center;
}

h1 a,h2 a,h3 a,h1 a:hover,h2 a:hover,h3 a:hover,.top_logo a {
	text-decoration:none;
	color:inherit;
}

#container {
	position:relative;
	width: 100%;
	padding:0;
}

#c_head {
	position:relative;
	background-color: #3fb9f2;
	width:100%;
	height:50px;
	z-index:10;
	-webkit-box-shadow:0 0 4px #000;
	-moz-box-shadow:0 0 4px #000;
	box-shadow:0 0 4px #000;
	margin:auto;
	padding: 0px 0px
}

#main {
	max-width: 1400px;
	margin:auto;
}

#activity {
	float: left;
	width: 300px;
	min-height: 690px;
	padding: 20px;
}

#c_content_index {
	width:100%;
	max-width: 1400px;
	margin:auto;
}

#c_content {
	max-width:1050px;
	min-height:400px;
	padding:20px 0 30px 0px;
	margin: 30px auto 0;
	position:relative;
}

#rightnav {
	background-color:white;
	float:right;
	padding: 0px 10px;
	margin: 10px 0px 0px 25px;
	width: 210px;
}

#profilepicture {
	margin-top:15px;
	float: right;
}

#rightnav ul {
	text-indent: 0px;
	margin-left:0px; 
	padding-left:0px;
}

#rightnav ul li {
	list-style: none;
	margin-bottom: 5px;
}

#rightnav a {
	text-decoration: none;
	display: block;
	margin: 7px 0;
	display: inline-flex;
    align-items: center;
	gap: 0.5em;
}

#rightnav span {
	display: inline-block;
	vertical-align: middle;
}

#c_footer {
	position:relative;
	width:100%;
	min-height:25px;
	z-index:10;
	text-align:right;
	background-color:#3fb9f2;
	color:#FFF;
	-webkit-box-shadow:0 0 4px #000;
	-moz-box-shadow:0 0 4px #000;
	box-shadow:0 0 4px #000;
	clear:both;
	font-size:11px;
	padding:15px 0 8px 0;
}

#c_footer a {
	text-decoration:underline;
	color:#FFF;
}

#c_left {
	float:left;
	height:100%;
	width:170px;
	margin:0;
	padding:5px 0 0;
}

.c_navigation {
	width:100%;
	text-align:left;
	font-size:11px;
	overflow:hidden;
	margin:20px 0 15px;
}

.top_logo {
	display: block;
	text-align: center;
	position: absolute;
	width: 100%;
	padding-left: 170px;
	box-sizing: border-box;
}

.loggedin .top_logo {
	padding-left: 50px;
}

.searchBox {
	background-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1024 1024%22%3E%3Cpath fill=%22%233fb9f2%22 stroke=%22%233fb9f2%22 stroke-width=%2230%22 d=%22M912.96 879.040l-205.52-205.52c52.53-60.162 84.562-139.399 84.562-226.118 0-190.317-154.283-344.6-344.6-344.6s-344.6 154.283-344.6 344.6c0 190.317 154.283 344.6 344.6 344.6 86.719 0 165.956-32.032 226.525-84.91l-0.407 0.348 205.52 205.52c4.274 3.991 10.032 6.441 16.361 6.441 13.255 0 24-10.745 24-24 0-6.33-2.45-12.087-6.454-16.375l0.013 0.014zM152 448c0-163.476 132.524-296 296-296s296 132.524 296 296c0 163.476-132.524 296-296 296v0c-163.394-0.205-295.795-132.606-296-295.981v-0.019z%22/%3E%3C/svg%3E');
    background-position: 5px center;
    background-repeat: no-repeat;
    background-size: 16px 16px;
	padding-left: 25px;
	height: 22px;
	border-radius: 11px;
	width: 180px;
	box-sizing: border-box;
	border: 0px!important;
}

.rounded {
	-webkit-border-radius:7px;
	-khtml-border-radius:7px;
	-moz-border-radius:7px;
	border-radius:7px;
}

.userpictiny {
	-webkit-border-radius:4px;
	-khtml-border-radius:4px;
	-moz-border-radius:4px;
	border-radius:4px;
	width:35px;
	height:35px;
}

#headeruserpic {
	height:30px!important;
	width: 30px!important;
	float:left;
	margin-right:10px;
	margin-top:-4px;
	-webkit-border-radius:4px;
	-khtml-border-radius:4px;
	-moz-border-radius:4px;
	border-radius:4px;
}

.wrapper {
	min-height:100%;
	height:auto!important;
	margin:0 auto -45px;
	width:100%;

}
/*
.footer,.push {
	height:45px;
}
	*/

nav {
	float: left;
	position: absolute;
	left: 0px;
}

nav a, nav a:hover {
	color:#FFF;
	text-decoration:none;
}

nav ul {
	list-style: none;
	padding: 0;
	margin: 0;
	line-height: 22px;
	margin-top: -4px;
}

nav li {
	position: relative;
	display: inline-block;
	padding: 10px;
}

nav ul ul {
	display: none;
	position: absolute;
	top: 95%;
	left: 0;
	min-width: 210px;
	opacity: 0;
	transition: opacity 0.3s ease;
}

nav ul ul.show {
	display: block;
	opacity: 1;
}

nav ul ul li {
	display: block;
	width: 100%;
}

nav li ul li {
	list-style:none;
	background:#3fb9f2;
	padding: 15px 0 0 10px;
}

.firstmenu ul li {
	width:170px;
}

.loginmenu, .secondmenu  {
	padding-top:18px;
}

.secondmenu ul li {
	width:210px;
}

.loginmenu {
	color:white;
}

.loginmenu input {
	margin:  5px 0;
	height: 20px;
}

.loginmenu button {
	width:  139px;
	margin:  5px 0;
	font-size:  inherit;
}

.loginmenu ul li {
	width:150px;
	color:white;
}

.stayvisible {
	display:block!important;
	opacity: 1;
}

nav li:hover ul {
	display:block;
}

nav ul ul li:last-child {
	background:#3fb9f2;
	border-radius:0 0 4px 4px;
	padding-bottom:10px;
}

.mask {
	max-width:1050px;
	overflow:hidden;
	background-color:#EAF3F7;
	position:relative;
	margin:0 -50px;
	height: 350px;
}

.mask:hover .newpicbutton {
	display:block!important;
}

#userthumbnaildiv:hover .newuserpicbutton {
	display:block!important;
}

.arrow-down {
	width:0;
	height:0;
	border-left:5px solid transparent;
	border-right:5px solid transparent;
	border-top:5px solid #000;
	margin:.5em auto auto;
}

.arrow-down-white {
	display:inline-block;
	vertical-align: middle;
	width:0;
	height:0;
	border-left:5px solid transparent;
	border-right:5px solid transparent;
	border-top:5px solid #FFF;
	margin: 0px 3px auto;
}

.logbook {
	position:relative;
	margin:0 50px;
	padding:0;
}

.shaded {
	-webkit-box-shadow:0 0 4px #b0b0b0;
	-moz-box-shadow:0 0 4px #b0b0b0;
	box-shadow:0 0 4px #b0b0b0;
}

.shaded2 {
	-webkit-box-shadow:2px 2px 6px #000;
	-moz-box-shadow:2px 2px 6px #000;
	box-shadow:2px 2px 6px #000;
}

#layerslider {
	-webkit-box-shadow:2px 2px 6px #666;
	-moz-box-shadow:2px 2px 6px #666;
	box-shadow:2px 2px 6px #666;
}

table.dive {
	border-collapse:collapse;
	background-color:#fff;
}

table.dive th {
	font-weight:700;
	padding:1px;
}

table.dive td {
	font-size:10pt;
	padding:0;
}

table.userlist {
	font-size:10pt;
	border-top:1px solid #000;
	border-collapse:collapse;
}

table.divelist td {
	font-size:10pt;
	border-color:#000;
	padding:2px;
}

#divelist {
	width:  705px;
}

.desc.col1 {
	width:  40px;
}
.desc.col2 {
	width:  130px;
}
.desc.col3 {
	width:  225px;
}
.desc.col4 {
	width:  60px;
}
.desc.col5 {
	width:  50px;
}
.desc.col6 {
	width:  20px;
}
.desc.col7 {
	width:  20px;
}
.desc.col8 {
	width:  20px;
}
.desc.col9 {
	width:  20px;
}

.col6  {
	padding: 2px;
}
.col6 svg {
	display: block;
}

sub,sup {
	line-height:0;
	font-size:80%;
}

.newsticker {
	overflow:hidden;
	text-indent:3px;
	margin:0;
	padding:5px;
}

.newsticker li {
	list-style:none;
	text-indent:0;
	display:block;
	width:150px;
	text-align:center;
}

#userprofile {
	margin-top:6px;
	background-color:#fff;
	width:650px;
	min-height:500px;
	padding:15px;
}

#buddyaddinline {
	margin-top:5px;
	margin-bottom:5px;
	min-width:150px;
	background-color:#FFF;
	border:1px solid #4a98bc;
	position:absolute;
	bottom: 20px;
	right:  10px;
	z-index:98;
	padding:3px;
}

#invitation {
	display:none;
	width:200px;
	margin-bottom:15px;
}

.indicator {
	vertical-align:bottom;
	display:inline-block;
	background-color:red;
	color:#FFF;
	font-weight:700;
	width:16px;
	height:16px;
	margin-right:8px;
	padding-top:1px;
	line-height:15px;
	-webkit-border-radius:8px;
	-khtml-border-radius:8px;
	-moz-border-radius:8px;
	border-radius:8px;
}

#randompics li {
	margin-bottom:20px;
}

#userthumbnail {
	-webkit-border-radius:50%;
	-khtml-border-radius:50%;
	-moz-border-radius:50%;
	border-radius:50%;
	width:190px; 
	height: 190px; 
	border: 5px solid #FFFFFF;
	background-color: #FFFFFF;
	position: relative;

}

.fixedontop #userthumbnaildiv #userthumbnail {
	margin-top:2px;
	width:36px; 
	height: 36px; 
	border: 1px solid #fff;
}

.fixedontop #biodiv .username, #buddies .username, .usernameblue {
	font: normal 20px/38px "Raleway",sans-serif;;
	color: #39ACE2;
	text-shadow:none;
}

#activefield {
	height:30px;
	margin:0;
	padding:6px;
	min-width: 70px;
	font-family: 'Sora';
  font-weight: 700;
  font-size: 15px;
}

.logbookvalue {
	display:inline-block;
	min-height:16px;
	margin:0;
	padding:0;
}

.qe:hover {
	background-color:#FF8080;
	cursor:pointer;
}

.userlisting, .groupslisting {
	clear:both;
	height:90px;
	border-top:1px solid var(--line);
	position:relative;
	padding:10px;
}

.userlisting:hover, .groupslisting:hover {
	background-color: var(--surface-2);
}

.userlisting a span, .groupslisting a span {
	margin-bottom:3px;
	margin-left:2px;
}

.userlisting a , .groupslisting a{
	text-decoration:none;
	font-size:13pt;
	color:#0094C8;
	font-weight:700;
}

#divegroups {
	width: 500px;
	float: left;
}

#groupedit label {
	display: inline-block;
	width: 90px;;
}

.cke_editable_inline {
	min-height: 80px;
}

.editable {
	min-height: 90px;
}

.mypost:hover {
	cursor: url('/img/edit.cur'), pointer;
}

.saved {
	background-color: #9ed0aa;
}

#newthread {
	background-color: #EAF3F7;
	padding: 30px;
}

blockquote {
	padding: 5px 8px 5px 30px;
	border: 1px dotted #39ADE2;
	border-left: 5px solid #39ADE2;
	font-style: italic;
	font-family: Georgia,Times,"Times New Roman",serif;
	margin: 10px 0 10px 20px;
	display: block;
	background-image: url("/img/quote.png");
	background-repeat: no-repeat;
	background-size: 20px 20px;
	background-position: 5px 5px;
}

.bio {
	font:italic 14px/17px Georgia,"Times New Roman", serif;
	color:#000;
	
}

.userlisting .anz {
	position:absolute;
	right:0px;
	font:italic bold 30px Arial, Helvetica, sans-serif;
	margin-right:0;
	width:75px;
	color:silver;
	line-height:30px;
}

.groupslisting .anz {
	position:absolute;
	left:430px;
	font:italic bold 30px Arial, Helvetica, sans-serif;
	margin-right:0;
	width:75px;
	color:silver;
	line-height:30px;
}

.groupslisting .anz .tg {
	font:italic 10px Arial, Helvetica, sans-serif;
}

.userlisting .anz .tg {
	font:italic 10px Arial, Helvetica, sans-serif;
}

.navidesc {
	font-size:1.2em;
	color:#000;
	font-weight:700;
}

.nolist {
	list-style: none!important;
	padding-left: 0px;
	margin-left: 0px;
	margin-top: 10px;
}

.logbookpage {
	position:relative;
	background-color:#FFF;
	min-height:200px;
	margin-top:10px;
	line-height:25px;
	padding:30px;
	width:790px;
	float:left;
}

#first {
	width:100%;
	height:120px;
}

#second {
	height:200px;
	position:relative;
	margin-top:25px;
	margin-left:0px;
	background-image: url('/img/profil.svg?v=4.3.0');
	background-size: 700px 195px;
	background-repeat: no-repeat;
	clear: both;
}

.divenumber {
	width:200px;
	height:64px;
	position:absolute;
	left:505px;
	background-color:#EAF3F7;
	font:italic 14px/18px Georgia,"Times New Roman", serif;
	text-align:center;
	padding:5px 5px 5px 7px;
}

.divenumber .number {
	text-align:center;
	padding-top:5px;
	margin-left:10px;
	float:right;
	width:95px;
	font-size:30px;
	color:#FFF;
	background-color:#39ADE2;
	-webkit-border-top-right-radius:7px;
	-webkit-border-bottom-right-radius:7px;
	-moz-border-radius-topright:7px;
	-moz-border-radius-bottomright:7px;
	border-top-right-radius:7px;
	border-bottom-right-radius:7px;
	height:59px;
}

.divenumber .number .dive {
	font-size:15px;
	line-height:24px;
}

.blue {
	color:#39ADE2;
	font:bold 14px/14px  'Raleway',sans-serif;
	margin-bottom:5px;
}

.divenumber .bigger {
	font-size:26px;
	line-height:26px;
}

.timedepth {
	float:left;
	width:350px;
	height:195px;
	margin-right:20px;
	margin-bottom: 30px;
}

.ui-tabs-nav {
	border-bottom: 3px solid #30ace4!important;
}

.tank {
	padding: 15px 5px 10px 0px;
	float: left;
	width: 200px;
}

#tplatz {
	float:left;
	width:290px;
	height:120px;
}

#other {
	float:left;
	width:200px;
	height:120px;
}

#buddies img {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	margin: -5px 10px 0 0;

}

#buddies {
	margin-top:20px;
	line-height: 70px;
	position: relative;
}

#buddies .username {
	margin-right: 30px;
}

#bilder,#videos,#diveprofile,#gmap {
	margin-top:20px;
}

#sort img {
	vertical-align:bottom;
}

#sort a {
	text-decoration: none;
}

#prevdive {
	margin-right: 10px;
}

#nextdive {
	margin-left: 10px;
}

.diveprofile:hover {
	cursor:url(/img/lupe.cur), pointer;
}

#faq li {
	display: block;
	background-image: url(/img/faq.png?v=4.5.0);
	background-position: 0 0;
	background-repeat: no-repeat;
	padding-left: 20px;
	padding-bottom: 10px;
	background-size: 16px, 16px;
}

.pad {
	margin-right:5px;
}

.top {
	vertical-align:middle!important;
	margin-bottom:2px;
}

.groupadmin li a {
	cursor: pointer;
}

#createevent {
	line-height: 2em;
}

#createevent label {
	display: block;
	width: 60px;
}

.groupevent .month {
	background-color: rgb(231,87,83);
	text-align: center;
	color: white;
}

.groupevent .day {
	font-size: 24pt;
	text-align: center;
	line-height: 30px;
}

.groupevent .year {
	text-align: center;
	font-size: 10px;
}

.groupevent .weekday {
	text-align: center;
	padding-top:1px;
	font-size: 10px;
}

#eventedit {
	border-radius: 7px;
}

.sprite-FAQ, .sprite-buddynews, .sprite-magic, .sprite-groups, .sprite-avg, .sprite-merge, .sprite-clock, .sprite-delete, .sprite-explore, .sprite-feed, .sprite-export, .sprite-home, .sprite-homepage, .sprite-import, .sprite-list, .sprite-logbook, .sprite-logbooks, .sprite-logout, .sprite-maps, .sprite-maxdepth, .sprite-neu, .sprite-news, .sprite-next, .sprite-photo, .sprite-photos, .sprite-prev, .sprite-print, .sprite-profile, .sprite-register, .sprite-script, .sprite-search, .sprite-settings, .sprite-stats, .sprite-stopwatch, .sprite-temperature, .sprite-user, .sprite-video, .sprite-quickedit, .sprite-calendar, .sprite-facebook, .sprite-twitter, .sprite-contact, .sprite-editdive, .sprite-copydive, .sprite-timeline, .sprite-buddyrel, .sprite-embed, .sprite-gear {	
	font-family: 'divelogs' !important;
	font-size: 24px;
	vertical-align: middle;
}

.sprite-white-FAQ, .sprite-white-buddynews, .sprite-white-magic, .sprite-white-groups, .sprite-white-avg, .sprite-white-merge, .sprite-white-clock, .sprite-white-delete, .sprite-white-explore, .sprite-white-feed, .sprite-white-export, .sprite-white-home, .sprite-white-homepage, .sprite-white-import, .sprite-white-list, .sprite-white-logbook, .sprite-white-logbooks, .sprite-white-logout, .sprite-white-maps, .sprite-white-maxdepth, .sprite-white-neu, .sprite-white-news, .sprite-white-next, .sprite-white-photo, .sprite-white-photos, .sprite-white-prev, .sprite-white-print, .sprite-white-profile, .sprite-white-register, .sprite-white-script, .sprite-white-search, .sprite-white-settings, .sprite-white-stats, .sprite-white-stopwatch, .sprite-white-temperature, .sprite-white-user, .sprite-white-video, .sprite-white-quickedit, .sprite-white-calendar, .sprite-white-facebook, .sprite-white-twitter, .sprite-white-contact, .sprite-white-editdive, .sprite-white-copydive, .sprite-white-timeline, .sprite-white-buddyrel, .sprite-white-embed, .sprite-white-gear {	
	font-family: 'divelogs' !important;
	font-size: 24px;
	vertical-align: middle;
	color: white;
}

.sprite-FAQ:before, .sprite-white-FAQ:before {
	content: "\e902";
}

.sprite-merge:before, .sprite-white-merge:before {
	content: "\e90e";
}

.sprite-buddynews:before, .sprite-white-buddynews:before {
	content: "\e915";
}

.sprite-clock:before, .sprite-white-clock:before {
	content: "\e927";
}

.sprite-delete:before, .sprite-white-delete:before {
	content: "\e91d";
}

.sprite-explore:before, .sprite-white-explore:before {
	content: "\e92a";
}

.sprite-feed:before, .sprite-white-feed:before {
	content: "\e908";
}

.sprite-export:before, .sprite-white-export:before {
	content: "\e918";
}

.sprite-home:before, .sprite-white-home:before {
	content: "\e907";
}

.sprite-homepage:before, .sprite-white-homepage:before {
	content: "\e916";
}

.sprite-import:before, .sprite-white-import:before {
	content: "\e917";
}

.sprite-list:before, .sprite-white-list:before {
	content: "\e90b";
}

.sprite-logbook:before, .sprite-white-logbook:before {
	content: "\e92d";
}

.sprite-logbooks:before, .sprite-white-logbooks:before {
	content: "\e92d";
}

.sprite-logout:before, .sprite-white-logout:before {
	content: "\e91c";
}

.sprite-maps:before, .sprite-white-maps:before {
	content: "\e925";
}

.sprite-magic:before, .sprite-white-magic:before {
	content: "\e919";
}

.sprite-maxdepth:before, .sprite-white-maxdepth:before {
	content: "\e913";
}

.sprite-neu:before, .sprite-white-neu:before {
	content: "\e91e";
}

.sprite-news:before, .sprite-white-news:before {
	content: "\e906";
}

.sprite-next:before, .sprite-white-next:before {
	content: "\e92b";
}

.sprite-photo:before, .sprite-white-photo:before {
	content: "\e923";
}

.sprite-photos:before, .sprite-white-photos:before {
	content: "\e922";
}

.sprite-prev:before, .sprite-white-prev:before {
	content: "\e92c";
}

.sprite-print:before, .sprite-white-print:before {
	content: "\e91a";
}

.sprite-profile:before, .sprite-white-profile:before {
	content: "\e901";
}

.sprite-register:before, .sprite-white-register:before {
	content: "\e91e";
}

.sprite-script:before, .sprite-white-script:before {
	content: "\e921";
}

.sprite-search:before, .sprite-white-search:before {
	content: "\e910";
}

.sprite-settings:before, .sprite-white-settings:before {
	content: "\e920";
}

.sprite-stats:before, .sprite-white-stats:before {
	content: "\e914";
}

.sprite-stopwatch:before, .sprite-white-stopwatch:before {
	content: "\e900";
}

.sprite-temperature:before, .sprite-white-temperature:before {
	content: "\e905";
}

.sprite-user:before, .sprite-white-user:before {
	content: "\e926";
}

.sprite-video:before, .sprite-white-video:before {
	content: "\e91b";
}

.sprite-quickedit:before, .sprite-white-quickedit:before {
	content: "\e903";
}

.sprite-calendar:before, .sprite-white-calendar:before {
	content: "\e929";
}

.sprite-facebook:before, .sprite-white-facebook:before {
	content: "\e90a";
}

.sprite-twitter:before, .sprite-white-twitter:before {
	content: "\e90b";
}

.sprite-contact:before, .sprite-white-contact:before {
	content: "\e909";
}

.sprite-editdive:before, .sprite-white-editdive:before {
	content: "\e90f";
}

.sprite-copydive:before, .sprite-white-copydive:before {
	content: "\e90d";
}

.sprite-timeline:before, .sprite-white-timeline:before {
	content: "\e928";
}

.sprite-groups:before, .sprite-white-groups:before {
	content: "\e924";
}

.sprite-buddyrel:before, .sprite-white-buddyrel:before {
	content: "\e92e";
}

.sprite-embed:before, .sprite-white-embed:before {
	content: "\e90c";
}

.sprite-gear:before, .sprite-white-gear:before {
	content: "\e912";
}

.sprite-avg:before, .sprite-white-avg:before {
	content: "\e911";
} 

.logbookicon {
	font-size: 20px;
	color: #39ade2;
	padding-bottom: 2px;
}

.modern {
	display: inline-block;
	color: #FFF;
	font-weight: 700;
	background: #3fb9f2;
	border-radius: 4px;
	border: none!important;
	transition: all .3s ease-out;
	text-decoration: none;
	margin: 2px;
	padding: 2px 8px;
	padding: 6px 12px;
}

.modern:hover {
	background:#6FCAF4;
}

/* Kalender (calendar.php) — neues Design */
.cal-card { padding: 24px 26px; overflow-x: auto; }
.cal-nav { position: relative; margin: 4px 0 18px; font-size: 14px; color: var(--ink-mute); min-height: 24px; }
.cal-nav a { color: var(--brand-strong); text-decoration: none; font-weight: 600; }
[data-theme="dark"] .cal-nav a { color: var(--brand); }
.cal-nav a:hover { text-decoration: underline; }
.cal-nav [class*="sprite-"] { font-size: 15px !important; vertical-align: -2px; }

.calendar {
	border-collapse: separate;
	border-spacing: 0;
	width: 100%;
	min-width: 680px;
	table-layout: fixed;
	margin-top: 6px;
}
.calheader { width: 14.28%; }
.calendar th {
	font-family: 'Sora', sans-serif;
	font-weight: 700;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--ink-mute);
	text-align: left;
	padding: 0 4px 12px;
}
.calcell {
	height: 118px;
	border-left: 1px solid var(--line-soft);
	border-top: 1px solid var(--line-soft);
	vertical-align: top;
	padding: 8px;
}
.calcell:first-child { border-left: none; }
.notop { border-top: none; }
.caldatenumber {
	font-family: 'Sora', sans-serif;
	font-weight: 700;
	font-size: 16px;
	color: var(--ink-soft);
	margin-bottom: 7px;
	line-height: 1;
}
.caldive {
	display: block;
	font-size: 12px;
	line-height: 1.3;
	font-weight: 600;
	color: var(--brand-strong);
	background: var(--brand-soft);
	border-radius: 8px;
	padding: 4px 8px;
	margin-bottom: 4px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	transition: background .15s, color .15s;
}
[data-theme="dark"] .caldive { color: var(--brand); background: rgba(20,168,218,.14); }
.caldive:hover { background: var(--brand); color: var(--on-brand) !important; }

.tip-dive {
	z-index:1000;
	text-align:left;
	border:1px solid var(--line);
	border-radius: var(--r);
	width:228px;
	color: var(--ink);
	background: var(--surface);
	box-shadow: var(--shadow-lg);
	padding:14px 16px;
}
.tip-dive .tip-inner { font: inherit; }
.tdi-top { display:flex; justify-content:space-between; align-items:flex-start; gap:8px; margin-bottom:6px; }
.tdi-no { font-family:'Sora',sans-serif; font-weight:700; font-size:14px; color:var(--ink); }
.tdi-icons { display:inline-flex; gap:5px; flex:none; color:var(--brand-strong); }
[data-theme="dark"] .tdi-icons { color:var(--brand); }
.tdi-icons svg { width:15px; height:15px; }
.tdi-place { font-family:'Sora',sans-serif; font-weight:700; font-size:14px; color:var(--ink); line-height:1.3; }
.tdi-loc { font-size:12.5px; color:var(--ink-mute); margin-top:1px; }
.tdi-sub { font-size:12.5px; color:var(--ink-mute); margin-top:4px; }
.tdi-stats { display:flex; gap:14px; margin-top:5px; }
.tdi-stats span { font-weight:700; font-size:13px; color:var(--ink-soft); }
.tdi-profile { margin-top:10px; border-top:1px solid var(--line-soft); padding-top:8px; }
.tdi-profile svg { width:100%; height:auto; display:block; }
/* CSS-Pfeil statt PNG-Sprite, in Surface-Farbe */
.tip-dive .tip-arrow-top, .tip-dive .tip-arrow-bottom, .tip-dive .tip-arrow-left, .tip-dive .tip-arrow-right {
	background:none !important; width:0 !important; height:0 !important;
}
.tip-dive .tip-arrow-top { border-left:7px solid transparent; border-right:7px solid transparent; border-bottom:7px solid var(--surface); margin-left:-7px !important; margin-top:-7px !important; }
.tip-dive .tip-arrow-bottom { border-left:7px solid transparent; border-right:7px solid transparent; border-top:7px solid var(--surface); margin-left:-7px !important; }
.tip-dive .tip-arrow-left { border-top:7px solid transparent; border-bottom:7px solid transparent; border-right:7px solid var(--surface); margin-top:-7px !important; margin-left:-7px !important; }
.tip-dive .tip-arrow-right { border-top:7px solid transparent; border-bottom:7px solid transparent; border-left:7px solid var(--surface); margin-top:-7px !important; }

.tip-import {
	z-index:1000;
	text-align:left;
	border:1px solid #41B1E5;
	border-radius:4px;
	-moz-border-radius:4px;
	-webkit-border-radius:4px;
	width:330px;
	color:#000;
	background-color:#EAF3F7;
	margin-left:35px;
	padding:6px 8px;
}

.tip-dive .tip-inner {
	font:12px/16px arial,helvetica,sans-serif;
}

.tip-dive .tip-arrow-top {
	margin-top:-6px;
	margin-left:-5px;
	top:0;
	left:50%;
	width:9px;
	height:6px;
	background:url(/img/tooltip_arrows.png) no-repeat;
}

.tip-dive .tip-arrow-right {
	margin-top:-4px;
	margin-left:0;
	top:50%;
	left:100%;
	width:6px;
	height:9px;
	background:url(/img/tooltip_arrows.png) no-repeat -9px 0;
}

.tip-dive .tip-arrow-bottom {
	margin-top:0;
	margin-left:-5px;
	top:100%;
	left:50%;
	width:9px;
	height:6px;
	background:url(/img/tooltip_arrows.png) no-repeat -18px 0;
}

.tip-dive .tip-arrow-left,.tip-import .tip-arrow-left, .tip-imports .tip-arrow-left {
	margin-top:-4px;
	margin-left:-6px;
	top:50%;
	left:0;
	width:6px;
	height:9px;
	background:url(/img/tooltip_arrows.png) no-repeat -27px 0;
}

.preview img {
	max-width:99px;
	max-height:99px;
}

.nodec,.calcell a {
	text-decoration:none;
}

.passivetab,.passivetab2 {
	position:relative;
}

.activetab2, .passivetab2 {
	text-indent: 10px;
}

.round {
	border-radius:50%;
	-webkit-border-radius:50%;
	-moz-border-radius:50%;
}

.bordered {
	border: 2px solid white;
}

nav > a,#divedate_hidden {
	display:none;
}

table.divelist,table.divelist_ifr {
	font-size:10pt;
	border:1px solid #000;
	border-collapse:collapse;
}

#monthview td,#monthview th,#yearview td,#yearview th {
	text-align:center;
	border-right:1px solid #000;
	border-bottom:1px solid #000;
}

.tankicon {
	width: 110px; 
	float:left; 
	text-align:center; 
	margin-right: 10px; 
	margin-top: 10px;
}

#dialog label, #dialog input { display:block; }
#dialog label { margin-top: 0.5em; }
#dialog input, #dialog textarea { width: 95%; }
#tabs { margin-top: 0.6em; border:none;}
#tabs li .ui-icon-close { float: left; margin: 0.4em 0.2em 0 0; cursor: pointer; }
#add_tab {
  cursor: pointer;
  border-radius: 4px;
  margin-top: 1px;
  height: 23px;
  width: 23px;
  display: inline-block;
  background-color: #39ade2;
  border: 0px;
  color: white;
  font-size: 18px;
}
.ui-widget-header {
	border: 1px solid #FFF;
	background: none;
	color: #222;
	font-weight: bold;
}
.ui-state-default {
	background:none!important;
	line-height: 1.5em;
}
.ui-tabs-anchor {
	color: #c0c0c0!important;
}
.ui-tabs-active  .ui-tabs-anchor {
	color: #FFF!important;          
}
.ui-tabs-active {
	background-color: #30ace4!important;
	color:white;
	font-weight:normal;
	border-top:1px solid #30ace4!important;
	border-left:1px solid #30ace4!important;
	border-right:1px solid #30ace4!important;
}
.ui-tabs .ui-tabs-nav li {
	margin: 1px 0.3em 0px 0px;
	font-weight:normal;
}
.ui-tabs .ui-tabs-panel {
	border-width: 0px;
	padding: 0px;
	background: none;
	float: none;
	display: inline-block;
}
.ui-tabs {
	position: relative;
	padding: 0px;
}
.ui-widget-header {
	border: none;
	background: none;
	color: #000;
	font-weight: normal!important;
}
.ui-corner-all {
	border-radius: 0;
}
.ui-widget {
	font-family: inherit;
	font-size: 1em;
}
.ui-tabs .ui-tabs-nav .ui-tabs-anchor {
	display: inline-block;
	padding: 0.1em 0.4em;
	text-decoration: none;
}
#add_tab span {
	padding: 0px;
}

#tabs li .ui-icon-close {
	margin: 0em 0em 0px 0px;
}

.ui-icon-close {
	background-position: -80px -128px;
	background-image: url('../images/ui-icons_454545_256x240.png')!important;
}
.ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled {
	opacity: 1;
	background-image: none;
}

/* Timeline */

.timelinenumber {
	float:right; 
	display:inline-block; 
	background-color: #39ADE2; 
	padding: 5px 10px;
	color: white;
	font-weight: bold;
	text-align: center;
	-webkit-border-radius:6px;
	-khtml-border-radius:6px;
	-moz-border-radius:6px;
	border-radius:6px;
}

#timelinecontainer {
	width: 950px;
	float:left;
}

.mytimelineitem {
	box-shadow:0 0 5px #aaa;
	min-height: 80px;
}

.date {
	font-size: 13px;
	color:black;
	line-height:16px;
	padding-top:12px;
}

.timelinecontent {
	padding: 8px;
	line-height:20px;
}
.timelinecontent img { display: inline-block; vertical-align: top; }   

.arrow_box_left {  background: #ffffff; border: 1px solid #c0c0c0; } 
.arrow_box_left:after, .arrow_box_left:before { left: 100%; top: 38px; border: solid transparent; content: " "; height: 0; width: 0; position: absolute; pointer-events: none; } 
.arrow_box_left:after { border-color: rgba(255, 255, 255, 0); border-left-color: #ffffff; border-width: 8px; margin-top: -8px; } 
.arrow_box_left:before { border-color: rgba(0, 0, 0, 0); border-left-color: #c0c0c0; border-width: 9px; margin-top: -9px; }

.arrow_box_right { background: #ffffff; border: 1px solid #c0c0c0; } 
.arrow_box_right:after, .arrow_box_right:before { right: 100%; top: 38px; border: solid transparent; content: " "; height: 0; width: 0; position: absolute; pointer-events: none; }
.arrow_box_right:after { border-color: rgba(255, 255, 255, 0); border-right-color: #ffffff; border-width: 8px; margin-top: -8px; } 
.arrow_box_right:before { border-color: rgba(0, 0, 0, 0); border-right-color: #c0c0c0; border-width: 9px; margin-top: -9px; }

.cc-window{
	opacity:1;
	-webkit-transition:opacity 1s ease;
	transition:opacity 1s ease
}
.cc-window.cc-invisible{
	opacity:0
}
.cc-animate.cc-revoke{
	-webkit-transition:transform 1s ease;
	-webkit-transition:-webkit-transform 1s ease;
	transition:-webkit-transform 1s ease;
	transition:transform 1s ease;
	transition:transform 1s ease,-webkit-transform 1s ease
}
.cc-animate.cc-revoke.cc-top{
	-webkit-transform:translateY(-2em);
	transform:translateY(-2em)
}
.cc-animate.cc-revoke.cc-bottom{
	-webkit-transform:translateY(2em);
	transform:translateY(2em)
}
.cc-animate.cc-revoke.cc-active.cc-top{
	-webkit-transform:translateY(0);
	transform:translateY(0)
}
.cc-animate.cc-revoke.cc-active.cc-bottom{
	-webkit-transform:translateY(0);
	transform:translateY(0)
}
.cc-revoke:hover{
	-webkit-transform:translateY(0);
	transform:translateY(0)
}
.cc-grower{
	max-height:0;
	overflow:hidden;
	-webkit-transition:max-height 1s;
	transition:max-height 1s
}
.cc-revoke,.cc-window{
	position:fixed;
	overflow:hidden;
	-webkit-box-sizing:border-box;
	box-sizing:border-box;
	font-family:Helvetica,Calibri,Arial,sans-serif;
	font-size:16px;
	line-height:1.5em;
	display:-webkit-box;
	display:-ms-flexbox;
	display:flex;
	-ms-flex-wrap:nowrap;
	flex-wrap:nowrap;
	z-index:9999
}
.cc-window.cc-static{
	position:static
}
.cc-window.cc-floating{
	padding:2em;
	max-width:24em;
	-webkit-box-orient:vertical;
	-webkit-box-direction:normal;
	-ms-flex-direction:column;
	flex-direction:column
}
.cc-window.cc-banner{
	padding:1em 1.8em;
	width:100%;
	-webkit-box-orient:horizontal;
	-webkit-box-direction:normal;
	-ms-flex-direction:row;
	flex-direction:row
}
.cc-revoke{
	padding:.5em
}
.cc-revoke:hover{
	text-decoration:underline
}
.cc-header{
	font-size:18px;
	font-weight:700
}
.cc-btn,.cc-close,.cc-link,.cc-revoke{
	cursor:pointer
}
.cc-link{
	opacity:.8;
	display:inline-block;
	padding:.2em;
	text-decoration:underline
}
.cc-link:hover{
	opacity:1
}
.cc-link:active,.cc-link:visited{
	color:initial
}
.cc-btn{
	display:block;
	padding:.4em .8em;
	font-size:.9em;
	font-weight:700;
	border-width:2px;
	border-style:solid;
	text-align:center;
	white-space:nowrap
}
.cc-highlight .cc-btn:first-child{
	background-color:transparent;
	border-color:transparent
}
.cc-highlight .cc-btn:first-child:focus,.cc-highlight .cc-btn:first-child:hover{
	background-color:transparent;
	text-decoration:underline
}
.cc-close{
	display:block;
	position:absolute;
	top:.5em;
	right:.5em;
	font-size:1.6em;
	opacity:.9;
	line-height:.75
}
.cc-close:focus,.cc-close:hover{
	opacity:1
}
.cc-revoke.cc-top{
	top:0;
	left:3em;
	border-bottom-left-radius:.5em;
	border-bottom-right-radius:.5em
}
.cc-revoke.cc-bottom{
	bottom:0;
	left:3em;
	border-top-left-radius:.5em;
	border-top-right-radius:.5em
}
.cc-revoke.cc-left{
	left:3em;
	right:unset
}
.cc-revoke.cc-right{
	right:3em;
	left:unset
}
.cc-top{
	top:1em
}
.cc-left{
	left:1em
}
.cc-right{
	right:1em
}
.cc-bottom{
	bottom:1em
}
.cc-floating>.cc-link{
	margin-bottom:1em
}
.cc-floating .cc-message{
	display:block;
	margin-bottom:1em
}
.cc-window.cc-floating .cc-compliance{
	-webkit-box-flex:1;
	-ms-flex:1 0 auto;
	flex:1 0 auto
}
.cc-window.cc-banner{
	-webkit-box-align:center;
	-ms-flex-align:center;
	align-items:center
}
.cc-banner.cc-top{
	left:0;
	right:0;
	top:0
}
.cc-banner.cc-bottom{
	left:0;
	right:0;
	bottom:0
}
.cc-banner .cc-message{
	display:block;
	-webkit-box-flex:1;
	-ms-flex:1 1 auto;
	flex:1 1 auto;
	max-width:100%;
	margin-right:1em
}
.cc-compliance{
	display:-webkit-box;
	display:-ms-flexbox;
	display:flex;
	-webkit-box-align:center;
	-ms-flex-align:center;
	align-items:center;
	-ms-flex-line-pack:justify;
	align-content:space-between
}
.cc-floating .cc-compliance>.cc-btn{
	-webkit-box-flex:1;
	-ms-flex:1;
	flex:1
}
.cc-btn+.cc-btn{
	margin-left:.5em
}
@media print{
	.cc-revoke,.cc-window{
		display:none
	}
}
@media screen and (max-width:900px){
	.cc-btn{
		white-space:normal
	}
}
@media screen and (max-width:414px) and (orientation:portrait),screen and (max-width:736px) and (orientation:landscape){
	.cc-window.cc-top{
		top:0
	}
	.cc-window.cc-bottom{
		bottom:0
	}
	.cc-window.cc-banner,.cc-window.cc-floating,.cc-window.cc-left,.cc-window.cc-right{
		left:0;
		right:0
	}
	.cc-window.cc-banner{
		-webkit-box-orient:vertical;
		-webkit-box-direction:normal;
		-ms-flex-direction:column;
		flex-direction:column
	}
	.cc-window.cc-banner .cc-compliance{
		-webkit-box-flex:1;
		-ms-flex:1 1 auto;
		flex:1 1 auto
	}
	.cc-window.cc-floating{
		max-width:none
	}
	.cc-window .cc-message{
		margin-bottom:1em
	}
	.cc-window.cc-banner{
		-webkit-box-align:unset;
		-ms-flex-align:unset;
		align-items:unset
	}
	.cc-window.cc-banner .cc-message{
		margin-right:0
	}
}
.cc-floating.cc-theme-classic{
	padding:1.2em;
	border-radius:5px
}
.cc-floating.cc-type-info.cc-theme-classic .cc-compliance{
	text-align:center;
	display:inline;
	-webkit-box-flex:0;
	-ms-flex:none;
	flex:none
}
.cc-theme-classic .cc-btn{
	border-radius:5px
}
.cc-theme-classic .cc-btn:last-child{
	min-width:140px
}
.cc-floating.cc-type-info.cc-theme-classic .cc-btn{
	display:inline-block
}
.cc-theme-edgeless.cc-window{
	padding:0
}
.cc-floating.cc-theme-edgeless .cc-message{
	margin:2em;
	margin-bottom:1.5em
}
.cc-banner.cc-theme-edgeless .cc-btn{
	margin:0;
	padding:.8em 1.8em;
	height:100%
}
.cc-banner.cc-theme-edgeless .cc-message{
	margin-left:1em
}
.cc-floating.cc-theme-edgeless .cc-btn+.cc-btn{
	margin-left:0
}

.gearblock {
	position: relative;
}

.deleteicon {
	position: absolute;
	right: 3px;
	top:  -5px;
	display: none;
	cursor: pointer;
}

.gearblock:hover .deleteicon {
	display: block!important;
}

/* select with custom icons */
.ui-selectmenu-menu .ui-menu.customicons .ui-menu-item-wrapper {
	padding: 0.5em 0 0.5em 3em;
}
.ui-selectmenu-menu .ui-menu.customicons .ui-menu-item .ui-icon {
	height: 24px;
	width: 24px;
	top: 0.1em;
}

.ui-menu-item .ui-menu-item {
	height: 32px!important;
	padding-left: 40px;
}

.ui-menu-item .ui-icon {
	width: 32px!important;
	height: 32px!important;
}

.ui-selectmenu-button .ui-icon {
	width: 16px!important;
	height: 16px!important;
}

.ui-menu-icons .ui-menu-item {
	padding-left: 48px;
	padding-top: 16px;
	height: 30px;
}

.ui-selectmenu-button {
	width: 211px!important;
	vertical-align: middle;
	height: 30px;
}

.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active {
  border: none;
  background: transparent;
  font-weight: bold;
  color: inherit;
}

.ui-selectmenu-text {
	margin-top:  4px!important;
}

.ui-selectmenu-menu .ui-menu {
	height: 350px;
	width: 150px;
	overflow: auto;
	overflow-x: hidden;
	padding-bottom: 1px;
}

/* Gear-Formular (gear.php?action=new / Bearbeiten) — neues Design */
.gear-form .gf-field { margin-bottom: 16px; }
.gear-form .gf-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-mute); margin-bottom: 5px; }
.gear-form input[type=text],
.gear-form input[type=number],
.gear-form input[type=date],
.gear-form select {
  width: 100%; padding: 11px 13px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink); font: inherit; font-size: 14px; outline: none; box-sizing: border-box;
}
.gear-form input:focus, .gear-form select:focus { border-color: var(--brand); }
.gear-form .gf-row { display: flex; gap: 16px; flex-wrap: wrap; }
.gear-form .gf-row .gf-field { flex: 1; min-width: 200px; }
.gear-form .gf-inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--ink-soft); }
.gear-form .gf-num { width: 90px; flex: none; }
/* Sub-Label (z.B. Monate / Tauchgänge unter "Service alle") */
.gear-form .gf-sub { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-mute); margin-bottom: 5px; }
.gear-form .gf-check { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; color: var(--ink-soft); cursor: pointer; margin-bottom: 8px; }
.gear-form .gf-check input[type=checkbox] { width: 17px; height: 17px; margin-top: 1px; accent-color: var(--brand); flex: none; }
.gear-form .gf-hint { color: var(--ink-mute); font-size: 12.5px; font-weight: 400; }
.gear-form .gf-actions { margin-top: 22px; }

/* Icon-Dropdown für die Ausrüstungsart */
.gf-select { position: relative; }
.gf-select-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 7px 13px; min-height: 46px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; box-sizing: border-box; }
.gf-select-btn:focus, .gf-select-btn[aria-expanded="true"] { border-color: var(--brand); outline: none; }
.gf-select-cur { display: flex; align-items: center; gap: 12px; min-width: 0; }
.gf-select-cur img { width: 32px; height: 32px; object-fit: contain; flex: none; }
.gf-select-cur span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gf-select-caret { width: 18px; height: 18px; color: var(--ink-mute); flex: none; transition: transform .18s; }
.gf-select-btn[aria-expanded="true"] .gf-select-caret { transform: rotate(180deg); }
.gf-select-list { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 50; margin: 0; padding: 6px;
  list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); max-height: 320px; overflow-y: auto; }
.gf-select-list[hidden] { display: none; }
.gf-select-opt { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; cursor: pointer; color: var(--ink-soft); }
.gf-select-opt img { width: 32px; height: 32px; object-fit: contain; flex: none; }
.gf-select-opt:hover { background: var(--surface-2); color: var(--ink); }
.gf-select-opt.active { background: var(--brand-soft); color: var(--brand-strong); font-weight: 700; }
[data-theme="dark"] .gf-select-opt.active { color: var(--brand); }

.req {
	display:  none;
	color:  red;
	font-weight: bold;
	vertical-align: top;
	margin-left:  10px;
}

#addexisting{
	display:  none;
}

.ui-datepicker-unselectable > .ui-state-default {
	color: #c0c0c0 !important;
}

#langToggle
{
	display: block;
	position: relative;

	z-index: 1;

	-webkit-user-select: none;
	user-select: none;
}

#langToggle input
{
	display: block;
	width: 40px;
	height: 32px;
	position: absolute;
	top: -7px;
	left: -5px;
	cursor: pointer;
	opacity: 0; /* hide this */
	z-index: 2; /* and place it over the hamburger */
	-webkit-touch-callout: none;
}

/*
* Make this absolute positioned
* at the top left of the screen
*/
#langmenu
{
	position: absolute;
	width: 55px;
	margin: 10px 0 0 -26px;
	background: #3fb9f2;
	list-style-type: none;
	-webkit-font-smoothing: antialiased;
	transform-origin: 0% 0%;
	transform: translate(0,-150%);
	transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
	border-radius: 6px;
	padding-bottom:  5px;
}

#langmenu li{
	list-style: none;
	margin: 8px 0;
}

#closelangswitch {
	display: none;
	color:  white;
	font-weight: bold;
	font-family: 'Raleway', sans-serif;
	font-size: 1.4em;
	padding-left: 2px;
	line-height: 14px;
}

#langToggle input:checked ~ ul
{
	transform: none;
}

#langToggle input:checked ~ #closelangswitch
{
	display: block;
}

#langToggle input:checked ~ #currentlang
{
	display: none;
}

.mobileuserpic {
	display: none;
}

#headerpicturediv {
	height: 122px;
	position: relative;
	margin: auto;
	max-width: 950px;
	height: 350px;
}

.newuserpicbutton {
	width: 100px; 
	position:absolute; 
	left: 50px; 
	bottom: 30px; 
	display:none;
}

.logbooklistings {
	width:  47%;
	float:  left;

	background-color: var(--surface);
	padding: 30px;
	border-radius: 30px;

}

.logbooklistings .gross {
	height:  60px;
}

.logbooklistingsspacer {
	width:  6%;
	float:  left;
}

#currentlang {
	position: relative;
	top:  3px;
}

.logoutbutton {
	float: right; 
	width: 100px; 
	color: white; 
	text-align: right;
	display:  none;
}

.pagination {
	text-align: center;
}

.pagingbutton {
	display: inline-block;
	width: 30px;
	height: 30px;
	background-color: #63c5f3;
	border-radius: 3px;
	margin:  0 2px;
	color: white;
	padding-top: 3px;
	box-sizing: border-box;
	cursor: pointer;
	text-align: center;
	line-height: 25px;
}

.pagingbutton.disabled {
	color: black;
}

.pagingbutton.current {
	color: black;
	font-weight: bold;
}

@media only screen and (max-width: 910px){

	nav li {
		display: block;
	}

	nav ul li ul {
		opacity: 1 !important;
	}

	#logbooknav .subm:hover ul {
		box-shadow:none;	
	}

	#logbooknav {
		background-color: #fff;
		border-bottom: 1px solid #4D4D4D;
		box-shadow: none;
	}

	.logbookscroll {
		background-color: #fff;
	}

	.content_scroll {
		overflow-x: scroll;
		-webkit-overflow-scrolling: touch;
	}

	.content_scroll table {
		white-space: nowrap;
		overflow: scroll;
		-webkit-overflow-scrolling: touch
	}

	.logoutbutton {
		display:  block;
	}

	.top_logo {
		padding-left: 0px;
	}

	#main {
		margin-top:  0px;
		width: 100%;
		overflow: hidden;
	}

	#menuToggle
	{
		display: block;
		position: relative;
		top: 15px;
		left: 15px;

		z-index: 1;

		-webkit-user-select: none;
		user-select: none;
	}

	#menuToggle a
	{
		text-decoration: none;
		color: #FFFFFF;

		transition: color 0.3s ease;
	}

	#menuToggle input[type='checkbox']
	{
		display: block;
		width: 95px;
		height: 32px;
		position: absolute;
		top: -7px;
		left: -5px;

		cursor: pointer;

		opacity: 0; /* hide this */
		z-index: 2; /* and place it over the hamburger */

		-webkit-touch-callout: none;
	}

	#menuToggle > span
	{
		display: block;
		width: 33px;
		height: 4px;
		margin-bottom: 5px;
		position: relative;

		background: #FFFFFF;
		border-radius: 3px;

		z-index: 1;

		transform-origin: 4px 0px;

		transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
		background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
		opacity 0.55s ease;
	}

	#menuToggle span:first-child
	{
		transform-origin: 0% 0%;
	}

	#menuToggle span:nth-last-child(2)
	{
		transform-origin: 0% 100%;
	}

	#menuToggle > ul > li {
		float: none;
		height: inherit;
	}

	#menuToggle input:checked ~ span
	{
		opacity: 1;
		transform: rotate(45deg) translate(-2px, -1px);
		background: #FFFFFF;
	}

	#menuToggle input:checked ~ span:nth-last-child(3)
	{
		opacity: 0;
		transform: rotate(0deg) scale(0.2, 0.2);
	}

	#menuToggle input:checked ~ span:nth-last-child(2)
	{
		transform: rotate(-45deg) translate(0, -1px);
	}

	#menu
	{
		position: absolute;
		width: 300px;
		margin: -100px 0 0 -50px;
		padding: 50px;
		padding-top: 125px;
		background: #3fb9f2;
		list-style-type: none;
		-webkit-font-smoothing: antialiased;
		transform-origin: 0% 0%;
		transform: translate(-100%, 0);
		transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
		box-shadow: 2px 2px 6px #666;
	}

	#menu.rtl {
		transform: translate(200%, 0);
		left: 0px;
		margin: -40px 0 0 -10px;
		width: 300px;
	}

	#menu li
	{
		padding: 10px 0;
		font-size: 16px;
		height:  auto;
	}

	#menu li ul
	{
		display: block;
		position:  relative;
		box-shadow: none;
		border-radius: unset;
		margin-top: 10px;
	}

	#menu li ul li {
		background-color: transparent;
		padding-left:  30px;
		font-size:  .9em;
		font-style: italic;
	}

	#menuToggle input:checked ~ ul
	{
		transform: none;
	}

	.loginmenu input {
		font-size: 16px;
		width: 100%;
		margin: 5px 0;
	}

	.loginmenu button {
		display: block;
		background-color: rgb(255, 166, 0);
		width: calc(100% + 5px);
		height:  30px;
		padding: 5px;
		color: white;
		text-align: center;
		text-decoration: none;
		border-radius: 5px;
		height: auto;
		border-width: 0px;
		margin-left: 0px;
		margin-top: 0px;
		transform-origin: 50% 50% 0px;
		opacity: 1;
	}

	.loginmenu ul li {
		width: 250px;
	}

	#activity {
		border:  none;
	}

	.ls-nav-prev, .ls-nav-next {
		display: none;
	}

	.searchBox {
		height:22px;
		width: 1px;
		transition: all .5s;
		margin-right: 10px;
		border-color: #FFFFFF;
	}

	.searBox:focus {
		width:  150px;
	}

	input[type="search"]:focus {
		width: 150px;
		top: 0;
		right: 100%;
	}

	#sitestats {
		display:  none;
	}
	
	
	
	

	.arrow-down-white {
		display: none;
	}

	.mobileuserpic {
		display: block;
		position: absolute;
		left:  50px;
		top:  -7px;
	}

	#headerpicturediv {
		height: 122px;
		position: relative;
		margin: auto;
		width: 100%;
		height: auto;
	}

	.mask {
		width: 100%;
		overflow: hidden;
		background-color: #EAF3F7;
		position: relative;
		margin: 0px;
		height: unset;
	}

	#userheaderimage {
		width:  100%;
	}

	.logbook {
		margin:  0px;
	}

	.logbookpage {
		width:  100%;
		box-sizing: border-box;
	}

	#sortoptions {
		padding-left: 10px;
		font-size: 10px;
	}

	#userthumbnaildiv {
		left: 10px;
		width: 50px;
		height: 50px;
		bottom: 50px;
		z-index: 1;
		position: absolute;
	}

	.smalluserthumbnaildiv {
		position: absolute;
		width: 50px !important;
		height: 50px !important;
	}

	.fixedontop {
		position: relative !important;
	}

	.fixedontop #userthumbnaildiv #userthumbnail {
		width: 45px;
		height: 45px;
	}

	.fixedontop #userthumbnaildiv {
		position: absolute;
		top: revert!important;
	}

	.fixedontop #biodiv {
		top: revert !important;
		left: 70px !important;
	}

	.fixedontop #biodiv .username {
		font-size: 15px;
		display: inline;
		line-height: 1px;
	}

	.fixedontop #biodiv .bioheader {
		display: inline-block;
	}

	#userthumbnail {
		width: 100px;
		height: 100px;
	}

	#biodiv {
		left: 70px !important;
		bottom: 60px;
	}

	#biodiv .username {
		font-size:  15px;
		display: inline;
		line-height: 1px;
	}

	#biodiv .bioheader {
		font-size:  10px;
		display: inline;
		margin-right: 15px;
	}

	.fixedontop #biodiv .username, #buddies .username, .usernameblue {
		font: italic 15px/1px Georgia,"Times New Roman", serif;
		color: #fff;
		text-shadow: #000 0 0 3px;
	}

	#logbooknavcontainer {
		position: relative;
		padding: 0 20px;
	}

	.logbookscroll {
		width: 100%;
		height: auto;
		display: block;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-behavior: smooth;
		-webkit-overflow-scrolling: touch;
	}

	.logbookscroll::-webkit-scrollbar {
		display: none;
	}

	.logbookscroll {
		-ms-overflow-style: none;  /* IE and Edge */
		scrollbar-width: none;  /* Firefox */
	} 

	#logbooknav {
		white-space: nowrap;
		margin:  0;
		border:  none;
		box-shadow: none;
		height: 37px;
	}

	#c_content {
		width: 100%;
		padding:  5px;
		margin: 30px auto 0;
	}

	#logbooknav li ul {
		right: 0px;
	}

	.logbookpage {
		padding: 20px 5px;
		overflow: inherit;
	}

	#divelist {
		width:  100%;
		max-width:  705px;
	}

	#timelinecontainer {
		width: 100%;
		float: none;
	}

	#logbooknav li ul {
		display: inline;
		position: relative;
		margin: 0;
		padding: 0 0 0 0;
		right: 0;
	}

	.moremenu {
		display: none!important;
	}

	.subm.logbooknavactive {
		border-bottom: none;
	}

	#logbooknav li ul li {
		float: none;
		list-style: none;
		text-align: left;
		background-color: transparent;
		padding: 0;
		display: inline-block;
		margin-right: 20px;
		height: 37px;
	}

	#logbooknav li ul li:last-child {
		-webkit-border-bottom-right-radius: 0px;
		-webkit-border-bottom-left-radius: 0px;
		-moz-border-radius-bottomright: 0px;
		-moz-border-radius-bottomleft: 0px;
		border-bottom-right-radius: 0px;
		border-bottom-left-radius: 0px;
		padding-bottom: 0;
	}

	#logbooknav .subm:hover ul {

		box-shadow: none;
		border:  none;
	}

	#scrolleft, #scrollright {
		position: absolute;
		display:  block;
		height:  44px;
		background-color: orange;
		color: white;
		border: none;
		width: 25px;
	}

	#scrolleft {
		left: 0px;
		top:  0px;
	}

	#scrollright {
		right: 0px;
		top:  0px;
	}

	.newuserpicbutton {
		left: -999px; 
	}

	#logbooknavcontainer {
		width: 100%;
		margin: 0;
		box-sizing: border-box;
	}

	#c_footer {
		z-index:  0;
	}

	#c_content {
		box-sizing: border-box;
	}

	#rightnav {
		float: left;
		padding: 0px 10px;
		margin: 10px 0px 0px 0px;
		width: 160px;
	}
	
	

	#sortoptions {
		padding-left: 10px;
		font-size: 10px;
		display:  block;
		margin-top:  15px;
	}

	.divenumber {
		left: revert;
		position: relative;
		margin-bottom: 20px;
		margin: -15px auto 15px;
		width: 100%;
		box-sizing: border-box;
		height: 75px;
	}

	.logbooklistings {
		width:  100%;
		float:  left;
		margin-bottom:  50px;
	}

	.logbooklistings .gross {
		height:  60px;
	}

	.logbooklistingsspacer {
		display:  none;
	}

	#buddyaddinline {
		top:  10px;
		bottom: unset;
	}

	.big {
		width: unset;
		max-width:  210px;
	}

	.gross {
		font-size: 25px;
	}

	#profilepicture {
		margin-top:15px;
		float: none;
		display: block;
	}

	.fdentry {
		display:  block;
	}

	#monthview tr th {
		font-size: 0;
	}

	#monthview tr th:first-letter {
		font-size: 12px;
	}

	#postlist img {
		max-width: 100%;
	}

	.cc-revoke {
		display: none;
	}

}

@media only screen and (max-width: 748px){
	.col9 {
		display:  none;
	}
}   

@media only screen and (max-width: 720px){
	.col8 {
		display:  none;
	}
}   

@media only screen and (max-width: 685px){
	.col7 {
		display:  none;
	}
}   

@media only screen and (max-width: 538px){
	.col6 {
		display:  none;
	}

	.index_blocks {
		margin-right: 0px;
	}
} 

@media only screen and (max-width: 462px){
	.col5 {
		display:  none;
	}
} 

@media only screen and (max-width: 412px){
	.col4 {
		display:  none;
	}
}

/*jquery modal*/

/* jQuery UI Dialog fixes */
.ui-dialog-titlebar-close {
    color: transparent !important;
    overflow: hidden;
    background-color: #3fb9f2;
    border: none;
    border-radius: 3px;
}

.ui-widget-overlay {
  background: #333;
}

.ui-dialog-buttonpane .ui-button {
    display: inline-block;
    color: #fff;
    font-weight: 700;
    background: #3fb9f2;
    border-radius: 4px;
    border: none !important;
    box-shadow: none !important;
    transition: all .3s ease-out;
    padding: 6px 14px;
    margin: 4px 3px;
    cursor: pointer;
    font-size: 13px;
}
.ui-dialog-buttonpane .ui-button:hover,
.ui-dialog-buttonpane .ui-button:focus {
    background: #6fcaf4;
    outline: none;
}
.ui-dialog-buttonpane .ui-button:last-child {
    background: #888;
}
.ui-dialog-buttonpane .ui-button:last-child:hover {
    background: #aaa;
}
.blocker{position:fixed;top:0;right:0;bottom:0;left:0;width:100%;height:100%;overflow:auto;z-index:100;padding:20px;box-sizing:border-box;background-color:#000;background-color:rgba(0,0,0,0.75);text-align:center}.blocker:before{content:"";display:inline-block;height:100%;vertical-align:middle;margin-right:-0.05em}.blocker.behind{background-color:transparent}.modal{display:none;vertical-align:middle;position:relative;z-index:2;max-width:500px;box-sizing:border-box;width:90%;background:#fff;padding:15px 30px;-webkit-border-radius:8px;-moz-border-radius:8px;-o-border-radius:8px;-ms-border-radius:8px;border-radius:8px;-webkit-box-shadow:0 0 10px #000;-moz-box-shadow:0 0 10px #000;-o-box-shadow:0 0 10px #000;-ms-box-shadow:0 0 10px #000;box-shadow:0 0 10px #000;text-align:left}.modal a.close-modal{position:absolute;top:-12.5px;right:-12.5px;display:block;width:30px;height:30px;text-indent:-9999px;background-size:contain;background-repeat:no-repeat;background-position:center center;background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAAXNSR0IArs4c6QAAA3hJREFUaAXlm8+K00Acx7MiCIJH/yw+gA9g25O49SL4AO3Bp1jw5NvktC+wF88qevK4BU97EmzxUBCEolK/n5gp3W6TTJPfpNPNF37MNsl85/vN/DaTmU6PknC4K+pniqeKJ3k8UnkvDxXJzzy+q/yaxxeVHxW/FNHjgRSeKt4rFoplzaAuHHDBGR2eS9G54reirsmienDCTRt7xwsp+KAoEmt9nLaGitZxrBbPFNaGfPloGw2t4JVamSt8xYW6Dg1oCYo3Yv+rCGViV160oMkcd8SYKnYV1Nb1aEOjCe6L5ZOiLfF120EjWhuBu3YIZt1NQmujnk5F4MgOpURzLfAwOBSTmzp3fpDxuI/pabxpqOoz2r2HLAb0GMbZKlNV5/Hg9XJypguryA7lPF5KMdTZQzHjqxNPhWhzIuAruOl1eNqKEx1tSh5rfbxdw7mOxCq4qS68ZTjKS1YVvilu559vWvFHhh4rZrdyZ69Vmpgdj8fJbDZLJpNJ0uv1cnr/gjrUhQMuI+ANjyuwftQ0bbL6Erp0mM/ny8Fg4M3LtdRxgMtKl3jwmIHVxYXChFy94/Rmpa/pTbNUhstKV+4Rr8lLQ9KlUvJKLyG8yvQ2s9SBy1Jb7jV5a0yapfF6apaZLjLLcWtd4sNrmJUMHyM+1xibTjH82Zh01TNlhsrOhdKTe00uAzZQmN6+KW+sDa/JD2PSVQ873m29yf+1Q9VDzfEYlHi1G5LKBBWZbtEsHbFwb1oYDwr1ZiF/2bnCSg1OBE/pfr9/bWx26UxJL3ONPISOLKUvQza0LZUxSKyjpdTGa/vDEr25rddbMM0Q3O6Lx3rqFvU+x6UrRKQY7tyrZecmD9FODy8uLizTmilwNj0kraNcAJhOp5aGVwsAGD5VmJBrWWbJSgWT9zrzWepQF47RaGSiKfeGx6Szi3gzmX/HHbihwBser4B9UJYpFBNX4R6vTn3VQnez0SymnrHQMsRYGTr1dSk34ljRqS/EMd2pLQ8YBp3a1PLfcqCpo8gtHkZFHKkTX6fs3MY0blKnth66rKCnU0VRGu37ONrQaA4eZDFtWAu2fXj9zjFkxTBOo8F7t926gTp/83Kyzzcy2kZD6xiqxTYnHLRFm3vHiRSwNSjkz3hoIzo8lCKWUlg/YtGs7tObunDAZfpDLbfEI15zsEIY3U/x/gHHc/G1zltnAgAAAABJRU5ErkJggg==')}.modal-spinner{display:none;position:fixed;top:50%;left:50%;transform:translateY(-50%) translateX(-50%);padding:12px 16px;border-radius:5px;background-color:#111;height:20px}.modal-spinner>div{border-radius:100px;background-color:#fff;height:20px;width:2px;margin:0 1px;display:inline-block;-webkit-animation:sk-stretchdelay 1.2s infinite ease-in-out;animation:sk-stretchdelay 1.2s infinite ease-in-out}.modal-spinner .rect2{-webkit-animation-delay:-1.1s;animation-delay:-1.1s}.modal-spinner .rect3{-webkit-animation-delay:-1.0s;animation-delay:-1.0s}.modal-spinner .rect4{-webkit-animation-delay:-0.9s;animation-delay:-0.9s}@-webkit-keyframes sk-stretchdelay{0%,40%,100%{-webkit-transform:scaleY(0.5)}20%{-webkit-transform:scaleY(1.0)}}@keyframes sk-stretchdelay{0%,40%,100%{transform:scaleY(0.5);-webkit-transform:scaleY(0.5)}20%{transform:scaleY(1.0);-webkit-transform:scaleY(1.0)}}
/* ============================================================
   DARK MODE — merged from darkmode.css
   ============================================================ */
@media (prefers-color-scheme: dark) {
	body{
		background-color: #333;
		color: #fff;
	}

	a {
	  color: #13AFE6!important;
	}

	.normal {
	  background-color: #4d4d4d;
	  color: #FFF;
	}

	#c_footer a {
		color: #FFF!important;
	}

	#nav a {
	  color: #FFF !important;
	}

	#layerslider {
	  box-shadow: 2px 2px 6px #000;
	}

	.navidesc {
	  color: #fff;
	}

	.newsdate {
		color: #9C9E9F;
	}

	#logbooknav {
	  background-color: #4D4D4D;
	  border-bottom: 1px solid #4D4D4D;
	  box-shadow: none;
	}

	.logbookscroll {
	  background-color: #4D4D4D;
	}

	#logbooknav li ul li {
	  background-color: #4d4d4d;
	}

	#logbooknav .subm:hover ul {
		box-shadow:none;
	}

	.shaded, .shaded2 {
	  box-shadow:none;
	}

	.lbnn{
		color: #fff!important;
	}

	.logbookpage {
	  background-color: #4d4d4d;
	}

	.td2 {
	  background-color: #555859;
	}

	.td {
	  background-color: #4d4d4d;
	}
		
	.col6 svg {
		background-color: transparent!important;
	}

	#rightnav {
	  background-color: #4d4d4d;
	}

	.activetab2 a {
	  color: #fff;
	}

	.item {
	  background-color: #4d4d4d!important;
	}

	#fancybox-outer, #fancybox-title-inside, .fancybox-title-inside {
		background-color: #4d4d4d!important;
		color: #fff!important;
	}

	#fancybox-content {
		border-color: #4d4d4d!important;
	}

	.fancybox-title-inside a {
	  color: #fff!important;
	}

	.ui-widget-content {
	  color: #fff;
	}

	.divenumber {
	  background-color: #464646;
	}

	#userthumbnail {
	  border-color: #333;
	  background-color: #333;
	}
	
	.listprofile {
		background-color: #4d4d4d!important;
	}

	.arrow-down {
	  border-top: 5px solid #FFF;
	}

	#threadlist tr:nth-child(2n), #postlist tr:nth-child(2n) {
	  background-color: #4d4d4d;
	}

	#buddyaddinline {
	  background-color: #4d4d4d;
	}

	.mytimelineitem {
	  background-color: #454545 !important;
	  box-shadow: none;
	}

	.cc-allow {
		color: #FFF!important;
	}
	

}
/* ============================================================
   NEW DESIGN SYSTEM — divelogs7 (takes precedence over above)
   ============================================================ */
/* ============================================================
   divelogs 7 — Modernes Design-System
   Tokens · Nav · Hero · Stats · Features · Feed · Footer
   Logbuch-Ansicht: Cover · Liste · Detail · Tabs
   ============================================================ */

/* ===== Lokale Webfonts (Variable, Self-hosted statt Google Fonts) ===== */
@font-face{font-family:'Sora';font-style:normal;font-weight:400 800;font-display:swap;src:url('/font/sora-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Sora';font-style:normal;font-weight:400 800;font-display:swap;src:url('/font/sora-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:400 800;font-display:swap;src:url('/font/manrope-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:400 800;font-display:swap;src:url('/font/manrope-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Manrope', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .4s ease, color .4s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 { font-family: 'Sora', sans-serif; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }

/* ============================================================
   THEME TOKENS
   ============================================================ */
:root {
  --brand:        #14a8da;
  --brand-strong: #0a7faf;
  --brand-deep:   #064e6e;
  --brand-soft:   #e4f4fb;
  --cta:          #ff8a1e;
  --cta-strong:   #ee7409;

  --bg:           #eef4f7;
  --bg-grad:      radial-gradient(1200px 600px at 80% -10%, #dcecf4 0%, transparent 60%), #eef4f7;
  --surface:      #ffffff;
  --surface-2:    #f3f8fb;
  --surface-glass: rgba(255,255,255,0.82);
  --line:         rgba(11,40,58,0.10);
  --line-soft:    rgba(11,40,58,0.06);

  --ink:          #0c2638;
  --ink-soft:     #44606f;
  --ink-mute:     #7d94a1;
  --on-brand:     #ffffff;
  --on-cta:       #2a1500;

  --r-sm:  12px;
  --r:     18px;
  --r-lg:  26px;
  --r-xl:  34px;

  --shadow-sm:    0 1px 2px rgba(11,40,58,.06), 0 2px 6px rgba(11,40,58,.05);
  --shadow:       0 4px 14px rgba(11,40,58,.07), 0 12px 34px rgba(11,40,58,.08);
  --shadow-lg:    0 10px 30px rgba(11,40,58,.10), 0 30px 70px rgba(11,40,58,.14);
  --shadow-brand: 0 14px 40px rgba(20,168,218,.30);
  --shadow-cta:   0 12px 30px rgba(255,138,30,.36);

  --hero-grad:    linear-gradient(135deg, #0a6c97 0%, #0e87b8 45%, #14a8da 100%);
  --hero-deep:    #073a54;

  --maxw:   1240px;
  --nav-h:  76px;
}

/* ---------- DARK ---------- */
[data-theme="dark"] {
  --brand:        #34c3ef;
  --brand-strong: #18a8d8;
  --brand-deep:   #8fdcf4;
  --brand-soft:   rgba(52,195,239,.14);
  --cta:          #ff9a3d;
  --cta-strong:   #ff8a1e;

  --bg:           #061320;
  --bg-grad:      radial-gradient(1100px 620px at 82% -12%, #0c2f44 0%, transparent 58%),
                  radial-gradient(900px 500px at 0% 8%, #0a2335 0%, transparent 55%), #061320;
  --surface:      #0e2231;
  --surface-2:    #0a1c29;
  --surface-glass: rgba(15,38,53,0.72);
  --line:         rgba(255,255,255,0.10);
  --line-soft:    rgba(255,255,255,0.06);

  --ink:          #e9f4f9;
  --ink-soft:     #aac4d1;
  --ink-mute:     #6f8d9c;
  --on-brand:     #04222f;

  --shadow-sm:    0 1px 2px rgba(0,0,0,.4);
  --shadow:       0 6px 18px rgba(0,0,0,.40), 0 18px 44px rgba(0,0,0,.46);
  --shadow-lg:    0 14px 40px rgba(0,0,0,.5), 0 40px 90px rgba(0,0,0,.55);
  --shadow-brand: 0 14px 44px rgba(52,195,239,.30);
  --hero-grad:    linear-gradient(135deg, #052d40 0%, #0a5277 50%, #0e7ba8 100%);
  --hero-deep:    #04222f;
}

/* ---------- DARK: table row classes ---------- */
[data-theme="dark"] .td  { background-color: var(--surface); }
[data-theme="dark"] .td2 { background-color: var(--surface-2); }
[data-theme="dark"] .td3 { background-color: rgba(52,195,239,.10); }

/* ---------- DARK: logbook page + rightnav ---------- */
[data-theme="dark"] .logbookpage { background-color: var(--surface); color: var(--ink); }
[data-theme="dark"] #rightnav    { background-color: var(--surface); }
[data-theme="dark"] #rightnav a  { color: var(--ink); }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 50px 0; }

.eyebrow {
  font-family: 'Sora', sans-serif; font-size: 12.5px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--brand-strong);
  display: inline-flex; align-items: center; gap: 9px;
}
[data-theme="dark"] .eyebrow { color: var(--brand); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; opacity: .7; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 15px;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-cta    { background: var(--cta); color: var(--on-cta); box-shadow: var(--shadow-cta); }
.btn-cta:hover { transform: translateY(-2px); background: var(--cta-strong); }
.btn-brand  { background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-brand); }
.btn-brand:hover { transform: translateY(-2px); background: var(--brand-strong); }
.btn-ghost  { background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--brand-strong); }
.btn-line   { border: 1.5px solid rgba(255,255,255,.55); color: #fff; }
.btn-line:hover { background: rgba(255,255,255,.14); }

/* Cards */
.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--line-soft);
}

/* Placeholder tiles */
.ph {
  background: repeating-linear-gradient(45deg, rgba(20,168,218,.08) 0 10px, rgba(20,168,218,.03) 10px 20px), var(--surface-2);
  border: 1px dashed rgba(20,168,218,.4);
  display: grid; place-items: center; color: var(--ink-mute);
  font-family: 'Sora', monospace; font-size: 12px; letter-spacing: .04em; text-align: center; padding: 16px;
}

/* ============================================================
   HEADER / NAV (sticky glass)
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 60;
  height: var(--nav-h);
  display: flex; align-items: center;
  /* Schlanker Blur (vorher blur(16px) saturate(1.3)) – günstiger für Firefox beim Scrollen,
     Hintergrund ist mit ~82% ohnehin fast deckend. */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: var(--surface-glass);
  border-bottom: 1px solid var(--line);
  transition: background .4s, border-color .4s;
}
.nav .wrap { display: flex; align-items: center; gap: 20px; }

/* Logo */
.brand-logo {
  display: flex; align-items: center; gap: 2px;
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 24px;
  letter-spacing: -.03em; color: var(--ink); flex: none;
}
.brand-svg {
  height: 52px; width: auto; display: block;
  filter: saturate(1.35) brightness(0.74);
  transition: transform .2s ease;
}
.brand-logo:hover .brand-svg { transform: scale(1.03); }
[data-theme="dark"] .brand-svg { filter: none; }

/* Nav links */
.nav-links { position: static; float: none; left: auto; display: flex; align-items: center; gap: 2px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 14px;
  color: var(--ink-soft); transition: background .18s, color .18s; white-space: nowrap;
}
.nav-link svg { width: 16px; height: 16px; opacity: .8; flex: none; }
.nav-link:hover { background: var(--surface-2); color: var(--ink); }
.nav-link.active { background: var(--brand-soft); color: var(--brand-strong); }
[data-theme="dark"] .nav-link.active { color: var(--brand); }

/* Dropdown wrapper */
.drop-wrap { position: relative; }
/*
.nav-link.has-drop::after {
  content: ""; width: 6px; height: 6px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px,-2px); opacity: .6;
}
  */
.drop {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 210px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-lg); padding: 7px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .2s, transform .2s, visibility .2s;
  transition-delay: 0.5s;   /* verzögertes Ausblenden, wenn die Maus weg ist */
  z-index: 70;
}
/* Unsichtbare Brücke über die 10px-Lücke, damit der Hover beim Runterfahren
   nicht abreißt (Flackern). Am Wrapper (nicht am Dropdown) → wird von overflow:auto
   des Usermenüs NICHT weggeschnitten; nur bei offenem Menü aktiv, blockiert also nichts. */
.drop-wrap:hover::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 16px; }
.drop-wrap:hover .drop { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; }
/* Dropdown mit Eingabefeldern (Login) offen halten, solange ein Feld den Fokus hat — egal wo die Maus ist */
.drop-wrap:focus-within .drop { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; }
.drop a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: 14px;
  color: var(--ink-soft) !important; transition: background .15s, color .15s;
}
.drop a:hover { background: var(--surface-2); color: var(--brand-strong); }
[data-theme="dark"] .drop a:hover { color: var(--brand); }
.drop a svg { width: 15px; height: 15px; color: var(--brand); flex: none; }
.drop hr { border: none; border-top: 1px solid var(--line); margin: 5px 0; }

/* User dropdown */
.user-drop {
  min-width: 440px; right: 0; left: auto;
  max-height: calc(100dvh - 80px); overflow-y: auto; scrollbar-width: thin;
}
.user-drop-header {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 13px 10px; border-bottom: 1px solid var(--line); margin-bottom: 5px;
}
.user-drop-header img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; flex: none; }
.user-drop-header .ud-info { flex: 1; min-width: 0; }
.user-drop-header .ud-name { font-weight: 700; font-size: 15px; color: var(--ink); }
.user-drop-header .ud-role { font-size: 12px; color: var(--ink-mute); }
.ud-logout {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px; border-radius: 10px; flex: none;
  font-size: 13px; font-weight: 700; color: var(--ink-mute);
  border: 1.5px solid var(--line); transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.ud-logout::after { content: 'Logout'; }
.ud-logout:hover { background: #fff0ed; color: #cc2200; border-color: #cc2200; }
[data-theme="dark"] .ud-logout:hover { background: rgba(255,50,50,.1); color: #ff6b6b; border-color: #ff6b6b; }
.ud-logout svg { width: 20px; height: 20px; flex: none; }
.ud-notification { border-radius: 8px; }
.drop-cols { display: flex; }
.drop-col { flex: 1; min-width: 0; padding: 2px 0; }
.drop-col + .drop-col { border-left: 1px solid var(--line); }
.user-drop .drop-section { padding: 4px 7px 2px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--brand); margin-top: 4px; }
.user-drop .danger a { color: #e03; }
.user-drop .danger a:hover { background: #fff0f0; color: #c00; }
[data-theme="dark"] .user-drop .danger a { color: #ff6b6b; }
[data-theme="dark"] .user-drop .danger a:hover { background: rgba(255,50,50,.1); }

/* Spacer */
.nav-spacer { flex: 1; }

/* Right side of nav */
.nav-right { display: flex; align-items: center; gap: 10px; }

/* Search pill */
.nav-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px; min-width: 190px;
  color: var(--ink-mute); transition: border-color .2s, box-shadow .2s;
}
.nav-search:focus-within { border-color: var(--brand); box-shadow: none; }
.nav-search svg { width: 15px; height: 15px; flex: none; }
.nav-search input { border: none; background: none; outline: none; color: var(--ink); font-size: 13.5px; width: 100%; font-family: inherit; }
.nav-search input::placeholder { color: var(--ink-mute); }

/* Language pill */
.lang-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 11px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
  font-weight: 700; font-size: 13px; color: var(--ink-soft); cursor: pointer;
  transition: border-color .2s; white-space: nowrap;
  position: relative;
}
.lang-pill:hover { border-color: var(--brand); }
.lang-pill img { width: 20px; height: 14px; border-radius: 3px; object-fit: cover; }

/* Language dropdown */
.lang-drop { min-width: 160px; right: 0; left: auto; }
.lang-drop a { font-size: 13.5px; }
.lang-drop a img { width: 22px; height: 15px; border-radius: 3px; }

/* Dark mode toggle */
.theme-btn {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--ink-soft); display: grid; place-items: center;
  transition: background .18s, color .18s, border-color .18s;
  flex: none;
}
.theme-btn:hover { background: var(--brand-soft); color: var(--brand-strong); border-color: var(--brand); }
.theme-btn svg { width: 17px; height: 17px; }
.theme-btn .icon-sun { display: none; }
.theme-btn .icon-moon { display: block; }
[data-theme="dark"] .theme-btn .icon-sun { display: block; }
[data-theme="dark"] .theme-btn .icon-moon { display: none; }

/* Login button in nav */
.nav-login {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 8px 16px; border-radius: 999px;
  background: var(--brand); color: var(--on-brand) !important; text-align: center;
  font-weight: 700; font-size: 14px;
  box-shadow: var(--shadow-brand);
  transition: transform .18s, background .18s;
}
.nav-login:hover { transform: translateY(-1px); background: var(--brand-strong); color: var(--on-brand); }

/* Login form dropdown */
.login-drop { min-width: 230px; right: 0; left: auto; padding: 16px; }
.login-drop form { display: flex; flex-direction: column; gap: 9px; }
.login-drop input[type="text"],
.login-drop input[type="password"] {
  width: 100%; padding: 9px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface-2);
  color: var(--ink); font: inherit; font-size: 14px;
  outline: none; transition: border-color .2s;
}
.login-drop input:focus { border-color: var(--brand); }
.login-drop button[type="submit"] {
  width: 100%; padding: 10px; border-radius: 999px;
  background: var(--brand); color: var(--on-brand);
  font-weight: 700; font-size: 14px; cursor: pointer;
  transition: background .18s;
}
.login-drop button[type="submit"]:hover { background: var(--brand-strong); }
.login-drop .login-extras { display: flex; justify-content: space-between; font-size: 13px; margin-top: 2px; }
.login-drop .login-extras a { color: var(--brand-strong); font-weight: 600; }

/* Buddy/notification indicator in nav */
.nav-indicator {
  display: inline-grid; place-items: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: #e03;
  color: #fff; font-size: 10px; font-weight: 800;
  font-family: 'Sora', sans-serif;
}

/* User avatar in nav */
.nav-user {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 5px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-2);
  cursor: pointer; transition: border-color .18s, background .18s;
  font-weight: 700; font-size: 14px; color: var(--ink-soft);
}
.nav-user:hover { border-color: var(--brand); background: var(--brand-soft); }
.nav-user img {
  width: 32px; height: 32px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--brand);
}
.nav-user .arrow { width: 14px; height: 14px; opacity: .5; }

/* ============================================================
   MOBILE NAV — Hamburger + Drawer
   ============================================================ */
.nav-burger {
  display: none;                 /* Desktop: aus; ab ≤860px eingeblendet */
  margin-left: auto;
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  background: var(--surface-2); border: 1px solid var(--line); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-burger:hover { border-color: var(--brand); }
.nav-burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s, opacity .2s; }
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-backdrop {
  position: fixed; inset: 0; z-index: 190; background: rgba(10,20,30,.5);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.mobile-backdrop.open { opacity: 1; visibility: visible; }

.mobile-menu {
  position: fixed; top: 0; right: 0; z-index: 200;
  width: min(86vw, 360px); height: 100dvh;
  background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
  overscroll-behavior: contain;
}
.mobile-menu.open { transform: translateX(0); }

.mm-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--line); flex: none;
}
.mm-head .brand-svg { height: 40px; }
.mm-close {
  width: 40px; height: 40px; border-radius: 10px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-soft);
  display: grid; place-items: center;
}
.mm-close:hover { background: var(--brand-soft); color: var(--brand-strong); border-color: var(--brand); }
.mm-close svg { width: 18px; height: 18px; }

.mm-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 3px; scrollbar-width: thin; }
.mm-search { margin-bottom: 8px; }
.mm-search .nav-search { width: 100%; border-radius: 12px; }

.mm-nav { display: flex; flex-direction: column; gap: 2px; }
.mm-link {
  display: flex; align-items: center; gap: 11px;
  padding: 12px; border-radius: 11px; font-weight: 600; font-size: 15px;
  color: var(--ink); transition: background .15s;
}
.mm-link svg { width: 18px; height: 18px; color: var(--brand); flex: none; }
.mm-link:hover, .mm-link:active { background: var(--surface-2); }
.mm-notif .nav-indicator { margin-right: 2px; }

.mm-acc-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; padding: 12px; border: none; background: none; cursor: pointer;
  border-radius: 11px; font: inherit; font-weight: 600; font-size: 15px; color: var(--ink);
}
.mm-acc-toggle > span { display: inline-flex; align-items: center; gap: 11px; }
.mm-acc-toggle > span svg { width: 18px; height: 18px; color: var(--brand); flex: none; }
.mm-acc-toggle:hover { background: var(--surface-2); }
.mm-chev { width: 16px; height: 16px; color: var(--ink-mute); transition: transform .25s; flex: none; }
.mm-acc-group.open .mm-chev { transform: rotate(180deg); }
.mm-acc { display: none; flex-direction: column; padding: 2px 0 6px 41px; }
.mm-acc-group.open .mm-acc { display: flex; }
.mm-acc a { padding: 9px 12px; border-radius: 9px; font-size: 14px; color: var(--ink-soft); }
.mm-acc a:hover { background: var(--surface-2); color: var(--brand-strong); }

.mm-user {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; margin: 8px 0; border-radius: 13px; background: var(--surface-2);
}
.mm-user img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; }
.mm-user-info { flex: 1; min-width: 0; }
.mm-user-name { font-weight: 700; font-size: 15px; color: var(--ink); }
.mm-user-role { font-size: 12.5px; color: var(--ink-mute); }
.mm-user-logout {
  flex: none; width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; color: var(--ink-mute);
  border: 1.5px solid var(--line); transition: background .15s, color .15s, border-color .15s;
}
.mm-user-logout svg { width: 19px; height: 19px; }
.mm-user-logout:hover { background: #fff0ed; color: #cc2200; border-color: #cc2200; }
[data-theme="dark"] .mm-user-logout:hover { background: rgba(255,50,50,.1); color: #ff6b6b; border-color: #ff6b6b; }

.mm-section {
  padding: 14px 12px 4px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--ink-mute);
}
.mm-sub { display: block; padding: 10px 12px; border-radius: 9px; font-size: 14.5px; font-weight: 600; color: var(--ink-soft); }
.mm-sub:hover, .mm-sub:active { background: var(--surface-2); color: var(--brand-strong); }

.mm-login { display: flex; flex-direction: column; gap: 10px; padding: 6px 0; }
.mm-login input {
  width: 100%; padding: 12px 14px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--surface-2);
  color: var(--ink); font: inherit; font-size: 15px; outline: none;
}
.mm-login input:focus { border-color: var(--brand); }
.mm-login button[type="submit"] { width: 100%; padding: 13px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-weight: 700; font-size: 15px; cursor: pointer; }
.mm-login button[type="submit"]:hover { background: var(--brand-strong); }
.mm-login-extras { display: flex; justify-content: space-between; font-size: 14px; }
.mm-login-extras a { color: var(--brand-strong); font-weight: 600; }

.mm-foot {
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.mm-langs { display: flex; flex-wrap: wrap; gap: 6px; }
.mm-lang {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 10px; border-radius: 9px; font-size: 13px; font-weight: 700;
  color: var(--ink-soft); background: var(--surface-2); border: 1px solid var(--line);
}
.mm-lang img { border-radius: 3px; }
.mm-lang:hover { border-color: var(--brand); }
.mm-lang.active { opacity: .5; }
.mm-foot .theme-btn { width: 44px; height: 44px; flex: none; }

body.menu-open { overflow: hidden; }

/* Desktop (>860px): keine Drawer-Elemente, kein Overflow durch das Off-Canvas-Panel */
@media (min-width: 861px) {
  .nav-burger, .mobile-menu, .mobile-backdrop { display: none !important; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: 30px 0 0; }
.hero-stage {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  min-height: 560px; display: flex; align-items: center;
  background: var(--hero-grad);
  /* Schlankerer Schatten statt --shadow-lg (70px) – der große weiche Schatten ließ Firefox
     beim Scrollen die Hero-Fläche teuer neu rastern. */
  box-shadow: 0 14px 34px rgba(11,40,58,.18);
  isolation: isolate;
  /*background-image: url("/img/heroback.jpg"); background-size: cover;*/
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 30px;
  align-items: center; width: 100%; padding: 0px 52px 48px 52px;
}
.hero-copy { color: #fff; max-width: 540px; }
.hero-eyebrow { color: #bfe9f8; }
.hero-eyebrow::before { background: #bfe9f8; }
.hero h1 { font-size: clamp(32px, 3.6vw, 50px); color: #fff; font-weight: 800; margin: 16px 0 0; line-height: 1.1; }
.hero h1 .accent { color: #ffd9a8; }
.hero h1 .hero-h1-sub { display: block; font-size: .62em; color: #ffd9a8; font-weight: 800; margin-top: 4px; }
.hero-sub { font-size: clamp(16px, 1.4vw, 19px); color: #d7eef7; margin-top: 18px; max-width: 500px; line-height: 1.55; }
.hero-cta-row { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-trust { display: flex; align-items: center; gap: 16px; margin-top: 30px; color: #cfe9f4; font-size: 13.5px; font-weight: 600; flex-wrap: wrap; }
.hero-trust .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; }

/* Hero slider */
.hero-visual { position: relative; height: 440px; }
.hero-photogrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.hero-gphoto { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; display: block; background: var(--surface-2); }
.hero-mapimg { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; border-radius: 18px 18px 0 0; background: var(--surface-2); }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transform: translateY(18px) scale(.98);
  transition: opacity .6s ease, transform .6s ease; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  /* seitlicher Platz, damit die Blätter-Pfeile neben statt über der Karte liegen */
  padding: 0 48px; box-sizing: border-box;
}
.hero-slide.active { opacity: 1; transform: none; pointer-events: auto; }
.logcard {
  width: 100%; max-width: 440px; background: #fff; color: #0c2638;
  border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.logcard-top { display: flex; justify-content: space-between; align-items: flex-start; padding: 18px 20px 12px; }
.logcard-place { font-family: 'Sora',sans-serif; font-weight: 700; font-size: 17px; }
.logcard-place small { display: block; color: #7d94a1; font-weight: 600; font-size: 12.5px; font-family: 'Manrope'; margin-top: 3px; }
.logcard-badge { background: var(--brand); color: #fff; border-radius: 12px; padding: 8px 12px; text-align: center; line-height: 1.1; }
.logcard-badge b { font-family: 'Sora'; font-size: 18px; display: block; }
.logcard-badge span { font-size: 10.5px; opacity: .9; }
.logcard-profile { padding: 8px 18px 0; }
.logcard-profimg { display: block; width: 100%; height: auto; }
.logcard-meta { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; padding: 14px 18px 18px; border-top: 1px solid rgba(11,40,58,.08); margin-top: 8px; }
.logcard-meta div { font-size: 11px; color: #7d94a1; font-weight: 600; }
.logcard-meta b { display: block; font-family: 'Sora'; font-size: 15px; color: #0c2638; margin-top: 2px; }
.logcard .ph {
  background: repeating-linear-gradient(45deg, rgba(20,168,218,.11) 0 10px, rgba(20,168,218,.03) 10px 20px), #eef4f7;
  border-color: rgba(20,168,218,.42); color: #5a7b8a;
}

/* Hero controls */
.hero-arrows { position: absolute; top: 50%; left: 0; right: 0; display: flex; justify-content: space-between; padding: 0 8px; transform: translateY(-50%); pointer-events: none; z-index: 5; }
.hero-arrow { pointer-events: auto; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px); transition: background .2s, transform .2s; }
.hero-arrow:hover { background: rgba(255,255,255,.3); transform: scale(1.07); }
.hero-arrow svg { width: 18px; height: 18px; }
.hero-dots { position: absolute; bottom: 22px; left: 52px; display: flex; gap: 9px; z-index: 5; }
.hero-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; transition: width .3s, background .3s; }
.hero-dot.active { width: 28px; border-radius: 6px; background: #fff; }
.badge-21 {
  position: absolute; bottom: 13px; right: -13px; z-index: 6;
  width: 100px; height: 100px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffb43d, var(--cta));
  color: #3a1c00; display: grid; place-items: center; text-align: center; padding: 6px;
  box-shadow: 0 10px 26px rgba(255,138,30,.5); border: 3px solid rgba(255,255,255,.7);
  font-family: 'Sora'; line-height: 1; transform: rotate(-8deg);
}
.badge-21 b { font-size: 30px; display: block; line-height: 1; }
.badge-21 span { font-size: 12px; font-weight: 800; letter-spacing: .02em; line-height: 1.2; display: block; max-width: 80px; margin-top: 3px; }

/* Hero slide 4: Buddies verknüpfen */
.bud-verified { flex: none; width: 36px; height: 36px; border-radius: 50%; background: #19b36b; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(25,179,107,.4); }
.bud-verified svg { width: 20px; height: 20px; }
.bud-stage { display: flex; align-items: flex-start; justify-content: center; gap: 6px; padding: 30px 22px 6px; }
.bud-person { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 86px; }
/* bud-* leben in der immer-weissen .logcard -> feste helle Farben (nicht Theme-Tokens) */
.bud-avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-family: 'Sora',sans-serif; font-weight: 700; font-size: 25px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-strong)); box-shadow: 0 6px 16px rgba(52,195,239,.38); border: 3px solid #fff; }
.bud-avatar.alt { background: linear-gradient(135deg, #ffb347, #ff7a59); box-shadow: 0 6px 16px rgba(255,122,89,.34); }
.bud-name { font-family: 'Sora',sans-serif; font-weight: 600; font-size: 13.5px; color: #0c2638; }
.bud-conn { flex: 1; max-width: 130px; height: 64px; display: flex; align-items: center; justify-content: center; position: relative; }
.bud-conn::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); border-top: 2px dashed rgba(11,40,58,.18); }
.bud-link { position: relative; width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 1px solid rgba(11,40,58,.12); display: grid; place-items: center; color: var(--brand-strong); box-shadow: var(--shadow); }
.bud-link svg { width: 22px; height: 22px; }

/* Hero slide 5: Statistiken */
.hero-stat-chart { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; height: 132px; padding: 18px 20px 10px; }
.sc-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; height: 100%; }
.sc-bar { width: 100%; max-width: 30px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--brand), var(--brand-strong)); min-height: 6px; }
.sc-col:last-child .sc-bar { background: linear-gradient(180deg, #ffb347, #ff7a59); }
.sc-lab { font-family: 'Sora',sans-serif; font-weight: 600; font-size: 11.5px; color: #7d94a1; }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats { margin-top: -46px; position: relative; z-index: 10; padding: 0 0 0; }
.stats-grid {
  display: grid; grid-template-columns: repeat(5,1fr);
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line-soft); overflow: hidden;
}
.stat { padding: 26px 22px; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 22%; height: 56%; width: 1px; background: var(--line); }
.stat-num { font-family: 'Sora'; font-weight: 800; font-size: clamp(22px, 2.2vw, 30px); color: var(--ink); letter-spacing: -.02em; }
.stat-label { font-size: 12.5px; font-weight: 600; color: var(--ink-mute); margin-top: 5px; }

/* ============================================================
   FEATURES
   ============================================================ */
.sec-head { text-align: center; max-width: 1000px; margin: 0 auto 52px; }
.sec-head h2 { font-size: clamp(28px, 3.2vw, 42px); margin-top: 14px; color: var(--ink); }
.sec-head p { color: var(--ink-soft); font-size: 17px; margin-top: 14px; }
.features { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.feature {
  padding: 30px 26px 28px; position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--brand); }
.feature-ic {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-strong); margin-bottom: 20px;
  transition: transform .25s;
}
[data-theme="dark"] .feature-ic { color: var(--brand); }
.feature:hover .feature-ic { transform: scale(1.08) rotate(-4deg); }
.feature-ic svg { width: 26px; height: 26px; }
.feature h3 { font-size: 19px; color: var(--ink); }
.feature p { color: var(--ink-soft); font-size: 14.5px; margin-top: 9px; }
.feature .more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  color: var(--brand-strong); font-weight: 700; font-size: 13.5px;
  opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s;
}
[data-theme="dark"] .feature .more { color: var(--brand); }
.feature:hover .more { opacity: 1; transform: none; }
/* Import-Feature: Popover mit Liste nur beim Hover über den Link #importslist */
.feature:has(.importtip) { overflow: visible; }
.feature.importtip-open { z-index: 90; }
#importslist { color: var(--brand-strong); }
[data-theme="dark"] #importslist { color: var(--brand); }
.importtip {
  position: absolute; top: calc(100% - 10px); left: 0; width: min(540px, 88vw);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-lg); padding: 16px 18px; z-index: 80;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
/* unsichtbare Brücke über dem Popover, damit der Weg Link → Popover nicht abreißt */
.importtip::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 60px; }
.feature.importtip-open .importtip { opacity: 1; visibility: visible; transform: translateY(0); }
.importtip-inner { max-height: 340px; overflow-y: auto; }
.importtip-inner ul { columns: 2; column-gap: 24px; margin: 0; padding: 0; list-style: none; }
.importtip-inner li { font-size: 13px; color: var(--ink-soft); padding: 3px 0; break-inside: avoid; line-height: 1.35; }
.importtip-inner li::before { content: "›"; color: var(--brand-strong); font-weight: 800; margin-right: 7px; }
[data-theme="dark"] .importtip-inner li::before { color: var(--brand); }
@media (max-width: 560px) { .importtip-inner ul { columns: 1; } }
.feature::after {
  content: ""; position: absolute; right: -40px; top: -40px;
  width: 120px; height: 120px; border-radius: 50%;
  background: var(--brand-soft); opacity: 0; transition: opacity .3s;
}
.feature:hover::after { opacity: .5; }

/* ============================================================
   COLS: ACTIVITY FEED + NEWS
   ============================================================ */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.panel { padding: 26px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.panel-head h3 { font-size: 18px; color: var(--ink); display: flex; align-items: center; gap: 10px; }

/* Live dot */
.live-dot {
  position: relative; width: 9px; height: 9px; border-radius: 50%; background: #20c45e; flex: none;
}
/* Ping über transform/opacity (GPU-composited) statt animiertem box-shadow (erzwingt Dauer-Repaints) */
.live-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: rgba(32,196,94,.55); animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { transform: scale(1);   opacity: .6; }
  70%  { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* Activity feed */
.feed { display: flex; flex-direction: column; gap: 6px; }
.feed-item { display: flex; gap: 13px; align-items: center; padding: 11px; border-radius: 14px; transition: background .18s; }
.feed-item:hover { background: var(--surface-2); }
.feed-av {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  background: var(--brand-soft); color: var(--brand-strong);
  display: grid; place-items: center; overflow: hidden;
  font-weight: 800; font-family: 'Sora'; font-size: 15px;
}
.feed-av img { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; }
[data-theme="dark"] .feed-av { color: var(--brand); }
.feed-txt, .feed-body { flex: 1; min-width: 0; }
.feed-txt b, .feed-body b { color: var(--ink); font-weight: 700; font-size: 14.5px; }
.feed-txt span, .feed-body span { color: var(--ink-soft); font-size: 14px; }
.feed-body a { color: var(--brand-strong); font-weight: 600; }
[data-theme="dark"] .feed-body a { color: var(--brand); }
.feed-item { align-items: flex-start; }
.feed-body .feed-time { display: block; margin-top: 3px; color: var(--ink-mute); font-size: 12px; font-weight: 500; }
.feed-pill { font-size: 12px; font-weight: 700; color: var(--brand-strong); background: var(--brand-soft); padding: 3px 9px; border-radius: 999px; }
[data-theme="dark"] .feed-pill { color: var(--brand); }
.feed-time { color: var(--ink-mute); font-size: 12px; font-weight: 600; white-space: nowrap; }

/* News */
.news { display: flex; flex-direction: column; }
.news-item { padding: 18px 0; border-bottom: 1px solid var(--line-soft); display: flex; gap: 16px; }
.news-item:last-child { border-bottom: none; }
.news-date { font-family: 'Sora'; font-weight: 700; font-size: 12px; color: var(--brand-strong); white-space: nowrap; padding-top: 2px; min-width: 84px; }
[data-theme="dark"] .news-date { color: var(--brand); }
.news-body h4 { font-size: 15.5px; color: var(--ink); }
.news-body p { font-size: 14px; color: var(--ink-soft); margin-top: 5px; }
.news-body a.more-link { color: var(--brand-strong); font-weight: 700; font-size: 13.5px; }
[data-theme="dark"] .news-body a.more-link { color: var(--brand); }

/* ============================================================
   APP BAND / CTA
   ============================================================ */
.appband {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center;
  padding: 40px 44px; background: var(--hero-grad); border-radius: var(--r-xl);
  color: #fff; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; border: none;
}
.appband::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 24px 24px; mask-image: linear-gradient(120deg, transparent 40%, #000);
  opacity: .5;
}
.appband h2 { color: #fff; font-size: clamp(24px,2.6vw,34px); position: relative; }
.appband p { color: #d7eef7; margin-top: 12px; max-width: 420px; position: relative; }
.appband-copy { position: relative; z-index: 1; }
.appband-vis { display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.app-shots { display: flex; gap: 18px; align-items: center; justify-content: center; }
.app-shot { width: 172px; max-width: 44%; height: auto; border-radius: 24px;
  box-shadow: 0 18px 40px rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.18); }
.app-shot:first-child { transform: translateY(-12px) rotate(-3deg); }
.app-shot:last-child { transform: translateY(12px) rotate(3deg); }
.appband .eyebrow { color: rgba(255,255,255,.7); }
.appband .eyebrow::before { background: rgba(255,255,255,.7); }
.store-row, .store-btns { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; position: relative; }
.store-btn {
  display: flex; align-items: center; gap: 11px;
  background: #000000; color: #fff; border-radius: 14px; padding: 10px 18px;
  transition: transform .2s, box-shadow .2s; border: 1px solid rgba(255,255,255,.12);
}
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0,0,0,.3); }
.store-btn svg { width: 26px; height: 26px; }
.store-btn small { display: block; font-size: 10px; opacity: .8; }
.store-btn b { font-family: 'Sora'; font-size: 15px; }
.coffee {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: #0c2638; border-radius: 14px; padding: 12px 20px;
  font-weight: 700; box-shadow: var(--shadow); transition: transform .2s;
}
.coffee:hover { transform: translateY(-2px) rotate(-1deg); }

/* (Footer styles moved to the FOOTER section above) */

/* ============================================================
   CSS-FLAGGEN (optional, für Fallback)
   ============================================================ */
.flag { width: 26px; height: 18px; border-radius: 4px; box-shadow: var(--shadow-sm); flex: none; display: inline-block; }
.flag-de { background: linear-gradient(180deg,#1a1a1a 0 33.3%,#d7141a 33.3% 66.6%,#ffce00 66.6% 100%); }
.flag-en { background: linear-gradient(180deg,#012169 0 100%); position: relative; overflow: hidden; }
.flag-en::before { content:""; position:absolute; inset:0; background: linear-gradient(90deg,transparent 42%,#fff 42% 58%,transparent 58%), linear-gradient(0deg,transparent 38%,#fff 38% 62%,transparent 62%); }
.flag-en::after { content:""; position:absolute; inset:0; background: linear-gradient(90deg,transparent 45%,#c8102e 45% 55%,transparent 55%), linear-gradient(0deg,transparent 42%,#c8102e 42% 58%,transparent 58%); }
.flag-fr { background: linear-gradient(90deg,#0055a4 0 33.3%,#fff 33.3% 66.6%,#ef4135 66.6% 100%); }
.flag-nl { background: linear-gradient(180deg,#ae1c28 0 33.3%,#fff 33.3% 66.6%,#21468b 66.6% 100%); }
.flag-es { background: linear-gradient(180deg,#aa151b 0 25%,#f1bf00 25% 75%,#aa151b 75% 100%); }
.flag-it { background: linear-gradient(90deg,#009246 0 33.3%,#fff 33.3% 66.6%,#ce2b37 66.6% 100%); }

/* ============================================================
   SCROLL-REVEAL
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  html.has-js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
  html.has-js .reveal.in { opacity: 1; transform: none; }
}

/* ============================================================
   LOGBUCH-ANSICHT — Cover + Profilkarte
   ============================================================ */
.lb-hero { padding-top: 10px; }
.profile-card {
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line-soft); overflow: hidden;
}

/* Cover Banner — original DOM (#headerpicturediv > #headermask > #userheaderimage) */
#headerpicturediv {
  position: relative;
  max-width: none;
  margin: 0;
  height: auto;
}
#headermask {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1050 / 350; /* == 3:1, identisch zum serverseitigen Zuschnitt (headerhandle.inc.php) -> WYSIWYG */
  margin: 0;
  background: var(--hero-grad);
}
#userheaderimage {
  width: 100%;
  display: block;
  max-width: none; /* override global img { max-width:100% } — slider sets explicit px widths */
}
#headermask::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(4,28,42,.10) 0%, rgba(4,28,42,0) 26%, rgba(4,28,42,0) 100%);
}
.cover-hint {
  position: absolute; top: 14px; right: 16px; z-index: 3;
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(8,28,40,.42); color: #fff; font-size: 12px; font-weight: 600;
  padding: 7px 12px; border-radius: 999px; backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.22); opacity: 0; transition: opacity .2s; pointer-events: none;
  cursor: pointer;
}
#headermask:hover .cover-hint { opacity: 1; pointer-events: auto; }
.cover-hint svg { width: 14px; height: 14px; }

/* Profilstreifen */
.profile-bar {
  position: relative; display: flex; align-items: center; gap: 22px;
  padding: 18px 32px 16px; flex-wrap: wrap;
}

.profile-av-wrap { margin-top: -92px; position: relative; flex: none; }
.profile-av-wrap img { width: 140px; height: 140px; border-radius: 50%; border: 5px solid var(--surface); box-shadow: 0 8px 24px rgba(0,30,45,.22); object-fit: cover; display: block; }
.profile-av-wrap .av-change { position: absolute; bottom: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm); }
.profile-av-wrap .av-change svg { width: 14px; height: 14px; }
/* Avatar-Wechsel-Button — Hover-Pill am unteren Rand des Avatars */
.profile-av-wrap .newuserpicbutton {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  width: auto; /* override legacy */ background: rgba(8,28,40,.72); color: #fff;
  font-size: 10px; font-weight: 600; white-space: nowrap;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .2s; pointer-events: none; cursor: pointer; display: block;
}
.profile-av-wrap:hover .newuserpicbutton { opacity: 1; pointer-events: auto; }
.profile-id { flex: 1 1 auto; min-width: 200px; }
.profile-id h1 { font-size: clamp(22px, 2.6vw, 31px); color: var(--ink); }
.profile-id .meta { color: var(--ink-soft); font-weight: 600; margin-top: 5px; font-size: 15px; }
.profile-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.pstat { text-align: center; padding: 8px 16px; border-radius: 14px; background: var(--surface-2); min-width: 84px; }
.pstat b { font-family: 'Sora'; font-weight: 800; font-size: 22px; display: block; color: var(--ink); letter-spacing: -.01em; }
.pstat span { color: var(--ink-mute); font-size: 12px; font-weight: 600; }

/* Sub-Navigation */
.profile-nav {
  position: static; float: none; left: auto;
  display: flex; gap: 2px; padding: 4px 18px;
  border-top: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin;
}
.profile-nav::-webkit-scrollbar { height: 0; }
.pnav {
  position: relative; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 14px 14px; font-weight: 700; font-size: 14px; color: var(--ink-soft);
  border-bottom: 2.5px solid transparent; transition: color .16s, border-color .16s, background .16s;
  border-radius: 8px 8px 0 0;
}
.pnav svg { width: 16px; height: 16px; flex: none; opacity: .8; }
.pnav [class*="sprite-"] { font-size: 18px !important; opacity: .8; flex: none; line-height: 1; vertical-align: middle; }
.pnav.active [class*="sprite-"] { opacity: 1; }
.pnav:hover { color: var(--ink); background: var(--surface-2); }
.pnav.active { color: var(--brand-strong); border-bottom-color: var(--brand); }
[data-theme="dark"] .pnav.active { color: var(--brand); }
.pnav.active svg { opacity: 1; }
.pnav-c { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 12px; color: var(--ink-mute); }
.pnav.active .pnav-c { color: var(--brand-strong); }
[data-theme="dark"] .pnav.active .pnav-c { color: var(--brand); }
.pnav-badge { display: inline-grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: #e03; color: #fff; font-size: 10px; font-weight: 800; }
.group-action { margin-left: auto; position: relative; }
.group-pop { position: absolute; top: calc(100% + 8px); right: 0; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 12px; min-width: 200px; z-index: 20; }
.group-admin-bar { display: flex; justify-content: flex-end; gap: 10px; margin: 18px 0 4px; flex-wrap: wrap; }
.group-admin-bar .btn { font-size: 13.5px; padding: 9px 16px; }
.group-admin-bar .btn svg { width: 16px; height: 16px; }
.group-admin-bar .group-del:hover { border-color: #e03; color: #e03; }
.group-desc { margin: 16px 0 6px; color: var(--ink-soft); line-height: 1.6; font-size: 15px; }
.group-form { padding: 24px; max-width: 560px; }
.group-form label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-mute); margin: 12px 0 4px; }
.group-form input[type=text], .group-form input[type=password], .group-form input[type=email], .group-form input[type=number], .group-form textarea {
  width: 100%; padding: 11px 13px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink); font: inherit; font-size: 14px; outline: none; box-sizing: border-box; }
.group-form input[type=text]:focus, .group-form input[type=password]:focus, .group-form input[type=email]:focus, .group-form input[type=number]:focus, .group-form textarea:focus { border-color: var(--brand); }
.group-form input:-webkit-autofill, .group-form input:-webkit-autofill:hover, .group-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink); -webkit-box-shadow: 0 0 0 1000px var(--surface-2) inset; caret-color: var(--ink); }
.group-form textarea { height: 110px; resize: vertical; }
.group-form .radio-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; color: var(--ink-soft); }
.group-form select {
  padding: 11px 13px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink); font: inherit; font-size: 14px; outline: none; box-sizing: border-box; }
.group-form select:focus { border-color: var(--brand); }

/* ============================================================
   GRUPPEN-UNTERSEITEN: Events / Discussions / News / Stats
   ============================================================ */

/* --- Stats --- */
.gs-filter { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 22px;
  font-size: 14px; color: var(--ink-soft); }
.gs-filter input[type=text] { width: 96px; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; outline: none; }
.gs-filter input[type=text]:focus { border-color: var(--brand); }
.gs-filter .btn { padding: 10px 20px; }
.gs-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px,1fr)); gap: 12px; }
.gs-stat { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 16px;
  box-shadow: var(--shadow-sm); padding: 16px 18px; }
.gs-stat b { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 22px; color: var(--ink);
  display: block; letter-spacing: -.01em; line-height: 1.1; }
.gs-stat span { display: block; margin-top: 5px; font-size: 12.5px; font-weight: 600; color: var(--ink-mute); }
.gs-user { display: flex; gap: 20px; align-items: flex-start; padding: 18px 20px; margin-top: 16px; }
.gs-who { flex: none; width: 78px; text-align: center; text-decoration: none; color: var(--ink); }
.gs-who img { width: 58px; height: 58px; border-radius: 15px; object-fit: cover; background: var(--surface-2); margin: auto;}
.gs-who b { display: block; font-size: 12.5px; margin-top: 6px; word-break: break-word; }
.gs-who:hover b { color: var(--brand-strong); }
[data-theme="dark"] .gs-who:hover b { color: var(--brand); }
.gs-scroll { flex: 1; min-width: 0; overflow-x: auto; }
.gs-table { border-collapse: collapse; width: 100%; font-size: 13px; }
.gs-table th { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 11px; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: .04em; padding: 6px 4px; text-align: center; }
.gs-table td { padding: 7px 4px; text-align: center; color: var(--ink-soft); border-top: 1px solid var(--line-soft); }
.gs-table td.yr { font-family: 'Sora', sans-serif; font-weight: 800; color: var(--ink); text-align: left; padding-left: 2px; }
.gs-table td.sum, .gs-table th.sum { font-weight: 800; color: var(--brand-strong); border-left: 1px solid var(--line); }
[data-theme="dark"] .gs-table td.sum, [data-theme="dark"] .gs-table th.sum { color: var(--brand); }
.gs-table .z { color: var(--ink-mute); opacity: .4; }

/* --- Events --- */
.ev-form .ev-form-row { display: flex; gap: 18px; flex-wrap: wrap; }
.ev-form .ev-form-row > div { flex: 1; min-width: 130px; }
.ev-form .ev-dur { display: flex; gap: 8px; }
.ev-form.editing { border-color: var(--brand); }
.ev-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 6px; }
.ev-card { display: flex; gap: 18px; background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r); box-shadow: var(--shadow-sm); padding: 16px 18px; }
.ev-card.past { opacity: .9; }
.ev-date { flex: none; width: 76px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-strong);
  text-align: center; padding: 10px 6px; align-self: flex-start; }
[data-theme="dark"] .ev-date { background: rgba(20,168,218,.16); color: var(--brand); }
.ev-card.past .ev-date { background: var(--surface-2); color: var(--ink-mute); }
.ev-date .m { display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.ev-date .d { display: block; font-family: 'Sora', sans-serif; font-size: 28px; font-weight: 800; line-height: 1.05; }
.ev-date .y { display: block; font-size: 12px; font-weight: 700; opacity: .8; }
.ev-date .wd { display: block; font-size: 11px; font-weight: 600; margin-top: 3px; opacity: .8; }
.ev-main { flex: 1; min-width: 0; }
.ev-join { float: right; margin-left: 14px; }
.ev-join .btn { padding: 9px 16px; font-size: 13.5px; }
.ev-title { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 17px; color: var(--ink); }
.ev-adm { white-space: nowrap; }
.ev-adm a { display: inline-flex; padding: 4px; color: var(--ink-mute); }
.ev-adm a:hover { color: var(--brand-strong); }
.ev-adm a:last-child:hover { color: #e03; }
.ev-adm svg { width: 16px; height: 16px; }
.ev-meta { font-size: 13px; color: var(--ink-mute); margin-top: 3px; }
.ev-desc { font-size: 14px; color: var(--ink-soft); line-height: 1.55; margin-top: 10px; }
.ev-plabel { font-size: 12px; font-weight: 700; color: var(--ink-mute); text-transform: uppercase;
  letter-spacing: .04em; margin: 14px 0 8px; clear: both; }
.ev-none { font-size: 13px; color: var(--ink-mute); }
.ev-parts { display: flex; flex-wrap: wrap; gap: 12px; }
.ev-part { text-decoration: none; text-align: center; width: 52px; color: var(--ink-soft); }
.ev-part img { width: 38px; height: 38px; border-radius: 11px; object-fit: cover; background: var(--surface-2); margin: auto;}
.ev-part span { display: block; font-size: 10.5px; margin-top: 3px; word-break: break-word; }
.ev-part:hover span { color: var(--brand-strong); }
.ev-detlink { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 700;
  font-size: 13.5px; color: var(--brand-strong); text-decoration: none; }
[data-theme="dark"] .ev-detlink { color: var(--brand); }
.ev-detlink svg { width: 16px; height: 16px; }
.ev-detlink:hover { text-decoration: underline; }

/* --- Discussions --- */
.gd-bar { margin-bottom: 18px; }
.gd-bar .btn svg { width: 16px; height: 16px; }
#newthread, #newpost { background: var(--surface); padding: 20px; }
.gd-newthread { padding: 22px 24px; margin-bottom: 22px; }
.gd-newthread label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-mute); margin: 0 0 5px; }
.gd-newthread label + input[type=text] { margin-bottom: 14px; }
.gd-newthread input[type=text] { width: 100%; max-width: 480px; padding: 11px 13px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: inherit; font-size: 14px;
  outline: none; box-sizing: border-box; }
.gd-newthread input[type=text]:focus { border-color: var(--brand); }
.gd-reply-h { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 16px; color: var(--ink); margin-bottom: 12px; padding: 20px 20px 0;}
.gd-threads { display: flex; flex-direction: column; gap: 12px; }
.gd-thread { display: flex; align-items: center; gap: 16px; background: var(--surface);
  border: 1px solid var(--line-soft); border-radius: var(--r); box-shadow: var(--shadow-sm);
  padding: 14px 18px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.gd-thread:hover { border-color: var(--brand); transform: translateY(-1px); }
.gd-thread.unreadrow { border-left: 4px solid var(--brand); }
.gd-th-av { width: 46px; height: 46px; border-radius: 13px; object-fit: cover; flex: none; background: var(--surface-2); }
.gd-th-main { flex: 1; min-width: 0; }
.gd-th-title { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 15.5px; color: var(--ink);
  display: flex; align-items: center; gap: 8px; }
.gd-th-meta { font-size: 12.5px; color: var(--ink-mute); margin-top: 3px; }
.gd-th-replies { flex: none; text-align: center; width: 64px; }
.gd-th-replies b { display: block; font-family: 'Sora', sans-serif; font-weight: 800; font-size: 18px; color: var(--ink); }
.gd-th-replies span { font-size: 10.5px; font-weight: 600; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .03em; }
.gd-th-last { flex: none; display: flex; align-items: center; gap: 9px; width: 180px; }
.gd-th-last img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; flex: none; background: var(--surface-2); }
.gd-th-last div { min-width: 0; font-size: 12px; color: var(--ink-mute); line-height: 1.35; }
.gd-th-last span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .03em; }
.gd-th-last b { color: var(--ink); }
.gd-posts { display: flex; flex-direction: column; gap: 14px; }
.gd-post { display: flex; gap: 20px; background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r); box-shadow: var(--shadow-sm); padding: 18px 20px; }
.gd-post-author { flex: none; width: 84px; text-align: center; text-decoration: none; color: var(--ink); }
.gd-post-author img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: var(--surface-2); margin: auto;}
.gd-post-author b { display: block; font-size: 12.5px; margin-top: 6px; word-break: break-word; }
.gd-post-author span { display: block; font-size: 11px; color: var(--ink-mute); margin-top: 2px; }
.gd-post-author:hover b { color: var(--brand-strong); }
.gd-post-body { flex: 1; min-width: 0; }
.gd-post-head { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 16px; color: var(--ink); margin-bottom: 8px; }
.gd-post-body .editable { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }
.gd-post-body .editable.mypost { border-radius: 10px; transition: background .15s; padding: 4px 6px; margin: -4px -6px; }
.gd-post-body .editable.mypost:hover { background: var(--surface-2); }
.gd-post-body .reply { float: right; padding: 7px 14px; font-size: 13px; margin-top: 6px; }
.gd-post-edited { font-size: 11px; color: var(--ink-mute); margin-top: 10px; }

@media (max-width: 760px) {
  .gd-thread { flex-wrap: wrap; }
  .gd-th-replies { width: auto; text-align: left; display: flex; align-items: baseline; gap: 5px; }
  .gd-th-last { width: 100%; }
  .gd-post { gap: 14px; padding: 14px; }
  .gd-post-author { width: 60px; }
  .gd-post-author img { width: 46px; height: 46px; }
  .ev-card { flex-direction: column; gap: 12px; }
  .ev-date { display: flex; align-items: baseline; gap: 8px; width: auto; padding: 8px 14px; }
  .ev-date .wd { margin-top: 0; }
  .ev-join { float: none; margin: 0 0 10px; }
  .gs-user { flex-direction: column; gap: 12px; align-items: center; }
}

/* ============================================================
   DOKUMENTE / BREVETS (documents.php, /docs/{user})
   ============================================================ */
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-sm svg { width: 15px; height: 15px; }

.doc-protect { max-width: 440px; padding: 32px 28px; text-align: center; }
.doc-protect svg { width: 40px; height: 40px; color: var(--brand); margin-bottom: 10px; }
.doc-protect-msg { font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; margin-bottom: 16px; }
.doc-protect-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.doc-protect-form input[type=password] { padding: 11px 14px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink); font: inherit; font-size: 14px; outline: none; }
.doc-protect-form input[type=password]:focus { border-color: var(--brand); }

.doc-settings { padding: 18px 22px; margin-bottom: 18px; }
.doc-settings-h { font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.doc-pass-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.doc-pass-form label { font-size: 13px; font-weight: 600; color: var(--ink-mute); }
.doc-pass-form input[type=text] { padding: 10px 13px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink); font: inherit; font-size: 14px; outline: none; width: 200px; }
.doc-pass-form input[type=text]:focus { border-color: var(--brand); }

.doc-new { max-width: 720px; margin-bottom: 26px; }
.doc-mandatory { font-size: 12.5px; color: var(--ink-mute); margin: -6px 0 12px; }
.doc-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.doc-morefiles { font-size: 12px; color: var(--ink-mute); margin-top: 6px; }
.doc-new input[type=file] { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.doc-new input[type=file]::file-selector-button { font: inherit; font-size: 13px; padding: 8px 14px; margin-right: 12px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }

.doc-section { margin-top: 8px; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap: 18px; margin-bottom: 18px; }
.doc-card { padding: 18px 20px; }
.doc-head { display: flex; align-items: flex-start; gap: 12px; }
.doc-info { flex: 1; min-width: 0; }
.doc-name { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 16px; color: var(--ink); line-height: 1.3; }
.doc-org { font-weight: 600; font-size: 13px; color: var(--ink-mute); }
.doc-date { font-size: 12.5px; color: var(--ink-mute); margin-top: 3px; }
.doc-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.doc-actions .btn-sm span { font-size: 12px; }
.doc-deldoc { display: inline-flex; padding: 7px; border-radius: 9px; color: var(--ink-mute); transition: color .15s, background .15s; }
.doc-deldoc:hover { color: #e03; background: var(--surface-2); }
.doc-deldoc svg { width: 16px; height: 16px; }
.doc-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.doc-thumb { position: relative; border-radius: 11px; overflow: hidden; box-shadow: var(--shadow-sm); line-height: 0; }
.doc-thumb img { height: 96px; width: auto; display: block; background: var(--surface-2); transition: opacity .15s; }
.doc-thumb:hover img { opacity: .85; }
.doc-delfile { position: absolute; top: 5px; right: 5px; display: inline-flex; padding: 5px; border-radius: 8px;
  background: rgba(4,20,30,.62); color: #fff; line-height: 0; opacity: 0; transition: opacity .15s; }
.doc-thumb:hover .doc-delfile { opacity: 1; }
.doc-delfile:hover { background: #e03; }
.doc-delfile svg { width: 14px; height: 14px; }

@media (max-width: 560px) {
  .doc-form-grid { grid-template-columns: 1fr; }
  .doc-head { flex-direction: column; }
  .doc-actions { width: 100%; }
}

/* ============================================================
   PROFIL (userprofile.php, /profile/{user})
   ============================================================ */
.prof-layout { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(0,1fr); gap: 22px; align-items: start; }
.prof-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.prof-card { padding: 20px 22px; }
.prof-card-h { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 16px; color: var(--ink); margin-bottom: 12px; }
.prof-text { color: var(--ink-soft); line-height: 1.65; font-size: 15px; word-wrap: break-word; }
.prof-certs { display: flex; flex-direction: column; gap: 9px; }
.prof-cert { font-size: 14px; color: var(--ink-soft); line-height: 1.4; }
.prof-cert .dt { color: var(--ink-mute); font-size: 12.5px; margin-right: 4px; }
.prof-cert .org { color: var(--ink-mute); font-weight: 600; }
.prof-featured { display: flex; flex-direction: column; gap: 8px; }
.prof-fd { font-size: 14px; color: var(--ink-soft); line-height: 1.45; }
.prof-fd a { color: var(--brand-strong); text-decoration: none; font-weight: 600; }
[data-theme="dark"] .prof-fd a { color: var(--brand); }
.prof-fd a:hover { text-decoration: underline; }
.prof-fd-del { width: 15px; height: 15px; vertical-align: middle; margin-bottom: 2px; cursor: pointer; opacity: .55;display: inline-block;}
.prof-fd-del:hover { opacity: 1; }
.prof-piccard { padding: 0; overflow: hidden; }
.prof-pic { display: block; width: 100%; height: auto; }
.prof-buddies { display: flex; flex-wrap: wrap; gap: 12px; }
.prof-buddy { text-decoration: none; text-align: center; width: 58px; color: var(--ink-soft); }
.prof-buddy img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; background: var(--surface-2); margin: auto;}
.prof-buddy span { display: block; font-size: 11px; margin-top: 4px; word-break: break-word; }
.prof-buddy:hover span { color: var(--brand-strong); }
[data-theme="dark"] .prof-buddy:hover span { color: var(--brand); }

/* Profil: Edit-Modus */
.prof-avcard { display: flex; align-items: center; gap: 18px; padding: 16px 18px; margin-bottom: 18px; max-width: 720px; }
.prof-avcard img { width: 92px; height: 92px; border-radius: 16px; object-fit: cover; background: var(--surface-2); flex: none; }
.prof-avctrl { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
/* Legacy .newuserpicbutton ist position:absolute (altes Design) -> im neuen Edit-Layout neutralisieren */
.prof-avctrl .newuserpicbutton { position: static; left: auto; bottom: auto; width: auto; display: inline-flex; }
.prof-avdel { font-size: 13px; color: var(--ink-mute); }
.prof-avdel:hover { color: #e03; }
.prof-form { max-width: 720px; }
.prof-fillreg { margin: 8px 0 4px; font-size: 13px; }
.prof-fillreg a { color: var(--brand-strong); font-weight: 600; }
[data-theme="dark"] .prof-fillreg a { color: var(--brand); }
.prof-check { display: flex; align-items: center; gap: 9px; margin-top: 10px; font-size: 14px; color: var(--ink-soft); cursor: pointer; }
.prof-check input { width: 17px; height: 17px; accent-color: var(--brand); }
.prof-fd-add { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.prof-fd-add input[type=text] { flex: 1; min-width: 140px; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink); font: inherit; font-size: 14px; outline: none; }
.prof-fd-add select { flex: 2; min-width: 180px; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink); font: inherit; font-size: 14px; outline: none; max-width: 100%; }
.prof-fd-add input:focus, .prof-fd-add select:focus { border-color: var(--brand); }
.prof-form .prof-featured { margin-top: 12px; }
.prof-buddy-edit { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.prof-bchip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line-soft); font-size: 13px; }
.prof-bchip a { color: var(--ink); text-decoration: none; font-weight: 600; }
.prof-bchip a:hover { color: var(--brand-strong); }

/* ============================================================
   STATISTIK (statistics.php, /stats/{user})
   ============================================================ */
.gs-stat a { text-decoration: none; }
.gs-stat a b { color: var(--brand-strong); transition: color .15s; }
[data-theme="dark"] .gs-stat a b { color: var(--brand); }
.gs-stat a:hover b { text-decoration: underline; }
#monthview .gs-sumrow td { border-top: 2px solid var(--line); font-weight: 800; color: var(--ink); }
#monthview .gs-sumrow td.sum { color: var(--brand-strong); }
[data-theme="dark"] #monthview .gs-sumrow td.sum { color: var(--brand); }
.stat-charts { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 24px; }
.stat-chart { padding: 18px 20px; }
.stat-img { width: 100%; height: auto; max-width: 900px; display: block; border-radius: 10px; margin-top: 4px; }
.stat-none { font-size: 13.5px; color: var(--ink-mute); padding: 8px 0; }

@media (max-width: 820px) {
  .prof-layout { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .stat-charts { grid-template-columns: 1fr; }
  .prof-avcard { flex-direction: column; text-align: center; align-items: center; }
  .prof-avctrl { align-items: center; }
}

/* ============================================================
   LISTEN-VERZEICHNISSE (userlist / groups / öffentl. Galerien)
   geteilte .ul-card aus function_userlisting.php
   ============================================================ */
.ul-search { margin-left: auto; align-self: center; display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; box-shadow: var(--shadow-sm); }
.ul-search svg { width: 16px; height: 16px; color: var(--ink-mute); flex: none; }
.ul-search input { border: none; background: none; outline: none; font: inherit; font-size: 14px; color: var(--ink); width: 150px; }
.ul-search input::placeholder { color: var(--ink-mute); }
.ul-search-clear { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--line); color: var(--ink-soft); flex: none; border: none; padding: 0; cursor: pointer; transition: background .15s, color .15s; }
.ul-search-clear:hover { background: var(--brand); color: var(--on-brand); }
.ul-search-clear svg { width: 12px; height: 12px; color: currentColor; }

.ul-tabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.ul-tabs-label { font-size: 13px; font-weight: 600; color: var(--ink-mute); margin-right: 2px; }
.ul-tab { padding: 7px 15px; border-radius: 999px; font-size: 13.5px; font-weight: 600; text-decoration: none;
  color: var(--ink-soft); background: var(--surface-2); border: 1px solid transparent; transition: color .15s, background .15s, border-color .15s; }
.ul-tab:hover { color: var(--ink); border-color: var(--line); }
.ul-tab.active { background: var(--brand); color: var(--on-brand); }

.ul-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.ul-colh { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 16px; color: var(--ink);
  margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }

.ul-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px,1fr)); gap: 12px; }
.ul-card { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r); box-shadow: var(--shadow-sm); padding: 12px 14px; transition: border-color .15s, transform .15s, box-shadow .15s; }
.ul-card:hover { border-color: var(--brand); transform: translateY(-1px); box-shadow: var(--shadow); }
.ul-avlink { flex: none; line-height: 0; }
.ul-av { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: var(--surface-2); }
.ul-main { flex: 1; min-width: 0; }
.ul-name { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 15.5px; color: var(--ink); text-decoration: none; display: inline-block; }
.ul-name:hover { color: var(--brand-strong); }
[data-theme="dark"] .ul-name:hover { color: var(--brand); }
.ul-icons { display: inline-flex; gap: 7px; margin-left: 8px; vertical-align: middle; }
.ul-icons a { color: var(--ink-mute); line-height: 1; }
.ul-icons a:hover { color: var(--brand-strong); }
.ul-icons [class*="sprite-"] { font-size: 16px !important; line-height: 1; vertical-align: middle; }
.ul-bio { font-size: 13px; color: var(--ink-soft); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ul-loc { font-size: 12.5px; color: var(--ink-mute); margin-top: 2px; display: flex; align-items: center; gap: 4px; }
.ul-pin { width: 13px; height: 13px; flex: none; }
.ul-count { flex: none; text-align: center; min-width: 56px; }
.ul-count b { display: block; font-family: 'Sora', sans-serif; font-weight: 800; font-size: 22px; color: var(--brand-strong); line-height: 1; letter-spacing: -.01em; }
[data-theme="dark"] .ul-count b { color: var(--brand); }
.ul-count span { display: block; font-size: 10.5px; font-weight: 600; color: var(--ink-mute); margin-top: 3px; }
.ul-count .upd { color: var(--ink-soft); font-weight: 700; font-size: 10px; }
.ul-pager { padding: 18px 8px 4px; }

/* Gruppen-Übersicht: Liste + Anlegen-Formular */
.gl-layout { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 28px; align-items: start; }
.gl-layout.nocreate { grid-template-columns: 1fr; }
.gl-main { min-width: 0; }
.gl-create { padding: 22px 24px; }
#divegroups { width: auto; float: none; }

@media (max-width: 860px) {
  .ul-cols { grid-template-columns: 1fr; gap: 22px; }
  .gl-layout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ul-search input { width: 110px; }
}

/* ============================================================
   EXPLORE (explore.php)
   ============================================================ */
.ex-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.ex-bar-label { font-weight: 700; color: var(--ink); font-size: 14.5px; }
.ex-days { font-size: 13.5px; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 6px; }
.ex-days select { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font: inherit; font-size: 13.5px; outline: none; }
.ex-days select:focus { border-color: var(--brand); }
.ex-wait { width: 28px; height: 28px; display: inline-flex; align-items: center; }
.ex-wait img { width: 24px; height: 24px; }
.ex-mapcard { padding: 6px; overflow: hidden; }
.ex-mapcard #map { width: 100%; height: 620px; max-width: 100%; border-radius: calc(var(--r-lg) - 8px); overflow: hidden; position: relative; z-index: 1; }
.ex-sech { margin: 30px 0 12px; }
.ex-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 26px 0; align-items: start; }
.ex-list { padding: 20px 22px; }
.ex-list .prof-card-h { margin-bottom: 14px; }
.ex-divelist { list-style: none; margin: 0; padding: 0; }
.ex-divelist li { padding: 7px 0; border-top: 1px solid var(--line-soft); font-size: 14px; line-height: 1.4; }
.ex-divelist li:first-child { border-top: none; }
.ex-divelist a { color: var(--brand-strong); text-decoration: none; font-weight: 600; }
[data-theme="dark"] .ex-divelist a { color: var(--brand); }
.ex-divelist a:hover { text-decoration: underline; }
.ex-divelist [class*="sprite-"] { font-size: 15px !important; vertical-align: middle; opacity: .8; }

@media (max-width: 760px) {
  .ex-lists { grid-template-columns: 1fr; }
  .ex-mapcard #map { height: 460px; }
}

/* ============================================================
   SUCHE (search.php)
   ============================================================ */
.sr-intro { color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; margin-bottom: 16px; }
.sr-form { padding: 18px 20px; margin-bottom: 22px; }
.sr-inputrow { display: flex; gap: 12px; flex-wrap: wrap; }
.sr-inputwrap { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 8px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; }
.sr-inputwrap:focus-within { border-color: var(--brand); }
.sr-inputwrap svg { width: 17px; height: 17px; color: var(--ink-mute); flex: none; }
.sr-inputwrap input { flex: 1; border: none; background: none; outline: none; font: inherit; font-size: 15px;
  color: var(--ink); padding: 12px 0; min-width: 0; }
.sr-inputwrap input:focus { box-shadow: none; }
.sr-opts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; }
.sr-chk { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--ink-soft); cursor: pointer; }
.sr-chk input { width: 16px; height: 16px; accent-color: var(--brand); }
.sr-count { font-size: 15px; color: var(--ink-soft); margin-bottom: 14px; }
.sr-count b { color: var(--ink); }
.sr-pager { margin-bottom: 14px; }
.sr-card { padding: 6px; }
.sr-scroll { overflow-x: auto; }
.sr-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sr-table th { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 11px; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: .04em; text-align: left; padding: 12px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.sr-table th [class*="sprite-"] { font-size: 16px !important; }
.sr-table td { padding: 11px 12px; color: var(--ink-soft); border-top: 1px solid var(--line-soft); }
.sr-table tbody tr:hover { background: var(--surface-2); }
.sr-table .sr-user { font-weight: 700; color: var(--brand-strong); text-decoration: none; }
[data-theme="dark"] .sr-table .sr-user { color: var(--brand); }
.sr-table .sr-user:hover { text-decoration: underline; }
.sr-table .sr-ic { text-align: center; width: 34px; }
.sr-table .sr-ic [class*="sprite-"] { font-size: 16px !important; }

/* ============================================================
   REGISTRIERUNG (register.php)
   ============================================================ */
.rg-layout { max-width: 880px; }
.rg-errors { margin-bottom: 18px; }
.rg-errors ul { margin: 0; padding-left: 20px; }
.rg-errors li { margin: 4px 0; }
.rg-form { max-width: 880px; }
/* Zweispaltiges Layout: links bis Land, rechts der Rest */
.rg-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.rg-col > .rg-label:first-child { margin-top: 0; }
@media (max-width: 720px) {
  .rg-cols { grid-template-columns: 1fr; gap: 0; }
  .rg-col + .rg-col > .rg-label:first-child { margin-top: 14px; } /* 2. Spalte beim Stapeln wieder absetzen */
}
.rg-mandatory { font-size: 12.5px; color: var(--ink-mute); margin: -6px 0 14px; }
.rg-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-mute); margin: 14px 0 5px; }
.rg-label sup { color: var(--brand-strong); }
.rg-label a { color: var(--brand-strong); text-decoration: none; }
[data-theme="dark"] .rg-label a { color: var(--brand); }
.rg-label a:hover { text-decoration: underline; }
.rg-req { color: #e03; font-weight: 700; }
.rg-form input[type=text], .rg-form input[type=password], .rg-form input[type=email], .rg-form input[type=number], .rg-form select {
  width: 100%; padding: 11px 13px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink); font: inherit; font-size: 14px; outline: none; box-sizing: border-box; }
.rg-form input:focus, .rg-form select:focus { border-color: var(--brand); }
.rg-radios { display: flex; flex-direction: column; gap: 6px; }
.rg-radios .radio-row { margin-top: 0; }
.rg-check { display: flex; align-items: flex-start; gap: 9px; margin-top: 16px; font-size: 14px; color: var(--ink-soft); cursor: pointer; }
.rg-check input { width: 17px; height: 17px; margin-top: 1px; accent-color: var(--brand); flex: none; }
.rg-typdesc { margin-top: 18px; font-size: 12.5px; color: var(--ink-mute); line-height: 1.5; }
.rg-success { padding: 24px 26px; font-size: 15px; color: var(--ink-soft); line-height: 1.6; max-width: 640px; }
.rg-hint { font-weight: 400; font-size: 11.5px; color: var(--ink-mute); text-transform: none; letter-spacing: 0; }
.rg-form input:disabled { opacity: .6; cursor: not-allowed; }
.rg-danger { max-width: 640px; margin-top: 16px; }
.rg-delbtn:hover { border-color: #e03; color: #e03; }

/* ============================================================
   MAGIC PIC UPLOAD (magicpicupload.php) — ersetzt Bootstrap-Widget
   ============================================================ */
.mp { max-width: 900px; }
.mp .btn { display: inline-flex; align-items: center; gap: 7px; }
.mp .btn svg { width: 16px; height: 16px; flex: none; }
.mp-intro { display: flex; align-items: center; gap: 22px; padding: 20px 24px; margin-bottom: 18px; }
.mp-illu { width: 150px; height: auto; flex: none; }
.mp-desc { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; }
.mp-desc ul { margin: 0; padding-left: 18px; }
.mp-dropzone { padding: 18px; border: 2px dashed var(--brand); background: var(--surface); min-height: 280px; position: relative; }
.mp-dnd { position: absolute; top: -65px; right: -80px; width: 140px; height: auto; pointer-events: none; z-index: 2; }
.mp-dropzone.in, .mp-dropzone.hover { border-color: var(--brand-strong); background: var(--brand-soft); }
[data-theme="dark"] .mp-dropzone.in, [data-theme="dark"] .mp-dropzone.hover { background: rgba(20,168,218,.12); }

.mp-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.fileinput-button { position: relative; overflow: hidden; }
.fileinput-button input { position: absolute; top: 0; right: 0; margin: 0; opacity: 0; font-size: 200px; direction: ltr; cursor: pointer; height: 100%; }
.mp-selall { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-mute); }
.mp-selall input { width: 16px; height: 16px; accent-color: var(--brand); }
.fileupload-loading { display: none; width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--brand);
  border-radius: 50%; animation: mp-spin .8s linear infinite; }
.fileupload-processing .fileupload-loading { display: inline-block; }
@keyframes mp-spin { to { transform: rotate(360deg); } }

.mp-progress { flex: 1; min-width: 160px; max-width: 320px; margin-left: auto; }
.mp-progress .progress { height: 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.mp-progress .bar { height: 100%; background: var(--brand); border-radius: 999px; transition: width .3s ease; }
.mp-progress .progress-extended { font-size: 11px; color: var(--ink-mute); margin-top: 4px; }

.mp .fade { opacity: 0; transition: opacity .15s linear; }
.mp .fade.in { opacity: 1; }

.mp-files { width: 100%; border-collapse: collapse; }
.mp-files td { padding: 12px 10px; border-top: 1px solid var(--line-soft); vertical-align: middle; }
.mp-files tr:first-child td { border-top: none; }
.mp-c-prev { width: 90px; }
.mp-c-prev .preview img, .mp-c-prev .preview canvas { max-width: 80px; max-height: 80px; border-radius: 10px; display: block; box-shadow: var(--shadow-sm); }
.mp-c-name { min-width: 0; }
.mp-c-name .name { margin: 0; font-size: 14px; color: var(--ink); word-break: break-word; }
.mp-c-name .name a { color: var(--brand-strong); text-decoration: none; font-weight: 600; }
[data-theme="dark"] .mp-c-name .name a { color: var(--brand); }
.mp-c-name .name a:hover { text-decoration: underline; }
.mp-c-act { width: 1%; white-space: nowrap; text-align: right; }
.mp-c-act .btn { padding: 8px 12px; font-size: 13px; }
.mp-c-act .toggle { width: 16px; height: 16px; margin-left: 8px; vertical-align: middle; accent-color: var(--brand); }
.mp-label { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.mp-label.error { background: rgba(224,0,51,.12); color: #e03; }
.mp-label.info { background: var(--brand-soft); color: var(--brand-strong); }
[data-theme="dark"] .mp-label.info { background: rgba(20,168,218,.16); color: var(--brand); }
.ui-state-highlight { height: 100px; }

@media (max-width: 560px) {
  .mp-intro { flex-direction: column; text-align: center; }
  .mp-progress { margin-left: 0; }
  .mp-dnd { display: none; }
}

/* Bildverwaltung (bildverwaltung.php) — nutzt .mp-* + Video-Panel */
.bv-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 22px; align-items: start; max-width: none; }
.bv-pics { min-width: 0; }
.bv-hint { font-size: 13px; color: var(--ink-mute); line-height: 1.55; margin-top: 12px; }
.bv-videos { padding: 18px 20px; }
.bv-vidadd { margin: 6px 0 16px; }
.bv-vidlabel { font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.bv-vidhint { max-width: 100%; height: auto; margin-bottom: 10px; border-radius: 8px; }
.bv-vidform { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.bv-vidform input[type=text] { width: 90px; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink); font: inherit; font-size: 13px; outline: none; }
.bv-vidform input[type=text]:focus { border-color: var(--brand); }
.bv-vidform select { padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--ink); font: inherit; font-size: 13px; outline: none; }
.bv-vidlist { display: flex; flex-direction: column; gap: 10px; }
.bv-vid { position: relative; line-height: 0; }
.bv-vid img { width: 100%; border-radius: 10px; }
.bv-viddel { position: absolute; top: 6px; right: 6px; display: inline-flex; padding: 6px; border-radius: 8px;
  background: rgba(4,20,30,.62); color: #fff; border: none; cursor: pointer; line-height: 0; }
.bv-viddel:hover { background: #e03; }
.bv-viddel svg { width: 15px; height: 15px; }
.bv-caption { width: 100%; height: 48px; margin-top: 6px; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink); font: inherit; font-size: 12.5px; outline: none; resize: vertical; box-sizing: border-box; }
.bv-caption:focus { border-color: var(--brand); }
/* per-row upload progress + size */
.mp-files .size { margin: 2px 0; font-size: 11.5px; color: var(--ink-mute); }
.mp-files .progress { height: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin: 4px 0; max-width: 220px; }
.mp-files .bar { height: 100%; background: var(--brand); border-radius: 999px; transition: width .3s ease; }

@media (max-width: 760px) {
  .bv-layout { grid-template-columns: 1fr; }
}

/* ============================================================
   TAUCHGANG-EDITOR (table_edit.php via tgedit.php)
   ============================================================ */
.tgedit.card { max-width: 840px; padding: 26px 28px; line-height: normal; }
.tgedit-h { font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(19px,2.2vw,23px); color: var(--ink); }
.tgedit-mand { font-size: 12.5px; color: var(--ink-mute); margin: 4px 0 20px; }
.tgedit .tgeditblock { display: inline-block; vertical-align: top; width: 210px; margin: 0 16px 14px 0; white-space: nowrap; }
.tgedit .tgeditblock-narrow { width: auto; }
.tgedit label.desc, .tgedit .desc { display: block; margin: 0 0 5px; font-size: 12px; font-weight: 600; color: var(--ink-mute);
  text-transform: none; letter-spacing: 0; white-space: normal; }
.tgedit label.desc font { font-size: 1em !important; }
.tgedit .input, .tgedit input[type=text], .tgedit input[type=date], .tgedit input[type=time], .tgedit input[type=number], .datefield {
  padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--ink); font: inherit; font-size: 14px; outline: none; box-sizing: border-box; }
/* Text-/Datum-/Zeit-Felder füllen die Spaltenbreite */
.tgedit .tgeditblock input[type=text], .tgedit .tgeditblock input[type=date], .tgedit .tgeditblock input[type=time],
.tgedit .tgeditblock > textarea.input { width: 100%; }
/* Zahlenfelder schmal, Einheit bleibt inline dahinter */
.tgedit input.numberinput { width: 84px !important; }
.tgedit .tgeditblock .input:focus, .tgedit .tgeditblock input:focus { border-color: var(--brand); box-shadow: none; }
.tgedit-maprow { margin-top: 22px; }
.tgedit-copyall { margin-top: 12px; }
.tgedit-volrow { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.tgedit .tgedit-2x { display: inline-flex; align-items: center; gap: 5px; margin: 0; font-size: 13px; font-weight: 600;
  color: var(--ink-soft); white-space: nowrap; cursor: pointer; }
.tgedit .tgedit-2x input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--brand); }
.tgedit textarea.input { padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--ink); font: inherit; font-size: 14px; outline: none; box-sizing: border-box; }
.tgedit textarea.input:focus { border-color: var(--brand); box-shadow: none; }
.tgedit input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--brand); vertical-align: middle; }
/* duration block height an Inputs angleichen */
.tgedit .durationblock { min-width: 0; border-radius: 11px; padding: 6px 10px; }
.tgedit .durationblock input[type=number] { width: 34px !important; min-width: 0; }
/* Map-Sektion */
.tgedit #gmaps { margin-top: 12px; }
.tgedit-map { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); margin-top: 10px; }
.tgedit #mapInputs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.tgedit #mapInputs .desc { display: inline; margin: 0; }
.tgedit #mapInputs input[type=text] { padding: 7px 9px; border-radius: 9px; min-width: 70px; }
.tgedit input[type=button] { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color .15s, color .15s; }
.tgedit input[type=button]:hover { border-color: var(--brand); color: var(--brand-strong); }
.tgedit #searchButton { display: inline-flex; align-items: center; gap: 5px; color: var(--brand-strong); text-decoration: none; font-weight: 600; }
[data-theme="dark"] .tgedit #searchButton { color: var(--brand); }
.tgedit #useMaps { margin-right: 6px; }

/* Quick-Edit-Grid (tableedit.php, standalone) */
.te-page { background: var(--bg); color: var(--ink); }
.te-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.te-title { font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(18px,2.2vw,22px); color: var(--ink); }
.te-head .btn { margin-left: auto; }
.te-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.te-addrows { display: inline-flex; align-items: center; gap: 8px; }
.te-num { width: 56px; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--ink); font: inherit; font-size: 14px; outline: none; }
.te-num:focus { border-color: var(--brand); }
.te-scroll { overflow-x: auto; margin-bottom: 16px; }
.te-del:hover { border-color: #e03; color: #e03; }

/* ============================================================
   STATISCHE / RECHTLICHE SEITEN (impressum, datenschutz, faq, contact, druckvorlage, passwd, 404)
   ============================================================ */
.static-card { padding: 26px 30px; max-width: 880px; }
.static-card p { margin: 10px 0; line-height: 1.65; color: var(--ink-soft); }
.static-card a { color: var(--brand-strong); }
[data-theme="dark"] .static-card a { color: var(--brand); }

/* Impressum */
.imp-page { color: var(--ink-soft); line-height: 1.65; }
.imp-photo { float: right; width: 260px; max-width: 40%; border-radius: var(--r); margin: 0 0 16px 24px; }
.imp-disclaimer { margin-top: 18px; font-size: 12px; color: var(--ink-mute); line-height: 1.55; clear: both; }

/* Legal / Datenschutz */
.legal-page { line-height: 1.65; color: var(--ink-soft); }
.legal-page h2 { font-family: 'Sora', sans-serif; font-size: 22px; color: var(--ink); margin: 4px 0 16px; }
.legal-page h3 { font-family: 'Sora', sans-serif; font-size: 18px; color: var(--ink); margin: 26px 0 10px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.legal-page h4 { font-size: 15px; font-weight: 700; color: var(--ink); margin: 18px 0 4px; }
.legal-page p { margin: 8px 0; }
.legal-page ul { margin: 8px 0; padding-left: 22px; }
.legal-page a { color: var(--brand-strong); word-break: break-word; }
[data-theme="dark"] .legal-page a { color: var(--brand); }

/* FAQ */
.faq-toc { padding: 18px 22px; margin-bottom: 22px; }
.faq-toc ul { margin: 0; padding-left: 20px; }
.faq-toc li { margin: 6px 0; }
.faq-toc a { color: var(--brand-strong); text-decoration: none; }
[data-theme="dark"] .faq-toc a { color: var(--brand); }
.faq-toc a:hover { text-decoration: underline; }
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item { padding: 20px 24px; scroll-margin-top: 90px; }
.faq-q { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 16px; color: var(--ink); margin-bottom: 10px; }
.faq-a { font-size: 14.5px; color: var(--ink-soft); line-height: 1.65; }
.faq-top { display: inline-block; margin-top: 12px; font-size: 12.5px; color: var(--ink-mute); text-decoration: none; }
.faq-top:hover { color: var(--brand-strong); }

/* Druckvorlage */
.dv-list { display: flex; flex-direction: column; gap: 16px; }
.dv-card { display: flex; gap: 22px; align-items: flex-start; padding: 20px 24px; }
.dv-thumb { width: 150px; height: auto; flex: none; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-sm); }
.dv-text { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }
.dv-text a { color: var(--brand-strong); }
[data-theme="dark"] .dv-text a { color: var(--brand); }
.dv-foot { margin-top: 18px; font-size: 14px; color: var(--ink-soft); line-height: 1.6; max-width: 880px; }

/* Passwort-Reset */
.pw-card { max-width: 480px; padding: 26px 28px; }
.pw-intro { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; margin-bottom: 14px; }
.pw-form { display: flex; gap: 10px; flex-wrap: wrap; }
.pw-form input[type=text] { flex: 1; min-width: 180px; padding: 11px 13px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink); font: inherit; font-size: 14px; outline: none; }
.pw-form input[type=text]:focus { border-color: var(--brand); }
.pw-success { font-size: 15px; color: var(--ink-soft); line-height: 1.6; }
.contact-done { max-width: 560px; font-size: 15px; color: var(--ink-soft); line-height: 1.6; }

/* 404 */
.err-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); }
.err-box { text-align: center; padding: 40px; }
.err-logo { display: inline-block; margin-bottom: 24px; }
.err-code { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 80px; line-height: 1; color: var(--brand-strong); letter-spacing: -.02em; }
[data-theme="dark"] .err-code { color: var(--brand); }
.err-msg { font-size: 18px; color: var(--ink-soft); margin: 10px 0 26px; }

@media (max-width: 560px) {
  .imp-photo { float: none; width: 100%; max-width: 280px; margin: 0 0 16px; display: block; }
  .dv-card { flex-direction: column; }
}

/* ============================================================
   ACCOUNT-BLOCK: killtgs / buddy-invites / dive-verify / export / import / gearassign / iframes
   ============================================================ */

/* killalltgs */
.kill-card { max-width: 520px; padding: 30px 28px; text-align: center; border: 1px solid rgba(224,0,51,.35); }
.kill-ic { width: 44px; height: 44px; color: #e03; margin-bottom: 12px; }
.kill-text { font-size: 15px; color: var(--ink-soft); line-height: 1.55; margin-bottom: 20px; }
.kill-btn { background: #e03; color: #fff; box-shadow: var(--shadow-sm); }
.kill-btn:hover { background: #c00; transform: translateY(-2px); }

/* buddy invitations */
.bi-msg { margin: 4px 0 12px; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.bi-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* buddy dive verify */
.bdv-intro { color: var(--ink-soft); font-size: 14px; margin-bottom: 14px; }
.bdv-msg { margin-bottom: 14px; font-size: 14px; }
.bdv-card { padding: 6px; }
.bdv-scroll { overflow-x: auto; }
.bdv-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bdv-table td, .bdv-table th { padding: 10px 12px; }
.bdv-grouprow td { padding-top: 18px; }
.bdv-buddy { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.bdv-buddy img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; background: var(--surface-2); }
.bdv-buddy span { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 15px; }
.bdv-buddy:hover span { color: var(--brand-strong); }
.bdv-head th { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 11px; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: .04em; text-align: left; border-bottom: 1px solid var(--line); }
.bdv-table tbody tr:not(.bdv-grouprow):not(.bdv-head) td { border-top: 1px solid var(--line-soft); color: var(--ink-soft); }
.bdv-chk { text-align: center; width: 40px; }
.bdv-chk input { width: 17px; height: 17px; accent-color: var(--brand); }
.bdv-none { color: var(--ink-mute); }
.bdv-bar { display: flex; gap: 18px; flex-wrap: wrap; margin: 16px 4px 0; }
.bdv-opt { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--ink-soft); }
.bdv-opt input { width: 16px; height: 16px; accent-color: var(--brand); }
.bdv-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 4px 4px; }
.bdv-decline:hover { border-color: #e03; color: #e03; }

/* export hub */
.exp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px,1fr)); gap: 18px; }
.exp-card { padding: 20px 22px; }
.exp-body { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
.exp-body a { color: var(--brand-strong); text-decoration: none; font-weight: 600; }
[data-theme="dark"] .exp-body a { color: var(--brand); }
.exp-body a:hover { text-decoration: underline; }
.exp-thumb { max-width: 130px; height: auto; border-radius: 10px; border: 1px solid var(--line); }

/* import hub */
.imp-intro { color: var(--ink-soft); font-size: 14px; line-height: 1.55; margin-bottom: 16px; }
.imp-card { padding: 16px 18px; }
.imp-list { columns: 3 240px; column-gap: 12px; }
.imp-item { display: block; break-inside: avoid; text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 600;
  padding: 9px 12px; border-radius: 10px; margin-bottom: 4px; transition: background .15s, color .15s; }
.imp-item:hover { background: var(--surface-2); color: var(--brand-strong); }
[data-theme="dark"] .imp-item:hover { color: var(--brand); }
span.imp-item { cursor: help; }
.imp-new { color: #e03; font-weight: 800; font-size: 9px; text-transform: uppercase; vertical-align: super; }

/* gear assign matrix */
.ga-card { padding: 6px; }
.ga-scroll { overflow-x: auto; }
.ga-table { border-collapse: collapse; font-size: 13.5px; }
.ga-table thead th { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 11px; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: .03em; text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: bottom; }
.ga-c-gear { text-align: center !important; width: 56px; text-transform: none !important; vertical-align: bottom; padding: 8px 4px !important; }
.ga-c-gear img { width: 26px; height: 26px; display: block; margin: 0 auto 4px; border-radius: 6px; }
.ga-c-gear span { display: block; font-size: 9px; line-height: 1.15; font-weight: 600; color: var(--ink-soft); letter-spacing: 0; }
.ga-table tbody td { padding: 10px 10px; border-top: 1px solid var(--line-soft); color: var(--ink-soft); }
.ga-table tbody tr:hover { background: var(--surface-2); }
.ga-active { background: var(--brand-soft); }
[data-theme="dark"] .ga-active { background: rgba(20,168,218,.12); }
.ga-num { font-family: 'Sora', sans-serif; font-weight: 800; color: var(--brand-strong); text-decoration: none; }
[data-theme="dark"] .ga-num { color: var(--brand); }
.ga-chk { width: 56px; text-align: center !important; padding: 10px 4px !important; }
.ga-chk input { width: 17px; height: 17px; accent-color: var(--brand); margin: 0 auto; display: block; }
.ga-na { color: var(--ink-mute); opacity: .4; }

/* iframes / embed codes */
.ifr { max-width: 760px; }
.ifr-intro { color: var(--ink-soft); font-size: 14px; line-height: 1.55; margin-bottom: 16px; }
.ifr-wp { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--brand-strong);
  text-decoration: none; margin-bottom: 20px; }
[data-theme="dark"] .ifr-wp { color: var(--brand); }
.ifr-wp:hover { text-decoration: underline; }
.ifr-label { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 14px; color: var(--ink); margin: 18px 0 6px; }
.ifr-note { font-size: 13px; color: var(--ink-mute); margin-bottom: 8px; }
.ifr-code { padding: 14px 16px; font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 12px; line-height: 1.6; color: var(--ink-soft); background: var(--surface-2); word-break: break-all; }
.ifr-code a { color: var(--brand-strong); }
[data-theme="dark"] .ifr-code a { color: var(--brand); }
.ifr-preview { padding: 18px; background: var(--surface-2); border-radius: var(--r); margin: 10px 0 6px; }

@media (max-width: 560px) {
  .imp-list { columns: 1; }
}

/* ============================================================
   LOGBUCH-LAYOUT: Liste + Detail
   ============================================================ */
.lb-layout {
  display: grid; grid-template-columns: 340px 1fr; gap: 26px;
  align-items: start; margin-top: 26px; position: relative; z-index: 5;
  padding-bottom: 40px;
}

/* DIVE LIST (links) */
.divelist {
  padding: 0;
  max-height: calc(100vh - 108px); display: flex; flex-direction: column; overflow: hidden;
}
.divelist-top { padding: 14px 16px 12px; border-bottom: 1px solid var(--line); flex: none; }
.divelist-head { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 12px; }
.divelist-head h3 { font-size: 15px; color: var(--ink); }
.divelist-head .count { font-size: 12.5px; color: var(--ink-mute); font-weight: 700; }
.dl-search {
  display: flex; align-items: center; gap: 9px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px;
  padding: 9px 12px; transition: border-color .2s, box-shadow .2s;
}
.dl-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.dl-search svg { width: 16px; height: 16px; color: var(--ink-mute); flex: none; }
.dl-search input { border: none; outline: none; box-shadow: none; background: none; font-size: 14px; color: var(--ink); width: 100%; font-family: inherit; }
.dl-search input:focus { outline: none; box-shadow: none; }
.dl-search input::placeholder { color: var(--ink-mute); }
.dl-clear { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--line); color: var(--ink-soft); flex: none; }
.dl-clear:hover { background: var(--brand); color: var(--on-brand); }
.dl-clear svg { width: 12px; height: 12px; color: currentColor; }
.divelist-scroll { flex: 1; overflow-y: auto; padding: 0px 8px; scrollbar-width: thin; }
.divelist-scroll::-webkit-scrollbar { width: 4px; }
.divelist-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

/* Year group container */
.dl-year-group { display: contents; }

/* Year headers in list */
.dl-year {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center;
  justify-content: space-between; gap: 8px; padding: 9px 10px 7px; margin: 4px 0 2px;
  background: var(--surface); backdrop-filter: blur(4px);
  font-family: 'Sora'; font-weight: 800; font-size: 12.5px; color: var(--brand-strong); letter-spacing: .02em;
}
[data-theme="dark"] .dl-year { color: var(--brand); }
.dl-year::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 1px; background: var(--line); }
.dl-year .yc { font-family: 'Manrope'; font-weight: 700; color: var(--ink-mute); font-size: 11.5px; }
.dl-empty { padding: 30px 16px; text-align: center; color: var(--ink-mute); font-weight: 600; font-size: 14px; }
.dl-sentinel { height: 1px; }

/* Dive list item */
.dive-item {
  display: flex; gap: 13px; align-items: center; padding: 12px; border-radius: 14px;
  cursor: pointer; transition: background .16s; border: 1px solid transparent;
  width: 100%; text-align: left; background: none;
}
.dive-item:hover { background: var(--surface-2); }
.dive-item.active { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 35%, transparent); }
.dive-no {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  background: var(--surface-2); display: grid; place-items: center;
  font-family: 'Sora'; font-weight: 800; color: var(--brand-strong); font-size: 13px;
}
[data-theme="dark"] .dive-no { color: var(--brand); }
.dive-item.active .dive-no { background: var(--brand); color: var(--on-brand); }
.dive-info { flex: 1; min-width: 0; }
.dive-info b { display: block; font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dive-info span { font-size: 12px; color: var(--ink-mute); font-weight: 600; }
.dive-depth { font-family: 'Sora'; font-weight: 700; font-size: 13px; color: var(--ink-soft); white-space: nowrap; }

/* ============================================================
   DETAIL PANEL (rechts)
   ============================================================ */
.detail { display: flex; flex-direction: column; gap: 22px; }

/* Detail hero card */
.detail-hero { padding: 0; overflow: hidden; }
.detail-head { display: flex; align-items: center; gap: 18px; padding: 18px 24px; }
.detail-head .badge {
  flex: none; background: var(--brand); color: var(--on-brand);
  border-radius: 13px; padding: 8px 15px; font-family: 'Sora'; font-weight: 800;
  box-shadow: var(--shadow-brand); text-align: center; line-height: 1.05;
}
.detail-head .badge small { display: block; font-size: 9.5px; font-weight: 700; opacity: .85; }
.detail-head .badge b { font-size: 19px; }
.detail-head .place { flex: 1; min-width: 0; }
.detail-head .place h2 { color: var(--ink); font-size: clamp(18px,2vw,25px); }
.detail-head .place p { font-weight: 600; color: var(--ink-soft); margin-top: 2px; font-size: 14px; }
.detail-head .actions { flex: none; display: flex; gap: 8px; }
/* Aktionen-Dropdown im Hero darf nach unten aus der Karte ragen */
.detail-hero:has(.act-menu[data-open]) { overflow: visible; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 11px; background: var(--surface-2);
  border: 1px solid var(--line); color: var(--ink-soft);
  display: grid; place-items: center;
  transition: background .18s, transform .18s, color .18s, border-color .18s;
}
.icon-btn:hover { background: var(--brand-soft); color: var(--brand-strong); border-color: var(--brand); transform: translateY(-1px); }
[data-theme="dark"] .icon-btn:hover { color: var(--brand); }
.icon-btn svg { width: 18px; height: 18px; }
button.icon-btn { cursor: pointer; font: inherit; padding: 0; }
button.icon-btn:disabled { opacity: .32; cursor: default; }
button.icon-btn:disabled:hover { background: var(--surface-2); color: var(--ink-soft); border-color: var(--line); transform: none; }
.action-sep { width: 1px; align-self: stretch; margin: 4px 2px; background: var(--line); }

/* Key stats strip */
.kstats { display: grid; grid-template-columns: repeat(5,1fr); border-top: 1px solid var(--line); }
.kstat { padding: 18px 16px; text-align: center; position: relative; }
.kstat + .kstat::before { content: ""; position: absolute; left: 0; top: 20%; height: 60%; width: 1px; background: var(--line); }
.kstat .lab { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11px; color: var(--ink-mute); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.kstat .lab svg { width: 13px; height: 13px; color: var(--brand); }
.kstat .val { font-family: 'Sora'; font-weight: 800; font-size: 20px; color: var(--ink); margin-top: 5px; }
.kstat .val small { font-size: 12px; color: var(--ink-mute); font-weight: 600; }
.kstat .logbookvalue { display: inline; }

/* Tabs */
.tabs { display: flex; gap: 4px; padding: 6px; background: var(--surface-2); border-radius: 14px; width: fit-content; }
.tab { padding: 9px 18px; border-radius: 10px; font-weight: 700; font-size: 14px; color: var(--ink-soft); transition: background .16s, color .16s; }
.tab.active { background: var(--surface); color: var(--brand-strong); box-shadow: var(--shadow-sm); }
[data-theme="dark"] .tab.active { color: var(--brand); }
.tabpanel { display: none; }
.tabpanel.active { display: block; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Detail grid (Overview tab) */
.detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; align-items: start; }
.detail-fullrow { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 18px; }
.block { padding: 24px; }
.block h3 {
  font-size: 16px; color: var(--ink); margin-bottom: 16px;
  display: flex; align-items: center; gap: 9px;
}
.block h3 svg { width: 18px; height: 18px; color: var(--brand); }
.profile-wrap { padding: 8px 4px 0; }

/* DL (details list) */
.dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
/* Übersicht → Details: Tauchplatz + Ort über volle Breite, Rest 2-spaltig */
.detail-grid .dl > .dl-item:nth-child(1),
.detail-grid .dl > .dl-item:nth-child(2) { grid-column: 1 / -1; }
.dl-item { display: flex; flex-direction: column; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.dl-item .k { font-size: 12.5px; color: var(--ink-mute); font-weight: 600; }
.dl-item .v { font-family: 'Sora'; font-weight: 700; font-size: 15px; color: var(--ink); }
.notes { color: var(--ink-soft); font-size: 15px; line-height: 1.7; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.gallery .ph { aspect-ratio: 1; border-radius: 14px; transition: transform .2s; }
.gallery .ph:hover { transform: scale(1.03); }
.gallery .ph.wide { grid-column: span 2; aspect-ratio: 2/1; }
.gallery .ph.is-video { position: relative; }
.gallery .ph.is-video::after {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(8,28,40,.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  background-size: 16px; background-repeat: no-repeat; background-position: 56% center;
  border: 2px solid rgba(255,255,255,.7);
}
.gallery-empty {
  padding: 30px 16px; text-align: center; color: var(--ink-mute); font-weight: 600; font-size: 14px;
  border: 1px dashed var(--line); border-radius: 14px;
}

/* Lightbox pics in new layout */
.gallery-pics { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.gallery-pics a { display: block; border-radius: 14px; overflow: hidden; }
.gallery-pics img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; transition: transform .2s; }
.gallery-pics a:hover img { transform: scale(1.04); }

/* ============================================================
   FOTO-GALERIE (picturegallery.php, /pics/{user})
   ============================================================ */
.pg-head { display: flex; align-items: baseline; gap: 12px; margin: 4px 0 22px; }
.pg-head h2 { font-size: clamp(20px,2.4vw,27px); color: var(--ink); }
.pg-count { font-size: 14px; font-weight: 700; color: var(--ink-mute); }
.pg-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)); gap: 20px;
}
.pg-card {
  margin: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.pg-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--brand); }
.pg-card > a { display: block; line-height: 0; overflow: hidden; }
.pg-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--surface-2); transition: transform .25s; }
.pg-card:hover img { transform: scale(1.05); }
.pg-meta { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 5px; }
.pg-place { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 14.5px; color: var(--ink); line-height: 1.25; }
.pg-caption { font-size: 13px; color: var(--ink-mute); line-height: 1.45; white-space: pre-line; }
.pg-meta mark { background: var(--brand-soft); color: var(--brand-strong); padding: 0 3px; border-radius: 4px; }
[data-theme="dark"] .pg-meta mark { color: var(--brand); }
/* Video-Cards (explore): Play-Overlay auf dem Thumbnail */
.pg-video > a { position: relative; }
.pg-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 54px; height: 54px; display: grid; place-items: center; pointer-events: none;
  background: rgba(12,38,56,.55); border-radius: 999px; color: #fff; transition: background .18s, transform .18s; }
.pg-play svg { width: 26px; height: 26px; margin-left: 3px; }
.pg-card.pg-video:hover .pg-play { background: var(--brand); transform: translate(-50%,-50%) scale(1.08); }
.pg-pagination { text-align: center; margin: 6px 0 24px; }
.pg-empty {
  padding: 44px 16px; text-align: center; color: var(--ink-mute); font-weight: 600; font-size: 15px;
  border: 1px dashed var(--line); border-radius: var(--r);
}
@media (max-width: 560px) {
  .pg-grid { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 12px; }
  .pg-meta { padding: 10px 11px 12px; }
}

/* ============================================================
   VIDEO-GALERIE (videogallery.php, /videos/{user})
   nutzt .pg-grid / .pg-head / .pg-pagination / .pg-empty mit
   16:9-Thumbnails + Play-Overlay
   ============================================================ */
.vg-card {
  margin: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.vg-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--brand); }
.vg-thumb { position: relative; display: block; line-height: 0; background: #000; overflow: hidden; }
.vg-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; transition: transform .25s, opacity .2s; }
.vg-card:hover .vg-thumb img { transform: scale(1.05); opacity: .82; }
.vg-play { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.vg-play > span {
  width: 54px; height: 54px; border-radius: 50%; background: rgba(0,0,0,.55);
  display: grid; place-items: center; transition: background .18s, transform .18s;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.vg-card:hover .vg-play > span { background: var(--brand); transform: scale(1.08); }
.vg-play svg { width: 22px; height: 22px; fill: #fff; margin-left: 3px; }
.vg-meta { padding: 12px 14px 14px; }
.vg-place { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 14.5px; color: var(--ink); line-height: 1.25; }
.vg-sub { font-size: 13px; color: var(--ink-mute); margin-top: 3px; }

/* ============================================================
   BUDDIES / BUDDY-NEWS (buddynews.php, /buddies/{user})
   ============================================================ */
.bn-h2 { font-family: 'Sora', sans-serif; font-size: clamp(19px,2.2vw,24px); color: var(--ink);
  display: flex; align-items: baseline; gap: 11px; margin: 8px 0 18px; }
.bn-h2 .c { font-size: 14px; font-weight: 700; color: var(--ink-mute); }
.bn-empty { padding: 32px 16px; text-align: center; color: var(--ink-mute); font-weight: 600; font-size: 15px;
  border: 1px dashed var(--line); border-radius: var(--r); }

/* Buddy-Karten */
.bd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 18px; margin-bottom: 8px; }
.bd-card { display: block; position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); color: inherit; text-decoration: none;
  transition: transform .18s, box-shadow .18s, border-color .18s; }
.bd-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--brand); }
.bd-cover { height: 84px; background-size: cover; background-position: center; background-color: var(--surface-2); }
.bd-del { position: absolute; top: 10px; right: 10px; z-index: 3; width: 30px; height: 30px;
  display: grid; place-items: center; border-radius: 50%; background: rgba(8,28,40,.5); color: #fff;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.25);
  cursor: pointer; opacity: 0; transform: scale(.85); transition: opacity .18s, transform .18s, background .18s; }
.bd-del svg { width: 15px; height: 15px; }
.bd-card:hover .bd-del { opacity: 1; transform: scale(1); }
.bd-del:hover { background: var(--error, #e0364f); border-color: transparent; }
@media (hover: none) { .bd-del { opacity: .8; transform: none; } }
.bd-body { padding: 0 16px 16px; margin-top: -26px; }
.bd-av { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; display: block;
  border: 3px solid var(--surface); background: var(--surface-2); box-shadow: var(--shadow-sm); }
.bd-name { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 16px; color: var(--ink); margin-top: 9px; }
.bd-sub { font-size: 13px; color: var(--ink-soft); font-weight: 600; margin-top: 1px; }
.bd-loc { font-size: 12.5px; color: var(--ink-mute); margin-top: 5px; display: flex; align-items: center; gap: 5px; }
.bd-loc svg { width: 13px; height: 13px; flex: none; }
.bd-badge { position: absolute; top: 12px; right: 12px; background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; box-shadow: var(--shadow-sm); }
/* Dives-confirmed-Badge: im weissen Body-Bereich (in-flow), nicht auf dem Cover */
.bd-dives { display: inline-block; margin-top: 10px; background: var(--brand-soft); color: var(--brand-strong);
  font-size: 11.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
[data-theme="dark"] .bd-dives { color: var(--brand); }
.bd-badge.admin { background: #1aa64b; }
.bd-badge.req   { background: #f59e0b; }
.bd-badge.ban   { background: #e03; }
.bd-req { position: absolute; top: 12px; left: 12px; min-width: 20px; height: 20px; padding: 0 6px;
  display: grid; place-items: center; border-radius: 999px; background: #e03; color: #fff;
  font-size: 11px; font-weight: 800; box-shadow: var(--shadow-sm); }

/* Aktivitäts-Feed */
.bn-months { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--ink-soft); margin-bottom: 18px; }
.bn-months select { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.bn-feed { display: flex; flex-direction: column; gap: 16px; }
.bn-item { display: flex; gap: 18px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.bn-who { flex: none; width: 76px; text-align: center; text-decoration: none; color: var(--ink); }
.bn-who img { width: 58px; height: 58px; border-radius: 15px; object-fit: cover; background: var(--surface-2); margin: auto;}
.bn-who b { display: block; font-size: 12.5px; margin-top: 6px; word-break: break-word; }
.bn-who:hover b { color: var(--brand-strong); }
[data-theme="dark"] .bn-who:hover b { color: var(--brand); }
.bn-body { flex: 1; min-width: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.bn-block { padding: 9px 0; }
.bn-block:first-child { padding-top: 2px; }
.bn-block + .bn-block { border-top: 1px solid var(--line-soft); }
.bn-label { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 13px; color: var(--brand-strong);
  margin-bottom: 6px; display: flex; align-items: center; gap: 7px; }
[data-theme="dark"] .bn-label { color: var(--brand); }
.bn-label svg { width: 15px; height: 15px; flex: none; }
.bn-dive { padding: 2px 0; }
.bn-dive a { font-weight: 700; color: var(--brand-strong); text-decoration: none; }
[data-theme="dark"] .bn-dive a { color: var(--brand); }
.bn-dive .ic { display: inline-flex; vertical-align: middle; margin-left: 4px; color: var(--ink-mute); }
.bn-dive .ic svg { width: 15px; height: 15px; }
.bn-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.bn-thumb { display: block; border-radius: 10px; overflow: hidden; line-height: 0; position: relative; box-shadow: var(--shadow-sm); }
.bn-thumb img { height: 66px; width: auto; display: block; }
.bn-thumb.vid::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.28); }
.bn-thumb.vid::before { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  z-index: 1; border-left: 13px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.bn-headerpic { border-radius: 12px; max-width: 300px; width: 100%; margin-top: 4px; }
.bn-userpic { border-radius: 12px; width: 120px; margin-top: 4px; }
@media (max-width: 560px) {
  .bn-item { gap: 12px; padding: 14px; }
  .bn-who { width: 60px; }
  .bn-who img { width: 48px; height: 48px; }
}

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip { background: var(--brand-soft); color: var(--brand-strong); font-weight: 700; font-size: 13px; padding: 6px 13px; border-radius: 999px; }
[data-theme="dark"] .tag-chip { color: var(--brand); }

/* Buddy */
.buddy { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.buddy:last-child { border-bottom: none; }
.buddy-av { width: 38px; height: 38px; border-radius: 11px; background: var(--brand-soft); color: var(--brand-strong); display: grid; place-items: center; font-family: 'Sora'; font-weight: 800; font-size: 14px; overflow: hidden; }
.buddy-av img { width: 38px; height: 38px; object-fit: cover; border-radius: 11px; }
[data-theme="dark"] .buddy-av { color: var(--brand); }
.buddy b { font-size: 14px; color: var(--ink); }
.buddy span { font-size: 12.5px; color: var(--ink-mute); display: block; }

/* ============================================================
   INLINE EDITING  (logbookvalue)
   ============================================================ */
.logbookvalue {
  display: inline-block; min-width: 30px;
  border-radius: 6px; padding: 1px 4px; margin: -1px -4px;
  transition: background .15s;
}
/* Hover-Hinweis nur bei editierbaren (=eigenen) Feldern: onclick existiert nur bei $owndive */
.logbookvalue[onclick]:hover { background: var(--brand-soft); cursor: text; }
.inlineedit-active .logbookvalue { background: var(--brand-soft); }
/* Remove the red hover from old CSS if loaded */
.detail .logbookvalue[onclick]:hover { background: var(--brand-soft) !important; cursor: text !important; }
/* Notizen-Feld immer Block (volle Breite, auch im Editiermodus) */
.notes.logbookvalue { display: block; }
/* Leeres, editierbares Notizen-Feld: volle Breite + höher, nur bei Hover sichtbar */
.notes.logbookvalue[onclick]:empty {
  width: 100%; min-height: 54px; box-sizing: border-box;
  margin: 6px 0 0; padding: 0; border-radius: 12px;
  cursor: pointer; transition: background .15s;
}
.notes.logbookvalue[onclick]:empty:hover { background: var(--brand-soft); }
/* Editier-Textarea: min. 3 Zeilen, volle Breite */
.notes #editform { display: block; width: 100%; }
.notes #editform textarea, .notes textarea.normal {
  width: 100%; min-height: 4.8em; line-height: 1.5em; resize: vertical; box-sizing: border-box;
  padding: 10px 12px; border-radius: 11px; border: 1px solid var(--brand);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; outline: none;
}

/* Sort / nav arrows between dives */

.dive-nav-btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px;
  border-radius: 999px; font-size: 13px; font-weight: 700;
  border: 1px solid var(--line); color: var(--ink-soft); background: var(--surface-2);
  transition: border-color .18s, color .18s;
}
.dive-nav-btn:hover { border-color: var(--brand); color: var(--brand-strong); }
.dive-nav-btn svg { width: 14px; height: 14px; }

/* Tank icon click-to-toggle */
.tankicon { display: inline-block; cursor: pointer; user-select: none; }
.tankicon img { display: block; }

/* Tank tabs (within gear tab) */
.tank-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 16px; }
.tank-tab {
  padding: 7px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 700;
  color: var(--ink-soft); background: var(--surface-2); border: 1px solid var(--line);
  cursor: pointer; transition: all .16s;
}
.tank-tab:hover { border-color: var(--brand); color: var(--brand-strong); }
.tank-tab.active { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }

/* Click-open dropdown support (.open class toggled by JS) */
.drop-wrap.open .drop { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; }

/* Dropdown arrow icon on nav links */
.nav-link .arr, .nav-user .arr { width: 13px; height: 13px; opacity: .55; flex: none; margin-left: -3px; }

/* Brand text fallback when logo SVG is missing */
.brand-text { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 22px; color: var(--ink); letter-spacing: -.03em; }

/* Danger link in user dropdown */
.drop-danger { color: #cc2200 !important; font-weight: 700; }
.drop-danger:hover { background: #fff0ed !important; }
[data-theme="dark"] .drop-danger { color: #ff6b6b !important; }
[data-theme="dark"] .drop-danger:hover { background: rgba(255,50,50,.1) !important; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--surface); border-top: 1px solid var(--line);
  padding: 52px 0 28px; margin-top: 60px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px;
  padding-bottom: 40px; border-bottom: 1px solid var(--line);
}
.footer-logo-link img { height: 75px; width: auto; display: block; margin-bottom: 14px;
  filter: saturate(1.2) brightness(.72); }
[data-theme="dark"] .footer-logo-link img { filter: none; }
.footer-logo-text { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 20px;
  color: var(--ink); letter-spacing: -.03em; display: block; margin-bottom: 14px; }
.footer-col p { font-size: 14px; color: var(--ink-mute); line-height: 1.6; max-width: 280px; margin-bottom: 18px; }
.flags-foot { display: flex; flex-wrap: wrap; gap: 8px; }
.flags-foot a img { border-radius: 3px; opacity: .7; transition: opacity .15s; }
.flags-foot a:hover img { opacity: 1; }
.footer-head { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: .08em; color: var(--ink-mute); margin-bottom: 14px; }
.footer-col a {
  display: block; font-size: 14px; font-weight: 600; color: var(--ink-soft);
  padding: 5px 0; transition: color .15s;
}
.footer-col a:hover { color: var(--brand-strong); }
[data-theme="dark"] .footer-col a:hover { color: var(--brand); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 20px; flex-wrap: wrap; gap: 12px;
}

.footer-copy { font-size: 13px; color: var(--ink-mute); }

/* ============================================================
   OLD-PAGE COMPATIBILITY (non-migrated pages use new nav)
   ============================================================ */
body.legacy-page {
  background: var(--bg);
}
.legacy-page #container {
  max-width: var(--maxw); margin: 0 auto; padding: 20px 28px;
}
.legacy-page #main { min-height: 60vh; }
.legacy-page #c_content,
.legacy-page #c_content_index {
  padding-bottom: 20px;
}
/* Keep some basic legacy styles for pages not yet migrated */
.legacy-page .rounded { border-radius: var(--r-sm); }
.legacy-page .shaded { box-shadow: var(--shadow-sm); }
.legacy-page .shaded2 { box-shadow: var(--shadow-sm); }
.legacy-page .blue { color: var(--brand-strong); }
.legacy-page .gross { font-size: 20px; font-weight: 700; color: var(--ink); }
.legacy-page .modern {
  padding: 8px 16px; border-radius: 8px; background: var(--brand); color: var(--on-brand);
  font-weight: 700; font-size: 14px; border: none; cursor: pointer;
}
.legacy-page .modern:hover { background: var(--brand-strong); }
.legacy-page table { width: 100%; }
.legacy-page .input {
  padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink); font: inherit; width: 100%; outline: none;
}
.legacy-page .input:focus { border-color: var(--brand); }
.legacy-page a { color: var(--brand-strong); }
.legacy-page a:hover { color: var(--brand); }
/* Login-Button: überall weiße Schrift (wie auf index), nicht von der generischen Legacy-Link-Farbe/-Hover übersteuern */
.legacy-page .nav-login,
.legacy-page .nav-login:hover { color: var(--on-brand); }
/* User-Button (jetzt ein Link auf /log/user): Nav-Farbe behalten, nicht von der Legacy-Link-Farbe übersteuern */
.legacy-page .nav-user,
.legacy-page .nav-user:hover { color: var(--ink-soft); }
/* Sortier-Tabs (Galerien/User-Liste): nicht von der generischen Legacy-Link-Hoverfarbe übersteuern */
.legacy-page .ul-tab:hover { color: var(--ink); }
.legacy-page .ul-tab.active,
.legacy-page .ul-tab.active:hover { color: var(--on-brand); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 18px; padding: 40px 36px; }
  /* Slider auf Mobile auf Inhaltshöhe schrumpfen (Slides gestapelt statt fix 440px),
     damit der Abstand zum Text klein bleibt */
  .hero-visual { height: auto; min-height: 0; }
  .hero-slides { position: static; display: grid; }
  .hero-slide { position: static; grid-area: 1 / 1; }
  .features { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 980px) {
  .lb-layout { grid-template-columns: 1fr; }
  .divelist { position: static; max-height: 50vh; order: 2; }
  .kstats { grid-template-columns: repeat(3,1fr); }
  .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  /* Mobile-Nav: nur Logo + Hamburger; alles andere in den Drawer */
  .nav-links, .nav-right { display: none; }
  .nav-burger { display: flex; }
  .nav .wrap { gap: 12px; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat:nth-child(5) { grid-column: span 2; }
  .stat + .stat::before { display: none; }
  .stat { padding: 14px 12px; }
  .stat-num { font-size: 22px; }
  .stat-label { font-size: 11.5px; margin-top: 3px; }
  .stats { margin-top: -32px; }
  .cols { grid-template-columns: 1fr; }
  .appband { grid-template-columns: 1fr; }
  .appband-vis { margin-top: 24px; }
  .app-shot { width: 150px; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .kstats { grid-template-columns: repeat(3,1fr); }
  .gallery-pics { grid-template-columns: repeat(2,1fr); }
  .profile-bar { padding: 16px 18px 20px; gap: 16px; }
  .profile-av-wrap img { width: 92px; height: 92px; }
  .profile-av-wrap { margin-top: -60px; }
  .pstat { flex: 1; min-width: 0; padding: 8px; }
  .hero-inner { padding: 30px 24px; }
  /* Mobile: maximale Inhaltsbreite, Pfeile näher an den Hero-Rand */
  .hero-slide { padding: 0 8px; }
  .hero-arrows { left: -16px; right: -16px; padding: 0; }

  /* dive detail header: badge + actions on top row, place text full-width below */
  .detail-head { flex-wrap: wrap; padding: 14px 16px; gap: 10px 14px; }
  .detail-head .badge { order: 1; }
  .detail-head .actions { order: 1; margin-left: auto; }
  .detail-head .place { order: 2; flex: 0 0 100%; min-width: 0; }
  .detail-head .place h2 { font-size: 19px; }
  .detail-head .place p { font-size: 13px; line-height: 1.5; }

  /* divelist on mobile: less height, hidden by default */
  .divelist { max-height: 40vh; }
}

/* Gear items in dive detail */
.gear-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 4px 0;
}
.gear-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 6px 6px 4px;
  min-width: 56px;
  text-align: center;
}
.gear-item .gear-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 15px;
  height: 15px;
  opacity: 0;
  transition: opacity 0.15s;
  cursor: pointer;
  display: block;
}
.gear-item:hover .gear-remove {
  opacity: 1;
}
.gear-item img.gear-icon {
  width: 44px;
  height: 44px;
  display: block;
}
.gear-item small {
  font-size: 11px;
  line-height: 1.3;
  color: var(--ink-mute);
}
.tank.dl {
  width: auto;
  float: none;
  grid-template-columns: repeat(3, 1fr);
}
.dl-spacer {
  border: none;
}

/* ============================================================
   Logbuch-Übersicht (tglist.php)
   ============================================================ */

/* Widen the content area for the logbook list */
#c_content:has(.logtable),
#c_content:has(.gear-page) {
  max-width: var(--maxw);
  padding: 20px 28px 30px;
}

/* logbookheader inside legacy #container: cancel double padding from container+wrap */
.legacy-page #container:has(> .lb-hero) {
  padding-top: 0;
}
.legacy-page #container > .lb-hero.wrap {
  padding-left: 0;
  padding-right: 0;
  max-width: none;
}

.lt-page { padding-top: 26px; padding-bottom: 60px; }

/* Tab-Leiste */
.lt-tabs { display: flex; align-items: flex-end; gap: 6px; margin-bottom: 20px; position: static; float: none; }
.lt-tab { display: inline-flex; align-items: center; padding: 6px 4px 12px; font-family: 'Sora', sans-serif;
  font-weight: 700; font-size: 17px; color: var(--brand-strong); position: relative; transition: color .16s; text-decoration: none; }
[data-theme="dark"] .lt-tab { color: var(--brand); }
.lt-tab + .lt-tab { margin-left: 18px; }
.lt-tab:hover { color: var(--ink); }
.lt-tab.active { color: var(--ink); font-size: 26px; letter-spacing: -.02em; padding-bottom: 10px; }
.lt-tab.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  border-radius: 3px; background: var(--brand); }

/* Toolbar */
.lt-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 16px; flex-wrap: wrap; }
.lt-count { font-size: 14px; font-weight: 700; color: var(--ink-mute); }
.lt-count b { color: var(--ink); font-family: 'Sora', sans-serif; }
.lt-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lt-search-wrap { display: contents; }
.lt-search { display: flex; align-items: center; gap: 9px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 15px; min-width: 220px; box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s; cursor: text; }
.lt-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.lt-search svg { width: 16px; height: 16px; color: var(--ink-mute); flex: none; }
.lt-search input { border: none; outline: none; background: none; font-size: 14px; color: var(--ink); width: 100%; }
.lt-search input::placeholder { color: var(--ink-mute); }
.lt-search-clear { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--line); color: var(--ink-soft); flex: none; border: none; padding: 0; cursor: pointer; transition: background .15s, color .15s; }
.lt-search-clear:hover { background: var(--brand); color: var(--on-brand); }
.lt-search-clear svg { width: 12px; height: 12px; color: currentColor; }

/* Sort- und Aktionen-Button */
.lt-sort { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 11px; padding: 9px 14px; font-weight: 700; font-size: 13.5px; color: var(--ink-soft);
  box-shadow: var(--shadow-sm); cursor: pointer; transition: border-color .16s, color .16s; }
.lt-sort:hover { border-color: var(--brand); color: var(--ink); }
.lt-sort svg { width: 15px; height: 15px; color: var(--brand-strong); }
[data-theme="dark"] .lt-sort svg { color: var(--brand); }
.lt-sort .caret { margin-left: 2px; opacity: .65; transition: transform .2s; }

/* Dropdown-Menüs */
.tb-menu { position: relative; }
.tb-menu[data-open] .caret { transform: rotate(180deg); }
.tb-pop { position: absolute; top: calc(100% + 8px); right: 0; min-width: 244px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 8px; z-index: 80; }
.tb-pop[hidden] { display: none; }
.tb-pop-label { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-mute); padding: 7px 10px 8px; }
.tb-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 12px;
  border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--ink-soft);
  transition: background .14s, color .14s; cursor: pointer; text-decoration: none; }
.tb-item svg { width: 18px; height: 18px; color: var(--brand-strong); flex: none; }
[data-theme="dark"] .tb-item svg { color: var(--brand); }
.tb-item:hover { background: var(--surface-2); color: var(--ink); }
.tb-item.active { background: var(--brand-soft); color: var(--brand-strong); }
[data-theme="dark"] .tb-item.active { color: var(--brand); }
.tb-item .dir { margin-left: auto; font-family: 'Sora', sans-serif; font-weight: 800; font-size: 13px; }
.tb-sep { height: 1px; background: var(--line); margin: 6px 8px; }
.lt-new { padding: 10px 18px; font-size: 14px; color: #fff !important; }
.lt-new svg { width: 18px; height: 18px; }

/* Tabelle */
.logtable { padding: 0; overflow: visible; }
.lt-grid { display: grid;
  grid-template-columns: 60px 158px minmax(220px, 1fr) 92px 92px 184px 124px;
  align-items: center; gap: 18px; padding: 0 24px; }

/* Kopfzeile */
.lt-head { position: sticky; top: var(--nav-h); z-index: 20; height: 52px; background: var(--surface);
  border-bottom: 1px solid var(--line); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.lt-head .h { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 13.5px;
  color: var(--brand-strong); letter-spacing: .01em; }
[data-theme="dark"] .lt-head .h { color: var(--brand); }
.lt-head .h-ic { display: flex; align-items: center; color: var(--brand-strong); }
[data-theme="dark"] .lt-head .h-ic { color: var(--brand); }
.lt-head .h-ic svg { width: 18px; height: 18px; }
.lt-head .h-icons { display: grid; grid-template-columns: repeat(3, 1fr); justify-items: center; }
.lt-head .h-icons svg { width: 17px; height: 17px; color: var(--brand-strong); }
[data-theme="dark"] .lt-head .h-icons svg { color: var(--brand); }

/* Zeilen */
.lt-row { color: inherit; text-decoration: none; min-height: 76px; border-bottom: 1px solid var(--line-soft);
  transition: background .15s; }
.lt-row:nth-child(even) { background: color-mix(in srgb, var(--brand-soft) 55%, transparent); }
[data-theme="dark"] .lt-row:nth-child(even) { background: rgba(255,255,255,.025); }
.lt-row:hover { background: var(--brand-soft); }
.lt-row:last-child { border-bottom: none; border-radius: 0 0 var(--r-lg) var(--r-lg); }

.lt-tg { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 16px;
  color: var(--brand-strong); letter-spacing: -.01em; }
[data-theme="dark"] .lt-tg { color: var(--brand); }

.lt-when { display: flex; flex-direction: column; line-height: 1.3; }
.lt-when b { font-weight: 700; font-size: 14px; color: var(--ink); }
.lt-when span { font-size: 12.5px; color: var(--ink-mute); font-weight: 600; }

.lt-place { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.lt-place b { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 14.5px; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt-place span { font-size: 13px; color: var(--ink-soft); font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.lt-depth { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 15px; color: var(--ink); }
.lt-depth small { font-size: 11.5px; color: var(--ink-mute); font-weight: 600; }
.lt-dur { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 14.5px; color: var(--ink-soft); }

/* Tauchprofil-Sparkline */
.lt-prof { width: 184px; height: 56px; border-radius: 9px; background: var(--surface-2);
  border: 1px solid var(--line-soft); position: relative; overflow: hidden;
 }
.lt-prof svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lt-prof.no-prof { background: none; border: none; }

/* Aktions-Icons */
.lt-icons { display: grid; grid-template-columns: repeat(3, 1fr); justify-items: center; align-items: center; }
.lt-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  color: var(--ink-soft); transition: background .15s, color .15s; }
.lt-ic svg { width: 19px; height: 19px; }
.lt-row:hover .lt-ic { color: var(--ink); }
.lt-ic:hover { background: var(--surface); color: var(--brand-strong); box-shadow: var(--shadow-sm); }
[data-theme="dark"] .lt-ic:hover { color: var(--brand); }
.lt-ic.off { opacity: 0; pointer-events: none; }

.lt-empty { padding: 40px; text-align: center; color: var(--ink-mute); font-weight: 600; }

/* Pagination-Wrapper */
.lt-pagination { margin-top: 20px; }

/* Responsive */
@media (max-width: 1080px) {
  .lt-grid { grid-template-columns: 52px 132px minmax(160px,1fr) 80px 76px 150px; gap: 14px; }
  .lt-icons, .lt-head .h-icons { display: none; }
  .lt-prof { width: 150px; }
}
@media (max-width: 820px) {
  .lt-grid { grid-template-columns: 50px minmax(150px,1fr) 78px 76px; }
  .lt-prof, .lt-head .h-ic, .lt-when { display: none; }
  .lt-place b { white-space: normal; }
}
@media (max-width: 520px) {
  .lt-grid { grid-template-columns: 46px minmax(120px,1fr) 70px; padding: 0 16px; }
  .lt-dur, .lt-head .h-dur { display: none; }
}

/* ============================================================
   AUSRÜSTUNG (gear.php) — Tabelle im Logbuch-Look
   ============================================================ */
.gear-page { padding-bottom: 50px; }
.gear-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.gear-h { font-family: 'Sora', sans-serif; font-size: clamp(20px,2.4vw,27px); color: var(--ink);
  display: flex; align-items: baseline; gap: 12px; }
.gear-count { font-size: 14px; font-weight: 700; color: var(--ink-mute); }
.gear-new { padding: 10px 18px; font-size: 14px; color: #fff !important; }
.gear-new svg { width: 18px; height: 18px; }

.gtbl-card { padding: 0; overflow: hidden; }
.gtbl-scroll { overflow-x: auto; }
.gtbl { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 1090px; }
.gtbl th { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 13.5px; text-align: left;
  color: var(--brand-strong); letter-spacing: .01em; padding: 14px 16px; vertical-align: middle;
  line-height: 1.25; white-space: normal; word-break: normal; overflow-wrap: anywhere;
  border-bottom: 1px solid var(--line); }
[data-theme="dark"] .gtbl th { color: var(--brand); }
.gtbl th:first-child, .gtbl td:first-child { padding-left: 24px; }
.gtbl th:last-child, .gtbl td:last-child { padding-right: 24px; }
.gtbl th.gt-c, .gtbl td.gt-c { text-align: center; }

/* Spaltenbreiten (table-layout:fixed → stabil auch beim Drag) */
.gtbl th:nth-child(1), .gtbl td:nth-child(1) { width: 92px; }
.gtbl th:nth-child(2), .gtbl td:nth-child(2) { width: 200px; }
.gtbl th:nth-child(3), .gtbl td:nth-child(3) { width: 110px; }
.gtbl th:nth-child(4), .gtbl td:nth-child(4) { width: 110px; }
.gtbl th:nth-child(5), .gtbl td:nth-child(5) { width: 110px; }
.gtbl th:nth-child(6), .gtbl td:nth-child(6) { width: 116px; }
.gtbl th:nth-child(7), .gtbl td:nth-child(7) { width: 132px; }
.gtbl th:nth-child(8), .gtbl td:nth-child(8) { width: 160px; }
.gtbl th:nth-child(9), .gtbl td:nth-child(9) { width: 64px; }

.gtbl tbody tr { border-bottom: 1px solid var(--line-soft); cursor: move; transition: background .15s; }
.gtbl tbody tr:nth-child(even) { background: color-mix(in srgb, var(--brand-soft) 55%, transparent); }
[data-theme="dark"] .gtbl tbody tr:nth-child(even) { background: rgba(255,255,255,.025); }
.gtbl tbody tr:hover { background: var(--brand-soft); }
.gtbl tbody tr:last-child { border-bottom: none; }
.gtbl td { padding: 12px 16px; vertical-align: middle; color: var(--ink-soft); font-size: 14px; }

.gtbl td.gt-img img { height: 56px; width: auto; max-width: 100%; display: block; }
.gt-name { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 14.5px; color: var(--ink);
  text-decoration: none; word-break: break-word; }
.gt-name:hover { color: var(--brand-strong); }
[data-theme="dark"] .gt-name:hover { color: var(--brand); }
.gt-mut { color: var(--ink-mute); }
.gt-badge { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px;
  background: var(--brand-soft); color: var(--brand-strong); font-weight: 800; font-size: 13px; }
[data-theme="dark"] .gt-badge { color: var(--brand); }

.gt-service { display: inline-flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 11.5px; font-weight: 700; line-height: 1.2; }
.gt-service img { height: 22px; }
.gt-warn { color: #cc2200; }
[data-theme="dark"] .gt-warn { color: #ff6b6b; }
.gt-ok { color: var(--brand-strong); }
[data-theme="dark"] .gt-ok { color: var(--brand); }

.gt-del { background: none; border: none; padding: 7px; border-radius: 9px; cursor: pointer;
  display: inline-grid; place-items: center; transition: background .15s; width: 40px;}
.gt-del:hover { background: #fff0ed; }
[data-theme="dark"] .gt-del:hover { background: rgba(255,50,50,.12); }
.gt-del img { width: 20px; height: 20px; display: block; }

/* Drag-Platzhalter */
.gtbl .ui-state-highlight { height: 85px; background: var(--brand-soft); }

/* Ausrüstungs-Formular */
.gear-form { padding: 26px; max-width: 720px; }

/* ============================================================
   Mobile: schmalere Seitenränder → mehr nutzbare Breite
   (NACH den Basis-Container-Regeln, damit es im @media greift —
    Media-Queries erhöhen die Spezifität NICHT, nur die Reihenfolge zählt)
   ============================================================ */
@media (max-width: 860px) {
  .wrap { padding: 0 18px; }
  .legacy-page #container { padding: 18px 18px; }
  #c_content:has(.logtable),
  #c_content:has(.gear-page) { padding: 16px 16px 26px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 13px; }
  .nav .wrap { padding: 0 16px; }
  .legacy-page #container { padding: 16px 13px; }
  #c_content:has(.logtable),
  #c_content:has(.gear-page) { padding: 14px 12px 24px; }
}
@media (max-width: 400px) {
  .wrap { padding: 0 10px; }
  .legacy-page #container { padding: 14px 5px; }
  #c_content:has(.logtable),
  #c_content:has(.gear-page) { padding: 12px 3px 22px; }
}

/* =========================================================
   IMPORT-PIPELINE — zentrale Gestaltung (upload/auswahl/eintrag)
   Aktiviert über $importStep in oben.inc.php (new-page).
   ========================================================= */
.import-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 30px 34px 34px;
  margin: 30px auto 50px;
  max-width: 760px;
  /* füllt den Viewport unter der Nav, damit der Footer unten sitzt (nav + 30+50 margins) */
  min-height: calc(100vh - var(--nav-h) - 80px);
  box-sizing: border-box;
  color: var(--ink);
  line-height: 1.6;
  font-size: 15px;
}
.import-step .desc {
  display: block;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--brand-strong);
  margin-bottom: 14px;
}
[data-theme="dark"] .import-step .desc { color: var(--brand); }
.import-step h1, .import-step h2, .import-step h3 {
  font-family: 'Sora', sans-serif; color: var(--ink); margin: 0 0 14px;
}
.import-step b { color: var(--ink); }
.import-step a { color: var(--brand-strong); }
.import-step a:hover { color: var(--brand); }

/* Formular */
.import-step form { margin-top: 18px; }
.import-step .input,
.import-step input[type=file],
.import-step input[type=text],
.import-step input[type=password],
.import-step select {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--ink);
  max-width: 100%;
}
.import-step .input:focus,
.import-step input:focus,
.import-step select:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.import-step input[type=file] { padding: 8px; cursor: pointer; }

/* Button (.modern wird hier token-basiert gestylt, ohne Legacy) */
.import-step .modern,
.import-step input[type=submit] {
  display: inline-block;
  padding: 11px 22px;
  margin-top: 4px;
  border: none;
  border-radius: var(--r-sm);
  background: var(--brand);
  color: var(--on-brand);
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background .16s, transform .16s;
}
.import-step .modern:hover,
.import-step input[type=submit]:hover {
  background: var(--brand-strong); transform: translateY(-1px);
}

/* Checkbox-Auswahlliste (auswahl_*) */
.import-step input[type=checkbox] {
  width: 16px; height: 16px; margin-right: 8px;
  accent-color: var(--brand); vertical-align: -3px;
}

/* Buy-me-a-coffee-Logo im Dark Mode sichtbar machen (dunkles Logo invertieren) */
[data-theme="dark"] img[src*="buymeacoffee.png"] { filter: invert(1); }

/* Hero-Slide 6: Sync mit Diving Log & Subsurface
   (feste helle Farben — die .logcard-Mockup-Karte ist in beiden Themes weiss) */
.sync-progs { display: flex; gap: 12px; margin: 14px 18px 20px; }
.sync-prog { flex: 1; text-align: center; background: #f2f6f9; border: 1px solid rgba(11,40,58,.07);
  border-radius: 14px; padding: 16px 10px; }
.sync-logo { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  background: #fff; border-radius: 13px; box-shadow: 0 2px 6px rgba(11,40,58,.1); }
.sync-logo img { width: 38px; height: 38px; object-fit: contain; display: block; }
.sync-prog b { display: block; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 14px; color: #0c2638; margin-top: 10px; }
.sync-desc { display: block; font-size: 11.5px; color: #7d94a1; line-height: 1.35; margin-top: 3px; }

