﻿/* =========================================
   angstambulanz.com — Stylesheet
   Abgeleitet aus cs.css von psychotherapie.com.
   Reduziert auf die Single-Page-Landing.
========================================= */


/* =========================================
   1. FONTS & VARIABLEN
========================================= */

@font-face {
	font-family: 'Source Sans Pro';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('/fonts/source-sans-pro-v13-latin-regular.woff2') format('woff2'),
	     local('Source Sans Pro Regular'),
	     local('SourceSansPro-Regular');
}
@font-face {
	font-family: 'Source Sans Pro';
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url('/fonts/source-sans-pro-v13-latin-italic.woff2') format('woff2'),
	     local('Source Sans Pro Italic'),
	     local('SourceSansPro-Italic');
}
@font-face {
	font-family: 'Source Sans Pro';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('/fonts/source-sans-pro-v13-latin-600.woff2') format('woff2'),
	     local('Source Sans Pro Semibold'),
	     local('SourceSansPro-Semibold');
}
@font-face {
	font-family: 'Source Sans Pro';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('/fonts/source-sans-pro-v13-latin-700.woff2') format('woff2'),
	     local('Source Sans Pro Bold'),
	     local('SourceSansPro-Bold');
}

:root {
	--primary-blue: #0056d6;
	--primary-dark: #0040a0;
	--link-hover-blue: hsl(200,80%,45%);
	--text-dark: #1d1d1f;
	--text-light: #6e6e73;
	--bg-white: #ffffff;
	--bg-light: #f5f5f7;
	--border-light: #d2d2d7;
	--underline-gap: 0.27em;
	--max-width: 1060px;
	--content-width: 720px;
	--spacing-unit: 1rem;
	--header-height: 50px;
}


/* =========================================
   2. GRUNDEINSTELLUNGEN
========================================= */

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
	scrollbar-gutter: stable;
}
body {
	font-family: 'Source Sans Pro', system-ui, sans-serif;
	line-height: 1.65;
	color: var(--text-dark);
	background-color: var(--bg-white);
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
a {
	transition: none;
}
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.skip-link {
	position: absolute;
	top: -100%;
	left: 0;
	background: var(--primary-blue);
	color: var(--bg-white);
	padding: 0.75rem 1.5rem;
	text-decoration: none;
	font-weight: 600;
	z-index: 10000;
	transition: top 0.3s ease;
}
.skip-link:focus {
	top: 0;
}
em {
	font-style: normal;
	font-weight: 700;
}


/* =========================================
   3. HEADER
========================================= */

header {
	position: sticky;
	top: 0;
	background-color: rgba(255, 255, 255, 0.95);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border-light);
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: var(--header-height);
	padding-block: 0;
	padding-inline: max(var(--spacing-unit), calc((100% - var(--content-width)) / 2 + var(--spacing-unit)));
	flex-wrap: wrap;
}
@supports not (backdrop-filter: blur(10px)) {
	header {
		background-color: rgba(255, 255, 255, 0.98);
	}
}

.brand {
	flex-shrink: 0;
}
.brand a {
	font-size: 1.8rem;
	font-weight: 700;
	color: var(--text-dark);
	text-decoration: none;
	line-height: 1;
	letter-spacing: 0;
	white-space: nowrap;
	display: inline-block;
	margin-top: .75rem;
}
.brand a:hover {
	color: var(--text-dark);
	text-decoration: none;
}
.com {
	color: var(--text-light);
	font-weight: 100;
	font-size: 1.1rem;
	margin-left: 1px;
	/*letter-spacing: -0.01em;*/ 
	/*vertical-align:1px;*/
}
.language-switch {
	font-size: 0.95rem;
	color: var(--text-light);
	flex-shrink: 0;
	margin-left: auto;
}
.language-switch a {
	color: var(--text-dark);
	text-decoration: none;
	font-weight: 600;
	padding: 0 0.25rem;
}
.language-switch a:hover {
	color: var(--link-hover-blue);
}

header nav {
	flex-shrink: 0;
	margin-top: -1.25rem;
	padding-bottom: .5rem;
}
header nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	list-style: none;
	padding: 0;
	margin: 0;
}
header nav li {
	list-style: none;
}
header nav a {
	color: var(--text-dark);
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 600;
	white-space: nowrap;
	outline-offset: 2px;
}
header nav a:hover {
	color: var(--link-hover-blue);
	text-decoration: none;
}


