
:root {
	--md-sys-color-primary: #2962ff;
	/* Indigo A700 */
	--pink:#7C4DFF;
  
	--md-sys-color-on-primary: #ffffff;
	--md-sys-color-secondary: #616161;
	/* Grey 700 */
	--md-sys-color-surface: #ffffff;
	--md-sys-color-surface-variant: #f5f7fb;
	--md-sys-color-background: #f3f6fb;
	--md-sys-color-outline: #e0e0e0;
	--md-sys-color-on-surface: #1f2937;
	--md-sys-elevation-1: 0 1px 2px rgba(0, 0, 0, .06), 0 1px 3px rgba(0, 0, 0, .1);
	--md-sys-elevation-2: 0 2px 8px rgba(0, 0, 0, .12);
	--radius-lg: 14px;
	--radius-md: 10px;
	--radius-sm: 8px;
	--space-1: .5rem;
	/* 8px */
	--space-2: .75rem;
	/* 12px */
	--space-3: 1rem;
	/* 16px */
	--space-4: 1.25rem;
	/* 20px */
	--space-5: 1.5rem;
	/* 24px */
	--space-6: 2rem;
	/* 32px */
	--container-max: 1200px;
	--md-sys-color-primary:#2962ff;
	--md-sys-color-surface:#ffffff;
	--md-sys-color-background:#f3f6fb;
	--md-sys-elevation-2:0 2px 8px rgba(0,0,0,.12);
	--radius-lg:14px;
	--space-4:1.25rem;


	/* Neutral (Classic) */
      --bg: #f5f7fb;           /* Hintergrund */
      --surface: #ffffff;      /* Karten */
      --text: #1f2937;         /* Textfarbe */
      --muted: #6b7280;        /* Sekundärtext */
      --primary: #2962ff;      /* Akzent */
      --success: #16a34a;
      --warning: #f59e0b;
      --danger:  #ef4444;
      --outline: #e5e7eb;
      --shadow1: 0 1px 2px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.08);
      --shadow2: 0 6px 20px rgba(0,0,0,.10);
      --radius-lg: 16px;
      --radius-md: 12px;
      --radius-sm: 10px;
      --space-1: .5rem;
      --space-2: .75rem;
      --space-3: 1rem;
      --space-4: 1.25rem;
      --space-5: 1.5rem;
      --space-6: 2rem;
      --w-sidebar: 320px;
      --w-chat: 360px;

	    
}

* {
	box-sizing: border-box;
}

html,
body {
	height: auto;
}

body {
	margin: 0;
	background: var(--md-sys-color-background);
	font-family: "Nata Sans", sans-serif;
}

.material-symbols-outlined {
  font-variation-settings:
  'FILL' 0,
  'wght' 400,
  'GRAD' 0,
  'opsz' 24
}

