:root {
	--philosophie-text-wrapper-color: #2b2b2b;
	--philosophie-text-wrapper-h1-color: #0b3954;
	
	--author-box-background: rgba(0,0,0,0.05);
	--author-box-background-hover: rgba(0,0,0,0.1);
}

[data-theme="dark"] {
	--philosophie-text-wrapper-color: #e7e7dc;
	--philosophie-text-wrapper-h1-color: #1479b6;
	
	--author-box-background: rgba(255,255,255,0.05);
	--author-box-background-hover: rgba(255,255,255,0.1);
}

[id] {
	scroll-margin-top: 80px;
}

/* === TITLE === */

.content-title-wrapper {
	display: flex;
	position: relative;
    flex-direction: column;
    text-align: center;
}

/* Button */

.back-button {
	position: absolute;
	left: 0;
	top: 3.5rem;
	z-index: 5;
}

.back-button a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 0.7rem;
    border-top-right-radius: 999px;
	border-bottom-right-radius: 999px;
    background: #f5f5f7;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
}

.back-button a::before {
    content: "←";
    font-size: 16px;
    transition: transform 0.25s ease;
}

.back-button a:hover {
    background: #e9e9ee;
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.back-button a:hover::before {
    transform: translateX(-3px);
}

/* === INNER === */

.intro-container {
	position: relative;
	display: flex;
    flex-direction: column;
    text-align: center;
}

.badge-placeholder {
	position: absolute;
	top: 0;
}

.philosophie-text-wrapper {
	position: relative;
	padding: 2rem;
	margin: 2.5rem auto;
	font-family: 'Segoe UI', sans-serif;
	color: var(--philosophie-text-wrapper-color);
	line-height: 1.75;
	border-radius: 1rem;
	transition: box-shadow 0.3s ease;
}


.philosophie-text-wrapper h1,
.philosophie-text-wrapper h2 {
	font-size: calc(1.7rem + var(--font-size-larger));
	color: var(--philosophie-text-wrapper-h1-color);
	margin-top: 2rem;
	margin-bottom: 1rem;
	border-left: 5px solid #1e90ff;
	padding-left: 0.75rem;
}

.philosophie-text-wrapper p {
}

/* === AUTHOR ==== */

.author-wrapper {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 1rem clamp(1rem, 3vw, 3rem);
	justify-self: center;
}

.author-wrapper h2 {
	font-size: calc(clamp(0.9rem, 4vw, 1.1rem) + var(--font-size-larger));
	text-align: center;
	margin: 0;
}

.author-box {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--color-invert);
    width: fit-content;
    padding: 8px 12px;
    border-radius: 12px;
    background: var(--author-box-background);
    transition: 0.2s;
}

.author-box:hover {
    background: var(--author-box-background-hover);
}

.author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 15px;
    font-weight: 600;
}

.author-role {
    font-size: 12px;
    opacity: 0.7;
}

/* === KOMMENTARE === */

.comment-wrapper {
	padding: 1rem clamp(1rem, 2vw, 3rem);
}

.comments-section {
    margin-top: 50px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comment-form textarea {
    min-height: 120px;
    padding: 12px;
    border: none;
    border-radius: 12px;
    resize: vertical;
}

.comment-form button {
    width: fit-content;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.comment-list {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment {
    padding: 18px;
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
}

.comment-user {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
	color: inherit;
}

.comment-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-username {
    font-weight: 600;
}

.comment-role {
    font-size: 12px;
    opacity: 0.7;
}

.comment-content {
    margin-top: 14px;
    line-height: 1.6;
}

.comment-date {
    margin-top: 12px;
    font-size: 12px;
    opacity: 0.5;
}

/* delete-button */

.delete-comment-form {
    margin-top: 1rem;
}

.delete-comment-btn {
    background: #ff4d4d;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 13px;
    transition: 0.2s;
}

.delete-comment-btn:hover{
    opacity: 0.8;
}


@media screen and (max-width: 600px) {
  .philosophie-text-wrapper {
    padding: 1.2rem;
  }

  .philosophie-text-wrapper h1,
  .philosophie-text-wrapper h2  {
    font-size: 1.3rem;
  }
}