/* =========================================
   4. HAUPTBEREICH
========================================= */

[id] {
	scroll-margin-top: calc(var(--header-height) + 1rem);
}
main {
	flex: 1;
	max-width: var(--content-width);
	margin: 0 auto;
	padding: 2rem var(--spacing-unit) 4rem;
	width: 100%;
}
#main-content {
	scroll-margin-top: calc(var(--header-height) + 1px);
}


/* =========================================
   5. ARTIKEL-INHALT
   Selektoren greifen sowohl auf .article-content
   als auch auf main > article (kein Wrapper nötig).
========================================= */

main article,
.article-content {
	line-height: 1.5;	margin-top: -2rem;
}

main article h1,
.article-content h1 {
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	font-weight: 700;
	color: var(--text-dark);
	margin-bottom: 1rem;
	margin-left: -2px;
	line-height: 1.25;
	letter-spacing: -0.02em;
}

main article h2,
.article-content h2 {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--text-dark);
	margin-top: 2rem;
	margin-bottom: 1rem;
	line-height: 1.3;
}
main article section:first-of-type h2,
main article h2:first-of-type {
	padding-top: 2rem;
}

main article h3,
.article-content h3 {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--text-dark);
	margin-top: 1.5rem;
	margin-bottom: 0.5rem;
	line-height: 1.3;
}

main article p,
.article-content p {
	font-size: 1.1rem;
	margin-bottom: 1.25rem;
	color: var(--text-dark);
	hyphens: auto;
}

main article ul,
main article ol,
.article-content ul,
.article-content ol {
	margin: 1rem 0 1.5rem;
	padding-left: 1.5rem;
}
main article ul,
.article-content ul {
	list-style-type: disc;
}
main article ol,
.article-content ol {
	list-style-type: decimal;
}
main article li,
.article-content li {
	font-size: 1.1rem;
	margin-bottom: 0.4rem;
	padding-left: 0.25rem;
	line-height: 1.6;
}
main article li:last-child,
.article-content li:last-child {
	margin-bottom: 0;
}

main article figure,
.article-content figure {
	margin: 2rem auto;
	max-width: 700px;
}
main article figure img,
.article-content figure img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 3px;
	background-color: var(--bg-light);
	border: 1px var(--primary-blue) solid;
}
main article figure a:hover img,
.article-content figure a:hover img {
	border-color: var(--link-hover-blue);
}
main article figcaption,
.article-content figcaption {
	font-size: 1rem;
	color: var(--text-dark);
	line-height: 1.4;
	font-style: italic;
	margin-top: 0.75rem;
	text-align: center;
}

main article section,
.article-content section {
	margin-top: 1rem;
	margin-bottom: -1rem;
}


/* =========================================
   6. LINK-LOGIK (Intern vs Extern)
========================================= */

main article p a,
main article li a,
.article-content p a,
.article-content li a {
	color: var(--primary-blue);
	text-decoration: none;
	font-weight: 600;
	border-bottom: 1px solid transparent;
}

/* TOUCH-GERÄTE: Links dauerhaft unterstrichen */
@media (hover: none) {
	main article p a,
	main article li a,
	.article-content p a,
	.article-content li a {
		text-decoration: underline;
		text-underline-offset: var(--underline-gap);
		text-decoration-thickness: 1px;
		text-decoration-color: rgba(0, 86, 214, 0.3);
	}
}

/* DESKTOP / MAUS: Hover-Effekte */
@media (hover: hover) {
	main article p a:hover,
	main article li a:hover,
	.article-content p a:hover,
	.article-content li a:hover {
		color: var(--link-hover-blue);
		text-decoration: underline;
		text-decoration-thickness: 2px;
		text-underline-offset: var(--underline-gap);
		text-decoration-skip-ink: auto;
	}
	/* EXTERNE LINKS (alles, was http* enthält, aber NICHT die eigene Domain) */
	main article p a[href^="http"]:not([href*="angstambulanz.com"]):hover,
	main article li a[href^="http"]:not([href*="angstambulanz.com"]):hover,
	.article-content p a[href^="http"]:not([href*="angstambulanz.com"]):hover,
	.article-content li a[href^="http"]:not([href*="angstambulanz.com"]):hover {
		cursor: alias;
		text-decoration-style: solid;
	}
	/* INTERNE LINKS / Anchor-Links */
	main article p a:not([href^="http"]):hover,
	main article p a[href*="angstambulanz.com"]:hover,
	main article li a:not([href^="http"]):hover,
	main article li a[href*="angstambulanz.com"]:hover {
		cursor: pointer;
	}
}