.material-symbols-outlined.filled {
  font-variation-settings:
  'FILL' 1,
  'wght' 400,
  'GRAD' 0,
  'opsz' 24
}
.link-dark {
	color:#0d1117;
	text-decoration: none;
}
.blue {color:#2962ff; }
.dot {
  width: 36px !important;
  height: 36px!important;
  border-radius: 50%!important;
  display: grid!important;
  place-items: center!important;
  background: color-mix(in srgb, var(--primary) 15%, var(--surface))!important;
  color: var(--primary)!important;
}
.auth-body {
  position: fixed;        /* löst sich aus dem normalen Layout */
  inset: 0;               /* oben, rechts, unten, links = 0 → voller Screen */
  display: flex;
  flex-direction: column;
  justify-content: center;/* vertikal zentriert */
  align-items: center;    /* horizontal zentriert */
  background: var(--md-sys-color-background);
  z-index: 1000;          /* über App-Bar & Inhalt */
}

.app-bar {
  position:sticky;
  top:0;
  background:var(--md-sys-color-surface);
  height:64px;
  display:flex;
  align-items:center;
  padding:0 20px;
  box-shadow:var(--md-sys-elevation-2);
  font-weight:700;
}

.auth-wrapper {
  display:flex;
  justify-content:center;
  align-items:center;
  flex:1;
  padding:40px 16px;
}

.auth-card {
  margin: 0 auto;     
  background:white;
  border-radius:var(--radius-lg);
  box-shadow:var(--md-sys-elevation-2);
  display:flex;
  width: 800px;;

  align-items: center;
}

.auth-left {
  flex:1;
 /* background:url("https://images.unsplash.com/photo-1516259762381-22954d7d3ad2?auto=format&fit=crop&w=800&q=80") center/cover;*/
}

.auth-right {
  flex:1;
  padding:var(--space-4);
  display:flex;
  flex-direction:column;
  gap:16px;
}

.auth-right h2 {
  margin:0;
  font-size:24px;
}

.auth-right input, input {
  width:90%;
  padding:12px;
  border-radius:10px;
  border:1px solid #ddd;
  font-size:16px;
}

.btn {
  background:#2962ff;
  display: flex;
  align-items:center;
  color:white;
  border:none;
  padding:9px;
  border-radius:10px;
  cursor:pointer;
  font-size:16px;
  font-weight:600;
  text-decoration: none;
}

.center {display: flex; align-items: center; gap: 1em;}

/* App Bar */
.app-bar {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--md-sys-color-surface);
	box-shadow: var(--md-sys-elevation-1);
	display: grid;
	grid-template-columns: 56px 1fr auto;
	align-items: center;
	padding: 0 var(--space-3);
	height: 64px;
}

.app-bar__navbtn,
.icon-btn {
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: none;
	background: transparent;
	cursor: pointer;
}

.app-bar__navbtn:hover,
.icon-btn:hover {
	background: var(--md-sys-color-surface-variant);
}

.app-title {
	font-weight: 700;
	letter-spacing: .2px;
	display: flex;
	align-items: center;
	gap: var(--space-2);
}

.app-title .badge {
	font-size: 12px;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--md-sys-color-primary);
	color: var(--md-sys-color-on-primary);
	font-weight: 600;
}

.search {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	background: var(--md-sys-color-surface-variant);
	border-radius: 999px;
	padding: 8px 12px;
	width: min(520px, 100%);
	margin: 0 var(--space-3);
}

.search input {
	border: none;
	outline: none;
	background: transparent;
	width: 100%;
	font-size: 14px;
}

/* Layout */
.container {
	max-width: var(--container-max);
	margin: var(--space-4) auto;
	padding: 0 var(--space-3);
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: var(--space-4);
}

/* Sidebar */
.sidebar {
	position: sticky;
	top: calc(64px + var(--space-4));
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	height: fit-content;
}

.nav-card {
	background: var(--md-sys-color-surface);
	border-radius: var(--radius-lg);
	box-shadow: var(--md-sys-elevation-1);
	padding: var(--space-2);
}

.nav-item {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	padding: 10px 12px;
	border-radius: var(--radius-md);
	cursor: pointer;
	text-decoration: none;
	color: inherit;
}

.nav-item:hover {
	background: var(--md-sys-color-surface-variant);
}

.nav-item.active {
	background: color-mix(in srgb, var(--md-sys-color-primary) 10%, transparent);
	color: var(--md-sys-color-primary);
	font-weight: 600;
}

.chip-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 8px;
}

.chip {
	padding: 6px 10px;
	border-radius: 999px;
	border: 1px solid var(--md-sys-color-outline);
	font-size: 12px;
	background: var(--md-sys-color-surface);
	cursor: pointer;
}





/* Main */
.main {
	display: grid;
	grid-template-columns: 1fr 360px;
	gap: var(--space-4);
	align-items: start;
}

.thread-header {
	position: relative;
}

.options {
	position: absolute;
	right: 10px;
	top: 0px;
}

/* Thread List */
.thread-list {
	background: var(--md-sys-color-surface);
	border-radius: var(--radius-lg);
	box-shadow: var(--md-sys-elevation-1);
	padding: var(--space-3);
	display: grid;
	gap: var(--space-3);
}

