/*
Theme Name: RexSoft
Theme URI: https://rexsoft.ch
Author: MD-Informatik
Author URI: https://md-informatik.ch
Description: Individuelles Premium-WordPress-Theme für RexSoft, RexDashPro und RexInvoicePro.
Version: 0.1.0
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 8.3
Text Domain: rexsoft
Domain Path: /languages
*/

/* =========================================================
   RexSoft – grundlegendes Designsystem
   ========================================================= */

:root {
	--rexsoft-blue: #0a84ff;
	--rexsoft-blue-dark: #0e2b57;
	--rexsoft-blue-deep: #081a35;
	--rexsoft-green: #00c853;
	--rexsoft-gold: #f4b400;

	--rexsoft-background: #f7f9fc;
	--rexsoft-surface: #ffffff;
	--rexsoft-surface-muted: #eef3f8;

	--rexsoft-text: #172033;
	--rexsoft-text-muted: #667085;
	--rexsoft-border: rgba(14, 43, 87, 0.1);
	--rexsoft-footer: #10131a;

	--rexsoft-radius-small: 12px;
	--rexsoft-radius-medium: 20px;
	--rexsoft-radius-large: 32px;

	--rexsoft-shadow-soft: 0 12px 40px rgba(14, 43, 87, 0.1);
	--rexsoft-shadow-card: 0 20px 55px rgba(14, 43, 87, 0.14);
	--rexsoft-shadow-blue: 0 16px 38px rgba(10, 132, 255, 0.24);
	--rexsoft-transition: 220ms ease;
}

/* =========================================================
   Basis
   ========================================================= */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	overflow-x: hidden;
	background: var(--rexsoft-background);
	color: var(--rexsoft-text);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: var(--rexsoft-blue);
	text-decoration: none;
	transition: color var(--rexsoft-transition), opacity var(--rexsoft-transition);
}

a:hover,
a:focus {
	color: var(--rexsoft-blue-dark);
}

button,
input,
select,
textarea {
	font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin-top: 0;
	color: var(--rexsoft-text);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.025em;
}

h1 {
	font-size: clamp(2.5rem, 5vw, 4.75rem);
}

h2 {
	font-size: clamp(2rem, 4vw, 3.25rem);
}

h3 {
	font-size: clamp(1.4rem, 2.5vw, 2rem);
}

p {
	color: var(--rexsoft-text-muted);
}

/* =========================================================
   Barrierefreiheit
   ========================================================= */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	position: fixed !important;
	top: 10px;
	left: 10px;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	margin: 0;
	overflow: visible;
	clip: auto;
	background: var(--rexsoft-surface);
	color: var(--rexsoft-text);
	border-radius: var(--rexsoft-radius-small);
	box-shadow: var(--rexsoft-shadow-card);
}

/* =========================================================
   WordPress-Komponenten
   ========================================================= */

.wp-element-button,
.wp-block-button__link,
button,
input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.9rem 1.6rem;
	background: var(--rexsoft-blue);
	color: #ffffff;
	font-weight: 700;
	line-height: 1;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	box-shadow: var(--rexsoft-shadow-blue);
	transition: transform var(--rexsoft-transition), box-shadow var(--rexsoft-transition), background-color var(--rexsoft-transition);
}

.wp-element-button:hover,
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
	color: #ffffff;
	background: var(--rexsoft-blue-dark);
	transform: translateY(-2px);
	box-shadow: 0 20px 42px rgba(10, 132, 255, 0.3);
}

.rexsoft-site {
	min-height: 100vh;
}