/* Focus-State (Barrierefreiheit) */
main article p a:focus-visible,
main article li a:focus-visible,
.article-content p a:focus-visible,
.article-content li a:focus-visible {
	background-color: var(--primary-blue);
	color: white;
	outline: 3px solid var(--primary-blue);
	text-decoration: none;
	border-radius: 2px;
}

/* Externes-Link-Icon (Pfeil rechts oben) für externe Links */
main article p a:after,
main article li a:after,
.article-content p a:after,
.article-content li a:after {
	content: "\00A0";
	display: inline;
	padding-right: 0.75em;
	text-decoration: none;
	margin: 0 0.1em 0 0.1em;
	vertical-align: -0.05em;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' stroke='black' stroke-width='1' fill='none'%3E%3Cpath d='M9 6v3H1V1h3 M5 5l4-4 M6 1h3v3'/%3E%3C/svg%3E") no-repeat right 50% / 0.85em 0.85em;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' stroke='black' stroke-width='1' fill='none'%3E%3Cpath d='M9 6v3H1V1h3 M5 5l4-4 M6 1h3v3'/%3E%3C/svg%3E") no-repeat right 50% / 0.85em 0.85em;
}


/* =========================================
   7. FOOTER
========================================= */

footer {
	background: var(--bg-light);
	color: var(--text-light);
	margin-top: auto;
	padding: 2rem 0 3rem 0;
	border-top: 1px solid var(--border-light);
}

.footer-summary {
	max-width: var(--content-width);
	margin: 0 auto 2rem;
	padding: 0 var(--spacing-unit);
}
.footer-summary h3 {
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--text-dark);
	margin: -1rem 0 1rem 0;
	/* border-top: 2px solid var(--text-dark); */
	padding-top: 0.3rem;
}
.footer-summary h3 a {
	color: var(--text-dark);
	text-decoration: none;
}
.footer-summary h3 a:hover {
	color: var(--link-hover-blue);
}
.footer-summary p {
	font-size: 0.95rem;
	line-height: 1.5;
	color: var(--text-dark);
	margin-bottom: 0.75rem;
	hyphens: auto;
}
.footer-summary p:last-child {
	margin-bottom: 0;
}

.footer-nav {
	max-width: var(--content-width);
	margin: 0 auto 1.5rem;
	padding: 0 var(--spacing-unit);
}
.footer-nav ul {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 2.5rem;
	list-style: none;
	padding: 0;
	margin: 0;
}
.footer-nav li {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.25rem;
	list-style: none;
}
.footer-nav a {
	color: var(--text-dark);
	text-decoration: none;
	font-weight: 400;
	font-size: 0.95rem;
}
.footer-nav a:last-child {
	font-weight: 100;
	margin-top: -0.35rem;
}
.footer-nav a:hover {
	color: var(--primary-blue);
}

.copyright {
	max-width: var(--content-width);
	margin: 0 auto;
	padding: 0 var(--spacing-unit);
	text-align: center;
	font-size: 0.9rem;
	color: var(--text-light);
	line-height: 1.4;
}
.copyright a {
	text-decoration: none;
	color: var(--text-light);
}
.copyright a:hover {
	color: var(--primary-blue);
}


/* =========================================
   8. MEDIA QUERIES
========================================= */

@media (max-width: 752px) {
/*	header {
		gap: 0.75rem;
		padding-block: 0.5rem;
	} */
	header nav ul {
		gap: 0.5rem;
	}
	header nav a {
	font-size: 0.9rem;
	font-weight: 400;
	}
	.footer-nav ul {
		flex-direction: column;
		align-items: center;
		gap: 1.5rem;
	}
	.footer-nav li {
		align-items: center;
	}
}

@media (max-width: 420px) {
	.brand a {
		font-size: 1.45rem;
	}
	header nav a {
		font-size: 0.88rem;
	}
}

@media print {
	header, footer {
		display: none;
	}
	main {
		padding: 0;
		max-width: 100%;
	}
	body, p, h1, h2, h3, li, a {
		color: #000 !important;
		background: none !important;
	}
	main article {
		break-inside: auto;
	}
	main article h2 {
		break-after: avoid;
	}
	main article p {
		orphans: 3;
		widows: 3;
	}
	main article figure img {
		border: 1px solid #000;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	.skip-link {
		transition: none;
	}
}