.thread-item {
	display: grid;
	grid-template-columns: 48px 1fr auto;
	gap: var(--space-3);
	padding: var(--space-2);
	border-radius: var(--radius-md);
	transition: transform .04s ease, background .2s ease;
}

/*.thread-item:hover {
	background: var(--md-sys-color-surface-variant);
	transform: translateY(-1px);
}*/

.avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: linear-gradient(135deg, #cfd8ff, #a5b4fc);
	display: grid;
	place-items: center;
	font-weight: 700;
}

.thread-title {
	font-weight: 700;
	margin: 2px 0 4px;
}

.thread-meta {
	font-size: 12px;
	color: #6b7280;
	display: flex;
	gap: 12px;
	margin-bottom:16px;
}

.thread-tags {
	display: flex;
	gap: 6px;
	margin-top: 6px;
}

.tag {
	font-size: 11px;
	padding: 4px 8px;
	background: #eef2ff;
	color: #3730a3;
	border-radius: 999px;
}

.count-pill {
	background: #e8f0fe;
	color: #1a73e8;
	padding: 4px 10px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 12px;
}
.count-pill-pink {
	background: color-mix(in srgb, var(--pink) 18%, transparent);
  	color: var(--pink);
	padding: 4px 10px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 12px;
}
.count-pill-yellow {
	background: color-mix(in srgb, var(--warning) 18%, transparent);
  	color: var(--warning);
	padding: 4px 10px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 12px;
}
.count-pill-green {
	background: color-mix(in srgb, var(--success) 18%, transparent);
  	color: var(--success);
	padding: 4px 10px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 12px;
}
/* Thread View */
.thread-view {
	display: grid;
	gap: var(--space-3);
}

.thread-card {
	background: var(--md-sys-color-surface);
	border-radius: var(--radius-lg);
	box-shadow: var(--md-sys-elevation-1);
	padding: var(--space-4);
}

.thread-card header {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	margin-bottom: var(--space-3);
}

.thread-card h1 {
	font-size: 24px;
	margin: 0;
}

.thread-toolbar {
	display: flex;
	gap: 8px;
	margin-left: auto;
}

.btn1 {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px solid var(--md-sys-color-outline);
	padding: 8px 12px;
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
}

.btn--primary {
	background: var(--md-sys-color-primary);
	color: var(--md-sys-color-on-primary);
	border: none;
}

/* Post */
.post {
	display: grid;
	grid-template-columns: 48px 1fr;
	gap: var(--space-3);
	padding: var(--space-3);
	border-radius: var(--radius-md);
}

.post:hover {
	background: var(--md-sys-color-surface-variant);
}

.post .author {
	font-weight: 600;
}

.post .timestamp {
	font-size: 12px;
	color: #6b7280;
}

.post .content {
	margin-top: 6px;
}

.thread-item .actions {
	display: flex;
	gap: 6px;
	margin-top: 15px;
}

.action-btn {
	border: none;
	background: transparent;
	border-radius: 8px;
	padding: 6px 8px;
	cursor: pointer;
	display: flex;
	justify-content: end;
	gap: 4;
}

.action-btn:hover {
	background: var(--md-sys-color-surface-variant);
}

/* Reply Editor */
.editor {
	background: var(--md-sys-color-surface);
	border-radius: var(--radius-lg);
	box-shadow: var(--md-sys-elevation-1);
}

.editor textarea {
	width: 100%;
	min-height: 120px;
	border: none;
	outline: none;
	padding: var(--space-3);
	font: inherit;
	resize: vertical;
	border-radius: var(--radius-lg);
	background: var(--md-sys-color-surface);
}

.editor .editor-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px;
	border-top: 1px solid var(--md-sys-color-outline);
}

.editor .toolbar-left,
.editor .toolbar-right {
	display: flex;
	gap: 4px;
}

/* Aside: Trending / Info */
.aside {
	display: grid;
	gap: var(--space-3);
	position: sticky;
	top: calc(64px + var(--space-4));
	height: fit-content;
}

.card {
	background: var(--md-sys-color-surface);
	border-radius: var(--radius-lg);
	box-shadow: var(--md-sys-elevation-1);
	padding: var(--space-3);
}

.card h3 {
	margin: 0 0 var(--space-2);
	font-size: 16px;
}

.trend-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 6px;
	border-radius: 10px;
}

.trend-item:hover {
	background: var(--md-sys-color-surface-variant);
}

/* FAB */
.fab {
	position: fixed;
	right: 24px;
	bottom: 24px;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--md-sys-color-primary);
	color: var(--md-sys-color-on-primary);
	display: grid;
	place-items: center;
	box-shadow: var(--md-sys-elevation-2);
	border: none;
	cursor: pointer;
}

/* Utilities */
.muted {
	color: #6b7280;
}

.material-symbols-outlined {
	font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

/* Responsive */
@media (max-width: 1100px) {
	.main {
		grid-template-columns: 1fr;
	}

	.aside {
		position: static;
	}
}

@media (max-width: 900px) {
	.container {
		grid-template-columns: 1fr;
	}

	.sidebar {
		position: static;
		order: 2;
	}

	.search {
		display: none;
	}
}


/* === EXTRA CSS: DROPDOWN & MODAL === */

.post-menu {
	position: absolute;
	right: 0;
	top: 28px;
	background: var(--md-sys-color-surface);
	box-shadow: var(--md-sys-elevation-2);
	border-radius: var(--radius-md);
	padding: 6px 0;
	display: flex;
	flex-direction: column;
	min-width: 160px;
	z-index: 100;
}

.post-menu.hidden {
	display: none;
}

.post-menu-item {
	padding: 10px 16px;
	text-align: left;
	background: none;
	border: none;
	width: 100%;
	cursor: pointer;
	font: inherit;
}

.post-menu-item:hover {
	background: var(--md-sys-color-surface-variant);
}

.fullwidth {
    grid-column: 1 / -1;
}



/* MODAL */
.modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .4);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 200;
}

.modal-overlay.hidden {
	display: none;
}

.modal {
	background: var(--md-sys-color-surface);
	border-radius: var(--radius-lg);
	box-shadow: var(--md-sys-elevation-2);
	width: min(700px, 95%);
	max-height: 90vh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: var(--space-3);
	border-bottom: 1px solid var(--md-sys-color-outline);
}

.modal-content {
	padding: var(--space-3);
	overflow-y: auto;
}


/* === DARK MODE ===================================== */
.dark {
	--md-sys-color-background: #0d1117;
	--md-sys-color-surface: #161b22;
	--md-sys-color-surface-variant: #1f2630;
	--md-sys-color-outline: #2d333b;
	--md-sys-color-on-surface: #e6edf3;

	--md-sys-elevation-1: 0 1px 3px rgba(0, 0, 0, .5);
	--md-sys-elevation-2: 0 4px 12px rgba(0, 0, 0, .6);

	color: var(--md-sys-color-on-surface);
}

/* Textfarben */
.dark .muted {
	color: #8b949e;
}

/* Tags / Chips */
.dark .tag {
	background: #243447;
	color: #9fb7ff;
}

.dark .chip {
	background: #1f2630;
	border-color: #2d333b;
	color: #e6edf3;
}

/* Inputs / Editor */
.dark textarea,
.dark .editor,
.dark .editor textarea,
.dark .search {
	background: #1f2630;
	color: #e6edf3;
	border-color: #2d333b;
}

.dark .editor-toolbar {
	border-top-color: #2d333b;
}

/* Buttons */
.dark .btn {
	background: #1f2630;
	border-color: #2d333b;
	color: #e6edf3;
}

.dark .icon-btn:hover,
.dark .nav-item:hover,
.dark .trend-item:hover,
.dark .post:hover {
	background: #243447;
}

/* Modal */
.dark .modal {
	background: #161b22;
}

/* Dropdown */
.dark .post-menu {
	background: #1f2630;
	border-color: #2d333b;
}


/* === EXTRA CSS FÜR RICH-EDITOR-FUNKTIONALITÄT === */

.editor-content {
	padding: var(--space-3);
	min-height: 140px;
	outline: none;
	border-radius: var(--radius-lg);
	background: var(--md-sys-color-surface);
	font: inherit;
	line-height: 1.4;
}

/* Fokus-Rand */
.editor-content:focus {
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--md-sys-color-primary) 40%, transparent);
}

/* Aufnahme-Status für Audio/Video Button */
.icon-btn.is-recording {
	background: #ffebee;
	color: #c62828;
}

.icon-btn.is-recording:hover {
	background: #ffcdd2;

  }


	.field-row {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.field label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 4px;
    color: var(--md-sys-color-on-surface-variant);
}

.field input,
.field select {
    width: 100%;
    border-radius: 999px;
    border: 1px solid var(--md-sys-color-outline);
    padding: 8px 12px;
    font: inherit;
    background: var(--md-sys-color-surface);
}
.thread-card .content img,
.thread-card .content video, .editor-content img{
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    display: block;
    margin: 8px 0;
    border-radius: 8px;
    object-fit: contain;
}

.thread-card iframe {
    max-width: 100%;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 8px;
    margin: 12px 0;
}
.yt-embed {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16/9;
    border-radius: 8px;
    margin: 12px 0;
}
.thread-card .content img, .editor-content video{
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 8px 0;
}
.thread-card .content a {
    color: var(--md-sys-color-primary);
    text-decoration: underline;
    word-break: break-word;
}




.custom-audio {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 500px;
  margin: 6px 0;
}

.custom-audio button {
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}

.custom-audio .material-symbols-outlined {
  font-size: 28px;
  color: #2962ff;
}

.custom-audio-progress {
  flex: 1;
  height: 4px;
  background: #cfd8dc;
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}

.custom-audio-progress-bar {
  position: absolute;
  height: 100%;
  width: 0%;
  background: #2962ff;
  border-radius: 2px;
}




 .card{
 
        border: none;
        border-radius: 15px;
        padding: 8px;
        background-color: #fff;
        position: relative;
     
       }
       .upper{
        height: 100px;
		background-color: #ef4444 !important;
       }
       .user{
        position: relative;
       }
       .profile img{
        height: 80px;
        width: 80px;
        margin-top:2px;
       }
       .profile{
        position: absolute;
        top:-50px;
        left: 38%;
        height: 90px;
        width: 90px;
        border:3px solid #fff;

        border-radius: 50%;

       }

       .follow{

        border-radius: 15px;
        padding-left: 20px;
        padding-right: 20px;
        height: 35px;
       }

       .stats span{

        font-size: 29px;
       }


/*Editor*/
/* Codeblock optisch */
.code-block-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.copy-btn {
    position: absolute;
    right: 10px;
    top: 10px;
    background: #333;
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
    z-index: 5;
}

.copy-btn:hover {
    background: #444;
}

pre {
    margin: 0;
    padding: 20px;
    background: #000;
    border-radius: 6px;
}

code {
    font-family: "Fira Code", monospace;
    counter-reset: line;
    color: #fff;
}

/* Zeile */
.code-line {
    counter-increment: line;
    padding-left: 40px;
    position: relative;
    white-space: pre-wrap;
}

/* Zeilennummer */
.code-line::before {
    content: counter(line);
    position: absolute;
    left: 0;
    width: 30px;
    color: #666;
    text-align: right;
}

/* Syntax Highlighting */
.kw      { color: #569CD6; }
.str     { color: #CE9178; }
.comment { color: #6A9955; }
.num     { color: #B5CEA8; }








.notification-dropdown {
    position: absolute;
    right: 0;
    top: 42px;
    width: 280px;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
    z-index: 99999;
    padding: 10px 0;
	background: #fff;
}

.notification-wrapper {
    position: relative;
}
.notification-counter{
	position: absolute;
	left: 100% !important;
	top: 0 !important;
	transform: translate(-50%,-50%) !important;
	color: #fff;
	background: red;
	padding: 7px;
	border-radius: 50%;
}
.hidden {
    display: none !important;
}

.iconbox {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: color-mix(in srgb, var(--primary) 18%, transparent);
  color: var(--primary);
  font-size: 30px;
  margin-bottom: 14px;
}
